How to Integrate by Substitution
Determine what you will use as u., Find du., Rewrite your integral in terms of u., Integrate., Write your answer in terms of your original variable., Determine what you will use as u., Find du., Rewrite your integral so that you can express it in...
Step-by-Step Guide
-
Step 1: Determine what you will use as u.
Finding u may be the most difficult part of u-substitution, but as you practice, it will become more natural.
In general, a good u-sub involves the derivative of u cancelling out part of the integrand.
The easiest integrals are those where it includes a function ax{\displaystyle ax} (any multiple of x{\displaystyle x}) nested within another elementary function
- in these cases, the nested function will be u.
Consider the integral ∫sin(2x)dx.{\displaystyle \int \sin(2x){\mathrm {d} }x.} Here, the function 2x{\displaystyle 2x} is nested inside another elementary function, the sine function.
Because the derivative of 2x{\displaystyle 2x} is just a constant, we don't need to worry about introducing any unnecessary variables.
Therefore, make the substitution u=2x.{\displaystyle u=2x.} -
Step 2: Find du.
Take the derivative of u with respect to x, and solve for du. dudx=2du=2dx{\displaystyle {\begin{aligned}{\frac {{\mathrm {d} }u}{{\mathrm {d} }x}}&=2\\{\mathrm {d} }u&=2{\mathrm {d} }x\end{aligned}}} As you improve your technique, you will eventually jump straight to the differential instead of solving for it. , ∫sin(2x)dx=12∫sinudu{\displaystyle \int \sin(2x){\mathrm {d} }x={\frac {1}{2}}\int \sin u{\mathrm {d} }u} Here, we wrote the integral using du by solving for dx and replacing it.
This is why there is an extra 1/2 term (which we can factor out).
If you are left with a variable which is not u after replacing anything that you can with u and du, sometimes solving for that variable in terms of u and replacing it works.
This is called back-substitution, and the supplementary example below will use such a substitution. , 12∫sinu=−12cosu+C{\displaystyle {\frac {1}{2}}\int \sin u=-{\frac {1}{2}}\cos u+C} , Replace u with what you set it equivalent to earlier. −12cosu+C=−12cos(2x)+C{\displaystyle
-{\frac {1}{2}}\cos u+C=-{\frac {1}{2}}\cos(2x)+C} As we can see, u-substitution is just the analogue of the chain rule from differential calculus. , This example demonstrates u-substitution of definite integrals and trigonometric functions.
Consider the integral ∫0πsin3θdθ.{\displaystyle \int _{0}^{\pi }\sin ^{3}\theta {\mathrm {d} }\theta .} Notice that this function does not have a nested function within another function that we can use.
If we consider this as a sine function cubed, the resulting u-sub will get us nowhere.
However, using the trigonometric identity sin2θ=1−cos2θ,{\displaystyle \sin ^{2}\theta =1-\cos ^{2}\theta ,} we can rewrite the integrand as (1−cos2θ)sinθ.{\displaystyle (1-\cos ^{2}\theta )\sin \theta .} Recall that ddθcosθ=−sinθ.{\displaystyle {\frac {\mathrm {d} }{{\mathrm {d} }\theta }}\cos \theta =-\sin \theta .} Remember that in general, we want u so that its differential ends up canceling out part of the integrand.
In this case, the sinθ.{\displaystyle \sin \theta .} Therefore, make the substitution u=cosθ.{\displaystyle u=\cos \theta .} , Take the derivative of u, and solve for du.
From above, du=−sinθdθ.{\displaystyle {\mathrm {d} }u=-\sin \theta {\mathrm {d} }\theta .} , Make sure to change your boundaries as well, since you changed variables.
To do so, simply substitute the boundaries into your u-substitution equation. ∫0π(1−cos2θ)sinθdθ=−∫1−1(1−u2)du{\displaystyle \int _{0}^{\pi }(1-\cos ^{2}\theta )\sin \theta {\mathrm {d} }\theta =-\int _{1}^{-1}(1-u^{2}){\mathrm {d} }u} , Now, recognize that swapping the boundaries negates the integral, so we end up with a positive integral in the end. −∫1−1(1−u2)du=∫−11(1−u2)du{\displaystyle
-\int _{1}^{-1}(1-u^{2}){\mathrm {d} }u=\int _{-1}^{1}(1-u^{2}){\mathrm {d} }u} , The integrand is an even function, and the boundaries are symmetric.
Therefore, we can factor out a 2 and set the lower boundary to 0 to simplify calculations. ∫−11(1−u2)du=2∫01(1−u2)du=2(1−13)=43{\displaystyle {\begin{aligned}\int _{-1}^{1}(1-u^{2}){\mathrm {d} }u&=2\int _{0}^{1}(1-u^{2}){\mathrm {d} }u\\&=2\left(1-{\frac {1}{3}}\right)\\&={\frac {4}{3}}\end{aligned}}} We did not need to do this simplification to get the correct answer, but for more complicated integrals, this technique is useful to prevent arithmetic mistakes.
Notice that we did not rewrite our integral in terms of the original variable.
Since we changed our boundaries, the integrals are equivalent.
Ultimately, the objective is to solve the problem in the easiest and most efficient way possible, so there's no need to spend more time on an extra step. , This is a more advanced example that incorporates u-substitution.
In part 1, recall that we said that an integral after performing a u-sub may not cancel the original variables, so solving for the variable in terms of u{\displaystyle u} and substituting may be required.
That will also be necessary in this problem. ∫02x2+4x+2dx{\displaystyle \int _{0}^{2}{\frac {x^{2}+4}{x+2}}{\mathrm {d} }x} We see that the derivative x2+4{\displaystyle x^{2}+4} is 2x,{\displaystyle 2x,} not x+2.{\displaystyle x+2.} If we try to immediately u-sub, we will end up with an increasingly complicated expression, because solving for x{\displaystyle x} in terms of u{\displaystyle u} will wind up with a square root. , Notice that the numerator just requires a 4x{\displaystyle 4x} to complete the square.
If we just add and then subtract 4x,{\displaystyle 4x,} i.e. add 0, then we can reduce the problem to a more manageable one after simplifying. ∫02x2+4x+2dx=∫02x2+4+4x−4xx+2dx=∫02((x+2)2x+2−4xx+2)dx=∫02(x+2)dx−4∫02xx+2dx=6−4∫02xx+2dx{\displaystyle {\begin{aligned}\int _{0}^{2}{\frac {x^{2}+4}{x+2}}{\mathrm {d} }x&=\int _{0}^{2}{\frac {x^{2}+4+4x-4x}{x+2}}{\mathrm {d} }x\\&=\int _{0}^{2}\left({\frac {(x+2)^{2}}{x+2}}-{\frac {4x}{x+2}}\right){\mathrm {d} }x\\&=\int _{0}^{2}(x+2){\mathrm {d} }x-4\int _{0}^{2}{\frac {x}{x+2}}{\mathrm {d} }x\\&=6-4\int _{0}^{2}{\frac {x}{x+2}}{\mathrm {d} }x\end{aligned}}} It is worth noting that this technique of adding 0 is a very useful one, especially in the context of completing the square.
Since 0 is the additive identity, we have not actually changed the integral. , The integral in the last line above is perhaps the simplest type of expression where this sort of "back substitution" is required
- that is, solving for x{\displaystyle x} in terms of u{\displaystyle u} and plugging that in as well (x=u−2),{\displaystyle (x=u-2),} since the u-sub didn't cancel all the x{\displaystyle x} terms.
Remember to change your boundaries. 6−4∫02xx+2dx=6−4∫24u−2udu=6−4∫24(1−2u)du{\displaystyle {\begin{aligned}6-4\int _{0}^{2}{\frac {x}{x+2}}{\mathrm {d} }x&=6-4\int _{2}^{4}{\frac {u-2}{u}}{\mathrm {d} }u\\&=6-4\int _{2}^{4}\left(1-{\frac {2}{u}}\right){\mathrm {d} }u\end{aligned}}} , 6−4∫24(1−2u)du=6−424=6−4=6−16+8ln4+8−8ln2=8ln2−2{\displaystyle {\begin{aligned}6-4\int _{2}^{4}\left(1-{\frac {2}{u}}\right){\mathrm {d} }u&=6-4_{2}^{4}\\&=6-4\\&=6-16+8\ln 4+8-8\ln 2\\&=8\ln 2-2\end{aligned}}} -
Step 3: Rewrite your integral in terms of u.
-
Step 4: Integrate.
-
Step 5: Write your answer in terms of your original variable.
-
Step 6: Determine what you will use as u.
-
Step 7: Find du.
-
Step 8: Rewrite your integral so that you can express it in terms of u.
-
Step 9: The extra sinθ{\displaystyle \sin \theta } neatly cancels out
-
Step 10: but note the negative sign.
-
Step 11: Integrate.
-
Step 12: Evaluate the following integral.
-
Step 13: Rewrite the numerator by completing the square.
-
Step 14: Make the u-sub u=x+2{\displaystyle u=x+2}.
-
Step 15: Evaluate.
Detailed Guide
Finding u may be the most difficult part of u-substitution, but as you practice, it will become more natural.
In general, a good u-sub involves the derivative of u cancelling out part of the integrand.
The easiest integrals are those where it includes a function ax{\displaystyle ax} (any multiple of x{\displaystyle x}) nested within another elementary function
- in these cases, the nested function will be u.
Consider the integral ∫sin(2x)dx.{\displaystyle \int \sin(2x){\mathrm {d} }x.} Here, the function 2x{\displaystyle 2x} is nested inside another elementary function, the sine function.
Because the derivative of 2x{\displaystyle 2x} is just a constant, we don't need to worry about introducing any unnecessary variables.
Therefore, make the substitution u=2x.{\displaystyle u=2x.}
Take the derivative of u with respect to x, and solve for du. dudx=2du=2dx{\displaystyle {\begin{aligned}{\frac {{\mathrm {d} }u}{{\mathrm {d} }x}}&=2\\{\mathrm {d} }u&=2{\mathrm {d} }x\end{aligned}}} As you improve your technique, you will eventually jump straight to the differential instead of solving for it. , ∫sin(2x)dx=12∫sinudu{\displaystyle \int \sin(2x){\mathrm {d} }x={\frac {1}{2}}\int \sin u{\mathrm {d} }u} Here, we wrote the integral using du by solving for dx and replacing it.
This is why there is an extra 1/2 term (which we can factor out).
If you are left with a variable which is not u after replacing anything that you can with u and du, sometimes solving for that variable in terms of u and replacing it works.
This is called back-substitution, and the supplementary example below will use such a substitution. , 12∫sinu=−12cosu+C{\displaystyle {\frac {1}{2}}\int \sin u=-{\frac {1}{2}}\cos u+C} , Replace u with what you set it equivalent to earlier. −12cosu+C=−12cos(2x)+C{\displaystyle
-{\frac {1}{2}}\cos u+C=-{\frac {1}{2}}\cos(2x)+C} As we can see, u-substitution is just the analogue of the chain rule from differential calculus. , This example demonstrates u-substitution of definite integrals and trigonometric functions.
Consider the integral ∫0πsin3θdθ.{\displaystyle \int _{0}^{\pi }\sin ^{3}\theta {\mathrm {d} }\theta .} Notice that this function does not have a nested function within another function that we can use.
If we consider this as a sine function cubed, the resulting u-sub will get us nowhere.
However, using the trigonometric identity sin2θ=1−cos2θ,{\displaystyle \sin ^{2}\theta =1-\cos ^{2}\theta ,} we can rewrite the integrand as (1−cos2θ)sinθ.{\displaystyle (1-\cos ^{2}\theta )\sin \theta .} Recall that ddθcosθ=−sinθ.{\displaystyle {\frac {\mathrm {d} }{{\mathrm {d} }\theta }}\cos \theta =-\sin \theta .} Remember that in general, we want u so that its differential ends up canceling out part of the integrand.
In this case, the sinθ.{\displaystyle \sin \theta .} Therefore, make the substitution u=cosθ.{\displaystyle u=\cos \theta .} , Take the derivative of u, and solve for du.
From above, du=−sinθdθ.{\displaystyle {\mathrm {d} }u=-\sin \theta {\mathrm {d} }\theta .} , Make sure to change your boundaries as well, since you changed variables.
To do so, simply substitute the boundaries into your u-substitution equation. ∫0π(1−cos2θ)sinθdθ=−∫1−1(1−u2)du{\displaystyle \int _{0}^{\pi }(1-\cos ^{2}\theta )\sin \theta {\mathrm {d} }\theta =-\int _{1}^{-1}(1-u^{2}){\mathrm {d} }u} , Now, recognize that swapping the boundaries negates the integral, so we end up with a positive integral in the end. −∫1−1(1−u2)du=∫−11(1−u2)du{\displaystyle
-\int _{1}^{-1}(1-u^{2}){\mathrm {d} }u=\int _{-1}^{1}(1-u^{2}){\mathrm {d} }u} , The integrand is an even function, and the boundaries are symmetric.
Therefore, we can factor out a 2 and set the lower boundary to 0 to simplify calculations. ∫−11(1−u2)du=2∫01(1−u2)du=2(1−13)=43{\displaystyle {\begin{aligned}\int _{-1}^{1}(1-u^{2}){\mathrm {d} }u&=2\int _{0}^{1}(1-u^{2}){\mathrm {d} }u\\&=2\left(1-{\frac {1}{3}}\right)\\&={\frac {4}{3}}\end{aligned}}} We did not need to do this simplification to get the correct answer, but for more complicated integrals, this technique is useful to prevent arithmetic mistakes.
Notice that we did not rewrite our integral in terms of the original variable.
Since we changed our boundaries, the integrals are equivalent.
Ultimately, the objective is to solve the problem in the easiest and most efficient way possible, so there's no need to spend more time on an extra step. , This is a more advanced example that incorporates u-substitution.
In part 1, recall that we said that an integral after performing a u-sub may not cancel the original variables, so solving for the variable in terms of u{\displaystyle u} and substituting may be required.
That will also be necessary in this problem. ∫02x2+4x+2dx{\displaystyle \int _{0}^{2}{\frac {x^{2}+4}{x+2}}{\mathrm {d} }x} We see that the derivative x2+4{\displaystyle x^{2}+4} is 2x,{\displaystyle 2x,} not x+2.{\displaystyle x+2.} If we try to immediately u-sub, we will end up with an increasingly complicated expression, because solving for x{\displaystyle x} in terms of u{\displaystyle u} will wind up with a square root. , Notice that the numerator just requires a 4x{\displaystyle 4x} to complete the square.
If we just add and then subtract 4x,{\displaystyle 4x,} i.e. add 0, then we can reduce the problem to a more manageable one after simplifying. ∫02x2+4x+2dx=∫02x2+4+4x−4xx+2dx=∫02((x+2)2x+2−4xx+2)dx=∫02(x+2)dx−4∫02xx+2dx=6−4∫02xx+2dx{\displaystyle {\begin{aligned}\int _{0}^{2}{\frac {x^{2}+4}{x+2}}{\mathrm {d} }x&=\int _{0}^{2}{\frac {x^{2}+4+4x-4x}{x+2}}{\mathrm {d} }x\\&=\int _{0}^{2}\left({\frac {(x+2)^{2}}{x+2}}-{\frac {4x}{x+2}}\right){\mathrm {d} }x\\&=\int _{0}^{2}(x+2){\mathrm {d} }x-4\int _{0}^{2}{\frac {x}{x+2}}{\mathrm {d} }x\\&=6-4\int _{0}^{2}{\frac {x}{x+2}}{\mathrm {d} }x\end{aligned}}} It is worth noting that this technique of adding 0 is a very useful one, especially in the context of completing the square.
Since 0 is the additive identity, we have not actually changed the integral. , The integral in the last line above is perhaps the simplest type of expression where this sort of "back substitution" is required
- that is, solving for x{\displaystyle x} in terms of u{\displaystyle u} and plugging that in as well (x=u−2),{\displaystyle (x=u-2),} since the u-sub didn't cancel all the x{\displaystyle x} terms.
Remember to change your boundaries. 6−4∫02xx+2dx=6−4∫24u−2udu=6−4∫24(1−2u)du{\displaystyle {\begin{aligned}6-4\int _{0}^{2}{\frac {x}{x+2}}{\mathrm {d} }x&=6-4\int _{2}^{4}{\frac {u-2}{u}}{\mathrm {d} }u\\&=6-4\int _{2}^{4}\left(1-{\frac {2}{u}}\right){\mathrm {d} }u\end{aligned}}} , 6−4∫24(1−2u)du=6−424=6−4=6−16+8ln4+8−8ln2=8ln2−2{\displaystyle {\begin{aligned}6-4\int _{2}^{4}\left(1-{\frac {2}{u}}\right){\mathrm {d} }u&=6-4_{2}^{4}\\&=6-4\\&=6-16+8\ln 4+8-8\ln 2\\&=8\ln 2-2\end{aligned}}}
About the Author
Linda Young
Brings years of experience writing about creative arts and related subjects.
Rate This Guide
How helpful was this guide? Click to rate: