Calculus I · The Fundamental Theorem of Calculus

Integration by parts: the product rule, backward

Substitution (Chapter 10) was the chain rule reversed. The other great technique is the product rule reversed, and it’s derived the same way. Start from the product rule, (fg)′=f′g+fg′\,(fg)' = f'g + fg', and integrate both sides. The left gives fgfg; rearrange:

∫fg′dx=fg−∫f′gdx,often written∫udv=uv−∫vdu.\int f\,g'\,dx = fg - \int f'\,g\,dx, \qquad\text{often written}\qquad \int u\,dv = uv - \int v\,du.

You use it when the integrand is a product, and differentiating one factor makes the integral simpler. Pick that factor to be uu (so it gets differentiated) and the rest to be dvdv (so it gets integrated).

  • ∫xexdx\displaystyle\int x\,e^x\,dx: let u=xu = x (its derivative 11 simplifies things), dv=exdxdv = e^x\,dx. Then ∫xexdx=xex−∫exdx=xex−ex+C\int x e^x dx = x e^x - \int e^x\,dx = x e^x - e^x + C.
  • ∫xcos⁡xdx\displaystyle\int x\cos x\,dx: let u=xu = x, dv=cos⁡xdxdv = \cos x\,dx, giving xsin⁡x−∫sin⁡xdx=xsin⁡x+cos⁡x+Cx\sin x - \int \sin x\,dx = x\sin x + \cos x + C.
  • ∫ln⁡xdx\displaystyle\int \ln x\,dx: the slick one. Take u=ln⁡xu = \ln x and dv=dxdv = dx (yes, the whole rest is just dxdx). Then v=xv = x, du=1xdxdu = \tfrac1x dx, and ∫ln⁡xdx=xln⁡x−∫x⋅1xdx=xln⁡x−x+C\int \ln x\,dx = x\ln x - \int x\cdot\tfrac1x\,dx = x\ln x - x + C. We integrated a function that isn’t even a product by inventing one.
  • ∫x2exdx\displaystyle\int x^2 e^x\,dx: when one pass isn’t enough, repeat. Let u=x2u = x^2, dv=exdxdv = e^x dx, giving x2ex−∫2xexdxx^2 e^x - \int 2x\,e^x\,dx — and the leftover integral is the first example (times 22), so parts again finishes it: x2ex−2(xex−ex)+C=(x2−2x+2)ex+Cx^2 e^x - 2(x e^x - e^x) + C = (x^2 - 2x + 2)\,e^x + C. Each pass knocks the power down by one.

That’s the principle — the product rule, read right to left. (Substitution and parts are the reverse-images of Chapter 4’s two big rules; together they handle an enormous range of integrals, and when they fail, the integral often has no elementary antiderivative at all, and we fall back on the Riemann sums of Chapter 10.)


Every “total” is one idea: slice and sum

A standard calculus course now unloads a warehouse of formulas — areas between curves, volumes by disks, volumes by shells, arc length, surfaces of revolution, work, fluid pressure — each with its own boxed equation to memorize. Don’t. They are all the same idea, the idea the integral was built from: to measure a total, cut it into infinitesimal pieces simple enough to measure, then add the pieces up (integrate). Learn that move and you can derive any of the formulas on demand; memorizing them is a confession that you didn’t see they were one thing. Three quick illustrations, then we move on:

Figure 11.4
Figure 11.4
  • Area between two curves. Slice the region into thin vertical strips. Each strip has width dxdx and height (top curve −- bottom curve), so its area is (top−bottom)dx\big(\,\text{top}-\text{bottom}\,\big)\,dx. Add them: ∫ab(top−bottom)dx\displaystyle\int_a^b \big(\,\text{top}-\text{bottom}\,\big)\,dx.
  • Volume of a solid of revolution. Spin a curve y=f(x)y=f(x) around the xx-axis and slice the solid into thin coins. Each coin is a disk of radius f(x)f(x) and thickness dxdx, with volume πf(x)2dx\pi f(x)^2\,dx. Add them: ∫abπf(x)2dx\displaystyle\int_a^b \pi f(x)^2\,dx.
  • Length of a curve. Slice the curve into tiny nearly-straight segments. By the Pythagorean theorem each segment has length dx2+dy2=1+(f′(x))2dx\sqrt{dx^2 + dy^2} = \sqrt{1 + \big(f'(x)\big)^2}\,dx. Add them: ∫ab1+(f′(x))2dx\displaystyle\int_a^b \sqrt{1 + \big(f'(x)\big)^2}\,dx.

In every case the recipe was identical: what does one infinitesimal piece contribute, and what do they sum to? Notice, too, the honesty in the last one — that arc-length integrand is a square root of a polynomial, and for most curves (even a humble parabola) it has no elementary antiderivative. So you set up the integral by the principle and then, as often as not, hand it to a Riemann sum. This is exactly why memorizing the formula is pointless and understanding the slice is everything.


All 12 chapters of Calculus I · Foundations · All courses