Why a Table Helps
Repeated integration by parts is effective when one factor becomes simpler each time it is differentiated. A polynomial has exactly this property: repeated differentiation eventually gives zero. Meanwhile, repeated antiderivatives of a sine function cycle through sine and cosine, with powers of the frequency in the denominators.
A tabular calculation keeps these two sequences visible and pairs their entries along diagonals. The table is finite because the polynomial derivatives terminate. Its last nonzero derivative still contributes a term; stopping before that term is a common source of errors.
The Two Rows of the Table
Differentiate the polynomial down the left side. On the right, begin with \(\sin(bx)\) and repeatedly integrate. The first few entries in the antiderivative row are
Each entry after \(V_0\) is an antiderivative of the preceding entry: \(V_{j+1}'=V_j\). For example, differentiating \(-\cos(bx)/b\) gives \(\sin(bx)\), because the chain rule contributes a factor of \(b\), which cancels the denominator. The signs and powers of \(b\) matter even when \(b\) is not 1.
The diagonal products begin with \(P V_1\), then \(-P'V_2\), then \(+P''V_3\), and continue with alternating signs. The derivative row ends at \(P^{(n)}\), the last nonzero derivative when \(P\) has degree \(n\). The corresponding diagonal product must be included.
Worked Examples
Worked Example: A Linear Polynomial and a Nonunit Frequency
Evaluate \(\int (2x+1)\sin(2x)\,dx\). Differentiate the polynomial until it reaches zero:
There are two nonzero polynomial entries, so the table gives the first product minus the second product:
To check, differentiate the expression without \(C\). The derivative of the first term is \(-\cos(2x)+(2x+1)\sin(2x)\). The derivative of the second term is \(\cos(2x)\). Adding them leaves \((2x+1)\sin(2x)\), as required.
Worked Example: A Quadratic Polynomial and the Terminal Term
Evaluate \(\int (x^2+2x+3)\sin(2x)\,dx\). The polynomial derivative row is \(x^2+2x+3,\ 2x+2,\ 2,\ 0\). The antiderivative entries needed are \(-\cos(2x)/2,\ -\sin(2x)/4,\ \cos(2x)/8\).
The last displayed product, \(P''V_3\), is the terminal term. Simplifying gives
For a direct check, write \(P=x^2+2x+3\), so \(P'=2x+2\), \(P''=2\), and \(P'''=0\). The derivative of the first term in the unsimplified expression is \(-P'\cos(2x)/2+P\sin(2x)\). The derivative of the second is \(P''\sin(2x)/4+P'\cos(2x)/2\). The derivative of the third is \(-P''\sin(2x)/4\). The cosine terms cancel, and the additional sine terms cancel, leaving \(P\sin(2x)\).
Worked Example: A Cubic with Four Diagonal Products
Evaluate \(\int x^3\sin(3x)\,dx\). The derivatives are \(x^3,\ 3x^2,\ 6x,\ 6,\ 0\). The sine antiderivatives required are
Apply the alternating signs, including the fourth product:
Check by differentiating the four terms. Their derivatives, in order, are \(-x^2\cos(3x)+x^3\sin(3x)\), \(2x\sin(3x)/3+x^2\cos(3x)\), \(2\cos(3x)/9-2x\sin(3x)/3\), and \(-2\cos(3x)/9\). All terms except \(x^3\sin(3x)\) cancel. Thus the derivative is the original integrand.
Worked Example: Evaluate a Definite Integral Using the Table
Evaluate \(\int_0^\pi (x^2+1)\sin x\,dx\). Here \(b=1\), and the polynomial derivatives are \(x^2+1,\ 2x,\ 2,\ 0\). The antiderivatives are \(-\cos x,\ -\sin x,\ \cos x\). Therefore an antiderivative is
At the upper endpoint, \(\cos\pi=-1\) and \(\sin\pi=0\), so \(F(\pi)=\pi^2+1-2=\pi^2-1\). At the lower endpoint, \(\cos 0=1\) and \(\sin 0=0\), so \(F(0)=-1+2=1\). Hence
The antiderivative check follows from the quadratic example’s cancellation: differentiating \(F\) gives \((x^2+1)\sin x\). The endpoint subtraction also uses the correct order, upper value minus lower value.
Why the Formula Works
The table is repeated integration by parts written compactly. To see why it gives the result, recall the integration-by-parts identity \(\int u\,dv=uv-\int v\,du\). Applying it first with \(u=P\) and \(dv=V_0\,dx\) gives \(PV_1-\int P'V_1\,dx\). Applying it to the remaining integral gives \(PV_1-P'V_2+\int P''V_2\,dx\). Each further application produces the next alternating diagonal product.
A direct differentiation proves the full finite formula and makes the cancellation explicit. Set \(F=\sum_{k=0}^{n}(-1)^kP^{(k)}V_{k+1}\). By the product rule and \(V_{k+1}'=V_k\),
In the first sum, replace the index \(k+1\) by \(j\). Its terms are \((-1)^{j-1}P^{(j)}V_j\), for \(j=1,\ldots,n+1\). These cancel the terms \((-1)^jP^{(j)}V_j\), for \(j=1,\ldots,n\), in the second sum. The last term from the first sum is zero because \(P^{(n+1)}=0\). The only uncancelled term is the \(k=0\) term of the second sum, \(P V_0=P(x)\sin(bx)\). Therefore \(F'\) is the original integrand, proving the formula.
Reading the Terminal Term Correctly
For degree \(n\), the table has \(n+1\) nonzero polynomial entries: \(P,P',\ldots,P^{(n)}\). The final product has sign \((-1)^n\) and uses \(V_{n+1}\). It does not disappear merely because the next derivative is zero. The zero derivative explains why there is no further integral remainder, not why the last existing product can be omitted.
When to Use This Method
Tabular integration is especially useful when the polynomial degree is more than one, because it organizes all the repeated integrations without requiring a fresh line of integration by parts for each step. Before starting, identify the constant \(b\) in \(\sin(bx)\), write enough antiderivatives to match the number of nonzero polynomial derivatives, and keep the alternating signs attached to the diagonal products.
If \(b=0\), the displayed table does not apply because its entries divide by \(b\). In that case \(\sin(bx)=\sin 0=0\), so the integrand is zero and its antiderivative is a constant. For \(b\ne0\), the table works for positive or negative \(b\), provided the factors of \(b\) are retained with their signs.
Check Your Understanding
Work each problem by writing the polynomial derivatives and the sine antiderivatives before forming the diagonal products.
- Use the table to find an antiderivative of \(x\sin(4x)\), and verify it by differentiation.
- For a polynomial of degree three, how many diagonal products appear, and which derivative gives the terminal product?
- Find an antiderivative of \((x^2-1)\sin x\), including its terminal term.
- Why does the tabular formula require \(b\ne0\), and what is the integral when \(b=0\)?
- In the quadratic example with frequency \(2\), what extra term remains after differentiating if the terminal product is omitted?