Unit 5, lesson 58

Trigonometric and Inverse Substitutions

How to remove square roots of sums and differences of squares by setting x equal to a sine, tangent or secant, choosing the branch so the root simplifies correctly, and returning to x with a triangle.

  • Theory part 115
  • Practice part 116
  • Integration Techniques

Theory, part 115

Practice, part 116

The area of a circle comes from ∫a2−x2 dx\int \sqrt{a^2 - x^2} \, dx, and no ordinary substitution touches it. The fix is to run substitution in the other direction. Instead of naming a piece of the integrand uu, you set xx itself equal to a trigonometric function chosen so that the expression under the root becomes a perfect square.

Key terms

Inverse substitution

Definition Let ff be continuous on an open interval II, and let x=g(θ)x = g(\theta) where gg is differentiable on an open interval JJ, g′(θ)≠0g'(\theta) \neq 0 for every θ\theta in JJ, and gg maps JJ onto II. Then gg is one-to-one, its inverse g−1g^{-1} is differentiable on II, and

∫f(x) dx=∫f(g(θ)) g′(θ) dθ,followed by θ=g−1(x).\int f(x) \, dx = \int f\big(g(\theta)\big) \, g'(\theta) \, d\theta, \qquad \text{followed by } \theta = g^{-1}(x).

The equation means that if GG is an antiderivative of f(g(θ)) g′(θ)f\big(g(\theta)\big) \, g'(\theta) on JJ, then G(g−1(x))G\big(g^{-1}(x)\big) is an antiderivative of ff on II, so the answer can be written back in terms of xx.

In plain words You replace xx by a function of a new variable, convert dxdx too, integrate in the new variable, and use the inverse function to get back.

Example For ∫dx1+x2\int \frac{dx}{1 + x^2} put x=tan⁡θx = \tan \theta with −π2<θ<π2-\frac{\pi}{2} < \theta < \frac{\pi}{2}. Then dx=sec⁡2θ dθdx = \sec^2 \theta \, d\theta and 1+x2=sec⁡2θ1 + x^2 = \sec^2 \theta, so the integral is

∫sec⁡2θsec⁡2θ dθ=∫dθ=θ+C=arctan⁡x+C.\int \frac{\sec^2 \theta}{\sec^2 \theta} \, d\theta = \int d\theta = \theta + C = \arctan x + C.

Inverse trigonometric forms

Definition For a constant a>0a > 0,

∫dxa2−x2=arcsin⁡xa+C(∣x∣<a),∫dxa2+x2=1aarctan⁡xa+C,\int \frac{dx}{\sqrt{a^2 - x^2}} = \arcsin \frac{x}{a} + C \quad (\lvert x \rvert < a), \qquad \int \frac{dx}{a^2 + x^2} = \frac{1}{a} \arctan \frac{x}{a} + C,∫dxxx2−a2=1aarcsec⁡∣x∣a+C(∣x∣>a).\int \frac{dx}{x \sqrt{x^2 - a^2}} = \frac{1}{a} \operatorname{arcsec} \frac{\lvert x \rvert}{a} + C \quad (\lvert x \rvert > a).

Here arcsin⁡\arcsin takes values in [−π2,π2][-\frac{\pi}{2}, \frac{\pi}{2}] and arctan⁡\arctan in (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2}). For ∣y∣≥1\lvert y \rvert \ge 1, arcsec⁡y\operatorname{arcsec} y is the angle in [0,π2)∪(π2,π][0, \frac{\pi}{2}) \cup (\frac{\pi}{2}, \pi] whose secant is yy, so arcsec⁡y=arccos⁡1y\operatorname{arcsec} y = \arccos \frac{1}{y}. With this convention

ddyarcsec⁡y=1∣y∣y2−1(∣y∣>1),\frac{d}{dy} \operatorname{arcsec} y = \frac{1}{\lvert y \rvert \sqrt{y^2 - 1}} \qquad (\lvert y \rvert > 1),

and that is why the third formula needs ∣x∣\lvert x \rvert. Some books use the range [0,π2)∪[π,3π2)[0, \frac{\pi}{2}) \cup [\pi, \frac{3\pi}{2}) instead, and their version of the formula looks different for negative xx.

In plain words These three integrals come up so often that it pays to know them. Each one is what a trigonometric substitution produces in its simplest case.

Example The first form with a=2a = 2 gives

∫01dx4−x2=arcsin⁡12−arcsin⁡0=π6.\int_0^1 \frac{dx}{\sqrt{4 - x^2}} = \arcsin \frac{1}{2} - \arcsin 0 = \frac{\pi}{6}.

Sine substitution

Definition For an integrand containing a2−x2\sqrt{a^2 - x^2} with a>0a > 0 and −a≤x≤a-a \le x \le a, put

x=asin⁡θ,−π2≤θ≤π2,dx=acos⁡θ dθ.x = a \sin \theta, \qquad -\frac{\pi}{2} \le \theta \le \frac{\pi}{2}, \qquad dx = a \cos \theta \, d\theta.

Then a2−x2=a2cos⁡2θa^2 - x^2 = a^2 \cos^2 \theta, and since cos⁡θ≥0\cos \theta \ge 0 on this interval, a2−x2=acos⁡θ\sqrt{a^2 - x^2} = a \cos \theta.

In plain words The identity 1−sin⁡2θ=cos⁡2θ1 - \sin^2 \theta = \cos^2 \theta turns the difference under the root into a square, and the root goes away.

Example For ∫024−x2 dx\int_0^2 \sqrt{4 - x^2} \, dx put x=2sin⁡θx = 2 \sin \theta. The bounds become θ=0\theta = 0 and θ=π2\theta = \frac{\pi}{2}.

∫0π/22cos⁡θ⋅2cos⁡θ dθ=4∫0π/2cos⁡2θ dθ=4⋅π4=π.\int_0^{\pi/2} 2 \cos \theta \cdot 2 \cos \theta \, d\theta = 4 \int_0^{\pi/2} \cos^2 \theta \, d\theta = 4 \cdot \frac{\pi}{4} = \pi.

That is a quarter of the area of a circle of radius 22, as it should be.

Tangent substitution

Definition For an integrand containing a2+x2\sqrt{a^2 + x^2} or a2+x2a^2 + x^2 with a>0a > 0, put

x=atan⁡θ,−π2<θ<π2,dx=asec⁡2θ dθ.x = a \tan \theta, \qquad -\frac{\pi}{2} < \theta < \frac{\pi}{2}, \qquad dx = a \sec^2 \theta \, d\theta.

Then a2+x2=a2sec⁡2θa^2 + x^2 = a^2 \sec^2 \theta, and since sec⁡θ>0\sec \theta > 0 on this interval, a2+x2=asec⁡θ\sqrt{a^2 + x^2} = a \sec \theta.

In plain words Here the identity 1+tan⁡2θ=sec⁡2θ1 + \tan^2 \theta = \sec^2 \theta does the work, and every real xx corresponds to exactly one θ\theta.

Example For ∫dx(x2+4)3/2\int \frac{dx}{(x^2 + 4)^{3/2}} put x=2tan⁡θx = 2 \tan \theta, so (x2+4)3/2=8sec⁡3θ(x^2 + 4)^{3/2} = 8 \sec^3 \theta.

∫2sec⁡2θ8sec⁡3θ dθ=14∫cos⁡θ dθ=14sin⁡θ+C=x4x2+4+C.\int \frac{2 \sec^2 \theta}{8 \sec^3 \theta} \, d\theta = \frac{1}{4} \int \cos \theta \, d\theta = \frac{1}{4} \sin \theta + C = \frac{x}{4 \sqrt{x^2 + 4}} + C.

The last step uses

sin⁡θ=tan⁡θsec⁡θ=x/2x2+4/2=xx2+4.\sin \theta = \frac{\tan \theta}{\sec \theta} = \frac{x/2}{\sqrt{x^2 + 4}/2} = \frac{x}{\sqrt{x^2 + 4}}.

Secant substitution

Definition For an integrand containing x2−a2\sqrt{x^2 - a^2} with a>0a > 0 and ∣x∣≥a\lvert x \rvert \ge a, put

x=asec⁡θ,dx=asec⁡θtan⁡θ dθ,x = a \sec \theta, \qquad dx = a \sec \theta \tan \theta \, d\theta,

with 0≤θ<π20 \le \theta < \frac{\pi}{2} when x≥ax \ge a and π2<θ≤π\frac{\pi}{2} < \theta \le \pi when x≤−ax \le -a. Then x2−a2=a2tan⁡2θx^2 - a^2 = a^2 \tan^2 \theta and x2−a2=a∣tan⁡θ∣\sqrt{x^2 - a^2} = a \lvert \tan \theta \rvert, which equals atan⁡θa \tan \theta when x≥ax \ge a and −atan⁡θ-a \tan \theta when x≤−ax \le -a.

In plain words The identity sec⁡2θ−1=tan⁡2θ\sec^2 \theta - 1 = \tan^2 \theta handles the root, but the sign of tan⁡θ\tan \theta depends on which side of the gap (−a,a)(-a, a) you are on.

Example For ∫x2−1x dx\int \frac{\sqrt{x^2 - 1}}{x} \, dx with x>1x > 1, put x=sec⁡θx = \sec \theta with 0<θ<π20 < \theta < \frac{\pi}{2}, so x2−1=tan⁡θ\sqrt{x^2 - 1} = \tan \theta.

∫tan⁡θsec⁡θsec⁡θtan⁡θ dθ=∫tan⁡2θ dθ=∫(sec⁡2θ−1) dθ=tan⁡θ−θ+C.\int \frac{\tan \theta}{\sec \theta} \sec \theta \tan \theta \, d\theta = \int \tan^2 \theta \, d\theta = \int (\sec^2 \theta - 1) \, d\theta = \tan \theta - \theta + C.

So the integral is x2−1−arcsec⁡x+C\sqrt{x^2 - 1} - \operatorname{arcsec} x + C for x>1x > 1. Differentiating gives back the integrand,

xx2−1−1xx2−1=x2−1xx2−1=x2−1x.\frac{x}{\sqrt{x^2 - 1}} - \frac{1}{x \sqrt{x^2 - 1}} = \frac{x^2 - 1}{x\sqrt{x^2 - 1}} = \frac{\sqrt{x^2 - 1}}{x}.

Branch restrictions

Definition A trigonometric substitution x=g(θ)x = g(\theta) must use an interval of θ\theta on which gg is one-to-one and which gg maps onto the whole interval of xx you are working on. The standard choices come from the ranges of the inverse functions. They are [−π2,π2][-\frac{\pi}{2}, \frac{\pi}{2}] for x=asin⁡θx = a \sin \theta and (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2}) for x=atan⁡θx = a \tan \theta. For x=asec⁡θx = a \sec \theta the integrand lives on two separate intervals, x≥ax \ge a and x≤−ax \le -a, so you work on one at a time, with [0,π2)[0, \frac{\pi}{2}) for x≥ax \ge a and (π2,π](\frac{\pi}{2}, \pi] for x≤−ax \le -a. On these ranges θ=arcsin⁡xa\theta = \arcsin \frac{x}{a}, θ=arctan⁡xa\theta = \arctan \frac{x}{a} or θ=arcsec⁡xa\theta = \operatorname{arcsec} \frac{x}{a} exactly.

In plain words Many angles share the same sine, so you must pick a single range of angles. The standard range makes the inverse function give you back θ\theta and fixes the sign of the root.

Example With x=2sin⁡θx = 2 \sin \theta and x=1x = 1, both θ=π6\theta = \frac{\pi}{6} and θ=5π6\theta = \frac{5\pi}{6} give sin⁡θ=12\sin \theta = \frac{1}{2}. Only π6\frac{\pi}{6} lies in [−π2,π2][-\frac{\pi}{2}, \frac{\pi}{2}], and it gives 2cos⁡π6=3=4−12 \cos \frac{\pi}{6} = \sqrt{3} = \sqrt{4 - 1}. The other angle would give 2cos⁡5π6=−32 \cos \frac{5\pi}{6} = -\sqrt{3}, the wrong sign.

Absolute values in square roots

Definition For every real number ww, w2=∣w∣\sqrt{w^2} = \lvert w \rvert. In a trigonometric substitution this means a2cos⁡2θ=a∣cos⁡θ∣\sqrt{a^2 \cos^2 \theta} = a \lvert \cos \theta \rvert, a2sec⁡2θ=a∣sec⁡θ∣\sqrt{a^2 \sec^2 \theta} = a \lvert \sec \theta \rvert and a2tan⁡2θ=a∣tan⁡θ∣\sqrt{a^2 \tan^2 \theta} = a \lvert \tan \theta \rvert. The absolute value can be dropped only when the branch guarantees the sign.

In plain words A square root is never negative. If the trigonometric function can be negative on your range of θ\theta, the absolute value has to stay.

Example With x=sec⁡θx = \sec \theta and x=−2x = -2, the branch gives θ=arcsec⁡(−2)=2π3\theta = \operatorname{arcsec}(-2) = \frac{2\pi}{3}. There tan⁡θ=−3\tan \theta = -\sqrt{3}, while x2−1=3\sqrt{x^2 - 1} = \sqrt{3}. So x2−1=∣tan⁡θ∣=−tan⁡θ\sqrt{x^2 - 1} = \lvert \tan \theta \rvert = -\tan \theta for this xx, not tan⁡θ\tan \theta.

Reference triangles

Definition To write a result in θ\theta back in terms of xx, use a right triangle with an acute angle θ\theta whose sides match the substitution. For x=asin⁡θx = a \sin \theta the opposite side is xx, the hypotenuse aa and the adjacent side a2−x2\sqrt{a^2 - x^2}. For x=atan⁡θx = a \tan \theta the opposite side is xx, the adjacent side aa and the hypotenuse a2+x2\sqrt{a^2 + x^2}. For x=asec⁡θx = a \sec \theta the hypotenuse is xx, the adjacent side aa and the opposite side x2−a2\sqrt{x^2 - a^2}. The triangle is drawn for 0<θ<π20 < \theta < \frac{\pi}{2}, but the formulas it gives for the sine and tangent substitutions hold on the whole branch, since they follow from the identities and the sign of cos⁡θ\cos \theta or sec⁡θ\sec \theta there. For the secant substitution with x≤−ax \le -a, check signs using the previous section.

In plain words Draw the triangle, label two sides from the substitution, get the third side from the Pythagorean theorem, and read off any trigonometric function of θ\theta.

Example For ∫dxx29−x2\int \frac{dx}{x^2 \sqrt{9 - x^2}} put x=3sin⁡θx = 3 \sin \theta, so dx=3cos⁡θ dθdx = 3 \cos \theta \, d\theta and 9−x2=3cos⁡θ\sqrt{9 - x^2} = 3 \cos \theta.

∫3cos⁡θ9sin⁡2θ⋅3cos⁡θ dθ=19∫csc⁡2θ dθ=−19cot⁡θ+C.\int \frac{3 \cos \theta}{9 \sin^2 \theta \cdot 3 \cos \theta} \, d\theta = \frac{1}{9} \int \csc^2 \theta \, d\theta = -\frac{1}{9} \cot \theta + C.

The triangle has opposite side xx, hypotenuse 33 and adjacent side 9−x2\sqrt{9 - x^2}, so cot⁡θ=9−x2x\cot \theta = \frac{\sqrt{9 - x^2}}{x} and

∫dxx29−x2=−9−x29x+C,\int \frac{dx}{x^2 \sqrt{9 - x^2}} = -\frac{\sqrt{9 - x^2}}{9x} + C,

valid on 0<x<30 < x < 3 and on −3<x<0-3 < x < 0.

Check yourself

  1. Evaluate ∫03dx9+x2\int_0^3 \frac{dx}{9 + x^2}.
Show the answer

The arctangent form with a=3a = 3 gives

∫03dx9+x2=[13arctan⁡x3]03=13⋅π4=π12.\int_0^3 \frac{dx}{9 + x^2} = \Big[ \frac{1}{3} \arctan \frac{x}{3} \Big]_0^3 = \frac{1}{3} \cdot \frac{\pi}{4} = \frac{\pi}{12}.
  1. Find ∫x21−x2 dx\int \frac{x^2}{\sqrt{1 - x^2}} \, dx for −1<x<1-1 < x < 1.
Show the answer

Put x=sin⁡θx = \sin \theta with −π2<θ<π2-\frac{\pi}{2} < \theta < \frac{\pi}{2}, so 1−x2=cos⁡θ\sqrt{1 - x^2} = \cos \theta, dx=cos⁡θ dθdx = \cos \theta \, d\theta and the integral is

∫sin⁡2θ dθ=θ2−sin⁡θcos⁡θ2+C.\int \sin^2 \theta \, d\theta = \frac{\theta}{2} - \frac{\sin \theta \cos \theta}{2} + C.

Back in xx this is

12(arcsin⁡x−x1−x2)+C.\frac{1}{2} \left( \arcsin x - x\sqrt{1 - x^2} \right) + C.
  1. With x=3tan⁡θx = 3 \tan \theta and −π2<θ<π2-\frac{\pi}{2} < \theta < \frac{\pi}{2}, write x2+9\sqrt{x^2 + 9} and sin⁡θ\sin \theta in terms of xx.
Show the answer

The root is x2+9=3sec⁡θ\sqrt{x^2 + 9} = 3 \sec \theta, since sec⁡θ>0\sec \theta > 0 on this range. The triangle with opposite side xx and adjacent side 33 has hypotenuse x2+9\sqrt{x^2 + 9}, so sin⁡θ=xx2+9\sin \theta = \frac{x}{\sqrt{x^2 + 9}}, and this holds for negative xx too.

How this lesson connects

It also uses inverse trigonometry and radicals.