Integration by Parts Notes
These Integration by Parts Notes explain how to integrate a product of two functions, with the working shown 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\). Examples 3 and 4 give you two more of the same kind to try, \(\int x \sin{\left(x \right)}\, dx\) and \(\int x e^{2 x}\, dx\). Try choosing \(u\) and \(dv\) yourself before opening each example.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them 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
See Example 3 Hide Example 3
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 = \sin{\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 \(\sin{\left(x \right)}\) is \(-\cos\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 \(\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 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 \left(- \cos{\left(x \right)}\right)\, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that form.
- Move the constant multiple outside the integral.
- 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)}\). The number \(-1\) in front is a constant multiple.
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 - Move the constant multiple outside the integral.
In this problem: The number \(-1\) in front is a constant multiple, so it moves outside the integral and only \(\cos{\left(x \right)}\) is integrated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = -1\) and the function is \(\cos{\left(x \right)}\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(-1\) in front of the integral sign and leave \(\cos{\left(x \right)}\) inside.
Final Answer
Step 4
Step 4 - Apply the integration rule and add C.
In this problem: Replace \(\int \cos{\left(x \right)}\, dx\) with \(\sin\left(x\right)\) 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 4 Hide Example 4
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^{2 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^{2 x}\) is \(\frac{e^{2 x}}{2}\). The constant C is left until the end.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the u-substitution formula.
- Choose the inner function u and find du.
- Rewrite the whole integral in terms of u.
- Integrate with respect to u.
- Put u back in terms of x and add C.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating \(e^{2 x}\). It contains an inner function whose derivative also appears as a factor.
Step 2
Step 2 - Write the u-substitution formula.
In this problem: When the integrand is a composite times the derivative of its inside, substitute u for the inside.
Step 3
Step 3 - Choose the inner function u and find du.
In this problem: Let \(u = 2 x\). Differentiating gives \(\frac{du}{dx} = 2\), so \(du = 2 \, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(2\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(2\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(2 x^{1}\). The constant coefficient is \(2\), and the variable part is \(x^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(2\) outside the derivative and leave \(x^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Use the rewritten power form from Step 1. Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(2\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x\) and multiply by the constant \(2\). This gives \(2\).
Final Answer
Step 4
Step 4 - Rewrite the whole integral in terms of u.
In this problem: Replace \(2 x\) with u and \(2 \, dx\) with du. What is left is \(\frac{e^{u}}{2}\).
Step 5
Step 5 - Integrate with respect to u.
In this problem: Integrate with respect to u.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that exponential function.
- Move the constant multiple outside the integral.
- Apply the integration rule and add C.
Step 1
Step 1 - Set up the problem.
In this problem: The function is \(e^{u}\). The number \(\frac{1}{2}\) in front is a constant multiple.
Step 2
Step 2 - Write the integration rule for that exponential function.
In this problem: The integral of \(e^{u}\) is itself.
Step 3
Step 3 - Move the constant multiple outside the integral.
In this problem: The number \(\frac{1}{2}\) in front is a constant multiple, so it moves outside the integral and only \(e^{u}\) is integrated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = \frac{1}{2}\) and the function is \(e^{u}\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(\frac{1}{2}\) in front of the integral sign and leave \(e^{u}\) inside.
Final Answer
Step 4
Step 4 - Apply the integration rule and add C.
In this problem: Replace \(\int e^{u}\, du\) with \(e^{u}\) from Step 2.
Final Answer
Step 6
Step 6 - Put u back in terms of x and add C.
In this problem: Replace u with \(2 x\).
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 \frac{e^{2 x}}{2}\, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the u-substitution formula.
- Choose the inner function u and find du.
- Rewrite the whole integral in terms of u.
- Integrate with respect to u.
- Put u back in terms of x and add C.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating \(\frac{e^{2 x}}{2}\). It contains an inner function whose derivative also appears as a factor.
Step 2
Step 2 - Write the u-substitution formula.
In this problem: When the integrand is a composite times the derivative of its inside, substitute u for the inside.
Step 3
Step 3 - Choose the inner function u and find du.
In this problem: Let \(u = 2 x\). Differentiating gives \(\frac{du}{dx} = 2\), so \(du = 2 \, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(2\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(2\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(2 x^{1}\). The constant coefficient is \(2\), and the variable part is \(x^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(2\) outside the derivative and leave \(x^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Use the rewritten power form from Step 1. Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(2\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x\) and multiply by the constant \(2\). This gives \(2\).
Final Answer
Step 4
Step 4 - Rewrite the whole integral in terms of u.
In this problem: Replace \(2 x\) with u and \(2 \, dx\) with du. What is left is \(\frac{e^{u}}{4}\).
Step 5
Step 5 - Integrate with respect to u.
In this problem: Integrate with respect to u.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that exponential function.
- Move the constant multiple outside the integral.
- Apply the integration rule and add C.
Step 1
Step 1 - Set up the problem.
In this problem: The function is \(e^{u}\). The number \(\frac{1}{4}\) in front is a constant multiple.
Step 2
Step 2 - Write the integration rule for that exponential function.
In this problem: The integral of \(e^{u}\) is itself.
Step 3
Step 3 - Move the constant multiple outside the integral.
In this problem: The number \(\frac{1}{4}\) in front is a constant multiple, so it moves outside the integral and only \(e^{u}\) is integrated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = \frac{1}{4}\) and the function is \(e^{u}\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(\frac{1}{4}\) in front of the integral sign and leave \(e^{u}\) inside.
Final Answer
Step 4
Step 4 - Apply the integration rule and add C.
In this problem: Replace \(\int e^{u}\, du\) with \(e^{u}\) from Step 2.
Final Answer
Step 6
Step 6 - Put u back in terms of x and add C.
In this problem: Replace u with \(2 x\).
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
Calculator and Practice Mode
Want to check your own working? The Integration by Parts Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. 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.