Why Endpoint Accounting Matters
Tabular integration by parts is especially efficient when one factor is a polynomial: repeated differentiation eventually reduces the polynomial to zero. For a product involving an exponential, repeated integration of the exponential also has a simple pattern. In a definite integral, however, finding an antiderivative is only part of the calculation. The final expression must be evaluated at both endpoints, with every term included and the subtraction in the correct order.
This tutorial develops a systematic table and endpoint formula for integrals of a polynomial times \(e^{ax}\). The coefficient \(a\) is assumed to be nonzero unless stated otherwise. As with any application of the Fundamental Theorem of Calculus, the polynomial and exponential are continuous on the finite interval of integration, so an antiderivative can be evaluated at the endpoints.
The Tabular Pattern
Start a table with successive derivatives of \(P(x)\) in one column and successive antiderivatives of \(e^{ax}\) in the other. Each integration of the exponential contributes another factor of \(1/a\). The signs on the diagonal products alternate, beginning with a positive sign.
If \(P\) has degree \(n\), then \(P^{(n+1)}(x)=0\), so the derivative column terminates. Multiplying across each row and applying its sign gives the antiderivative
For a definite integral, this entire antiderivative is evaluated at \(v\) and then at \(u\). Equivalently, each diagonal product contributes its own upper-endpoint value minus its lower-endpoint value. Keeping those endpoint evaluations visible helps prevent sign errors.
The expression in parentheses is always the value at the upper endpoint minus the value at the lower endpoint. The alternating sign and the power \(a^{k+1}\) belong to the \(k\)th derivative term.
Why the Formula Works
The table is a compact form of repeated integration by parts. Its signs alternate because each new integration-by-parts step subtracts an integral involving one more derivative of the polynomial. The following verification also proves that the displayed expression is an antiderivative.
This check is useful in practice: after forming the polynomial factor \(Q(x)\), verify that \(aQ(x)+Q'(x)=P(x)\). A correct table expression must pass this test before its endpoint values are trusted.
Worked Examples
Worked Example: A Quadratic on a Unit Interval
Evaluate \(\int_0^1 (x^2+1)e^{2x}\,dx\). Here \(P(x)=x^2+1\), \(a=2\), \(P'(x)=2x\), and \(P''(x)=2\). The table ends after the second derivative, giving
The antiderivative is \(e^{2x}Q(x)\). At the upper endpoint,
At the lower endpoint,
Subtract the lower-endpoint value from the upper-endpoint value:
Check the antiderivative. Since \(Q'(x)=x-\frac12\), we have \(2Q(x)=x^2-x+\frac32\), and therefore
Thus \(\frac{d}{dx}(e^{2x}Q(x))=e^{2x}(x^2+1)\), confirming the result.
Worked Example: A Negative Exponential Coefficient
Evaluate \(\int_{-1}^0 (3x^2-2x+1)e^{-x}\,dx\). Here \(a=-1\), \(P(x)=3x^2-2x+1\), \(P'(x)=6x-2\), and \(P''(x)=6\). The table gives
At the upper endpoint \(x=0\), \(Q(0)=-5\) and \(e^{-0}=1\), so \(e^{-0}Q(0)=-5\). At the lower endpoint \(x=-1\),
The upper value minus the lower value is
For a derivative check, \(Q'(x)=-6x-4\), while \(aQ(x)=-Q(x)=3x^2+4x+5\). Hence
The antiderivative therefore differentiates to the stated integrand, including when \(a\) is negative.
Worked Example: Endpoint Terms That Simplify
Evaluate \(\int_0^1 (x^2+3x+1)e^{2x}\,dx\). Here \(P(x)=x^2+3x+1\), so \(P'(x)=2x+3\) and \(P''(x)=2\). The table gives
Evaluate each table term at the upper endpoint \(x=1\):
Their sum is \(\left(\frac52-\frac54+\frac14\right)e^2=\frac32e^2\). At the lower endpoint \(x=0\), the three terms are
Their sum is \(\frac12-\frac34+\frac14=0\). Therefore
Check directly using \(Q(x)=x^2/2+x\). We have \(Q'(x)=x+1\) and \(2Q(x)=x^2+2x\), so
Thus \(F(x)=e^{2x}Q(x)\) satisfies \(F'(x)=P(x)e^{2x}\). The endpoint values are \(F(1)=\frac32e^2\) and \(F(0)=0\), which confirms the integral.
Common Pitfall: Losing the Lower-Endpoint Sign
A frequent error is to evaluate the antiderivative at the upper endpoint and stop, or to add rather than subtract the lower-endpoint value. For example, in the first worked example, the upper value is \(\frac34e^2\), but the lower value is \(\frac34\), not zero. Writing the integral as \(\frac34e^2\) omits a boundary contribution. The correct calculation is
The subtraction applies to the whole lower-endpoint value. If that value is negative, subtracting it produces a plus sign, as in the second example: \(-5-(-4e)=4e-5\). Writing out both endpoint substitutions before simplifying makes this sign visible.
Conditions and a Practical Checklist
The table formula uses powers of \(1/a\), so it requires \(a\ne0\). If \(a=0\), then \(e^{ax}=1\) and the problem is simply \(\int_u^v P(x)\,dx\), evaluated with a polynomial antiderivative; the exponential table is unnecessary. For \(a\ne0\), the polynomial must have finite degree so repeated differentiation eventually gives zero.
Write the integrand as \(P(x)e^{ax}\), and check whether \(a\) is nonzero.
Differentiate \(P\) until the derivative is zero; integrate \(e^{ax}\) repeatedly, recording \(1/a,1/a^2,\ldots\).
Multiply diagonally, beginning with a plus sign, and retain each power of \(a\).
Evaluate every term at \(v\), evaluate every term at \(u\), and subtract the complete lower-endpoint result.
For its polynomial factor \(Q\), verify \(aQ+Q'=P\), then confirm the endpoint subtraction.
This method matters because a definite integral can be computed without repeating integration by parts separately at each stage. The table organizes the repeated derivatives, the exponential integrations, and the alternating signs in one place. The endpoint formula then makes clear exactly what must be evaluated. These habits remain useful whenever tabular integration is applied to a finite interval.
Check Your Understanding
Use the table and show both endpoint evaluations in each problem.
- For \(P(x)=x^3\) and \(a=1\), how many nonzero derivative rows are needed before the table terminates?
- Write the table antiderivative for \(P(x)=x^2\) and \(a=3\), without evaluating it at endpoints.
- In the definite-integral formula, in what order are the upper- and lower-endpoint values subtracted?
- Why does the table formula require \(a\ne0\), and what simpler integral remains when \(a=0\)?
- For a proposed factor \(Q(x)\) in an antiderivative \(e^{ax}Q(x)\), what identity verifies that its derivative is \(P(x)e^{ax}\)?