5.5 Substitution with Indefinite Integrals
You may have a complicated equation that needs to be simplified. This is accomplished by substituting a variable, getting the antiderivative, and then substituting back to the original variable. What we are doing here is the reverse of the chain rule. The chain rule says this: if we start with y = f(u) then y′= f′(u)⋅u′.
Therefore if we start with the derivative and take the antiderivative we can get back to our original function. In our case we will let u = g(x).
Integration by Substitution:
Let g be a function whose range is in an interval I, and let f be a function that is continuous on I. If g is differentiable on its domain and F is an antiderivative of f on I, then:
∫
f(g(x))⋅g′(x)dx= F(g(x))+C.If u = g(x) then du =g (′x)dx and
∫
f(u)du=F(u)+C.Like in the chain rule, g(x)is usually an ‘inside’ function that needs to be identified.
How to Integrate by Substitution:
1.) Let u = g(x).
2.) Take the derivative of both sides to get du= g (′x) dx. 3.) Solve for dx and substitute this and u into the equation. 4.) Take the antiderivative of u.
5.) Substitute back in the g(x)for u.
EXAMPLE: Integrate by substitution by using the given substitution to reduce the integral to standard form: dx
x x 9) (2 ) ( 2 − 3
∫
, u =x2 −9.Let’s follow the 5 steps to integrate this:
1.) We are given u=x2 −9. Now we want to take the derivative of both sides. 2.) First we have x
dx
3.) Solving for dx we get
x du dx
2
= . Now we will substitute this for dx and we will substitute a u for x2 −9. Now we have: x du x u 2 ) 2 ( 3
∫
. The 2x will cancel, leaving you with:∫
u3du. You should never have any x terms left. Everything should only have a u in it since we are taking the derivative with respect to u. 4.)∫
u du= u +C 4 4 3 5.)∫
x − x dx= x − +C 4 ) 9 ( ) 2 ( ) 9 ( 2 3 2 4 .EXAMPLE: Integrate by substitution by using the given substitution to reduce the integral to standard form: dx x x
∫
1 cos2 1 2 , u 1= x.Let’s follow the 5 steps to integrate this:
1.) We are given =1 =x−1
x
u . Now we want to take the derivative of both sides.
2.) First we have =−x−2
dx
du . This will give us: dx
x du=− 12 .
3.) Solving for dx we get dx=−x2du. Now we will substitute this for dx and we will substitute a u for x 1:
( )
u x du x 2 2 2cos 1 ⋅−∫
. We can simplify to get: −∫
cos2u du.In order to do the antiderivative it would be best to use the power-reducing identity:
2 2 cos 1
cos2θ = − θ . So
our problem can be rewritten as: −
∫
− udu 22 cos
1 . Then we can split the fraction into: udu 2 2 cos 2 1 − −
∫
.Finally we are ready for step 4 to find the antiderivative:
4.) udu 2 2 cos 2 1 − −
∫
= −u + sinu+C 4 1 2 . 5.) dx x x ∫
1 cos2 1 2 = x x+C + − sin 1 4 1 2 1. Simplifying and gives us the final answer: C x x + + − sin 1 4 1 2 1
EXAMPLE: Integrate by substitution: dx x x
∫
− 3 2 16 .First we will let u =16 x− 3. Then du =−3x2 dx. Solving for dx we get
2
3x du dx
−
= . Now we will substitute this for dx and we will substitute a u for 16 x− 3. Now we have
2 2 3x du u x − ⋅
∫
. We get∫
− u du 3 , or∫
− − u 2du 1 3 1 . The antiderivative is − u du=− ⋅u +C∫
2 1 3 1 3 1 2 1 2 1 , which simplifies to − u +C 3 2 . Now substitute back in the x: dx x x∫
− 3 2 2 ) 16 ( = − −x +C 3 16 3 2 .EXAMPLE: Integrate by substitution:
∫
x + x dx8
1 4
3 .
First we will let
8 1 x4
u = + . Then du x3 dx 2 1
= . Solving for dx we get 2 3 x
du
dx = . Now we will substitute this for dx and we will substitute a u for
8 1+ x4 . Now we have 3 2 3 x du u x ⋅
∫
. We get 2∫
u du, or∫
u2du 1 2 . The antiderivative is∫
u du= u +C 2 3 2 2 2 3 2 1 , which simplifies to u +2 C 3 34 . Now substitute back in the x:
∫
x + x dx 8 1 4 3 = x +C + 2 3 4 8 1 3 4 .EXAMPLE: Integrate by substitution: dx x x
∫
cossin(3(22)) .First we will let u =cos( x2 ). Then du =−2sin(2x) dx. Solving for dx we get
) 2 sin( 2 x du dx − = . Now we
will substitute this for dx and we will substitute a u for cos( x2 ). Now we have. We get
) 2 sin( 2 ) 2 sin( 3 x du u x − ⋅
∫
which simplifies to −∫
3 2 1 u du , or u du∫
− − 3 2 1 . The antiderivative is u du u +C − ⋅ − = − − −∫
21 2 2 1 2 3 , which simplifies to C u2 + 41 . Now substitute back in the x: dx x x
∫
cossin(3(22)) = 4cos (2x)+C1
EXAMPLE: Integrate by substitution:
∫
sec2(1−x)tan7(1−x) dx.First we will let u=tan( x1− ). Then du=−sec2(1−x)dx. Solving for dx we get
) 1 ( sec2 x du dx − − = . Now we
will substitute this for dx and we will substitute a u for tan( x1− ). Now we have
) 1 ( sec ) 1 ( sec2 7 2 x du u x − − ⋅ −
∫
.We get
∫
−u7du. The antiderivative is −u +C 88
. Now substitute back in the x:
∫
sec2(1−x)tan7(1−x) dx =C x + − − 8 ) 1 ( tan8 .
EXAMPLE: Integrate by substitution: dx x x
∫
1 −7 sin 1 2 3 .First we will let = 12 −7 x
u . Then du=−2x−3dx. This can be rewritten as dx x
du= −32 Solving for dx we get
du x dx 2 3 −
= . Now we will substitute this for dx and we will substitute a u for 12 −7
x . Now we have
( )
u x du x sin 2 1 3 3 − ⋅∫
. We get −∫
sin(u) du 21 . The antiderivative is − ⋅−cos(u +) C 2
1 . Now substitute back in
the x: dx x x
∫
1 −7 sin 1 2 3 = x +C 1 −7 cos 2 1 2 .Integrals Involving Inverse Trigonometric Functions with Substitutions
C a u u a du = + − −
∫
1 2 2 sin C a u a u a du = + + −∫
1 2 2 tan 1 C a u a a u u du = + − −∫
1 2 2 sec 1EXAMPLE: Integrate by substitution: dx x
∫
1+9 24 .
We can rewrite this problem as: dx x
∫
12 +(3 )24 Now we are going to solve this by substitution. We are going
to let u 3= x. Then du 3= dx. Solving for dx we get:
3
du
3 1 4 2 2 du u ⋅ +
∫
. Simplifying we get:∫
+ 2 2 1 3 4 udu . This fits the second formula above if a is 1:
C a u a u a du = + + −
∫
1 2 2 tan 1 . Integrating we get: ⋅ − u +C 1 tan 1 1 34 1 . Now we put in a 3x for u to get:
C x + −(3 ) tan 3 4 1 .
EXAMPLE: Find the indefinite integral:
∫
+ +4 13
2 x
x
dx .
The bottom cannot be factored. I need to make it look like something squared in order to use my formulas. This involves completing the square. I will first rewrite the bottom as: (x2 +4x )+13. I will take the 4 and divide it by two. Then I will square this to get 4. I will add a 4 inside the parenthesis and subtract it from the 13 so that I don’t change the equation. You will get: (x2 +4x+4)+13−4. Now I will factor what is inside the parenthesis and simplify the numbers outside the parenthesis: (x+2)2 +9. So now our problem is:
∫
(x+2)2 +9dx . We can rewrite this as:
∫
(x+2)2 +32dx . In this problem u= x+2. Then du =dx. After
making our substitutions we get:
∫
+ 2 2 3 u dx . We will be using C a u a u a du = + + −
∫
1 2 2 tan 1 with a = 3. After integrating we get: − u +C 3 tan 31 1 . Now we put in an x+2 for u: − x+ +C
3 2 tan
3
1 1 .
EXAMPLE: Integrate by substitution: dx x x
∫
− − 2 3 1 9 3 sin .We are going to let = − 3 sin 1 x u . Recall
[
]
2 1 1 sin w w w dx d − ′ = − So here 3 xw = . Putting it into the formula we
have 1 2 3 1 3 1 3 sin − = − x x dx
d . We need to simplify this:
9 1 3 1 2 x −
. Now we need common denominators:
9 9 3 1 2 x
− . Take the square root of the top and bottom separately: 3 9 3 1 2 x
− . This simplifies, so we get:
2 9 1 x dx du −
du x x u 2 2 3 9 9− ⋅ −
∫
. Simplifying we get:∫
u3du. Integration gives us u +C 44
. Finally we replace the u to
get our final answer: C
x + − 4 3 sin 4 1
Integration of a Natural Logarithm
Let u be a differentiable function of x. Then:
1.) dx x C
x = +
∫
1 ln2.) du u C
u = +
∫
1 ln Since du=u′ dx we can rewrite this as: du u C uu′ = +
∫
lnWe have the absolute value symbols here so that any x value will fit the domain of the natural logarithm. Now let’s look at some examples:
EXAMPLE: Find the indefinite integral: dx x
x x x
∫
3+(3+22−) 4 .Using substitution we will let u= x3 +3x2 −4. Then du=3x2 +6x dx. Solving for dx and after factoring we
get: ) 2 ( 3 + = x x du
dx . Now we make our substitution:
) 2 ( 3 ) 2 ( + ⋅ +
∫
x xu x dux . This simplifies to: du u∫
1 31 .
When we integrate this we get lnu +C 3
1 . Then we can replace the u with x3 +3x2 −4 and we get:
C x
x +3 +4 + ln
3
1 3 2 which is our answer.
EXAMPLE: Find the indefinite integral: dt t t
∫
63+sec3tan2 .Using substitution we will let u=6 +3tant. Then du=3sec2t dt. Solving for dt we get:
t du dt 2 sec 3 = . Now
we make our substitution:
t du u t 2 2 sec 3 sec 3 ⋅
∫
. This simplifies to: duu
∫
1 . When we integrate this we getC u +
EXAMPLE: Find the indefinite integral: dx x x
∫
+ 3 1 3 2 1 1 .Using substitution we will get 3 1 1 x u= + . Then du x 3 dx 2 3 1 −
= . Solving for dx we get: dx x3du
2
3
= . Now we
make our substitution: x du u x 3 2 3 21 ⋅3 ⋅
∫
. This simplifies to: duu
∫
13 . When we integrate this we get
C u +
ln
3 . Then we can replace the u with 3 1 1 x+ and we get: +x +3 C 1 1 ln 3 as our answer.
EXAMPLE: Find the indefinite integral: dx x
x x
∫
2 2 +−72−3 .The problem with this one is that if we use the numerator for u and then take the derivative it won’t cancel out the denominator. Therefore we need to use long division to break this up into separate expressions:
2 +x 11 3 7 2 2 2 + − − x x
x First we ask ourselves how many times x goes into 2x2. We ignore the -2 at the
2x2 −4x moment. We know x goes into 2x an amount of 2x. We then multiply x – 2 by 2
11 −x 3 2x to get 2x2 −4x. We write this on the next line and then we subtract. Then 11 −x 22 we get 11 −x 3. We now ask how many times does x go into 11x. The answer is 19 11. We then multiply x – 2 by 11 to get 11 −x 22. We subtract and get a
remainder of 19.
So now we know that dx
x x x
∫
2 2 +−72−3 = dx x x∫
+ + − 2 19 112 . Now we can integrate each part separately. For the last part, we will let u =x−2. Then du =dx. Making the substitution we get: du
u
∫
19 . Integrating we get 19lnu +C. Putting this all together and integrating the first two terms we will get:C x
x
x2 +11 +19ln −2 + as our answer.
EXAMPLE: Find the indefinite integral: dx x x x x
∫
3 −2 ++2 −2 2 3 .The problem with this one is that if we use the numerator for u and then take the derivative it won’t cancel out the denominator. Therefore we need to use long division to break this up into separate expressions. Remember that all of the terms must be ordered in descending powers and if there is a missing term you must put in a zero place keeper.
3 −x 1 2 3 2 0 3 2 2 + x+ x −x +x−
x Remember you are always subtracting when doing long division.
3x2 +0x2 +6x
−x2 −5x−2 −x2 +0x−2 −5x
So our problem can be rewritten as: dx x x x x
∫
3 − 2 ++2 −2 2 3 = dx x x x∫
− − + 2 5 13 2 . Now we can integrate each part separately. For the last part, we will let u =x2 +2 dx. So du 2= x dx. Solving for dx you get:
x du dx
2 = . Making the substitution we get:
x du u x 2 5 ⋅
∫
. Simplifying you will get: du u∫
1 2 5 . Integrating we get C u + ln 25 . Putting this all together and integrating the first two terms we will get: x −x− lnx +2 +C 2
5 2
3 2 2 .
EXAMPLE: Find the indefinite integral:
∫
tanx dx.We haven’t done this one yet. First let’s use identities to write this as: dx x x
∫
cossin . Now we can use substitution to integrate this. We will let u cos= x. Then du=−sinx dx. Solving for dx you will get:x du dx
sin −
= . Now we make our substitution:
x du u x sin sin −⋅
∫
. Simplifying will give us: du u∫
− 1 . Integrating this will give: −lnu +C. Then we can replace the u with cosx and we get: −lncosx +C .
We can do a similar process for cotx, sec , and x csc to get the following results: x
Integrals of the Six Trigonometric Functions
C u du
u =− +
∫
sin cos∫
cosu du=sinu+CC u du
u =− +
∫
tan lncos∫
cotu du=lnsinu +C Cu u
du
u = + +
∫
sec lnsec tan∫
cscu du=−lncscu+cotu +C Now let’s look at some more examples…EXAMPLE: Find the indefinite integral:
∫
x dx 2 sec .Using substitution we will get 2 x
u = . Then du dx 2 1
= . Solving for dx we get: dx=2du. Now we make our substitution:
∫
sec ⋅u 2du. This simplifies to: 2∫
secu du. When we integrate this we getC u u+tan + sec
ln
2 . Then we can replace the u with
2 x and we get: x+ x +C 2 tan 2 sec ln 2 .
EXAMPLE: Find the indefinite integral:
∫
cscθ +cotθ dθ .We can integrate each thing separately by using the integration formulas: −lncscθ +cotθ +lnsinx +C
We can use log properties to write this as: +C
+ θ θ θ cot csc sin
ln . This can also be simplified by using identities:
C + + θ θ θ θ sin cos sin 1 sin ln . This equals: +C + θ θ θ sin cos 1sin
ln which simplifies to: +C
+ θ
θ cos 1
sin
ln 2 . We can use the
identity sin2θ =1−cos2θ : +C + − θ θ cos 1 cos 1
ln 2 . Now we can factor the numerator:
(
)(
)
+C+ + − θ θ θ cos 1 cos 1 cos 1 ln This simplifies to: ln1−cosθ +C.
EXAMPLE: Find the indefinite integral: cos2
(sin 2 )eθ θ dθ
∫
.Using substitution we will get u=cos2θ. Then du= −2cos sinθ θ θd . Solving for dθ we get
2cos sin du dθ
θ θ
=
− . We can use the trig identity: sin 2θ =2sin cosθ θ . So sin 2 du dθ
θ =
− . Now we make our substitution: (sin 2 )
sin 2 u du e θ θ ⋅ ⋅ −
∫
. This simplifies to: −∫
e duu . When we integrate this we get ue C
− + . Then we can replace the u with cos2θ and we get: cos2
e θ C
− + .
Change of Variables
In all the problems we did we were able to always cancel out the x terms and just have u. In the next two problems this will not automatically happen so we need to change variables.
EXAMPLE: Integrate by substitution:
∫
x(1−x)4 dx.First we will let u=1−x. Then du −= dx. Solving for dx we get dx −= du. Now we will substitute this for dx and we will substitute a u for 1−x. Now we have −
∫
x⋅u4 du. The problem here is that all the x termsdid not cancel automatically. What we can do not is to use our formula for u which is u=1−x and then solve for x. You will get x=1−u. Now we can substitute 1−u for x giving you: −
∫
(1−u)⋅u4 dx. Aftermultiplying we will get: −
∫
u4 −u5 du. The antiderivative is −u +u +C 6 56 5
. Now substitute back in the x: dx x x
∫
(1− )4 = − −x + −x +C 6 ) 1 ( 5 ) 1 ( 5 6 .EXAMPLE: Integrate by substitution: dx x
x
∫
2 ++14 .First we will let u =x+4. Then du =dx. Now we will substitute this for dx and we will substitute a u for 4
+
x . Now we have du
u x
∫
2 +1 . The problem here is that all the x terms did not cancel automatically. What we can do not is to use our formula for u which is u= x+4 and then solve for x. You will get x=u−4. Now we can substitute u−4 for x giving you: duu u
∫
2( −4)+1 . This simplifies to: du u u∫
2 −7 . We can divide each term in the top by the bottom to get:∫
u − u−2 du1 2 1 7 2 . The antiderivative is u − u +C 2 1 7 2 3 2 2 1 2 3 . This simplifies to: u − u2 +C 1 2 3 14 3
4 Now we substitute back in the x: dx
x x