Integrate the product rule and get ∫udv=[uv]−∫vdu — split the area into two pieces and compute each. Move b: both sides agree to the last decimal.
∫abudv=[uv]ab−∫abvdu
∫xexdx=(x−1)ex+C
Examples & Exercises
Prove integration by parts completely: if u,v are C1 on [a,b], then ∫abudv=[uv]ab−∫abvdu. Integrate the product rule (uv)′=u′v+uv′ and apply the fundamental theorem of calculus.
∫abu(x)v′(x)dx=[u(x)v(x)]ab−∫abv(x)u′(x)dx
u=x, dv=exdx: LHS ≈8.389056099, and [uv]02−∫02vdu≈2e2−(e2−1) matches — the top area equals [uv]0b minus the bottom area.Show proof
Since u,v are C1, u′,v′ are continuous, the product uv is C1, and (uv)′=u′v+uv′ (the product rule). Each term u′v, uv′ is a product of continuous functions, hence continuous — so both are integrable on [a,b].
Integrate (uv)′=u′v+uv′ over [a,b]: ∫ab(uv)′dx=∫abu′vdx+∫abuv′dx. The FTC turns the left side into ∫ab(uv)′dx=[uv]ab.
Hence [uv]ab=∫abu′vdx+∫abuv′dx, and moving ∫abu′vdx across gives ∫abuv′dx=[uv]ab−∫abu′vdx — i.e. ∫abudv=[uv]ab−∫abvdu. Complete. (Tao Proposition 11.10.1.)
Compute ∫xexdx=(x−1)ex+C completely via integration by parts, then differentiate the answer to verify.
∫xexdx=(x−1)ex+C,dxd[(x−1)ex]=xex
b=2: ∫02xexdx=(2−1)e2+1=e2+1≈8.389056099 — matches the scene's closed form.Show proof
Set u=x, dv=exdx; then du=dx, v=ex. The formula gives ∫xexdx=xex−∫exdx=xex−ex+C=(x−1)ex+C.
Verification (differentiate back): dxd[(x−1)ex]=1⋅ex+(x−1)ex=xex (product rule) — matches the original integrand, so the antiderivative is correct. As a definite integral, ∫02xexdx=[(x−1)ex]02=e2−(−1)=e2+1≈8.389056099.
Derive completely via integration by parts that In=∫0π/2sinnxdx satisfies In=nn−1In−2 (use u=sinn−1x, dv=sinxdx). Then compute I0=2π and I1=1.
In=nn−1In−2,I0=2π,I1=1
I2=4π,I3=32,I4=163π
The trigonometric pair: u=x, dv=sinxdx gives v=−cosx and ∫0bxsinxdx=−bcosb+sinb — the same parts structure produces the reduction formula.Show proof
For n≥2, write In=∫0π/2sinn−1x⋅sinxdx and set u=sinn−1x, dv=sinxdx: then du=(n−1)sinn−2xcosxdx, v=−cosx. Parts gives In=[−cosxsinn−1x]0π/2+(n−1)∫0π/2sinn−2xcos2xdx.
The boundary term vanishes: cos=0 at x=π/2 and sin=0 at x=0 (since n−1≥1). With cos2x=1−sin2x this becomes In=(n−1)∫0π/2(sinn−2x−sinnx)dx=(n−1)(In−2−In). Rearranging, nIn=(n−1)In−2, i.e. In=nn−1In−2.
Base cases: I0=∫0π/21dx=2π, I1=∫0π/2sinxdx=[−cosx]0π/2=1. The recurrence gives I2=21⋅2π=4π, I3=32⋅1=32, I4=43⋅4π=163π — the starting point of the Wallis integrals.