Tutorials › Calculus II › Definite Integration By Parts And Boundary Terms

Integration by Parts I · Tutorial 28 of 998

Definite Integration By Parts And Boundary Terms

Use integration by parts on a definite integral, keeping track of the boundary expression at the upper and lower limits.

Beginner 9 min read

What You'll Learn

  • State the conditions for definite integration by parts.
  • Derive the formula from the product rule and the Fundamental Theorem of Calculus.
  • Evaluate the boundary expression at both endpoints using bracket notation.
  • Apply the formula to definite integrals with exponential and trigonometric factors.
  • Check definite integration by parts answers by differentiating an antiderivative.
  • Recognize when endpoint contributions vanish and when they do not.

Why Boundary Terms Matter

A definite integral asks for the accumulated value of a function over an interval. When integration by parts is used, that accumulation is related to a product evaluated at the two ends of the interval. The endpoint values are part of the formula, not optional details: leaving one out can change the answer, even if the remaining integral is evaluated correctly.

The key idea comes directly from the product rule. For differentiable functions \(u\) and \(v\), the derivative of their product contains both \(u'v\) and \(uv'\). Rearranging that rule and integrating across an interval produces a formula with a boundary expression. We will derive the formula, interpret its endpoint notation, and use it in several definite integrals.

Central formula: If \(u\) and \(v\) are continuously differentiable on \([a,b]\), then \[ \int_a^b u(x)v'(x)\,dx = \bigl[u(x)v(x)\bigr]_a^b - \int_a^b v(x)u'(x)\,dx. \]

What the Boundary Notation Means

The bracket notation records the value of the expression at the upper endpoint minus its value at the lower endpoint:

$$ \bigl[u(x)v(x)\bigr]_a^b = u(b)v(b)-u(a)v(a). $$

Both evaluations are required. The lower-endpoint value is subtracted, including when the expression itself is negative there. If either endpoint contribution is zero, it can of course be omitted after it has been evaluated.

In differential notation, set \(du=u'(x)\,dx\) and \(dv=v'(x)\,dx\). The same formula is commonly written

$$ \int_a^b u\,dv = \bigl[uv\bigr]_a^b - \int_a^b v\,du. $$

This is the definite integration by parts formula. The integral on the right is still a definite integral over the same interval. Unlike an indefinite integral formula, no arbitrary constant is added.

Deriving the Formula

Assume \(u\) and \(v\) are continuously differentiable on the closed interval \([a,b]\). The product rule gives

$$ \frac{d}{dx}\bigl(u(x)v(x)\bigr) = u'(x)v(x)+u(x)v'(x). $$

Rearrange this identity to isolate the product \(u(x)v'(x)\):

$$ u(x)v'(x) = \frac{d}{dx}\bigl(u(x)v(x)\bigr)-v(x)u'(x). $$

Now integrate both sides from \(a\) to \(b\). Linearity of the integral separates the two terms, and the Fundamental Theorem of Calculus evaluates the integral of the derivative:

$$ \begin{aligned} \int_a^b u(x)v'(x)\,dx &= \int_a^b \frac{d}{dx}\bigl(u(x)v(x)\bigr)\,dx - \int_a^b v(x)u'(x)\,dx\\ &= u(b)v(b)-u(a)v(a) - \int_a^b v(x)u'(x)\,dx. \end{aligned} $$

This proves the formula. The endpoint difference appears because the Fundamental Theorem evaluates an antiderivative at the upper endpoint and subtracts its value at the lower endpoint. That subtraction is the source of the minus sign in the boundary notation.

1
Choose the two factors.
Write the integrand as \(u(x)v'(x)\), so that \(u\) and a convenient antiderivative \(v\) are identified.
2
Form the boundary expression.
Evaluate \(u(b)v(b)-u(a)v(a)\), keeping the upper and lower values distinct.
3
Evaluate the remaining integral.
Subtract \(\int_a^b v(x)u'(x)\,dx\) from the complete boundary difference.
4
Check the result.
When practical, differentiate an antiderivative for the original integrand and confirm the endpoint evaluation.

Worked Examples

Worked Example: An Exponential Integral on a Finite Interval

Evaluate \(\int_0^1 xe^x\,dx\) by integration by parts.

Write the integrand as \(u\,dv\), with \(u=x\) and \(dv=e^x\,dx\). Then \(du=dx\) and \(v=e^x\). Apply the definite formula:

$$ \begin{aligned} \int_0^1 xe^x\,dx &=\bigl[xe^x\bigr]_0^1-\int_0^1 e^x\,dx\\ &=(1\cdot e^1)-(0\cdot e^0)-\bigl[e^x\bigr]_0^1\\ &=e-0-(e-1)\\ &=1. \end{aligned} $$

For a check, an antiderivative is \(xe^x-e^x\), since

$$ \frac{d}{dx}\bigl(xe^x-e^x\bigr) = (e^x+xe^x)-e^x = xe^x. $$

Its endpoint difference is \((e-e)-(0-1)=1\), matching the result.

Worked Example: A Trigonometric Integral With a Nonzero Boundary Term

Evaluate \(\int_0^\pi x\sin x\,dx\).

Take \(u=x\), so \(du=dx\), and \(dv=\sin x\,dx\), so \(v=-\cos x\). The boundary expression and remaining integral are

$$ \begin{aligned} \int_0^\pi x\sin x\,dx &=\bigl[-x\cos x\bigr]_0^\pi-\int_0^\pi(-\cos x)\,dx\\ &=\bigl(-\pi\cos\pi\bigr)-\bigl(-0\cos0\bigr)+\int_0^\pi\cos x\,dx\\ &=\pi+0+\bigl[\sin x\bigr]_0^\pi\\ &=\pi+(0-0)\\ &=\pi. \end{aligned} $$

The boundary term is \(\pi\), so it cannot be discarded. To check, an antiderivative is \(-x\cos x+\sin x\). Its derivative is \(-\cos x+x\sin x+\cos x=x\sin x\), and its endpoint difference is \(\pi-0=\pi\).

Worked Example: An Integral Whose Boundary Term Is Zero

Evaluate \(\int_0^1 x\cos(\pi x)\,dx\). Use \(u=x\), \(du=dx\), \(dv=\cos(\pi x)\,dx\), and \(v=\frac{\sin(\pi x)}{\pi}\). Then

$$ \begin{aligned} \int_0^1 x\cos(\pi x)\,dx &=\left[\frac{x\sin(\pi x)}{\pi}\right]_0^1 -\frac{1}{\pi}\int_0^1\sin(\pi x)\,dx\\ &=0-\frac{1}{\pi}\left[-\frac{\cos(\pi x)}{\pi}\right]_0^1\\ &=-\frac{1}{\pi}\left(\frac{1}{\pi}-\left(-\frac{1}{\pi}\right)\right)\\ &=-\frac{2}{\pi^2}. \end{aligned} $$

The boundary expression vanishes because \(\sin(0)=\sin(\pi)=0\), but the remaining integral does not. A check is the antiderivative \(\frac{x\sin(\pi x)}{\pi}+\frac{\cos(\pi x)}{\pi^2}\). Its derivative is \(x\cos(\pi x)\), and its endpoint difference is \(-1/\pi^2-1/\pi^2=-2/\pi^2\).

Reading the Formula Carefully

The boundary term and the remaining integral play separate roles. First calculate the complete endpoint difference; then subtract the remaining definite integral. It is usually safer to write the upper and lower evaluations on separate terms rather than relying on mental arithmetic.

Part of the formulaMeaning
\(\bigl[uv\bigr]_a^b\)\(u(b)v(b)-u(a)v(a)\), with the lower value subtracted
\(\int_a^b v\,du\)The new definite integral, over the original interval
The minus sign before the integralThe remaining integral is subtracted from the full boundary difference

A boundary term may be nonzero, as in the integral of \(x\sin x\) from \(0\) to \(\pi\); it may also vanish, as in the integral of \(x\cos(\pi x)\) from \(0\) to \(1\). Neither outcome should be assumed from the appearance of the integrand. Evaluate the expression at both limits to determine it.

A Common Boundary-Term Mistake

For \(\int_0^\pi x\sin x\,dx\), one incorrect calculation is

$$ \bigl[-x\cos x\bigr]_0^\pi \ \text{is incorrectly replaced by}\ -\pi\cos\pi=\pi. $$

This happens to give the correct boundary contribution in this example because the lower-endpoint product is zero. But the calculation is incomplete as a general method: the bracket means that the value at \(0\) must be subtracted, not ignored. For example, in \(\bigl[x e^x\bigr]_0^1\), keeping only the upper value would give \(e\), while the correct boundary difference is \(e-0=e\); this example also masks the omission. A nonzero lower endpoint exposes it: \(\bigl[x e^x\bigr]_1^2\) is \(2e^2-e\), not \(2e^2\).

The correction is to write both evaluations explicitly before simplifying:

$$ \bigl[xe^x\bigr]_1^2 = (2e^2)-(1e^1) = 2e^2-e. $$

Another possible error is to subtract the remaining integral before evaluating the endpoint difference correctly. Keeping the formula in the form “upper value minus lower value minus remaining integral” makes the signs visible.

Why Definite Integration by Parts Is Useful

Integration by parts lets a definite integral be replaced by another one whose factors may be easier to integrate. The endpoints also carry useful information: on some intervals, the product \(uv\) vanishes at one or both limits, simplifying the calculation. On other intervals, those endpoint values provide a substantial part of the answer.

The method is especially reliable when each piece is recorded separately: identify \(u\) and \(dv\), compute \(du\) and \(v\), evaluate \(\bigl[uv\bigr]_a^b\), and then subtract the remaining integral. Finally, a derivative check can confirm that the antiderivative used in the endpoint evaluation differentiates to the original integrand.

Check Your Understanding

For each question, pay attention to both the limits and the boundary expression.

  1. State the definite integration by parts formula using \(u\), \(v\), \(du\), and \(dv\).
  2. What does \(\bigl[uv\bigr]_a^b\) mean when written without bracket notation?
  3. Use integration by parts to set up, but do not necessarily simplify, \(\int_0^2 xe^x\,dx\). Identify the boundary term explicitly.
  4. In \(\int_0^\pi x\sin x\,dx\), which endpoint contribution is nonzero?
  5. Why does the definite formula contain no arbitrary constant?

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