Integration by Parts Calculator
This Integration by Parts Calculator integrates a product of two functions, and shows the working line by line. One factor is chosen to be differentiated and the other to be integrated, and the formula trades the original integral for an easier one. Choosing the wrong factor makes the new integral harder rather than simpler. Following the same pattern every time keeps that choice deliberate instead of accidental.
Step-by-step method
- Set up the problem.
- Write the integration by parts formula.
- Choose u and dv (LIATE: Log, Inverse trig, Algebraic, Trig, Exponential), then find du and v as Step 3a and Step 3b.
- Substitute u, v and du into the formula.
- Integrate the remaining integral.
- Simplify and add C.
Formula: Integration by Parts
For a product of two functions, pick u to differentiate and dv to integrate, then use uv minus the integral of v du.
Useful Tips to Remember
The formula is \(\int u\,dv = uv - \int v\,du\). Choose \(u\) as the part that gets simpler when differentiated, using the LIATE order: logarithmic, inverse trigonometric, algebraic, trigonometric, exponential. Sometimes the rule must be used twice. Add \(+C\) at the end, and check the answer by differentiating it.
Required knowledge
- How to find du by differentiating, covered in the Derivative Calculator.
- How to integrate the simpler integral that is left, covered in the Indefinite Integral Calculator.
Where Is Integration by Parts Used?
Integration by parts integrates a product of two functions, using \(\int u\,dv = uv - \int v\,du\), which comes from the product rule. It handles integrals like \(\int x e^x\,dx\) and \(\int x \sin x\,dx\) that simpler rules cannot. Physicists use it to find work, energy and averages in quantum mechanics, and engineers use it in signal analysis and in Fourier and Laplace transforms. In probability, it gives the expected value of continuous distributions, and in economics it values income that changes over time.
- Integrating products like \(x e^x\) and \(x \ln x\)
- Working out Laplace and Fourier transforms in engineering
- Finding expected values in probability
- Calculating work and energy in physics
- Valuing changing income streams in finance
Integration by Parts Practice Problems
Example 1 integrates \(x e^x\), and Example 2 integrates \(x\cos x\). Try choosing \(u\) and \(dv\) yourself before opening each example. For two more free worked examples, check out the Integration by Parts Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration by parts formula.
- Choose u and dv (LIATE: Log, Inverse trig, Algebraic, Trig, Exponential), then find du and v as Step 3a and Step 3b.
- Substitute u, v and du into the formula.
- Integrate the remaining integral.
- Simplify and add C.
Formula
Formula: Integration by Parts
For a product of two functions, pick u to differentiate and dv to integrate, then use uv minus the integral of v du.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating a product of two different kinds of functions.
Step 2
Step 2 - Write the integration by parts formula.
In this problem: Integration by parts trades one integral for an easier one.
Step 3
Step 3 - Choose u and dv.
In this problem: By LIATE, choose \(u = x\) and \(dv = e^{x} \, dx\).
Step 3a
Step 3a - Differentiate u to find du.
In this problem: The derivative of \(x\) is \(1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the variable rule formula.
- Apply the variable rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\). This is just the variable \(x\).
Step 2
Step 2 - Write the variable rule formula.
In this problem: The variable rule says the derivative of \(x\) with respect to \(x\) is \(1\).
Step 3
Step 3 - Apply the variable rule.
In this problem: Put \(x\) into the rule from Step 2, so its derivative is \(1\).
Final Answer
Step 3b
Step 3b - Integrate dv to find v.
In this problem: The integral of \(e^{x}\) is \(e^{x}\). The constant C is left until the end.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that exponential function.
- Apply the integration rule and add C.
Step 1
Step 1 - Set up the problem.
In this problem: The function is \(e^{x}\).
Step 2
Step 2 - Write the integration rule for that exponential function.
In this problem: The integral of \(e^{x}\) is itself.
Step 3
Step 3 - Apply the integration rule and add C.
In this problem: Put \(e^{x}\) into the rule from Step 2.
Final Answer
Step 4
Step 4 - Substitute u, v and du into the formula.
In this problem: Put u, v and du into the formula.
Step 5
Step 5 - Integrate the remaining integral.
In this problem: The remaining integral is \(\int e^{x}\, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that exponential function.
- Apply the integration rule and add C.
Step 1
Step 1 - Set up the problem.
In this problem: The function is \(e^{x}\).
Step 2
Step 2 - Write the integration rule for that exponential function.
In this problem: The integral of \(e^{x}\) is itself.
Step 3
Step 3 - Apply the integration rule and add C.
In this problem: Put \(e^{x}\) into the rule from Step 2.
Final Answer
Step 6
Step 6 - Simplify and add C.
In this problem: Put the result of Step 5 into Step 4, simplify and add C.
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration by parts formula.
- Choose u and dv (LIATE: Log, Inverse trig, Algebraic, Trig, Exponential), then find du and v as Step 3a and Step 3b.
- Substitute u, v and du into the formula.
- Integrate the remaining integral.
- Simplify and add C.
Formula
Formula: Integration by Parts
For a product of two functions, pick u to differentiate and dv to integrate, then use uv minus the integral of v du.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating a product of two different kinds of functions.
Step 2
Step 2 - Write the integration by parts formula.
In this problem: Integration by parts trades one integral for an easier one.
Step 3
Step 3 - Choose u and dv.
In this problem: By LIATE, choose \(u = x\) and \(dv = \cos{\left(x \right)} \, dx\).
Step 3a
Step 3a - Differentiate u to find du.
In this problem: The derivative of \(x\) is \(1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the variable rule formula.
- Apply the variable rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\). This is just the variable \(x\).
Step 2
Step 2 - Write the variable rule formula.
In this problem: The variable rule says the derivative of \(x\) with respect to \(x\) is \(1\).
Step 3
Step 3 - Apply the variable rule.
In this problem: Put \(x\) into the rule from Step 2, so its derivative is \(1\).
Final Answer
Step 3b
Step 3b - Integrate dv to find v.
In this problem: The integral of \(\cos{\left(x \right)}\) is \(\sin\left(x\right)\). The constant C is left until the end.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that form.
- Apply the integration rule and add C.
Step 1
Step 1 - Set up the problem.
In this problem: The trigonometric form is \(\cos{\left(x \right)}\).
Step 2
Step 2 - Write the integration rule for that form.
In this problem: Each standard trigonometric form has a known antiderivative.
Step 3
Step 3 - Apply the integration rule and add C.
In this problem: Put \(\cos{\left(x \right)}\) into the rule from Step 2.
Final Answer
Step 4
Step 4 - Substitute u, v and du into the formula.
In this problem: Put u, v and du into the formula.
Step 5
Step 5 - Integrate the remaining integral.
In this problem: The remaining integral is \(\int \sin{\left(x \right)}\, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that form.
- Apply the integration rule and add C.
Step 1
Step 1 - Set up the problem.
In this problem: The trigonometric form is \(\sin{\left(x \right)}\).
Step 2
Step 2 - Write the integration rule for that form.
In this problem: Each standard trigonometric form has a known antiderivative.
Step 3
Step 3 - Apply the integration rule and add C.
In this problem: Put \(\sin{\left(x \right)}\) into the rule from Step 2.
Final Answer
Step 6
Step 6 - Simplify and add C.
In this problem: Put the result of Step 5 into Step 4, simplify and add C.
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Integration by Parts Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Integration by Parts Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.