The indefinite integral ∫u(x)v(x)dx of a product becomes especially simple to finish in one pass — instead of repeated integration by parts — when u(x)=a0xn+a1xn−1+⋯+an is a polynomial and v(x) can be integrated over and over with ease (e.g. sinnx,cosnx,eax). The resulting shortcut is called Bernoulli's formula, an extension of ordinary integration by parts.
Notation. Write the successive derivatives of u as
u(1)=dxdu,u(2)=dxdu(1),u(3)=dxdu(2), …
and the successive anti-derivatives of v as
v(1)=∫vdx,v(2)=∫v(1)dx,v(3)=∫v(2)dx, …
so that dv(1)=vdx, dv(2)=v(1)dx, dv(3)=v(2)dx,…
Derivation. By integration by parts, ∫uvdx=∫udv(1)=uv(1)−∫v(1)du=uv(1)−∫u(1)v(1)dx=uv(1)−∫u(1)dv(2). Applying by-parts again to the last integral: ∫u(1)dv(2)=u(1)v(2)−∫v(2)du(1)=u(1)v(2)−∫u(2)v(2)dx. Substituting back and repeating this process gives
∫uvdx=uv(1)−u(1)v(2)+u(2)v(3)−u(3)v(4)+⋯
called Bernoulli's formula for the integral of a product.
Because u is a polynomial of degree n, its successive derivative u(n+1) (and every derivative after it) is identically 0 — so the right-hand side is always a finite alternating sum with exactly n+1 terms, never an infinite series. …