Why Use a Table?
Integration by parts is especially efficient when one factor is a polynomial. Differentiating a polynomial eventually produces zero, so repeated integration by parts can be organized into a finite process. A derivative-integral table records each step and makes the alternating signs visible.
The table is a bookkeeping method, not a new integration rule. Each diagonal product comes from one application of integration by parts, and the process stops when the polynomial derivative becomes zero.
How to Build the Table
Let \(P(x)\) be a polynomial of degree \(n\), and let \(f(x)\) have \(n+1\) successive antiderivatives on the interval of interest. Write \(F_0=f\), and define \(F_1,F_2,\ldots,F_{n+1}\) so that \(F_{k+1}'=F_k\). In the left column, list \(P\) and its derivatives; in the right column, list \(F_1,F_2,\ldots,F_{n+1}\).
Start with a plus sign and alternate the signs down the table. Multiply entries along each diagonal: \(P\) with \(F_1\), \(P'\) with \(F_2\), and so on. Stop after the row containing the last nonzero derivative of \(P\). The result is an antiderivative.
The formula requires the listed antiderivatives to exist on the interval under consideration. For a definite integral over \([a,b]\), the corresponding formula is evaluated at both endpoints: the sum of diagonal products at \(b\) minus the sum at \(a\). All functions involved must be defined and sufficiently differentiable or integrable on that interval for the integrations by parts to apply.
Why the Alternating Signs Work
The signs follow directly from integration by parts. In the first application, choose \(u=P\) and \(dv=f(x)\,dx\), so that \(du=P'\,dx\) and \(v=F_1\). Then
In the remaining integral, use \(u=P'\) and \(dv=F_1\,dx\), whose antiderivative is \(F_2\). Substituting this second integration-by-parts result gives
Each new application introduces one minus sign, while the preceding remainder already has a minus sign. Thus the diagonal terms alternate in sign. The argument continues until the derivative of the polynomial is zero.
Worked Example: A Cubic Polynomial Times an Exponential
Worked Example: \(\int x^3e^x\,dx\)
Differentiate \(x^3\) until it reaches zero. Since every antiderivative of \(e^x\) is \(e^x\), the integration column repeats that function.
| Sign | Differentiate \(x^3\) | Integrate \(e^x\) |
|---|---|---|
| + | \(x^3\) | \(e^x\) |
| − | \(3x^2\) | \(e^x\) |
| + | \(6x\) | \(e^x\) |
| − | \(6\) | \(e^x\) |
| \(0\) |
Multiply along the diagonals, using the sign shown in each row:
Check by differentiating. If \(Q(x)=x^3-3x^2+6x-6\), then \(Q'(x)=3x^2-6x+6\). Hence
The derivative matches the integrand, so the antiderivative is verified.
Worked Example: Repeated Antiderivatives That Change
Worked Example: \(\int x^2\sin x\,dx\)
Here the polynomial derivatives are \(x^2,2x,2,0\). The successive antiderivatives of \(\sin x\) are \(-\cos x,-\sin x,\cos x\). Record each one in order:
| Sign | Differentiate \(x^2\) | Integrate \(\sin x\) repeatedly |
|---|---|---|
| + | \(x^2\) | \(-\cos x\) |
| − | \(2x\) | \(-\sin x\) |
| + | \(2\) | \(\cos x\) |
| \(0\) |
The alternating signs apply to the diagonal products, including the negative values in the integration column:
Differentiate the result term by term:
All terms other than \(x^2\sin x\) cancel, confirming the answer.
Worked Example: Repeatedly Integrating a Logarithm
Worked Example: \(\int x^2\ln x\,dx\), for \(x>0\)
The logarithm is the repeatedly integrated factor, and the polynomial is differentiated. The domain condition \(x>0\) is required because \(\ln x\) is defined only for positive \(x\).
Integrate \(\ln x\) once by parts: \(\int\ln x\,dx=x\ln x-x\). Integrate that result to obtain the next entries:
For example, differentiating \(F_2\) gives \(x\ln x+\frac{x}{2}-\frac{3x}{2}=x\ln x-x=F_1\); differentiating \(F_3\) gives \(\frac{x^2}{2}\ln x+\frac{x^2}{6}-\frac{11x^2}{12} =\frac{x^2}{2}\ln x-\frac{3x^2}{4}=F_2\).
The polynomial derivative column is \(x^2,2x,2,0\). The table formula gives
To check, differentiate:
The logarithmic terms in the table require careful arithmetic; the derivative check confirms that the simplified expression is correct.
Definite Integrals and Boundary Terms
For a definite integral, use the same diagonal sum as for an antiderivative, then subtract its value at the lower endpoint from its value at the upper endpoint. This is the repeated-parts version of keeping track of boundary terms. It can be efficient when the resulting endpoint values are manageable.
Worked Example: \(\int_0^1 x^2e^{2x}\,dx\)
The polynomial derivatives are \(x^2,2x,2,0\). Successive antiderivatives of \(e^{2x}\) are \(\frac12e^{2x},\frac14e^{2x},\frac18e^{2x}\). Thus the diagonal sum is
Check the antiderivative. Let \(R(x)=\frac{x^2}{2}-\frac{x}{2}+\frac14\), so \(R'(x)=x-\frac12\). Then
Evaluate the endpoints: \(F(1)=\frac14e^2\), while \(F(0)=\frac14\). Therefore
The boundary subtraction is essential: the definite integral is not just the value of the antiderivative at the upper endpoint.
A Sign Pitfall
A common error is to add every diagonal product. For instance, that mistake would give the incorrect expression
for \(\int x^2e^x\,dx\). Differentiating shows the error:
The corrected table has signs \(+,-,+\), so the correct expression is \(e^x(x^2-2x+2)+C\). Its derivative is
Writing the alternating signs before multiplying the diagonals helps prevent this mistake. Also stop when the polynomial derivative becomes zero; continuing the polynomial column past that point adds no terms.
When the Method Is Useful
The table is most useful when one factor is a polynomial and the other factor can be integrated repeatedly without making the expressions impractical. Exponential and trigonometric functions often have short, repeating antiderivatives, while a polynomial supplies a definite stopping point. A table is less attractive if repeated integration makes the other factor increasingly complicated.
In every case, verify the result by differentiation for an indefinite integral, or by differentiating the antiderivative and checking the endpoint subtraction for a definite integral. Those checks catch sign errors, missed factors, and mistakes in the final evaluation.
Check Your Understanding
Use the table method and check each antiderivative by differentiation.
- Evaluate \(\int x^2e^x\,dx\). What are the three diagonal signs?
- Evaluate \(\int x\cos x\,dx\), listing the repeated antiderivatives of \(\cos x\).
- For a polynomial of degree \(4\), how many nonzero polynomial rows appear in the derivative column?
- Evaluate \(\int_0^1 xe^x\,dx\), including both endpoint values.
- Why does the tabular sum stop after the last nonzero derivative of the polynomial?