U-substitution to solve integrals

 
 
u substitution.jpeg
 
 
 

U-substitution is a great way to transform an integral

Finding derivatives of elementary functions was a relatively simple process, because taking the derivative only meant applying the right derivative rules.

This is not the case with integration. Unlike derivatives, it may not be immediately clear which integration rules to use, and every function is like a puzzle.

Most integrals need some work before you can even begin the integration. They have to be transformed or manipulated in order to reduce the function’s form into some simpler form. U-substitution is the simplest tool we have to transform integrals.

When you use u-substitution, you’ll define uu as a differentiable function in terms of the variable in the integral, take the derivative of uu to get dudu, and then substitute these values back into your integrals.

Unfortunately, there are no perfect rules for defining uu. If you try a substitution that doesn’t work, just try another one. With practice, you’ll get faster at identifying the right value for uu.

Here are some common substitutions you can try.

For integrals that contain power functions, try using the base of the power function as the substitution.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 
 

Example

Use u-substitution to evaluate the integral.

x(x2+1)4 dx\int x\left(x^2+1\right)^4\ dx

 

Let

u=x2+1u=x^2+1

du=2x dxdu=2x\ dx

dx=du2xdx=\frac{du}{2x}

Substituting back into the integral, we get

x(u)4 du2x\int x(u)^4\ \frac{du}{2x}

u4 du2\int u^4\ \frac{du}{2}

12u4 du\frac{1}{2}\int u^4\ du

This is much simpler than our original integral, and something we can actually integrate.

12(15u5)+C\frac{1}{2}\left(\frac{1}{5}u^5\right)+C

110u5+C\frac{1}{10}u^5+C

Now, back-substitute to put the answer back in terms of xx instead of uu.

110(x2+1)5+C\frac{1}{10}\left(x^2+1\right)^5+C

 
 
 

Let's walk through a video example of how to perform this kind of substitution


 
Krista King Math Signup.png
 
Calculus 2 course.png

Take the course

Want to learn more about CALCULUS 2? I have a step-by-step course for that. :)

 
 

 
 

Substitution example with rational functions

For integrals of rational functions, if the numerator is of equal or greater degree than the denominator, always perform division first. Otherwise, try using the denominator as a possible substitution.


Example

Use u-substitution to evaluate the integral.

xx2+1 dx\int \frac{x}{x^2+1}\ dx

 

Let

u=x2+1u=x^2+1

du=2x dxdu=2x\ dx

dx=du2xdx=\frac{du}{2x}

Substituting back into the integral, we get

xudu2x\int \frac{x}{u}\cdot\frac{du}{2x}

1udu2\int \frac{1}{u}\cdot\frac{du}{2}

121u du\frac{1}{2}\int \frac{1}{u}\ du

This is much simpler than our original integral, and something we can actually integrate.

12lnu+C\frac{1}{2}\ln{|u|}+C

Now, back-substitute to put the answer back in terms of xx instead of uu.

12lnx2+1+C\frac{1}{2}\ln{\left|x^2+1\right|}+C


u-substitution for integrals.jpg

U-substitution can be helpful for all kinds of integrals. Always consider substitution before trying integration by parts, or partial fractions.

For integrals containing exponential functions, try using the power for the substitution.


Substitution example with exponential functions

Example

Use u-substitution to evaluate the integral.

esinxcosxcos2x dx\int e^{\sin{x}\cos{x}}\cos{2x}\ dx

 

Let u=sinxcosxu=\sin{x}\cos{x}, and using the product rule to differentiate,

du=[(ddxsinx)cosx+sinx(ddxcosx)] dxdu=\left[\left(\frac{d}{dx}\sin{x}\right)\cos{x}+\sin{x}\left(\frac{d}{dx}\cos{x}\right)\right]\ dx

du=[cosxcosx+sinx(sinx)] dxdu=\left[\cos{x}\cdot\cos{x}+\sin{x}\cdot(-\sin{x})\right]\ dx

du=cos2xsin2x dxdu=\cos^2{x}-\sin^2{x}\ dx

du=cos2x dxdu=\cos{2x}\ dx

Substituting back into the integral, we get

eu du\int e^u\ du

eu+Ce^u+C

Now, back-substitute to put the answer back in terms of xx instead of uu.

esinxcosx+Ce^{\sin{x}\cos{x}}+C


Integrals containing trigonometric functions can be more challenging to manipulate. Sometimes, the value of uu isn’t even part of the original integral. Therefore, the better you know your trigonometric identities, the better off you’ll be.


Substitution example with trig functions

Example

Use u-substitution to evaluate the integral.

tanxcosx dx\int \frac{\tan{x}}{\cos{x}}\ dx

 

Since

tanx=sinxcosx\tan{x}=\frac{\sin{x}}{\cos{x}}

we can rewrite the integral as

sinxcosxcosx dx\int \frac{\frac{\sin{x}}{\cos{x}}}{\cos{x}}\ dx

sinxcosx1cosx dx\int \frac{\sin{x}}{\cos{x}}\cdot\frac{1}{\cos{x}}\ dx

sinxcos2x dx\int \frac{\sin{x}}{\cos^2{x}}\ dx

Let

u=cosxu=\cos{x}

du=sinx dxdu=-\sin{x}\ dx

dx=dusinxdx=-\frac{du}{\sin{x}}

Substituting back into the integral, we get

sinxu2(dusinx)\int \frac{\sin{x}}{u^2}\cdot\left(-\frac{du}{\sin{x}}\right)

1u2 du-\int \frac{1}{u^2}\ du

u2 du-\int u^{-2}\ du

11u1+C-\frac{1}{-1}u^{-1}+C

u1+Cu^{-1}+C

1u+C\frac{1}{u}+C

Now, back-substitute to put the answer back in terms of xx instead of uu.

1cosx+C\frac{1}{\cos{x}}+C

 
Krista King.png
 

Get access to the complete Calculus 2 course