The definite integral is evaluated using the limit-of-a-sum definition (Riemann sum with h→0); the OR alternative uses polynomial division followed by partial fractions in x2.
Part 1 — Evaluate ∫04(x+e2x)dx as a limit of a sum
By definition, ∫abf(x)dx=h→0limhr=0∑n−1f(a+rh), where h=nb−a, nh=b−a.
Here a=0, b=4, f(x)=x+e2x, nh=4.
r=0∑n−1f(rh)=r=0∑n−1(rh+e2rh)=hr=0∑n−1r+r=0∑n−1e2rh
r=0∑n−1r=2n(n−1), and r=0∑n−1e2rh is a geometric series with ratio e2h: =e2h−1e2nh−1=e2h−1e8−1.
So the sum is S=h[2hn(n−1)+e2h−1e8−1].
As h→0 (with nh=4 fixed): h2n(n−1)=(nh)(nh−h)→4⋅4=16, so the first part →216=8.
For the second part, e2h−1→2h as h→0, so e2h−1h→21, giving 2e8−1.
∫04(x+e2x)dx=8+2e8−1=216+e8−1=2e8+15
(Check by direct integration: [2x2+2e2x]04=8+2e8−21=2e8+15 — matches.)
OR — Part 2: Integrate (x2+3)(x2+4)(x2+1)(x2+2)
Numerator =(x2+1)(x2+2)=x4+3x2+2; denominator =(x2+3)(x2+4)=x4+7x2+12. Since both are degree 4:
…