Trigonometric substitution
The root \displaystyle \sqrt{49 - x^2} has no inside derivative sitting beside it, so u-substitution cannot touch it. Can the variable itself be renamed so that the root disappears?
Where you are 16 in Integrals
When you reach for it
u-substitution works when the derivative of an inside expression sits in the integrand as a factor. In \displaystyle \int \sqrt{49 - x^2}\,dx the inside is 49 - x^2, its derivative -2x is nowhere to be seen, and no choice of u helps. Yet roots of this kind are everywhere: \displaystyle \sqrt{49 - x^2} is a half circle, the area of an ellipse and the length of a parabola’s arc both lead to such roots, and partial fractions leaves behind powers of x^2 + a^2 that call for the same move. Riemann sums can only approximate the area under a half circle; the exact value needs an antiderivative of the root.
The idea is to rename x itself as a trig function of a new angle \theta, chosen so that a Pythagorean identity turns the expression under the root into a perfect square. Reach for it when an integrand holds \displaystyle \sqrt{a^2 - x^2}, \displaystyle \sqrt{a^2 + x^2} or \displaystyle \sqrt{x^2 - a^2} with a > 0, a power of a^2 \pm x^2 or x^2 - a^2, or any quadratic that completing the square brings to one of these shapes, and a plain substitution does not already do the job.
The procedure
Day 1: substituting for x itself
Ordinary substitution names a new variable as a function of x. Here x is named as a function of the new variable, x = g(\theta), and the question is why that is allowed.
Theorem (inverse substitution). Let g have a continuous derivative on an interval J with g'(\theta) \ne 0 inside J, so that g is one-to-one there and has an inverse \theta = g^{-1}(x) on the interval I of values g takes. If G'(\theta) = f\big(g(\theta)\big)\,g'(\theta) on J, then G\big(g^{-1}(x)\big) is an antiderivative of f on I.
The proof is the chain rule together with the derivative of an inverse function, \displaystyle \frac{d\theta}{dx} = \frac{1}{g'(\theta)}, which is how Derivatives of inverse trigonometric functions found the derivative of \arcsin x:
In practice: write x = g(\theta) and dx = g'(\theta)\,d\theta, integrate in \theta, and return to x through \theta = g^{-1}(x). The theorem also says why g must be one-to-one: without an inverse there is no way back to x.
The three choices. Each shape is matched to an identity from the Pythagorean identity and an interval on which the substitution is one-to-one.
| Root | Substitution | Becomes |
|---|---|---|
| \displaystyle \sqrt{a^2 - x^2} | x = a\sin\theta | a\cos\theta |
| \displaystyle \sqrt{a^2 + x^2} | x = a\tan\theta | a\sec\theta |
| \displaystyle \sqrt{x^2 - a^2} | x = a\sec\theta | a\lvert\tan\theta\rvert |
The identities used are 1 - \sin^2\theta = \cos^2\theta, 1 + \tan^2\theta = \sec^2\theta and \sec^2\theta - 1 = \tan^2\theta. The intervals for \theta are \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2} for the sine, \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2} for the tangent, and \displaystyle 0 \le \theta < \frac{\pi}{2} or \displaystyle \frac{\pi}{2} < \theta \le \pi for the secant.
Take the first row. On \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right] the sine rises from -1 to 1, so each x in [-a, a] comes from exactly one \theta, namely \displaystyle \theta = \arcsin\frac{x}{a}. The root becomes
and the last step holds because \cos\theta \ge 0 on that interval. The square root of a square is an absolute value; the interval is chosen so the bars can be dropped. In the second row the tangent takes every real value once on \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right), so \displaystyle \theta = \arctan\frac{x}{a}, and \sec\theta > 0 there. At \displaystyle \theta = \pm\frac{\pi}{2} the sine row has g'(\theta) = a\cos\theta = 0; the theorem asks for g' \ne 0 only inside the interval, so the answer holds on (-a, a) and extends to the endpoints by continuity where the integrand allows.
Getting back to x. After integrating, the answer is in \theta and must be rewritten in x. For x = a\sin\theta, draw a right triangle with angle \theta, hypotenuse a and opposite side x, since \displaystyle \sin\theta = \frac{x}{a}. The Pythagorean theorem gives the adjacent side \displaystyle \sqrt{a^2 - x^2}, and then \displaystyle \cos\theta = \frac{\sqrt{a^2 - x^2}}{a} and \displaystyle \tan\theta = \frac{x}{\sqrt{a^2 - x^2}} can be read off (Figure 1). A triangle needs \displaystyle 0 < \theta < \frac{\pi}{2}, but the ratios hold on the whole interval, because they also follow from algebra: \displaystyle \cos\theta = \sqrt{1 - \sin^2\theta} there, since \cos\theta \ge 0. The triangle is a memory aid for identities that are true throughout.
Definite integrals. As with u-substitution, the limits can move with the variable: each x-limit becomes \theta = g^{-1}(x), and the \theta-integral is evaluated with no return to x (Example 3).
Day 2: the secant case and shifted squares
Two pieces. The root \displaystyle \sqrt{x^2 - a^2} is defined for x \ge a and for x \le -a, two separate intervals. The secant is one-to-one on \displaystyle \left[0, \frac{\pi}{2}\right), giving every x \ge a, and on \displaystyle \left(\frac{\pi}{2}, \pi\right], giving every x \le -a. In both, \displaystyle \theta = \arccos\frac{a}{x}. The root is a\lvert\tan\theta\rvert, which is a\tan\theta on the first piece and -a\tan\theta on the second, where the tangent is negative. Each piece is worked separately (Example 4).
Shifted squares. A quadratic such as x^2 - 4x + 13 is not yet one of the three shapes. Completing the square writes it as (x - h)^2 + k, and the substitution is made for x - h instead of x. Since x - h is x moved by a constant, dx is unchanged. A leading coefficient other than 1 is handled the same way: in \displaystyle \sqrt{4x^2 - 9} the square is (2x)^2, so 2x = 3\sec\theta.
Powers with no root. (x^2 + a^2)^2 has no root, but x = a\tan\theta still turns it into a^4\sec^4\theta, and the integral becomes a power of cosine (Example 6). This is the form partial fractions leaves behind for a repeated quadratic factor.
First look for something simpler. In \displaystyle \int \frac{x}{\sqrt{x^2 + 16}}\,dx the factor x is half the derivative of x^2 + 16, and a plain substitution finishes in one line. The trig substitution would work too, but it is the longer road.
Worked examples
Day 1: a sine substitution
Find \displaystyle \int \dfrac{x^2}{\sqrt{25 - x^2}}\,dx.
SolutionThe root has the shape \displaystyle \sqrt{a^2 - x^2} with a = 5, and the integrand is defined for -5 < x < 5. Let x = 5\sin\theta with \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2}. Then dx = 5\cos\theta\,d\theta, and \displaystyle \sqrt{25 - 25\sin^2\theta} = 5\cos\theta because \cos\theta > 0 on this interval:
The root is gone. The half-angle identity \displaystyle \sin^2\theta = \frac{1 - \cos 2\theta}{2}, from Trigonometric integrals, and then \sin 2\theta = 2\sin\theta\cos\theta give
The double angle was expanded because the triangle gives \sin\theta and \cos\theta directly, not \sin 2\theta. With hypotenuse 5 and opposite side x, \displaystyle \sin\theta = \frac{x}{5}, \displaystyle \cos\theta = \frac{\sqrt{25 - x^2}}{5} and \displaystyle \theta = \arcsin\frac{x}{5}, so \displaystyle \sin\theta\cos\theta = \frac{x\sqrt{25 - x^2}}{25} and
Check: the first term differentiates to \displaystyle \frac{25}{2\sqrt{25 - x^2}}, and by the product rule the second to \displaystyle -\frac{25 - 2x^2}{2\sqrt{25 - x^2}}. Their sum is \displaystyle \frac{2x^2}{2\sqrt{25 - x^2}} = \frac{x^2}{\sqrt{25 - x^2}}.
Day 1: a tangent substitution
Find \displaystyle \int \dfrac{dx}{x^2\sqrt{x^2 + 9}}.
SolutionThe root is \displaystyle \sqrt{a^2 + x^2} with a = 3. Let x = 3\tan\theta with \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2} and \theta \ne 0, since x \ne 0. Then dx = 3\sec^2\theta\,d\theta and \displaystyle \sqrt{9\tan^2\theta + 9} = 3\sec\theta, as \sec\theta > 0:
because \displaystyle \frac{\sec\theta}{\tan^2\theta} = \frac{1}{\cos\theta} \cdot \frac{\cos^2\theta}{\sin^2\theta}. Now u = \sin\theta, du = \cos\theta\,d\theta, gives \displaystyle \frac{1}{9}\int u^{-2}\,du = -\frac{1}{9u} + C = -\frac{1}{9\sin\theta} + C.
The triangle has opposite side x, adjacent side 3 and hypotenuse \displaystyle \sqrt{x^2 + 9}, so \displaystyle \sin\theta = \frac{x}{\sqrt{x^2 + 9}}. This also holds for negative \theta, since \displaystyle \sin\theta = \frac{\tan\theta}{\sec\theta} = \frac{x/3}{\sqrt{x^2 + 9}/3}. Therefore
on x > 0 and on x < 0 separately. Check: by the quotient rule the derivative is \displaystyle -\frac{1}{9} \cdot \frac{x^2/\sqrt{x^2 + 9} - \sqrt{x^2 + 9}}{x^2} = \frac{1}{x^2\sqrt{x^2 + 9}}.
Day 1: Fara’s arch window
Fara is ordering glass for a semi-elliptical window over a doorway, 14 feet wide at the base and 4 feet tall at the center. With the origin at the middle of the base and lengths in feet, the arch is the upper half of \displaystyle \frac{x^2}{49} + \frac{y^2}{16} = 1 (Figure 2). (a) Find the area of the glass. (b) Show that a semi-elliptical arch of half-width a and height b has area \displaystyle \frac{\pi ab}{2}.
(a) Solving for y \ge 0 gives \displaystyle y = \frac{4}{7}\sqrt{49 - x^2} for -7 \le x \le 7, so the area is \displaystyle \int_{-7}^{7} \frac{4}{7}\sqrt{49 - x^2}\,dx. Let x = 7\sin\theta, so dx = 7\cos\theta\,d\theta and the root is 7\cos\theta. The limits move with the variable: x = -7 gives \displaystyle \theta = \arcsin(-1) = -\frac{\pi}{2}, and x = 7 gives \displaystyle \theta = \frac{\pi}{2}. Using \displaystyle \cos^2\theta = \frac{1 + \cos 2\theta}{2}, so that \displaystyle \int \cos^2\theta\,d\theta = \frac{1}{2}(\theta + \sin\theta\cos\theta) + C,
The product \sin\theta\cos\theta is 0 at both ends. The glass covers 14\pi \approx 43.98 square feet.
(b) Now \displaystyle y = \frac{b}{a}\sqrt{a^2 - x^2}, and x = a\sin\theta turns the root into a\cos\theta and dx into a\cos\theta\,d\theta:
With a = 7 and b = 4 this is 14\pi again. With b = a the arch is a half circle and the area \displaystyle \frac{\pi a^2}{2} agrees with geometry.
Day 2: a secant substitution on both sides of the gap
Find \displaystyle \int \dfrac{\sqrt{x^2 - 4}}{x}\,dx.
SolutionThe integrand is defined for x \ge 2 and for x \le -2, and an antiderivative is found on each piece.
For x \ge 2, let x = 2\sec\theta with \displaystyle 0 \le \theta < \frac{\pi}{2}. Then dx = 2\sec\theta\tan\theta\,d\theta and \displaystyle \sqrt{4\sec^2\theta - 4} = 2\lvert\tan\theta\rvert = 2\tan\theta:
Here \displaystyle \tan\theta = \frac{\sqrt{x^2 - 4}}{2} and \displaystyle \cos\theta = \frac{2}{x}, so \displaystyle \theta = \arccos\frac{2}{x}, and the antiderivative is \displaystyle \sqrt{x^2 - 4} - 2\arccos\frac{2}{x} + C.
For x \le -2, \theta lies in \displaystyle \left(\frac{\pi}{2}, \pi\right], where \tan\theta \le 0, so the root is -2\tan\theta. Every step repeats with the sign flipped: the integrand becomes -2\tan^2\theta, with antiderivative -2\tan\theta + 2\theta + C. Now \displaystyle -2\tan\theta = \sqrt{x^2 - 4}, and \displaystyle \theta = \arccos\frac{2}{x} still, since the arccosine returns values in [0, \pi]. On this piece the antiderivative is \displaystyle \sqrt{x^2 - 4} + 2\arccos\frac{2}{x} + C. The right-hand formula does not carry over: on x < -2 its derivative is \displaystyle \frac{x^2 + 4}{x\sqrt{x^2 - 4}}, not the integrand.
The two results join into one formula. On the left piece \displaystyle \arccos\frac{2}{x} = \pi - \arccos\frac{2}{\lvert x \rvert}, and the constant 2\pi is absorbed into C, so on each piece
where the constants on the two pieces need not be equal. The answer is even, as an antiderivative of an odd integrand can be. Check: on both pieces \displaystyle \frac{d}{dx}\arccos\frac{2}{\lvert x \rvert} = \frac{2}{x\sqrt{x^2 - 4}}, so the derivative is \displaystyle \frac{x}{\sqrt{x^2 - 4}} - \frac{4}{x\sqrt{x^2 - 4}} = \frac{x^2 - 4}{x\sqrt{x^2 - 4}} = \frac{\sqrt{x^2 - 4}}{x}.
Day 2: completing the square first
Find \int \dfrac{dx}{\left(x^2 - 4x + 13\right)^{3/2}}.
SolutionHalf of -4 is -2, and x^2 - 4x + 13 = (x - 2)^2 + 9, as in Completing the square inside an integral. This is u^2 + 3^2 with u = x - 2, so let x - 2 = 3\tan\theta, with dx = 3\sec^2\theta\,d\theta. Then (x - 2)^2 + 9 = 9\sec^2\theta, and its \displaystyle \frac{3}{2} power is 27\sec^3\theta because \sec\theta > 0:
The triangle has opposite side x - 2, adjacent side 3 and hypotenuse \displaystyle \sqrt{x^2 - 4x + 13}, so
for every real x, since the quadratic is never below 9. Check: with w = x^2 - 4x + 13, the quotient rule gives \displaystyle \frac{1}{9}w^{-3/2}\left(w - (x - 2)^2\right) = \frac{1}{9}w^{-3/2} \cdot 9 = w^{-3/2}.
Day 2: changing the limits, with no root in sight
Evaluate \displaystyle \int_0^{2\sqrt{3}} \dfrac{dx}{\left(x^2 + 4\right)^2}.
SolutionThere is no root, but x^2 + 4 has the shape x^2 + a^2, and its square becomes a power of secant. Let x = 2\tan\theta, so dx = 2\sec^2\theta\,d\theta and x^2 + 4 = 4\sec^2\theta. The limits: x = 0 gives \theta = \arctan 0 = 0, and \displaystyle x = 2\sqrt{3} gives \displaystyle \theta = \arctan\sqrt{3} = \frac{\pi}{3}. The integrand becomes \displaystyle \frac{2\sec^2\theta}{16\sec^4\theta} = \frac{\cos^2\theta}{8}, so
That is about 0.0925. Check for size: the integrand falls from \displaystyle \frac{1}{16} to \displaystyle \frac{1}{256} over an interval of length about 3.46, so an area under \displaystyle 3.46 \cdot \frac{1}{16} \approx 0.22 is expected. No return to x was needed, because the limits moved with the variable.
Boundaries
- The substitution must be one-to-one on the interval used, and the sign of the root must be read on that interval. The table’s intervals make the root come out positive. If \theta ran over \displaystyle \left[-\frac{\pi}{2}, \pi\right] in the sine row, each x in (0, a) would come from two angles, and on \displaystyle \frac{\pi}{2} < \theta < \pi the root would be -a\cos\theta.
- \displaystyle \sqrt{x^2 - a^2} = a\lvert\tan\theta\rvert, and for x \le -a this is -a\tan\theta. An antiderivative found on x \ge a need not hold on x \le -a (Example 4).
- Each answer holds only on an interval where the integrand is defined: the formula for \displaystyle \int \frac{dx}{x^2\sqrt{x^2 + 9}} holds on x < 0 and on x > 0 separately, with constants that need not match, and nothing involving \displaystyle \sqrt{a^2 - x^2} holds outside [-a, a].
- A definite integral whose integrand is unbounded at an endpoint, such as \displaystyle \int_0^5 \frac{dx}{\sqrt{25 - x^2}}, is improper and needs a limit, as in Improper integrals with an infinite integrand.
- The method needs a sum or difference of two squares, one of them constant, after completing the square. It does nothing for roots such as \displaystyle \sqrt{1 + x^3}.
Where this goes next
The \theta-integrals that appear are the work of Trigonometric integrals, and \int \sec^3\theta\,d\theta, which arrives from \displaystyle \int \sqrt{x^2 + a^2}\,dx, comes from integration by parts. Partial fractions reduces a rational function to pieces, and the piece \displaystyle \frac{1}{(x^2 + a^2)^n} is a tangent substitution. The Arc length produces \displaystyle \sqrt{1 + f'(x)^2}: for the parabola y = x^2 that is \displaystyle \sqrt{1 + 4x^2}, a tangent substitution with 2x = \tan\theta. Choosing an integration technique gathers all of these into one way of reading an integrand.
Exercises
Day 1: sine and tangent
- Find \displaystyle \int \dfrac{dx}{x^2\sqrt{16 - x^2}}.
- Find \displaystyle \int \sqrt{9 - x^2}\,dx.
- Find \displaystyle \int \dfrac{x^3}{\sqrt{4 - x^2}}\,dx.
- Find \int \dfrac{dx}{\left(x^2 + 16\right)^{3/2}}.
- Find \displaystyle \int \dfrac{dx}{\sqrt{x^2 + 25}}.
- Find \displaystyle \int \sqrt{x^2 + 4}\,dx. (Use \displaystyle \int \sec^3\theta\,d\theta = \frac{1}{2}\sec\theta\tan\theta \displaystyle + \frac{1}{2}\ln\lvert \sec\theta + \tan\theta \rvert + C.)
Day 1: definite integrals and the window
- Evaluate \int_0^{3/2} \dfrac{dx}{\left(9 - x^2\right)^{3/2}}.
- Tahina cuts Fara’s window (Example 3) along the center line x = 0 and the line \displaystyle x = \frac{7}{2}. Find the area of glass between the two lines.
- Find the area of the part of Fara’s window that lies above the line y = 2.
Day 1: reasoning
- Explain why x = 5\sin\theta is used with \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2} and not with \displaystyle \frac{\pi}{2} \le \theta \le \frac{3\pi}{2}, which also gives every x in [-5, 5].
- Fara plans a tangent substitution for \displaystyle \int \dfrac{x}{\sqrt{x^2 + 16}}\,dx. Find the integral more quickly, and say what in the integrand signals the shorter route.
- For x = a\tan\theta with \displaystyle -\frac{\pi}{2} < \theta < 0, no triangle has a negative side. Show that \displaystyle \sin\theta = \frac{x}{\sqrt{x^2 + a^2}} and \displaystyle \cos\theta = \frac{a}{\sqrt{x^2 + a^2}} still hold.
Day 2: the secant substitution
- Find \displaystyle \int \dfrac{dx}{x^2\sqrt{x^2 - 9}}, and show the answer holds for x > 3 and for x < -3.
- Find \displaystyle \int \dfrac{dx}{\sqrt{x^2 - 16}} for x > 4.
- Evaluate \displaystyle \int_{-6}^{-2\sqrt{3}} \dfrac{dx}{x^2\sqrt{x^2 - 9}}, changing the limits to \theta.
Day 2: completing the square
- Find \displaystyle \int \dfrac{dx}{\sqrt{x^2 + 6x + 13}}.
- Find \displaystyle \int \sqrt{6x - x^2}\,dx.
- Find \int \dfrac{dx}{\left(x^2 + 2x + 2\right)^2}.
Day 2: definite integrals
- Evaluate \displaystyle \int_0^2 x^2\sqrt{4 - x^2}\,dx.
- Evaluate \int_0^1 \dfrac{dx}{\left(1 + x^2\right)^{3/2}}.
Day 2: reasoning
- Rivo says \displaystyle \ln\lvert x + \sqrt{x^2 - 16} \rvert is an antiderivative of \displaystyle \frac{1}{\sqrt{x^2 - 16}} on (-4, 4) as well. Explain why that cannot be.
- Name the substitution for each and give the form it reaches: \displaystyle \sqrt{4x^2 - 9}; \left(x^2 + 2x + 5\right)^{-3/2}; \displaystyle \sqrt{3 - 2x - x^2}.
- Use trigonometric substitutions to show that \displaystyle \int \frac{dx}{\sqrt{a^2 - x^2}} = \arcsin\frac{x}{a} + C on (-a, a) and \displaystyle \int \frac{dx}{x^2 + a^2} = \frac{1}{a}\arctan\frac{x}{a} + C, for a > 0.
Answers
- \displaystyle -\frac{\sqrt{16 - x^2}}{16x} + C, on (-4, 0) and on (0, 4). With x = 4\sin\theta, the integral is \displaystyle \frac{1}{16}\int \csc^2\theta\,d\theta = -\frac{1}{16}\cot\theta + C, and \displaystyle \cot\theta = \frac{\sqrt{16 - x^2}}{x}.
- \displaystyle \frac{9}{2}\arcsin\frac{x}{3} + \frac{x}{2}\sqrt{9 - x^2} + C. With x = 3\sin\theta, the integral is \displaystyle 9\int \cos^2\theta\,d\theta = \frac{9}{2}(\theta + \sin\theta\cos\theta) + C, and \displaystyle \sin\theta\cos\theta = \frac{x\sqrt{9 - x^2}}{9}.
- \displaystyle \frac{1}{3}\left(4 - x^2\right)^{3/2} - 4\sqrt{4 - x^2} + C. With x = 2\sin\theta, the integral is \displaystyle 8\int \sin^3\theta\,d\theta = 8\left(\frac{\cos^3\theta}{3} - \cos\theta\right) + C, and \displaystyle \cos\theta = \frac{\sqrt{4 - x^2}}{2}.
- \displaystyle \frac{x}{16\sqrt{x^2 + 16}} + C. With x = 4\tan\theta, the integrand becomes \displaystyle \frac{4\sec^2\theta}{64\sec^3\theta} = \frac{\cos\theta}{16}, giving \displaystyle \frac{\sin\theta}{16}, and \displaystyle \sin\theta = \frac{x}{\sqrt{x^2 + 16}}.
- \displaystyle \ln\left(x + \sqrt{x^2 + 25}\right) + C. With x = 5\tan\theta, the integral is \int \sec\theta\,d\theta = \ln\lvert \sec\theta + \tan\theta \rvert + C, which is \displaystyle \ln\frac{x + \sqrt{x^2 + 25}}{5} + C; the -\ln 5 joins C, and the argument is positive since \displaystyle \sqrt{x^2 + 25} > \lvert x \rvert.
- \displaystyle \frac{x}{2}\sqrt{x^2 + 4} + 2\ln\left(x + \sqrt{x^2 + 4}\right) + C. With x = 2\tan\theta, the integral is 4\int \sec^3\theta\,d\theta, with \displaystyle \sec\theta = \frac{\sqrt{x^2 + 4}}{2} and \displaystyle \tan\theta = \frac{x}{2}; the -2\ln 2 joins C.
- \displaystyle \frac{\sqrt{3}}{27}. With x = 3\sin\theta, the limits become 0 and \displaystyle \frac{\pi}{6} and the integrand \displaystyle \frac{\sec^2\theta}{9}, so the value is \displaystyle \frac{1}{9}\tan\frac{\pi}{6} = \frac{1}{9\sqrt{3}}.
- \displaystyle \frac{7\pi}{3} + \frac{7\sqrt{3}}{2} \approx 13.39 square feet. With x = 7\sin\theta, the limits become 0 and \displaystyle \frac{\pi}{6}, and the area is \displaystyle 28\int_0^{\pi/6} \cos^2\theta\,d\theta = 14\left(\frac{\pi}{6} + \frac{\sqrt{3}}{4}\right).
- \displaystyle \frac{28\pi}{3} - 7\sqrt{3} \approx 17.20 square feet. The arch is at height 2 where \displaystyle \sqrt{49 - x^2} = \frac{7}{2}, that is \displaystyle x = \pm\frac{7\sqrt{3}}{2}, or \displaystyle \theta = \pm\frac{\pi}{3}. The area under the arch between those lines is \displaystyle 14\Big[\theta + \sin\theta\cos\theta\Big]_{-\pi/3}^{\pi/3} = \frac{28\pi}{3} + 7\sqrt{3}; subtract the rectangle of width \displaystyle 7\sqrt{3} and height 2.
- On \displaystyle \left[\frac{\pi}{2}, \frac{3\pi}{2}\right] the cosine is at most 0, so \displaystyle \sqrt{25 - x^2} = 5\lvert\cos\theta\rvert = -5\cos\theta, and every root would carry a minus sign. That interval would also work if the sign were tracked, but the reverse map would no longer be \displaystyle \theta = \arcsin\frac{x}{5}, whose values lie in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right]. The standard interval makes the root 5\cos\theta and the way back \displaystyle \arcsin\frac{x}{5}.
- \displaystyle \sqrt{x^2 + 16} + C. The factor x is half the derivative of x^2 + 16, so u = x^2 + 16, \displaystyle x\,dx = \frac{1}{2}\,du, gives \displaystyle \frac{1}{2}\int u^{-1/2}\,du = u^{1/2} + C. A factor of x beside a function of x^2 \pm a^2 signals a plain substitution.
- On \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right), \sec\theta > 0, so \displaystyle \sec\theta = \sqrt{1 + \tan^2\theta} = \frac{\sqrt{x^2 + a^2}}{a}. Then \displaystyle \cos\theta = \frac{1}{\sec\theta} = \frac{a}{\sqrt{x^2 + a^2}} and \displaystyle \sin\theta = \tan\theta\cos\theta = \frac{x}{a} \cdot \frac{a}{\sqrt{x^2 + a^2}}, for negative \theta as well.
- \displaystyle \frac{\sqrt{x^2 - 9}}{9x} + C. For x > 3, x = 3\sec\theta gives \displaystyle \frac{1}{9}\int \cos\theta\,d\theta = \frac{\sin\theta}{9} with \displaystyle \sin\theta = \frac{\sqrt{x^2 - 9}}{x}. For x < -3 the root is -3\tan\theta, the integral is \displaystyle -\frac{\sin\theta}{9}, and now \displaystyle \sin\theta = \tan\theta\cos\theta = -\frac{\sqrt{x^2 - 9}}{x}, giving the same formula. Differentiating it gives \displaystyle \frac{1}{x^2\sqrt{x^2 - 9}} for either sign of x.
- \displaystyle \ln\left(x + \sqrt{x^2 - 16}\right) + C. With x = 4\sec\theta, \displaystyle 0 \le \theta < \frac{\pi}{2}, the integrand becomes \sec\theta, and \displaystyle \ln\lvert \sec\theta + \tan\theta \rvert = \ln\frac{x + \sqrt{x^2 - 16}}{4}; the -\ln 4 joins C.
- \displaystyle \frac{\sqrt{3} - 1}{18} \approx 0.0407. Here x < -3, so \theta is in \displaystyle \left(\frac{\pi}{2}, \pi\right]: x = -6 gives \sec\theta = -2, \displaystyle \theta = \frac{2\pi}{3}, and \displaystyle x = -2\sqrt{3} gives \displaystyle \cos\theta = -\frac{\sqrt{3}}{2}, \displaystyle \theta = \frac{5\pi}{6}. The integrand is \displaystyle -\frac{\cos\theta}{9}, so the value is \displaystyle -\frac{1}{9}\left(\sin\frac{5\pi}{6} - \sin\frac{2\pi}{3}\right) = -\frac{1}{9}\left(\frac{1}{2} - \frac{\sqrt{3}}{2}\right).
- \displaystyle \ln\left(x + 3 + \sqrt{x^2 + 6x + 13}\right) + C. Here x^2 + 6x + 13 = (x + 3)^2 + 4; with x + 3 = 2\tan\theta the integral is \int \sec\theta\,d\theta, and the -\ln 2 joins C.
- \displaystyle \frac{9}{2}\arcsin\frac{x - 3}{3} + \frac{x - 3}{2}\sqrt{6x - x^2} + C, for 0 \le x \le 6. Here 6x - x^2 = 9 - (x - 3)^2; with x - 3 = 3\sin\theta the integral is 9\int \cos^2\theta\,d\theta.
- \displaystyle \frac{1}{2}\arctan(x + 1) + \frac{x + 1}{2\left(x^2 + 2x + 2\right)} + C. Here x^2 + 2x + 2 = (x + 1)^2 + 1; with x + 1 = \tan\theta the integrand becomes \cos^2\theta, giving \displaystyle \frac{1}{2}(\theta + \sin\theta\cos\theta), and \displaystyle \sin\theta\cos\theta = \frac{\tan\theta}{\sec^2\theta} = \frac{x + 1}{x^2 + 2x + 2}.
- \pi. With x = 2\sin\theta, limits 0 and \displaystyle \frac{\pi}{2}, the integrand becomes 16\sin^2\theta\cos^2\theta = 4\sin^2 2\theta = 2 - 2\cos 4\theta, and \int_0^{\pi/2} (2 - 2\cos 4\theta)\,d\theta = \pi.
- \displaystyle \frac{\sqrt{2}}{2}. With x = \tan\theta, limits 0 and \displaystyle \frac{\pi}{4}, the integrand becomes \cos\theta, and \displaystyle \sin\frac{\pi}{4} = \frac{\sqrt{2}}{2}.
- On (-4, 4) the quantity x^2 - 16 is negative, so neither \displaystyle \frac{1}{\sqrt{x^2 - 16}} nor \displaystyle \sqrt{x^2 - 16} is a real number there. There is nothing to be an antiderivative of; the formula holds only on x > 4 and on x < -4.
- \displaystyle \sqrt{4x^2 - 9}: 2x = 3\sec\theta, so the root is 3\lvert\tan\theta\rvert. \left(x^2 + 2x + 5\right)^{-3/2}: x^2 + 2x + 5 = (x + 1)^2 + 4, so x + 1 = 2\tan\theta, and the quadratic is 4\sec^2\theta. \displaystyle \sqrt{3 - 2x - x^2}: 3 - 2x - x^2 = 4 - (x + 1)^2, so x + 1 = 2\sin\theta, and the root is 2\cos\theta.
- With x = a\sin\theta, \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2}: dx = a\cos\theta\,d\theta and the root is a\cos\theta, so the first integral is \displaystyle \int d\theta = \theta + C = \arcsin\frac{x}{a} + C. With x = a\tan\theta: dx = a\sec^2\theta\,d\theta and x^2 + a^2 = a^2\sec^2\theta, so the second is \displaystyle \frac{1}{a}\int d\theta = \frac{1}{a}\arctan\frac{x}{a} + C. Both agree with the derivatives of \arcsin and \arctan.