Tutorials › Calculus II › Tabular Integrals of Monomials Times Exponentials

Repeated and Tabular Parts · Tutorial 53 of 998

Tabular Integrals of Monomials Times Exponentials

Use a finite derivative table to integrate \(x^n e^x\), recognize the degree-dependent coefficient pattern, and check the result by differentiation.

Intermediate 9 min read

What You'll Learn

  • Build derivative and antiderivative columns for a monomial times \(e^x\).
  • Track the alternating signs and diagonal products in a finite table.
  • Evaluate examples of degrees two, three, and four.
  • State and justify the general antiderivative for nonnegative integer degrees.
  • Verify a proposed result by differentiating it and identify a common sign error.

Why These Integrals Have a Finite Pattern

For an integral such as \(\int x^4 e^x\,dx\), integration by parts can be applied repeatedly. Each differentiation lowers the degree of the polynomial, while each integration of \(e^x\) leaves \(e^x\) unchanged. Because repeated differentiation eventually turns a polynomial into zero, the process stops after finitely many rows.

A derivative table makes that finite process visible. It also reveals a regular pattern in the coefficients: the powers of \(x\) descend, the signs alternate, and the numerical factors come from successive derivatives of the monomial. The result is an antiderivative that can be checked directly.

Definition: For a nonnegative integer \(n\), a tabular integral of \(x^n e^x\) uses the successive derivatives of \(x^n\), the repeated antiderivatives of \(e^x\), and alternating signs to form a finite sum of diagonal products.

How to Read the Table

The left column begins with \(x^n\) and lists its derivatives until the derivative is zero. The right column lists antiderivatives of \(e^x\); every entry is \(e^x\), since \(\int e^x\,dx=e^x\). Multiply entries diagonally, beginning with the first derivative entry and the next antiderivative entry. Give the products alternating signs, starting with \(+\).

For example, the first derivative on the left pairs with the first antiderivative below \(e^x\) on the right, producing \(n x^{n-1}e^x\) with a minus sign. The next derivative pairs with the next antiderivative and receives a plus sign. Continue until the derivative column reaches zero. The final nonzero derivative contributes the last term.

1
Differentiate the polynomial.
Continue until the next derivative is zero; this ensures the table is finite.
2
Integrate the exponential column.
Each antiderivative is \(e^x\), because differentiating \(e^x\) gives \(e^x\).
3
Multiply diagonally and alternate signs.
Start with a positive product, then use negative, positive, negative, and so on.
4
Check by differentiation.
The terms should cancel in pairs, leaving the original integrand.

Worked Examples

Worked Example: Integrating \(x^2 e^x\)

Differentiate \(x^2\) until the derivative is zero. The antiderivative column repeats \(e^x\):

SignDerivative of \(x^2\)Antiderivative of \(e^x\)
\(+\)\(x^2\)\(e^x\)
\(-\)\(2x\)\(e^x\)
\(+\)\(2\)\(e^x\)
\(0\)

The diagonal products are \(x^2e^x\), \(2xe^x\), and \(2e^x\), with signs \(+\), \(-\), and \(+\). Therefore,

$$ \int x^2e^x\,dx=e^x(x^2-2x+2)+C. $$

To check, differentiate the proposed antiderivative using the product rule:

$$ \begin{aligned} \frac{d}{dx}\left[e^x(x^2-2x+2)\right] &=e^x(x^2-2x+2)+e^x(2x-2)\\ &=e^x\left(x^2-2x+2+2x-2\right)\\ &=x^2e^x. \end{aligned} $$

The derivative is the original integrand, so the antiderivative is verified. The arbitrary constant \(C\) has derivative zero.

Worked Example: Integrating \(x^3 e^x\)

The successive derivatives of \(x^3\) are \(x^3\), \(3x^2\), \(6x\), \(6\), and then \(0\). Pairing these with the repeated antiderivative \(e^x\) gives:

SignDerivative of \(x^3\)Antiderivative of \(e^x\)
\(+\)\(x^3\)\(e^x\)
\(-\)\(3x^2\)\(e^x\)
\(+\)\(6x\)\(e^x\)
\(-\)\(6\)\(e^x\)
\(0\)

Thus the signed products give

$$ \int x^3e^x\,dx =e^x(x^3-3x^2+6x-6)+C. $$

For a check, set \(P(x)=x^3-3x^2+6x-6\). Then \(P'(x)=3x^2-6x+6\), so

$$ \begin{aligned} \frac{d}{dx}\left[e^xP(x)\right] &=e^x\bigl(P(x)+P'(x)\bigr)\\ &=e^x\left[(x^3-3x^2+6x-6)+(3x^2-6x+6)\right]\\ &=x^3e^x. \end{aligned} $$

The polynomial terms of degrees two, one, and zero cancel, leaving exactly the cubic term.

Worked Example: Integrating \(x^4 e^x\)

Here the derivatives of \(x^4\) are \(x^4\), \(4x^3\), \(12x^2\), \(24x\), \(24\), and then \(0\). The table therefore has five nonzero diagonal products:

SignDerivative of \(x^4\)Antiderivative of \(e^x\)
\(+\)\(x^4\)\(e^x\)
\(-\)\(4x^3\)\(e^x\)
\(+\)\(12x^2\)\(e^x\)
\(-\)\(24x\)\(e^x\)
\(+\)\(24\)\(e^x\)
\(0\)

The signs and products produce

$$ \int x^4e^x\,dx =e^x(x^4-4x^3+12x^2-24x+24)+C. $$

Check the result by writing \(P(x)=x^4-4x^3+12x^2-24x+24\). Its derivative is \(P'(x)=4x^3-12x^2+24x-24\). Hence

$$ \begin{aligned} \frac{d}{dx}\left[e^xP(x)\right] &=e^x\bigl(P(x)+P'(x)\bigr)\\ &=e^x\left[ x^4-4x^3+12x^2-24x+24 +4x^3-12x^2+24x-24 \right]\\ &=x^4e^x. \end{aligned} $$

Every term below degree four cancels with its counterpart from \(P'(x)\), confirming the answer.

The General Coefficient Pattern

The examples show the same structure at each degree. The leading coefficient is \(1\). The next coefficient is the negative of the degree. The following coefficient is the degree multiplied by the next lower integer, and the signs continue to alternate. For a nonnegative integer \(n\), the complete result is

Theorem: For every nonnegative integer \(n\),
$$ \int x^n e^x\,dx = e^x\left( x^n-nx^{n-1}+n(n-1)x^{n-2} -\cdots+(-1)^n n! \right)+C. $$

More precisely, the polynomial in parentheses is

$$ P_n(x)=\sum_{k=0}^{n}(-1)^k\frac{n!}{(n-k)!}x^{n-k}. $$

This expression makes the coefficient rule precise. At \(k=0\), the coefficient is \(1\). At \(k=1\), it is \(-n\). At \(k=2\), it is \(n(n-1)\). The final term occurs at \(k=n\): its power is \(x^0=1\), and its coefficient is \((-1)^n n!\). The factorial \(m!\) means \(1\cdot2\cdots m\) for positive integers \(m\), with \(0!=1\).

Why the Formula Works

The table is an organized repetition of integration by parts. Its signs alternate because each use of integration by parts subtracts the next diagonal product. The process ends because the derivative of a polynomial of degree \(n\) becomes zero after \(n+1\) differentiations. The cancellation can also be proved directly by differentiating the proposed form.

Let \(P_n(x)\) be the polynomial above. Its coefficient on \(x^r\), for \(0\le r\le n\), is

$$ (-1)^{n-r}\frac{n!}{r!}. $$

For \(0\le r<n\), the coefficient on \(x^r\) in \(P_n'(x)\) comes from differentiating the \(x^{r+1}\) term. That coefficient is

$$ (r+1)(-1)^{n-r-1}\frac{n!}{(r+1)!} = (-1)^{n-r-1}\frac{n!}{r!}. $$

This is the negative of the coefficient on \(x^r\) in \(P_n(x)\). Thus every power below \(x^n\) cancels in \(P_n+P_n'\). The \(x^n\) term has coefficient \(1\) in \(P_n\) and has no contribution from \(P_n'\), so

$$ P_n(x)+P_n'(x)=x^n. $$

Using the product rule now proves the formula:

$$ \frac{d}{dx}\left(e^xP_n(x)\right) =e^x\bigl(P_n(x)+P_n'(x)\bigr) =x^n e^x. $$

Therefore \(e^xP_n(x)+C\) is an antiderivative of \(x^n e^x\). This proof also explains the table's alternating pattern: each polynomial term is canceled by the derivative of the adjacent term, except for the original leading power.

A Common Sign Error

Alternating signs are essential. A common mistake is to make every term positive. For instance, the incorrect proposal

$$ e^x(x^2+2x+2) $$

does not integrate \(x^2e^x\). Differentiating it gives

$$ \frac{d}{dx}\left[e^x(x^2+2x+2)\right] =e^x\left[(x^2+2x+2)+(2x+2)\right] =e^x(x^2+4x+4), $$

which is not \(x^2e^x\). The table supplies a minus sign for the \(2x\) diagonal product, so the corrected polynomial is \(x^2-2x+2\). Differentiating that expression gives \(x^2e^x\), as the first worked example confirms.

When the Table Applies

This finite table is especially direct when the algebraic factor is a polynomial and the other factor is \(e^x\). It relies on two facts: differentiating the polynomial eventually gives zero, and every successive antiderivative of \(e^x\) is still \(e^x\). The degree \(n\) must be a nonnegative integer for the derivative column to terminate in this way.

For \(n=0\), there is just one nonzero row, and the formula gives \(\int e^x\,dx=e^x+C\). For larger \(n\), the new terms follow the same descending-power, alternating-sign pattern. Always include \(+C\) for an indefinite integral, and differentiate the complete proposed antiderivative when checking it.

Check Your Understanding

Use the finite derivative table and the cancellation in the product rule to answer these questions.

  1. What are the successive nonzero derivatives of \(x^3\), and what signs are assigned to their diagonal products?
  2. Write the coefficient pattern in the antiderivative of \(x^4e^x\), including its constant term.
  3. Why does the derivative column in the table eventually become zero?
  4. Differentiate \(e^x(x^3-3x^2+6x-6)\) and show which terms cancel.
  5. What goes wrong if the second diagonal product is given a positive sign instead of a negative sign?

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon