u-Substitution Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of u-Substitution.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

An integration technique where you substitute u=g(x)u = g(x) and du=gโ€ฒ(x)โ€‰dxdu = g'(x)\,dx to transform a complicated integral into a simpler one. It is the reverse of the chain rule for differentiation.

When you see a composite function inside an integral along with its inner derivative lurking nearby, substitution collapses the composition into a single variable. It's like un-nesting a function: replace the inner part with uu, and the integral becomes simpler.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: u-Substitution sets u=g(x)u=g(x) so du=gโ€ฒ(x)โ€‰dxdu=g'(x)\,dx, collapsing a composite-times-inner-derivative integral into a simple one in uu.

Common stuck point: The procedure for u-substitution is the easy part; the trap is forgetting to convert dxdx via du=gโ€ฒ(x)โ€‰dxdu=g'(x)\,dx. Asking "Is there an inner function g(x)g(x) inside, with its derivative gโ€ฒ(x)g'(x) also present as a factor?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Is there an inner function g(x)g(x) inside, with its derivative gโ€ฒ(x)g'(x) also present as a factor?

Worked Examples

Example 1

easy
Find โˆซ3x2(x3+1)4โ€‰dx\displaystyle\int 3x^2(x^3+1)^4\,dx.

Answer

(x3+1)55+C\frac{(x^3+1)^5}{5} + C

First step

1
Let u=x3+1u = x^3+1, so du=3x2โ€‰dxdu = 3x^2\,dx.

Full solution

  1. 2
    Integral becomes โˆซu4โ€‰du=u55+C\int u^4\,du = \frac{u^5}{5} + C.
  2. 3
    Substitute back: (x3+1)55+C\frac{(x^3+1)^5}{5} + C.
3x2โ€‰dx3x^2\,dx is exactly dudu, so the substitution is perfect. After substitution the integral reduces to a simple power rule.

Example 2

medium
Evaluate โˆซ01xex2โ€‰dx\displaystyle\int_0^1 xe^{x^2}\,dx.

Example 3

medium
Evaluate โˆซx2x3+1โ€‰dx\displaystyle\int x^2 \sqrt{x^3+1}\,dx.

Example 4

medium
Evaluate โˆซxโ€‰x2+53โ€‰dx\displaystyle\int x\,\sqrt[3]{x^2 + 5}\,dx.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Find โˆซcosโก(5x)โ€‰dx\displaystyle\int \cos(5x)\,dx.

Example 2

hard
Find โˆซlnโกxxโ€‰dx\displaystyle\int \frac{\ln x}{x}\,dx.

Example 3

easy
Evaluate โˆซ2x(x2+1)3โ€‰dx\int 2x(x^2+1)^3\,dx using u=x2+1u=x^2+1.

Example 4

easy
Evaluate โˆซcosโก(3x)โ€‰dx\int \cos(3x)\,dx.

Example 5

easy
Evaluate โˆซe5xโ€‰dx\int e^{5x}\,dx.

Example 6

easy
Evaluate โˆซ12x+1โ€‰dx\int \frac{1}{2x+1}\,dx.

Example 7

easy
Evaluate โˆซ(3x+2)5โ€‰dx\int (3x+2)^5\,dx.

Example 8

easy
Evaluate โˆซ2xโ€‰ex2โ€‰dx\int 2x\,e^{x^2}\,dx.

Example 9

easy
Evaluate โˆซsinโกxโ€‰cosโกxโ€‰dx\int \sin x\,\cos x\,dx using u=sinโกxu=\sin x.

Example 10

easy
For the definite integral โˆซ032x(x2)โ€‰dx\int_0^3 2x(x^2)\,dx with u=x2u=x^2, what are the new limits?

Example 11

medium
Evaluate โˆซxx2+4โ€‰dx\int x\sqrt{x^2+4}\,dx.

Example 12

medium
Evaluate the definite integral โˆซ02x(x2+1)3โ€‰dx\int_0^2 x(x^2+1)^3\,dx.

Example 13

medium
Evaluate โˆซlnโกxxโ€‰dx\int \frac{\ln x}{x}\,dx.

Example 14

medium
Evaluate โˆซxx2+1โ€‰dx\int \frac{x}{x^2+1}\,dx.

Example 15

medium
Evaluate โˆซsecโก2xโ€‰tanโก3xโ€‰dx\int \sec^2 x\,\tan^3 x\,dx.

Example 16

medium
Evaluate โˆซx2(x3+2)4โ€‰dx\int x^2 (x^3+2)^4\,dx.

Example 17

challenge
Evaluate โˆซ0ฯ€/2sinโก2xโ€‰cosโกxโ€‰dx\int_0^{\pi/2} \sin^2 x\,\cos x\,dx.

Example 18

challenge
Evaluate โˆซxx+1โ€‰dx\int x\sqrt{x+1}\,dx (note: the inner derivative is not present).

Example 19

challenge
Evaluate โˆซ1xโ€‰(1+x)โ€‰dx\int \frac{1}{\sqrt{x}\,(1+\sqrt{x})}\,dx.

Example 20

medium
Evaluate โˆซ6x(3x2+1)2โ€‰dx\int \frac{6x}{(3x^2+1)^2}\,dx.

Example 21

medium
Evaluate โˆซtanโกxโ€‰dx\int \tan x\,dx (write tanโกx=sinโกxcosโกx\tan x=\frac{\sin x}{\cos x}).

Example 22

medium
Evaluate โˆซ012xx2+1โ€‰dx\int_0^1 \frac{2x}{x^2+1}\,dx.

Example 23

easy
Evaluate โˆซ4x3(x4+1)2โ€‰dx\displaystyle\int 4x^3(x^4+1)^2\,dx.

Example 24

easy
Evaluate โˆซsinโก(7x)โ€‰dx\displaystyle\int \sin(7x)\,dx.

Example 25

easy
Evaluate โˆซeโˆ’2xโ€‰dx\displaystyle\int e^{-2x}\,dx.

Example 26

easy
Evaluate โˆซ13xโˆ’5โ€‰dx\displaystyle\int \frac{1}{3x-5}\,dx.

Example 27

easy
Evaluate โˆซ(5x+3)4โ€‰dx\displaystyle\int (5x+3)^4\,dx.

Example 28

medium
Evaluate โˆซcosโกxโ€‰sinโก4xโ€‰dx\displaystyle\int \cos x\,\sin^4 x\,dx.

Example 29

medium
Evaluate โˆซ2xx2+4โ€‰dx\displaystyle\int \frac{2x}{x^2 + 4}\,dx.

Example 30

medium
Evaluate โˆซ01x(x2+1)4โ€‰dx\displaystyle\int_0^1 x(x^2+1)^4\,dx.

Example 31

medium
Evaluate โˆซsecโก2(3x)โ€‰dx\displaystyle\int \sec^2(3x)\,dx.

Example 32

medium
Evaluate โˆซexex+2โ€‰dx\displaystyle\int \frac{e^x}{e^x + 2}\,dx.

Example 33

medium
Evaluate โˆซcosโก3xโ€‰dx\displaystyle\int \cos^3 x\,dx by writing cosโก3x=(1โˆ’sinโก2x)cosโกx\cos^3 x = (1 - \sin^2 x)\cos x and substituting u=sinโกxu = \sin x.

Example 34

medium
Evaluate โˆซ0ฯ€/4tanโกxsecโก2xโ€‰dx\displaystyle\int_0^{\pi/4} \tan x \sec^2 x\,dx.

Example 35

medium
Evaluate โˆซ(lnโกx)3xโ€‰dx\displaystyle\int \frac{(\ln x)^3}{x}\,dx.

Example 36

medium
Evaluate โˆซesinโกxcosโกxโ€‰dx\displaystyle\int e^{\sin x}\cos x\,dx.

Example 37

hard
Evaluate โˆซ02x4โˆ’x2โ€‰dx\displaystyle\int_0^2 x\sqrt{4 - x^2}\,dx.

Example 38

hard
Evaluate โˆซx1+x2โ€‰dx\displaystyle\int \frac{x}{\sqrt{1 + x^2}}\,dx.

Example 39

hard
Evaluate โˆซx3x2+1โ€‰dx\displaystyle\int x^3 \sqrt{x^2 + 1}\,dx via u=x2+1u = x^2 + 1.

Example 40

hard
Evaluate โˆซx2(x3+2)4โ€‰dx\displaystyle\int \frac{x^2}{(x^3 + 2)^4}\,dx.

Example 41

hard
Evaluate โˆซsinโกx1+cosโกxโ€‰dx\displaystyle\int \frac{\sin x}{1 + \cos x}\,dx.

Example 42

hard
Evaluate โˆซ0lnโก2ex1+exโ€‰dx\displaystyle\int_0^{\ln 2} \frac{e^x}{1 + e^x}\,dx.

Example 43

hard
Evaluate โˆซ1xโ€‰lnโกxโ€‰dx\displaystyle\int \frac{1}{x\,\ln x}\,dx.

Example 44

challenge
Evaluate โˆซsinโก5xโ€‰dx\displaystyle\int \sin^5 x\,dx by writing sinโก5x=(1โˆ’cosโก2x)2sinโกx\sin^5 x = (1 - \cos^2 x)^2 \sin x and substituting u=cosโกxu = \cos x.

Example 45

challenge
Evaluate โˆซ11+xโ€‰dx\displaystyle\int \frac{1}{1 + \sqrt{x}}\,dx.

Background Knowledge

These ideas may be useful before you work through the harder examples.

integralchain rule