U-Substitution Notes
These U-Substitution Notes explain how to integrate a function by renaming an inner expression, with the working shown line by line. A part of the integrand is called u, its derivative is matched against the rest, and the integral is rewritten entirely in u so that a standard rule applies. Substituting back at the end returns the answer in x. Following the same pattern every time keeps the change of variable reversible.
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.
Formula: U Substitution
When the integral has a function inside another function, times the derivative of that inside, replace the inside with u.
Useful Tips to Remember
Choose \(u\) as the inner function whose derivative also appears in the integral. Replace every part of the integral, including \(dx\), with terms in \(u\). After integrating, put the original expression back in place of \(u\). For definite integrals, either change the limits to \(u\) values or substitute back before using the original limits.
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 U-Substitution Used?
U-substitution reverses the chain rule, replacing an inner function with a single variable \(u\) so that a complicated integral becomes a simple one. It is the most common integration technique after the basic rules, and it handles integrals like \(\int 2x\cos(x^2)\,dx\) and \(\int \frac{x}{x^2 + 1}\,dx\). Scientists use it in growth and decay models, physicists use it in motion and energy problems, and statisticians use it with the normal distribution. It also makes definite integrals easier by changing the limits to match the new variable.
- Integrating composite functions like \(\cos(x^2)\) and \(e^{3x}\)
- Solving growth and decay models in science
- Working with probability distributions in statistics
- Simplifying definite integrals by changing the limits
- Solving separable differential equations
U-Substitution Practice Problems
Example 1 integrates \(2x(x^2 + 1)^5\), and Example 2 integrates \(2x\cos(x^2)\). Examples 3 and 4 give you two more of the same kind to try, \(\int 3 x^{2} \left(x^{3} + 2\right)^{4}\, dx\) and \(\int 2 x \sin{\left(x^{2} \right)}\, dx\). Try choosing \(u\) 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 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.
Formula
Formula: U Substitution
When the integral has a function inside another function, times the derivative of that inside, replace the inside with u.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating \(2 x \left(x^{2} + 1\right)^{5}\). 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 = x^{2} + 1\). Differentiating gives \(\frac{du}{dx} = 2 x\), so \(du = 2 x \, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{2}\), \(1\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
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 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{x}^{1}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(1\).
In this problem: The separated term is \(1\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(1\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(1\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Rewrite the whole integral in terms of u.
In this problem: Replace \(x^{2} + 1\) with u and \(2 x \, dx\) with du. What is left is \(u^{5}\).
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 power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(u^{5}\), so \(n = 5\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 5\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(5 + 1 = 6\).
Final Answer
Step 6
Step 6 - Put u back in terms of x and add C.
In this problem: Replace u with \(x^{2} + 1\).
Final Answer
See Example 2 Hide Example 2
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.
Formula
Formula: U Substitution
When the integral has a function inside another function, times the derivative of that inside, replace the inside with u.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating \(2 x \cos{\left(x^{2} \right)}\). 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 = x^{2}\). Differentiating gives \(\frac{du}{dx} = 2 x\), so \(du = 2 x \, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
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 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{x}^{1}\).
Final Answer
Step 4
Step 4 - Rewrite the whole integral in terms of u.
In this problem: Replace \(x^{2}\) with u and \(2 x \, dx\) with du. What is left is \(\cos{\left(u \right)}\).
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 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(u \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(u \right)}\) into the rule 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 \(x^{2}\).
Final Answer
See Example 3 Hide Example 3
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.
Formula
Formula: U Substitution
When the integral has a function inside another function, times the derivative of that inside, replace the inside with u.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating \(3 x^{2} \left(x^{3} + 2\right)^{4}\). 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 = x^{3} + 2\). Differentiating gives \(\frac{du}{dx} = 3 x^{2}\), so \(du = 3 x^{2} \, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{3}\), \(2\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{3}\).
In this problem: The separated term is \(x^{3}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{3}\). This is a power of \(x\), so the exponent is \(n = 3\).
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 - Substitute the given power into the formula.
In this problem: Here, \(n = 3\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(3{x}^{2}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(2\).
In this problem: The separated term is \(2\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(2\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(2\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Rewrite the whole integral in terms of u.
In this problem: Replace \(x^{3} + 2\) with u and \(3 x^{2} \, dx\) with du. What is left is \(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 power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(u^{4}\), so \(n = 4\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 4\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(4 + 1 = 5\).
Final Answer
Step 6
Step 6 - Put u back in terms of x and add C.
In this problem: Replace u with \(x^{3} + 2\).
Final Answer
See Example 4 Hide Example 4
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.
Formula
Formula: U Substitution
When the integral has a function inside another function, times the derivative of that inside, replace the inside with u.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating \(2 x \sin{\left(x^{2} \right)}\). 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 = x^{2}\). Differentiating gives \(\frac{du}{dx} = 2 x\), so \(du = 2 x \, dx\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
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 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{x}^{1}\).
Final Answer
Step 4
Step 4 - Rewrite the whole integral in terms of u.
In this problem: Replace \(x^{2}\) with u and \(2 x \, dx\) with du. What is left is \(\sin{\left(u \right)}\).
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 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(u \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(u \right)}\) into the rule 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 \(x^{2}\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The U-Substitution 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, U-Substitution 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.