Trigonometric Substitution
Three Types of Substitutions
We use trigonometric substitution in cases where applying trigonometric identities is useful. In particular, trigonometric substitution is great for getting rid of pesky radicals. For example, if we have $\sqrt{x^2 + 1}$ in our integrand (and $u$-sub doesn't work) we can let $x=\tan\theta.$ Then we get
$$ \sqrt{x^2+1} = \sqrt{\tan^2\theta + 1} = \sqrt{\sec^2\theta} = \sec\theta $$
In this case, we used the identity $1+\tan^2\theta = \sec^2\theta$.
Here are the three types of trigonometric substitutions:
| Substitution | Identity | Use When |
|---|---|---|
| $x=a\sin\theta$ | $\cos^2\theta + \sin^2\theta = 1$ | $\sqrt{a^2-x^2}$ |
| $x=a\tan\theta$ | $1 + \tan^2\theta = \sec^2\theta$ | $\sqrt{a^2+x^2}$ |
| $x=a\sec\theta$ | $1 + \tan^2\theta = \sec^2\theta$ | $\sqrt{x^2-a^2}$ |
Example
$$ \int\frac{x^2}{\sqrt{1-2x^2}dx $$
First we consider whether $u$-substitution would work here...it doesn't - to see that, let $u=1-2x^2${.math .inline}, and see what happens. To get rid of the radical, we consider the three types of substitutions and when they apply. In this case, it doesn't quite match any of the three forms exactly, but it most closely resembles the first one. We can rewrite the radical term:
$$ \sqrt{1-2x^2} = \sqrt{2(1/2 - x^2)} = \sqrt{2}\sqrt{1/2 - x^2} $$
Now, $a^2 = 1/2 \Longrightarrow a = 1/\sqrt{2}$.
Let $x = \frac{1}{\sqrt{2}}\sin\theta$. Then, for the radical term, we get
$$ \sqrt{2}\sqrt{1/2 - x^2} = \sqrt{2}\sqrt{1/2 - \left(\frac{1}{\sqrt{2}}\sin\theta\right)^2} = \sqrt{2}\sqrt{\frac{1}{2} - \frac{1}{2}\sin^2\theta} $$
$$ =\sqrt{2}\sqrt{\frac{1}{2}\left(1 - \sin^2\theta\right)} = \sqrt{2}\frac{1}{\sqrt{2}}\sqrt{\cos^2\theta} = \cos\theta $$
Okay, now we have the radical term: $\sqrt{1-2x^2}\Longrightarrow \cos^2\theta$. We also need to find $dx$.
$$ \frac{dx}{d\theta} = \frac{1}{\sqrt{2}}\cos\theta \Longrightarrow dx = \frac{1}{\sqrt{2}}\cos\theta\ d\theta $$
Now we can substitute everything in:
$$ \int\frac{x^2}{\sqrt{1-2x^2}}\ dx = \int \frac{\left(\frac{1}{\sqrt{2}}\sin\theta\right)^2} {\cos\theta}\frac{1}{\sqrt{2}}\cos\theta\ d\theta = \int \frac{ \sin^2 \theta }{ 2 \sqrt{ 2 } } \ dx $$
To integrate $\sin^2 \theta$, we need to use the double angle formula: $\sin^2 \theta = \frac12 - \frac12\cos{ 2 \theta }$
$$ \int \frac{ \sin^2 \theta }{ 2 \sqrt{ 2 } } \ dx = \frac{ 1 }{ 2\sqrt2}\int \left( \frac12 - \frac12\cos{ 2 \theta } \right) \ dx = \frac{ 1 }{ 2\sqrt2} \left( \frac12 \theta - \frac14\sin{ 2 \theta } \right) $$
Now to get everything back in terms of $x$...
- $\sin{ 2\theta } = 2 \sin{ \theta } \cos{ \theta }$
- Since $x = \frac{ 1 }{ \sqrt2 }\sin{ \theta }${.math .inline}, we have that $\sin{ \theta } = \sqrt2 x${.math .inline} and $\theta = \arcsin{ 2 x }$.
- From our simplification of the radical term in the original integral, we have $\cos{ \theta } = \sqrt{ 1 - 2 x^2 }$.
$$ \frac{ 1 }{ 2\sqrt2} \left( \frac12 \theta - \frac14\sin{ 2 \theta } \right) = \frac{ 1 }{ 2\sqrt2} \left( \frac12 (\arcsin{ 2 \theta }) - \frac14(2 \sin{ \theta } \cos{ \theta })\right) $$
$$ = \frac{ 1 }{ 2\sqrt2} \left( \frac12 (\arcsin{ 2 \theta }) - \frac12( \sqrt2 x) ( \sqrt{ 1 - 2 x^2 } ) \right) $$
Our final answer then is:
$$ \int\frac{x^2}{\sqrt{1-2x^2}}\ dx = \boxed{\displaystyle \frac{1}{4\sqrt2} (\arcsin{ 2 \theta }) - \frac14 x \sqrt{ 1 - 2 x^2 } + C } $$
Example
$$ \int_{ \sqrt2 }^{ 2 } \frac{ \sqrt{ 4 - x^2 }}{ x^2 } \ dx $$
In this example we have a radical term of the form $\sqrt{ a^2 - x^2 }$, where $a = 2$.
Let $x = 2 \sin{ \theta }$.
- The radical term becomes $\sqrt{ 4 - ( 2\sin \theta )^2 } = \sqrt{ 4 - 4\sin^2 \theta } = 2\cos\theta$
- For $dx$ we get $dx = 2\cos\theta d\theta$.
- For the lower bound we have $\sqrt2 - 2 \sin\theta${.math .inline}, so $\theta = \pi/4$.
- For the upper bound we have $2 = 2 \sin \theta${.math .inline}, so $\theta = \pi/2$.
- The denominator term becomes $x^2 = (2\sin\theta)^2 = 4\sin^2\theta$.
Substituting everything in we get
$$ \int_{ \sqrt2 }^{ 2 } \frac{ \sqrt{ 4 - x^2 }}{ x^2 } \ dx = \int_{ \pi / 4 }^{ \pi / 2 } \frac{ 2 \cos \theta }{ 4 \sin^2 \theta } \ 2\cos\theta \ d\theta = \int_{ \pi / 4 }^{ \pi / 2 } \cot^2 { \theta } \ d\theta $$
To integrate $\cot^2 \theta$ we use the trig identity $\cot^2{\theta} + 1 = \csc^2\theta$.
$$ \int_{ \pi / 4 }^{ \pi / 2 } \cot^2 { \theta } \ d\theta = \int_{ \pi / 4 }^{ \pi / 2 } \left( \csc^2 { \theta } - 1 \right) \ d\theta = -\cot \theta - \theta \biggr\rvert_{ \pi / 4 }^{ \pi / 2 } $$
$$ -\cot \theta - \theta \biggr\rvert_{ \pi / 4 }^{ \pi / 2 } = ( 0 - \pi / 2 ) - ( -1 - \pi / 4 ) = \boxed{\displaystyle 1 - \frac{\pi}{4}} $$
Example
In this problem, we are trying to find the area of the ellipse $\displaystyle \frac{ x }{ 9 } + \frac{ y }{ 4 } = 1${.math .inline}. To make things a little easier, let's just find the area of the top-right quarter and then multiply it by 4.
First, solve for y (for the top half of the ellipse):
$$ \frac{ x }{ 9 } + \frac{ y }{ 4 } = 1 \Longrightarrow y = 2\sqrt{ 1 - \frac{ x }{ 9 } } $$
The area of the ellipse will be given by
$$ 4\int_{ 0 }^{ 3 } 2\sqrt{ 1 - \frac{ x }{ 9 } } \ dx $$
Notice that this can be done using trig substitution. Let $x = 3 \sin\theta$.
- The radical term becomes $\sqrt{ 1 - \frac{ x }{ 9 } } = \sqrt{ 1 - \frac{ 9\sin^2\theta }{ 9 } } = \sqrt{ 1 - \sin^2\theta } = \cos\theta$
- The lower bound: $0 = 3\sin\theta \Longrightarrow \theta = 0$
- The upper bound: $3 = 3\sin\theta \Longrightarrow \theta = \pi / 2$
- The $dx$ term: $dx = 3 \cos \theta \ d\theta$
Substituting everything in we get
$$ 4\int_{ 0 }^{ 3 } 2\sqrt{ 1 - \frac{ x }{ 9 } } \ dx = 4\int_{ 0 }^{ \pi / 2 } 2(3)\cos^2\theta \ d\theta = 24\int_{ 0 }^{ \pi / 2 } \cos^2\theta \ d\theta $$
To integrate $\cos^2\theta$ we need to use the double angle formula $\cos^2\theta = \frac12 + \frac12 \cos 2 \theta$
$$ 24\int_{ 0 }^{ \pi / 2 } \cos^2\theta \ d\theta = 24\int_{ 0 }^{ \pi / 2 } \left( \frac12 + \frac12 \cos 2 \theta \right) \ d\theta = 12 \int_{ 0 }^{ \pi / 2 } \left( 1 + \cos 2 \theta \right) \ d\theta $$
Integrating we get
$$ 12 \int_{ 0 }^{ \pi / 2 } \left( 1 + \cos 2 \theta \right) \ d\theta = 12 \left( \theta + \frac12 \sin 2 \theta \right)\biggr\rvert_{ 0 }^{ \pi / 2 } = \boxed{ 6 \pi. } $$
These examples all used the sine substitution; let's go through a few using tangent and secant.
Example
$$ \int \frac{ 1 }{ x^2 \sqrt{ 16 + x^2 }} \ dx $$
The radical term in the denominator fits the for $\sqrt{ a^2 + x^2 }$ so we'll use the tangent substitution.
Let $x = 4 \tan \theta$.
- The radical term becomes $\sqrt{ 16 + (4 \tan \theta )^2 } = \sqrt{ 16 + 16\tan^2 \theta } = 4 \sec \theta${.math .inline}
- The $dx$ term becomes $dx = 4 \sec^2 \theta$.
$$ \int \frac{ 1 }{ x^2 \sqrt{ 16 + x^2 }} \ dx = \int \frac{ 1 }{( 4\tan \theta )^2( 4 \sec \theta )} 4 \sec^2 \ d\theta = \int \frac{ \sec \theta }{ 16 \tan^2 \theta } \ d\theta $$
We can simplify a bit here by writing these trig functions in terms of sine and cosine:
$$ \frac{ \sec \theta }{ \tan^2 \theta } = \cot^2 \theta \sec \theta = \frac{ \cos^2 \theta }{ \sin^2 \theta }\frac{ 1 }{ \cos \theta } = \frac{ \cos \theta }{ \sin^2 \theta } = \cot \theta \csc \theta $$
Now we have
$$ \int \frac{ \sec \theta }{ 16 \tan^2 \theta } \ d\theta = \frac{ 1 }{ 16 } \int \cot \theta \csc \theta \ d\theta = \frac{ 1 }{ 16 } ( - \csc \theta ) + C $$
Finally, we rewrite our answer in terms of $x$:
- Our original substitution was $x = 4 \tan \theta${.math .inline}. We can rewrite this as $\displaystyle \tan \theta = \frac{ x }{ 4 }$.
- Using basic trig, we draw a triangle with [opposite side] = $x$ and [adjacent side] = $4${.math .inline}.
- From the pythagorean theorem, we get [hypotenuse] = $\sqrt{ 16 + x^2 }$.
- $\csc \theta$ = [hypotenuse]/[opposite side] = $\sqrt{ 16 + x^2 }/x$.
In conclusion,
$$ \int \frac{ 1 }{ x^2 \sqrt{ 16 + x^2 }} \ dx = \frac{ 1 }{ 16 } ( - \csc \theta ) + C = \boxed{ \displaystyle -\frac{\sqrt{ 16 + x^2 }}{16x} + C } $$
Example
$$ \int_1^2 \frac{ \sqrt{ x^2 - 1 }}{ x } \ dx $$
The radical term in the numerator is of the form $\sqrt{ x^2 - a^2 }$, so we'll use the secant substitution.
- Let $x = \sec \theta$
- Radical term: $\sqrt{ x^2 - 1 } = \sqrt{ \sec^2 \theta - 1 } = \sqrt{ \tan^2 \theta } = \tan \theta$.
- $dx$ term: $dx = \sec \theta \tan \theta \ d\theta$.
- Lower bound: $1 = \sec \theta \Longrightarrow \theta = 0$.
- Upper bound: $2 = \sec \theta \Longrightarrow \theta = \pi / 3$.
Substituting everything in we have
$$ \int_1^2 \frac{ \sqrt{ x^2 - 1 }}{ x } \ dx = \int_{ 0 }^{ \pi / 3 } \frac{ \tan \theta }{ \sec \theta } \ \sec \theta \tan \theta \ d\theta = \int_{ 0 }^{ \pi / 3 } \tan^2 \theta \ d\theta $$
Apply the identity $1 + \tan^2 \theta = \sec^2 \theta${.math .inline}:
$$ \int_{ 0 }^{ \pi / 3 } \tan^2 \theta \ d\theta = \int_{ 0 }^{ \pi / 3 } (\sec^2 \theta - 1)\ d\theta $$
Now we can integrate directly:
$$ \int_{0}^{\pi/3} (\sec^2 \theta - 1)\ d\theta = \tan \theta - \theta \biggr\rvert_0^{ \pi / 3 } = \boxed{\sqrt3 - \pi/3} $$