Single-Variable-Calculus · Unit 22 · Video 2 · Interactive Practice

Trig Substitution x = tan θ and the Triangle Trick

IKey Formulas

FormulaNameRole
x=tan⁡θ: 1+x2=sec⁡θ,dx=sec⁡2θ dθx = \tan\theta:\ \sqrt{1 + x^2} = \sec\theta,\quad dx = \sec^2\theta\,d\thetaThe substitutionRemoves 1+x2\sqrt{1 + x^2} (for −π2<θ<π2-\tfrac{\pi}{2} < \theta < \tfrac{\pi}{2})
∫dxx21+x2=∫cos⁡θ dθsin⁡2θ=−csc⁡θ+c\displaystyle\int \frac{dx}{x^2\sqrt{1 + x^2}} = \int \frac{\cos\theta\,d\theta}{\sin^2\theta} = -\csc\theta + cThe trig integralCancel, rewrite in sines and cosines, then u=sin⁡θu = \sin\theta
csc⁡(arctan⁡x)=1+x2x\csc(\arctan x) = \dfrac{\sqrt{1 + x^2}}{x}The triangle trickLegs 11 and xx, hypotenuse 1+x2\sqrt{1 + x^2}
∫dxx21+x2=−1+x2x+c\displaystyle\int \frac{dx}{x^2\sqrt{1 + x^2}} = -\frac{\sqrt{1 + x^2}}{x} + cBack in terms of xxValid for every x≠0x \ne 0

Key Insight: A trigonometric function of an inverse trigonometric function is algebra: put the substitution's ratio on two sides of a right triangle, find the third side by Pythagoras, and read off the function you need.

IIVisualization 1 — The Triangle Trick

Two sides carry the substitution's ratio, Pythagoras gives the third, and any other trigonometric function of θ\theta is a ratio of sides.

IIIVisualization 2 — Checking the Answer for Every x≠0x \ne 0

The triangle assumed x>0x > 0, yet the slope of −1+x2/x-\sqrt{1 + x^2}/x equals the integrand on both sides of 00.

IVQuiz Questions

Problem 1 · Substituting Every Piece

Given: ∫dx(1+x2)3/2\displaystyle\int \frac{dx}{(1 + x^2)^{3/2}} with x=tan⁡θx = \tan\theta, −π2<θ<π2-\tfrac{\pi}{2} < \theta < \tfrac{\pi}{2} — find the integral in θ\theta after simplifying.

✅ Correct! (1+tan⁡2θ)3/2=sec⁡3θ(1 + \tan^2\theta)^{3/2} = \sec^3\theta and dx=sec⁡2θ dθdx = \sec^2\theta\,d\theta, so the integrand is sec⁡2θ/sec⁡3θ=cos⁡θ\sec^2\theta/\sec^3\theta = \cos\theta.
❌ Not quite. dxdx must be replaced too: dx=sec⁡2θ dθdx = \sec^2\theta\,d\theta, which cancels two of the three secants in the denominator.
❌ Not quite. The secants sit in the denominator: sec⁡2θsec⁡3θ=1sec⁡θ=cos⁡θ\dfrac{\sec^2\theta}{\sec^3\theta} = \dfrac{1}{\sec\theta} = \cos\theta.
❌ Not quite. 1+x2=sec⁡θ\sqrt{1 + x^2} = \sec\theta, so (1+x2)3/2=sec⁡3θ(1 + x^2)^{3/2} = \sec^3\theta belongs in the denominator, and dx=sec⁡2θ dθdx = \sec^2\theta\,d\theta.
Show solution

With x=tan⁡θx = \tan\theta: 1+x2=sec⁡2θ1 + x^2 = \sec^2\theta, so (1+x2)3/2=sec⁡3θ(1 + x^2)^{3/2} = \sec^3\theta (the secant is positive on −π2<θ<π2-\tfrac{\pi}{2} < \theta < \tfrac{\pi}{2}), and dx=sec⁡2θ dθdx = \sec^2\theta\,d\theta.

∫dx(1+x2)3/2=∫sec⁡2θ dθsec⁡3θ=∫cos⁡θ dθ.\int \frac{dx}{(1 + x^2)^{3/2}} = \int \frac{\sec^2\theta\,d\theta}{\sec^3\theta} = \int \cos\theta\,d\theta.

Problem 2 · Reading a Triangle

Given: θ=arctan⁡x\theta = \arctan x — find cos⁡θ\cos\theta as an algebraic expression in xx.

✅ Correct! With legs 11 (adjacent) and xx (opposite), the hypotenuse is 1+x2\sqrt{1 + x^2}, and cosine is adjacent over hypotenuse.
❌ Close, but… 1+x2\sqrt{1 + x^2} is hypotenuse over adjacent, which is sec⁡θ\sec\theta. The cosine is its reciprocal.
❌ Not quite. That is opposite over hypotenuse, sin⁡θ\sin\theta. The cosine uses the adjacent side, which is 11.
❌ Check Pythagoras. xx and 11 are the two legs, so the hypotenuse is 12+x2\sqrt{1^2 + x^2}; no side here is 1−x2\sqrt{1 - x^2}.
❌ Not quite. Draw the triangle: adjacent 11, opposite xx, hypotenuse 1+x2\sqrt{1 + x^2}.
Show solution

tan⁡θ=x=x1\tan\theta = x = \dfrac{x}{1} = opposite over adjacent. Take opposite xx and adjacent 11; by Pythagoras the hypotenuse is 1+x2\sqrt{1 + x^2}. Then

cos⁡(arctan⁡x)=adjacenthypotenuse=11+x2.\cos(\arctan x) = \frac{\text{adjacent}}{\text{hypotenuse}} = \frac{1}{\sqrt{1 + x^2}}.

For x<0x < 0 the angle lies in (−π2,0)(-\tfrac{\pi}{2}, 0), where the cosine is still positive, so the formula holds for every xx.

Problem 3 · All Four Stages

Find ∫dx(1+x2)3/2\displaystyle\int \frac{dx}{(1 + x^2)^{3/2}} as a function of xx, with no trigonometric functions left.

✅ Correct! ∫cos⁡θ dθ=sin⁡θ+c\int\cos\theta\,d\theta = \sin\theta + c, and the triangle gives sin⁡(arctan⁡x)=x/1+x2\sin(\arctan x) = x/\sqrt{1 + x^2}.
❌ Not quite. The antiderivative of cos⁡θ\cos\theta is sin⁡θ\sin\theta, so read off the sine (opposite over hypotenuse), not the cosine.
❌ Check the sign. ∫cos⁡θ dθ=+sin⁡θ\int \cos\theta\,d\theta = +\sin\theta; the minus sign belongs to ∫sin⁡θ dθ\int \sin\theta\,d\theta.
❌ Not quite. That is csc⁡θ\csc\theta, hypotenuse over opposite. The antiderivative here is sin⁡θ\sin\theta, opposite over hypotenuse.
❌ Not quite. Substitute x=tan⁡θx = \tan\theta, integrate in θ\theta, then use the triangle to return to xx.
Show solution

Substitute x=tan⁡θx = \tan\theta: as in Problem 1 the integral becomes ∫cos⁡θ dθ=sin⁡θ+c\displaystyle\int \cos\theta\,d\theta = \sin\theta + c.

Undo with the triangle: opposite xx, adjacent 11, hypotenuse 1+x2\sqrt{1 + x^2}, so sin⁡θ=x1+x2\sin\theta = \dfrac{x}{\sqrt{1 + x^2}}:

∫dx(1+x2)3/2=x1+x2+c.\int \frac{dx}{(1 + x^2)^{3/2}} = \frac{x}{\sqrt{1 + x^2}} + c.

Check: ddxx1+x2=1+x2−x21+x21+x2=(1+x2)−x2(1+x2)3/2=1(1+x2)3/2\dfrac{d}{dx}\dfrac{x}{\sqrt{1 + x^2}} = \dfrac{\sqrt{1 + x^2} - \dfrac{x^2}{\sqrt{1 + x^2}}}{1 + x^2} = \dfrac{(1 + x^2) - x^2}{(1 + x^2)^{3/2}} = \dfrac{1}{(1 + x^2)^{3/2}}.

Problem 4 · A Different Pair

Given: x>1x > 1 and θ=arcsec⁡x\theta = \operatorname{arcsec} x, so sec⁡θ=x\sec\theta = x with 0<θ<π20 < \theta < \tfrac{\pi}{2} — find sin⁡θ\sin\theta in terms of xx.

✅ Correct! Hypotenuse xx, adjacent 11, so the opposite side is x2−1\sqrt{x^2 - 1} and the sine is opposite over hypotenuse.
❌ Not quite. 1/x1/x is adjacent over hypotenuse, cos⁡θ\cos\theta, the reciprocal of sec⁡θ=x\sec\theta = x.
❌ Not quite. x2−1\sqrt{x^2 - 1} is opposite over adjacent, tan⁡θ\tan\theta. The sine divides by the hypotenuse xx.
❌ Close, but… That is hypotenuse over opposite, csc⁡θ\csc\theta. The sine is its reciprocal.
❌ Not quite. sec⁡θ=x/1\sec\theta = x/1 = hypotenuse over adjacent: put xx on the hypotenuse and 11 on the adjacent side.
Show solution

sec⁡θ=hypotenuseadjacent=x1\sec\theta = \dfrac{\text{hypotenuse}}{\text{adjacent}} = \dfrac{x}{1}. By Pythagoras, opposite =x2−12=x2−1= \sqrt{x^2 - 1^2} = \sqrt{x^2 - 1} (a real side because x>1x > 1). So

sin⁡(arcsec⁡x)=oppositehypotenuse=x2−1x.\sin(\operatorname{arcsec} x) = \frac{\text{opposite}}{\text{hypotenuse}} = \frac{\sqrt{x^2 - 1}}{x}.

Solved: 0 / 4