Mathwords logoMathwords

Integration by Parts

Integration by Parts

A formula used to integrate the product of two functions.

 

Formula: Integration by parts formula: the integral of u dv equals uv minus the integral of v du
   
Example 1: Evaluate Integral of x times e to the power of x/2, dx: ∫ xe^(x/2) dx.
 

Use u = x and dv = ex/2 dx. Then we get du = dx and v = 2ex/2. This can be summarized:

u = x dv = ex/2 dx
du = dx v = 2ex/2

It follows that

Two-line integral solution: ∫xe^(x/2)dx = 2xe^(x/2) − ∫2e^(x/2)dx = 2xe^(x/2) − 4e^(x/2) + C

 

Example 2: Evaluate Integral of tan⁻¹(x) dx.
 

 

Use the following:

u = tan-1 x dv = dx
du = 1 divided by (1 + x squared), times dx; substitution formula for derivative of arctan(x) v = x

Thus

Step-by-step integration of arctan(x): x·tan⁻¹x − ½∫2x/(1+x²)dx = x·tan⁻¹x − ½ln|1+x²| + C

 

Example 3: Evaluate Integral of e^x times sin x dx.
 

 

Let I =Integral of e^x times sin x dx. Proceed as follows:

u = sin x dv = ex dx
du = cos x dx v = ex

Thus

Integral of e^x sin x dx = e^x sin x − integral of e^x cos x dx

Now use integration by parts on the remaining integral . Use the following assignments:

u = cos x dv = ex dx
du = –sin x dx v = ex

Thus

Two-step integration by parts derivation: ∫eˣsin x dx = eˣsin x − eˣcos x − ∫eˣsin x dx

Note that Integral of e^x times sin x dx appears on both sides of this equation. Replace it with I and then solve.

Three-step algebraic derivation solving for I: I = e^x·sin x − e^x·cos x − I; 2I = e^x·sin x − e^x·cos x; I = ½e^x·sin x −...

We finally obtain

The integral of e^x sin x dx equals (1/2)e^x sin x minus (1/2)e^x cos x plus C

 

See also

Integration methods

Key Formula

udv=uvvdu\int u\, dv = uv - \int v\, du
Where:
  • uu = A function of x that you choose to differentiate
  • dvdv = The remaining part of the integrand, which you choose to integrate
  • dudu = The derivative of u (times dx)
  • vv = The antiderivative of dv

Worked Example

Problem: Evaluate ∫ x·eˣ dx.
Step 1: Choose u and dv. Let u = x because its derivative simplifies, and let dv = eˣ dx because it is easy to integrate.
u=x,dv=exdxu = x, \quad dv = e^x\, dx
Step 2: Differentiate u and integrate dv to find du and v.
du=dx,v=exdu = dx, \quad v = e^x
Step 3: Substitute into the integration by parts formula: ∫ u dv = uv − ∫ v du.
xexdx=xexexdx\int x\, e^x\, dx = x\, e^x - \int e^x\, dx
Step 4: Evaluate the remaining integral, which is now straightforward.
=xexex+C= x\, e^x - e^x + C
Step 5: Factor the result for a clean final form.
=ex(x1)+C= e^x(x - 1) + C
Answer: xexdx=ex(x1)+C\int x\, e^x\, dx = e^x(x - 1) + C

Another Example

This example shows how to use integration by parts when the integrand appears to be a single function rather than an obvious product. By setting dv = dx, you create the 'second function' needed for the formula.

Problem: Evaluate ∫ ln(x) dx.
Step 1: This integral has only one obvious function, ln(x). The trick is to set dv = dx so that you can still apply integration by parts.
u=lnx,dv=dxu = \ln x, \quad dv = dx
Step 2: Differentiate u and integrate dv.
du=1xdx,v=xdu = \frac{1}{x}\, dx, \quad v = x
Step 3: Apply the formula: ∫ u dv = uv − ∫ v du.
lnxdx=xlnxx1xdx\int \ln x\, dx = x \ln x - \int x \cdot \frac{1}{x}\, dx
Step 4: Simplify and evaluate the remaining integral.
=xlnx1dx=xlnxx+C= x \ln x - \int 1\, dx = x \ln x - x + C
Answer: lnxdx=xlnxx+C\int \ln x\, dx = x \ln x - x + C

Frequently Asked Questions

How do you choose u and dv in integration by parts?
A common guideline is the LIATE rule: prioritize choosing u in this order — Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential. The idea is that u should be the function that becomes simpler when differentiated, while dv should be something you can readily integrate. For example, in ∫ x·eˣ dx, you pick u = x (algebraic) because its derivative is just 1, and dv = eˣ dx because eˣ integrates easily.
When do you need to apply integration by parts more than once?
You apply it multiple times when the first application produces a new integral that is still a product of two functions. A classic case is ∫ x²·eˣ dx, where the first round reduces x² to 2x, and a second round reduces 2x to 2. Another special case is ∫ eˣ·sin x dx, where applying the formula twice brings back the original integral, letting you solve for it algebraically.
What is the difference between integration by parts and u-substitution?
U-substitution reverses the chain rule and works best when the integrand contains a function and its derivative (a composite structure). Integration by parts reverses the product rule and is designed for integrands that are products of two unrelated functions. If the integrand looks like f(g(x))·g'(x), try u-substitution first. If it looks like f(x)·g(x) with no clear chain-rule pattern, integration by parts is usually the right approach.

Integration by Parts vs. U-Substitution

Integration by PartsU-Substitution
Reverses which ruleProduct ruleChain rule
Formula∫ u dv = uv − ∫ v du∫ f(g(x))·g'(x) dx = ∫ f(u) du
Best used whenIntegrand is a product of two different types of functionsIntegrand contains a composite function and its inner derivative
Typical examples∫ x·eˣ dx, ∫ x·sin x dx, ∫ ln x dx∫ 2x·eˣ² dx, ∫ cos(3x) dx
ComplexityMay need to be applied multiple timesUsually applied once

Why It Matters

Integration by parts is one of the most frequently used techniques in any calculus course and appears on nearly every AP Calculus BC and university calculus exam. It is essential for integrating logarithmic, inverse trigonometric, and many product-type functions that no other elementary method can handle. Beyond coursework, it underlies results in physics (such as deriving equations of motion), probability (computing expected values), and engineering (solving differential equations).

Common Mistakes

Mistake: Choosing u and dv in the wrong order, making the integral harder instead of simpler.
Correction: Use the LIATE mnemonic (Logarithmic → Inverse trig → Algebraic → Trigonometric → Exponential) to pick u. The function earlier in this list should generally be u because it simplifies when differentiated. If your new integral is more complex than the original, switch your choices.
Mistake: Forgetting the negative sign in the formula, writing ∫ u dv = uv + ∫ v du instead of uv − ∫ v du.
Correction: The formula comes from the product rule d(uv) = u dv + v du, rearranged to u dv = d(uv) − v du. Integrating both sides gives the minus sign. Always double-check that you have subtracted the second integral.

Related Terms

  • IntegrationThe general process that this technique supports
  • Integration MethodsOverview of all integration techniques
  • Product RuleThe differentiation rule that integration by parts reverses
  • FormulaIntegration by parts is a core calculus formula
  • Functionu and v are functions chosen from the integrand
  • ProductThe technique targets products of two functions
  • Integration by SubstitutionAlternative technique reversing the chain rule
  • Definite IntegralParts formula extends to definite integrals with boundary terms