Trigonometric Substitution
Trig substitution handles square roots of quadratics. The substitution turns the root into a single trig function using a Pythagorean identity.
Which substitution?
| Expression | Substitute | Identity used |
|---|---|---|
| \(\sqrt{a^2-x^2}\) | \(x = a\sin\theta\) | \(1-\sin^2\theta=\cos^2\theta\) |
| \(\sqrt{a^2+x^2}\) | \(x = a\tan\theta\) | \(1+\tan^2\theta=\sec^2\theta\) |
| \(\sqrt{x^2-a^2}\) | \(x = a\sec\theta\) | \(\sec^2\theta-1=\tan^2\theta\) |
The method
- Substitute for \(x\) and \(dx\). For example, \(x = a\sin\theta\) gives \(dx = a\cos\theta\,d\theta\).
- Simplify the root with the identity.
- Solve the trig integral in \(\theta\).
- Draw a right triangle from the substitution to convert back to \(x\).
Check first: if the derivative of the quadratic is sitting outside the root, as in \(x\sqrt{1+x^2}\), a plain u-substitution is faster.
Example: \(\sqrt{1 - x^{2}}\)
This is the area under a semicircle. Use \(x=\sin\theta\).
1Trigonometric substitutiontechnique▶
The integrand contains \(\sqrt{1 - x^{2}}\). Let \(x = \sin{\left(\theta \right)}\), so \(dx = \cos{\left(\theta \right)}\,d\theta\) and, using \(1-\sin^2\theta = \cos^2\theta\), \(\sqrt{1 - x^{2}} = \cos{\left(\theta \right)}\).
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{2}\) outside.
1Substitution (u-sub)technique▶
Let \(u = 2 \theta\). Then \(du = 2\,d\theta\). Rewriting the integral in terms of \(u\):
1Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{2}\) outside.
1Integral of cosine▶
The antiderivative of cosine is sine.
2Multiply back by the constant▶
2Substitute back▶
Replace \(u\) with \(2 \theta\):
2Multiply back by the constant▶
2Integrate a constant▶
The integral of a constant is the constant times \(\theta\).
3Add the results▶
2Return to x▶
From \(\sin\theta = x\), draw a right triangle (or use inverse trig) to rewrite in terms of x:
Example: \(\frac{\sqrt{4 - x^{2}}}{x^{2}}\)
1Trigonometric substitutiontechnique▶
The integrand contains \(\sqrt{4 - x^{2}}\). Let \(x = 2 \sin{\left(\theta \right)}\), so \(dx = 2 \cos{\left(\theta \right)}\,d\theta\) and, using \(1-\sin^2\theta = \cos^2\theta\), \(\sqrt{4 - x^{2}} = 2 \cos{\left(\theta \right)}\).
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Integral of csc²▶
Since \(\frac{d}{dx}\cot x = -\csc^2 x\).
2Integrate a constant▶
The integral of a constant is the constant times \(\theta\).
3Add the results▶
2Return to x▶
From \(\sin\theta = \frac{x}{2}\), draw a right triangle (or use inverse trig) to rewrite in terms of x:
Example: \(\frac{1}{x^{2} \sqrt{x^{2} + 4}}\)
\(\sqrt{{x^2+4}}\) calls for \(x = 2\tan\theta\).
1Trigonometric substitutiontechnique▶
The integrand contains \(\sqrt{x^{2} + 4}\). Let \(x = 2 \tan{\left(\theta \right)}\), so \(dx = 2 \sec^{2}{\left(\theta \right)}\,d\theta\) and, using \(1+\tan^2\theta = \sec^2\theta\), \(\sqrt{x^{2} + 4} = 2 \sec{\left(\theta \right)}\).
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{4}\) outside.
1Substitution (u-sub)technique▶
Let \(u = \sin{\left(\theta \right)}\). Then \(du = \cos{\left(\theta \right)}\,d\theta\). Rewriting the integral in terms of \(u\):
1Power rule▶
Use \(\int x^{n}\,dx = \frac{x^{n+1}}{n+1}\) with \(n = -2\).
2Substitute back▶
Replace \(u\) with \(\sin{\left(\theta \right)}\):
2Multiply back by the constant▶
2Return to x▶
From \(\tan\theta = \frac{x}{2}\), draw a right triangle (or use inverse trig) to rewrite in terms of x:
Example: \(\frac{1}{\sqrt{x^{2} - 4}}\)
\(\sqrt{{x^2-4}}\) calls for \(x = 2\sec\theta\).
1Trigonometric substitutiontechnique▶
The integrand contains \(\sqrt{x^{2} - 4}\). Let \(x = 2 \sec{\left(\theta \right)}\), so \(dx = 2 \tan{\left(\theta \right)} \sec{\left(\theta \right)}\,d\theta\) and, using \(\sec^2\theta - 1 = \tan^2\theta\), \(\sqrt{x^{2} - 4} = 2 \tan{\left(\theta \right)}\).
1Multiply by a clever form of 1technique▶
The standard trick: multiply top and bottom by \(\sec \theta + \tan \theta\). The numerator becomes the derivative of the denominator:
1Substitution (u-sub)technique▶
Let \(u = \tan{\left(\theta \right)} + \sec{\left(\theta \right)}\). Then \(du = \left(\tan^{2}{\left(\theta \right)} + \tan{\left(\theta \right)} \sec{\left(\theta \right)} + 1\right)\,d\theta\). Rewriting the integral in terms of \(u\):
1Reciprocal rule▶
The integral of \(\frac{1}{u}\) is \(\ln\left|u\right|\).
2Substitute back▶
Replace \(u\) with \(\tan{\left(\theta \right)} + \sec{\left(\theta \right)}\):
2Return to x▶
From \(\sec\theta = \frac{x}{2}\), draw a right triangle (or use inverse trig) to rewrite in terms of x:
Try your own
Paste any integral into the integral calculator to get the full step-by-step solution and a graph.