U-Substitution Notes

Published on: September 29, 2026

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

  1. Set up the problem.
  2. Write the u-substitution formula.
  3. Choose the inner function u and find du.
  4. Rewrite the whole integral in terms of u.
  5. Integrate with respect to u.
  6. 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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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

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

\(\int 2 x \left(x^{2} + 1\right)^{5}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the u-substitution formula.
  3. Choose the inner function u and find du.
  4. Rewrite the whole integral in terms of u.
  5. Integrate with respect to u.
  6. 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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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.

\(\int 2 x \left(x^{2} + 1\right)^{5}\, dx\)

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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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\).

\(\begin{gathered} u = x^{2} + 1 \\ du = 2 x\, dx \end{gathered}\)

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}\).

\(\int 2 x \left(x^{2} + 1\right)^{5}\, dx = \int u^{5} \, du\)

Step 5

Step 5 - Integrate with respect to u.

In this problem: Integrate with respect to u.

\(\int u^{5} \, du = \frac{u^{6}}{6} + C\)

Step 6

Step 6 - Put u back in terms of x and add C.

In this problem: Replace u with \(x^{2} + 1\).

\(\int 2 x \left(x^{2} + 1\right)^{5}\, dx = \frac{\left(x^{2} + 1\right)^{6}}{6} + C\)

Final Answer

\(\int 2 x \left(x^{2} + 1\right)^{5}\, dx = \frac{\left(x^{2} + 1\right)^{6}}{6} + C\)
See Example 2 Hide Example 2

Problem

\(\int 2 x \cos{\left(x^{2} \right)}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the u-substitution formula.
  3. Choose the inner function u and find du.
  4. Rewrite the whole integral in terms of u.
  5. Integrate with respect to u.
  6. 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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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.

\(\int 2 x \cos{\left(x^{2} \right)}\, dx\)

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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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\).

\(\begin{gathered} u = x^{2} \\ du = 2 x\, dx \end{gathered}\)

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)}\).

\(\int 2 x \cos{\left(x^{2} \right)}\, dx = \int \cos{\left(u \right)} \, du\)

Step 5

Step 5 - Integrate with respect to u.

In this problem: Integrate with respect to u.

\(\int \cos{\left(u \right)} \, du = \sin\left(u\right) + C\)

Step 6

Step 6 - Put u back in terms of x and add C.

In this problem: Replace u with \(x^{2}\).

\(\int 2 x \cos{\left(x^{2} \right)}\, dx = \sin{\left(x^{2} \right)} + C\)

Final Answer

\(\int 2 x \cos{\left(x^{2} \right)}\, dx = \sin{\left(x^{2} \right)} + C\)
See Example 3 Hide Example 3

Problem

\(\int 3 x^{2} \left(x^{3} + 2\right)^{4}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the u-substitution formula.
  3. Choose the inner function u and find du.
  4. Rewrite the whole integral in terms of u.
  5. Integrate with respect to u.
  6. 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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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.

\(\int 3 x^{2} \left(x^{3} + 2\right)^{4}\, dx\)

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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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\).

\(\begin{gathered} u = x^{3} + 2 \\ du = 3 x^{2}\, dx \end{gathered}\)

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}\).

\(\int 3 x^{2} \left(x^{3} + 2\right)^{4}\, dx = \int u^{4} \, du\)

Step 5

Step 5 - Integrate with respect to u.

In this problem: Integrate with respect to u.

\(\int u^{4} \, du = \frac{u^{5}}{5} + C\)

Step 6

Step 6 - Put u back in terms of x and add C.

In this problem: Replace u with \(x^{3} + 2\).

\(\int 3 x^{2} \left(x^{3} + 2\right)^{4}\, dx = \frac{\left(x^{3} + 2\right)^{5}}{5} + C\)

Final Answer

\(\int 3 x^{2} \left(x^{3} + 2\right)^{4}\, dx = \frac{\left(x^{3} + 2\right)^{5}}{5} + C\)
See Example 4 Hide Example 4

Problem

\(\int 2 x \sin{\left(x^{2} \right)}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the u-substitution formula.
  3. Choose the inner function u and find du.
  4. Rewrite the whole integral in terms of u.
  5. Integrate with respect to u.
  6. 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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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.

\(\int 2 x \sin{\left(x^{2} \right)}\, dx\)

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.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

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\).

\(\begin{gathered} u = x^{2} \\ du = 2 x\, dx \end{gathered}\)

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)}\).

\(\int 2 x \sin{\left(x^{2} \right)}\, dx = \int \sin{\left(u \right)} \, du\)

Step 5

Step 5 - Integrate with respect to u.

In this problem: Integrate with respect to u.

\(\int \sin{\left(u \right)} \, du = -\cos\left(u\right) + C\)

Step 6

Step 6 - Put u back in terms of x and add C.

In this problem: Replace u with \(x^{2}\).

\(\int 2 x \sin{\left(x^{2} \right)}\, dx = - \cos{\left(x^{2} \right)} + C\)

Final Answer

\(\int 2 x \sin{\left(x^{2} \right)}\, dx = - \cos{\left(x^{2} \right)} + C\)

Calculator and Practice Mode