Skip to main content

Integration by parts: choosing u and dv and checking endpoint signs

2026-10-22 Cùng Học Toán Comments: 0

Derive the formula from the product rule, retain the boundary term and remaining integral, and choose factors that simplify the calculation.

High schoolAntiderivatives & Integrals

Content updated: October 22, 2026

Integration by parts transfers differentiation from one factor to the other. Choosing $u$ and $dv$ is useful when differentiating $u$ simplifies it and an antiderivative of $dv$ is available throughout the interval.

Objectives: apply the formula with the correct minus sign; calculate both the boundary contribution and remaining integral; check that the choice simplifies the problem.

Prerequisites: the product rule, basic antiderivatives, and the Newton–Leibniz formula.

On this page: Idea · Method · Examples · Practice · Further learning

1. Why the integration-by-parts formula holds

Suppose $u,v$ have continuous derivatives on $[a;b]$. Integrating $(uv)^{\prime}=u^{\prime}v+uv^{\prime}$ and applying the evaluation formula gives

$$\int_a^b u(x)v^{\prime}(x)\,dx=[u(x)v(x)]_a^b-\int_a^b v(x)u^{\prime}(x)\,dx.$$

Writing $dv=v^{\prime}(x)\,dx$ and $du=u^{\prime}(x)\,dx$, we obtain $\int_a^b u\,dv=[uv]_a^b-\int_a^b v\,du$. The product-rule identity is the basis of this formula.

With the given orientation of the limits, the boundary term is always $u(b)v(b)-u(a)v(a)$. The minus sign before the remaining integral is independent of whether the functions are positive or negative. Do not add a constant $C$ to the numerical result of a definite integral.

2. Choosing u and dv to simplify the calculation

For a polynomial times an exponential or trigonometric function, the polynomial is often a useful $u$: differentiation lowers its degree, while the exponential, sine, or cosine is easy to integrate. For a logarithm times a simple function, choosing the logarithm as $u$ often produces an easier rational expression. These are choices to examine, not a mandatory rule for every product.

After choosing, record all four objects $u,dv,du,v$. Check $v^{\prime}\,dx=dv$ and $du=u^{\prime}\,dx$. Substitute into the formula before evaluating; if the remaining integral is harder, change the choice. Some problems require repeated integration by parts, retaining boundary terms and signs each time.

To find $v$, choose any convenient antiderivative, for example with no displayed constant. Replacing $v$ by $v+C$ adds $C[u]_a^b$ to the boundary term and $C\int_a^b u^{\prime}\,dx$ to the integral; these cancel. This explains why one choice of $v$ is sufficient.

3. Three common choices

Example 1. A polynomial times cosine

Evaluate $I=\int_0^{\pi/2}x\cos x\,dx$. Choose $u=x$, $dv=\cos x\,dx$, so $du=dx$ and $v=\sin x$. The functions have continuous derivatives on the interval. Hence

$$\begin{aligned}I&=[x\sin x]_0^{\pi/2}-\int_0^{\pi/2}\sin x\,dx\\&=\frac\pi2+[\cos x]_0^{\pi/2}=\frac\pi2-1.\end{aligned}$$

The plus sign before the cosine bracket occurs because an antiderivative of sine is $-\cos x$ and an outside minus sign is already present. The antiderivative check uses $x\sin x+\cos x$, whose derivative is $x\cos x$.

Additional Example 2. A polynomial times an exponential

Evaluate $J=\int_0^1xe^x\,dx$. Choose $u=x$, $dv=e^x\,dx$, giving $du=dx$, $v=e^x$. Then

$$J=[xe^x]_0^1-\int_0^1e^x\,dx=e-(e-1)=1.$$

Check using the antiderivative $(x-1)e^x$, whose derivative is $xe^x$. Choosing $e^x$ as $u$ and $x\,dx$ as $dv$ would instead produce an integral containing $x^2e^x$, making no simplification.

Additional Example 3. A logarithm as a product with 1

Evaluate $K=\int_1^e\ln x\,dx$. Write $\ln x=\ln x\cdot1$; choose $u=\ln x$, $dv=dx$, so $du=dx/x$, $v=x$. The interval $[1;e]$ avoids $0$, and the logarithm is continuous. Therefore

$$K=[x\ln x]_1^e-\int_1^e1\,dx=e-(e-1)=1.$$

The antiderivative $x\ln x-x$ has derivative $\ln x$ for $x>0$. Two factors need not already be displayed in the original expression for integration by parts to apply.

4. Practice exercises

  1. Evaluate $\int_0^1xe^{2x}\,dx$.
  2. Evaluate $\int_0^\pi x\sin x\,dx$.
  3. Evaluate $\int_1^e x\ln x\,dx$.
Show hints and answers
  1. Choose $u=x$, $v=e^{2x}/2$. The antiderivative $(x/2-1/4)e^{2x}$ gives $(e^2+1)/4$.
  2. Choose $u=x$, $v=-\cos x$. The antiderivative is $-x\cos x+\sin x$; evaluating at the endpoints gives $\pi$.
  3. Choose $u=\ln x$, $v=x^2/2$. The antiderivative $(x^2/2)\ln x-x^2/4$ gives $(e^2+1)/4$ after evaluating the limits.

5. Common mistakes

Retain the minus sign before the remaining integral. Do not calculate only [uv] and omit the rest. For a composite expression in dv, keep the antiderivative factor. Distinguish finding an antiderivative from evaluating a definite integral; differentiate the final antiderivative to check it.

6. Related lessons

Leave a Reply

Your email address will not be published. Required fields are marked *