Practice / Calculus

Trigonometric substitution: sin, tan and sec, the triangle and the limits

Ten integrals by trigonometric substitution: an arcsine with new limits, the area formula for √(1 − x²), x³/√(4 − x²) two ways, 1/(1 + x²)² by x = tan θ, ln(1 + √2) from ∫ sec θ, a secant substitution read back off the triangle, completing the square first, the area of an ellipse, √(x² − 4)/x on [2, 4], and the normalizing constant of a Student-t distribution, with worked solutions and the mistakes of dropping the dx, keeping the x-limits and integrating tan²θ by the power rule.

Before you start

A square root of a quadratic, a2−x2\sqrt{a^2 - x^2}, a2+x2\sqrt{a^2 + x^2} or x2−a2\sqrt{x^2 - a^2}, has no obvious antiderivative and nothing for an ordinary substitution to grab. Trigonometric substitution replaces xx with a trig function chosen so that a Pythagorean identity turns the quadratic into a perfect square, and the root disappears. Circle and ellipse areas, arcsines and arctangents, and the normalizing constants of heavy-tailed distributions all come out this way. The work goes wrong in a few places: the dxdx left as dθd\theta, θ\theta-integrals evaluated at xx-limits, a square completed without balancing the constant, the wrong side read off the triangle, and tan⁡2θ\tan^2\theta integrated as if it were a power of θ\theta. These ten problems cover each of them.

  • Which substitution. a2−x2\sqrt{a^2 - x^2}: x=asin⁡θx = a\sin\theta, dx=acos⁡θ dθdx = a\cos\theta\,d\theta, and the root is acos⁡θa\cos\theta. a2+x2\sqrt{a^2 + x^2}: x=atan⁡θx = a\tan\theta, dx=asec⁡2θ dθdx = a\sec^2\theta\,d\theta, and the root is asec⁡θa\sec\theta. x2−a2\sqrt{x^2 - a^2}: x=asec⁡θx = a\sec\theta, dx=asec⁡θtan⁡θ dθdx = a\sec\theta\tan\theta\,d\theta, and the root is atan⁡θa\tan\theta.
  • Why the root simplifies. 1−sin⁡2θ=cos⁡2θ1 - \sin^2\theta = \cos^2\theta, 1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta and sec⁡2θ−1=tan⁡2θ\sec^2\theta - 1 = \tan^2\theta. The ranges −π2≤θ≤π2-\tfrac\pi2 \le \theta \le \tfrac\pi2 for sin⁡\sin, −π2<θ<π2-\tfrac\pi2 < \theta < \tfrac\pi2 for tan⁡\tan and 0≤θ<π20 \le \theta < \tfrac\pi2 for sec⁡\sec (with x≥ax \ge a) keep the result positive, so no absolute value is needed.
  • Back to xx. Draw a right triangle from the substitution: sin⁡θ=xa\sin\theta = \tfrac xa means opposite xx, hypotenuse aa, adjacent a2−x2\sqrt{a^2 - x^2}. Every other trig function of θ\theta is a ratio of two of its sides.
  • Definite integrals. Change the limits to θ\theta with the substitution and never return to xx; or return to xx first and use the original limits. Not a mixture.
  • Integrals you will need. ∫cos⁡2θ dθ=θ2+sin⁡2θ4\int\cos^2\theta\,d\theta = \tfrac\theta2 + \tfrac{\sin2\theta}4, ∫sin⁡2θ dθ=θ2−sin⁡2θ4\int\sin^2\theta\,d\theta = \tfrac\theta2 - \tfrac{\sin2\theta}4, ∫tan⁡2θ dθ=tan⁡θ−θ\int\tan^2\theta\,d\theta = \tan\theta - \theta and ∫sec⁡θ dθ=ln⁡∣sec⁡θ+tan⁡θ∣\int\sec\theta\,d\theta = \ln\lvert\sec\theta + \tan\theta\rvert.
  • Completing the square. x2+bx+c=(x+b2)2+c−b24x^2 + bx + c = \big(x + \tfrac b2\big)^2 + c - \tfrac{b^2}4 turns any quadratic into one of the three forms.

Builds on: Integration: substitution and parts, Trig identities

Problems

  1. ·

    Evaluate ∫03dx36−x2\displaystyle\int_0^3 \frac{dx}{\sqrt{36 - x^2}}.

  2. ··

    Find ∫1−x2 dx\displaystyle\int \sqrt{1 - x^2}\,dx.

  3. ··

    Find ∫x34−x2 dx\displaystyle\int \frac{x^3}{\sqrt{4 - x^2}}\,dx.

  4. ··

    Find ∫dx(1+x2)2\displaystyle\int \frac{dx}{(1 + x^2)^2}.

  5. ··

    Evaluate ∫01dxx2+1\displaystyle\int_0^1 \frac{dx}{\sqrt{x^2 + 1}}.

  6. ··

    Find ∫dxx2x2−4\displaystyle\int \frac{dx}{x^2\sqrt{x^2 - 4}} for x>2x > 2.

  7. ···

    Evaluate ∫−21dx(x2+4x+13)3/2\displaystyle\int_{-2}^{1} \frac{dx}{(x^2 + 4x + 13)^{3/2}}.

  8. ···

    Find the area inside the ellipse x29+y24=1\dfrac{x^2}{9} + \dfrac{y^2}{4} = 1, and then inside x2a2+y2b2=1\dfrac{x^2}{a^2} + \dfrac{y^2}{b^2} = 1.

  9. ···

    Evaluate ∫24x2−4x dx\displaystyle\int_2^4 \frac{\sqrt{x^2 - 4}}{x}\,dx.

  10. ···

    The Student-t distribution with 33 degrees of freedom has density c(1+x23)−2c\Big(1 + \dfrac{x^2}{3}\Big)^{-2} on the whole real line. Find cc.

Worked solutions

Problem 1

Evaluate ∫03dx36−x2\displaystyle\int_0^3 \frac{dx}{\sqrt{36 - x^2}}.

  1. x=6sin⁡θx = 6\sin\theta, dx=6cos⁡θ dθdx = 6\cos\theta\,d\theta, 36−x2=6cos⁡θ\sqrt{36 - x^2} = 6\cos\thetaThe form a2−x2a^2 - x^2 with a=6a = 6.
  2. x=0⇒θ=0x = 0 \Rightarrow \theta = 0; x=3⇒sin⁡θ=12x = 3 \Rightarrow \sin\theta = \tfrac12, θ=π6\theta = \tfrac\pi6Change the limits with the variable.
  3. ∫0π/66cos⁡θ6cos⁡θ dθ=∫0π/6dθ\displaystyle\int_0^{\pi/6} \frac{6\cos\theta}{6\cos\theta}\,d\theta = \int_0^{\pi/6} d\thetaEverything cancels except dθd\theta.
  4. π6≈0.5236\tfrac\pi6 \approx 0.5236The same as arcsin⁡36−arcsin⁡0\arcsin\tfrac36 - \arcsin0, from ∫dxa2−x2=arcsin⁡xa+C\int\tfrac{dx}{\sqrt{a^2 - x^2}} = \arcsin\tfrac xa + C.

Problem 2

Find ∫1−x2 dx\displaystyle\int \sqrt{1 - x^2}\,dx.

  1. x=sin⁡θx = \sin\theta, dx=cos⁡θ dθdx = \cos\theta\,d\theta, 1−x2=cos⁡θ\sqrt{1 - x^2} = \cos\thetaThe form a2−x2a^2 - x^2 with a=1a = 1.
  2. ∫cos⁡θ⋅cos⁡θ dθ=∫cos⁡2θ dθ\displaystyle\int \cos\theta\cdot\cos\theta\,d\theta = \int\cos^2\theta\,d\thetaOne cos⁡θ\cos\theta from the root and one from dxdx.
  3. =θ2+sin⁡2θ4=θ2+sin⁡θcos⁡θ2= \dfrac\theta2 + \dfrac{\sin2\theta}4 = \dfrac\theta2 + \dfrac{\sin\theta\cos\theta}2cos⁡2θ=1+cos⁡2θ2\cos^2\theta = \tfrac{1 + \cos2\theta}2, then sin⁡2θ=2sin⁡θcos⁡θ\sin2\theta = 2\sin\theta\cos\theta to prepare for the triangle.
  4. θ=arcsin⁡x\theta = \arcsin x, sin⁡θ=x\sin\theta = x, cos⁡θ=1−x2\cos\theta = \sqrt{1 - x^2}From the triangle with opposite xx and hypotenuse 11.
  5. 12(arcsin⁡x+x1−x2)+C\tfrac12\big(\arcsin x + x\sqrt{1 - x^2}\big) + CFrom 00 to 11 this gives 12⋅π2=π4\tfrac12\cdot\tfrac\pi2 = \tfrac\pi4, the area of a quarter of the unit circle.

Problem 3

Find ∫x34−x2 dx\displaystyle\int \frac{x^3}{\sqrt{4 - x^2}}\,dx.

  1. x=2sin⁡θx = 2\sin\theta, dx=2cos⁡θ dθdx = 2\cos\theta\,d\theta, 4−x2=2cos⁡θ\sqrt{4 - x^2} = 2\cos\thetaThe form a2−x2a^2 - x^2 with a=2a = 2.
  2. ∫8sin⁡3θ⋅2cos⁡θ2cos⁡θ dθ=8∫sin⁡3θ dθ\displaystyle\int \frac{8\sin^3\theta\cdot2\cos\theta}{2\cos\theta}\,d\theta = 8\int\sin^3\theta\,d\thetax3=8sin⁡3θx^3 = 8\sin^3\theta.
  3. 8∫(1−cos⁡2θ)sin⁡θ dθ=−8cos⁡θ+83cos⁡3θ8\displaystyle\int(1 - \cos^2\theta)\sin\theta\,d\theta = -8\cos\theta + \tfrac83\cos^3\thetaSave one sin⁡θ\sin\theta and substitute w=cos⁡θw = \cos\theta, dw=−sin⁡θ dθdw = -\sin\theta\,d\theta.
  4. cos⁡θ=4−x22\cos\theta = \tfrac{\sqrt{4 - x^2}}{2}, so 8cos⁡θ=44−x28\cos\theta = 4\sqrt{4 - x^2} and 83cos⁡3θ=13(4−x2)3/2\tfrac83\cos^3\theta = \tfrac13(4 - x^2)^{3/2}Back to xx with the triangle.
  5. 13(4−x2)3/2−44−x2+C\tfrac13(4 - x^2)^{3/2} - 4\sqrt{4 - x^2} + CAnother route: u=4−x2u = 4 - x^2, x2=4−ux^2 = 4 - u and x dx=−12dux\,dx = -\tfrac12du give the same answer without any trig. An odd power of xx in front of the root always allows it.

Problem 4

Find ∫dx(1+x2)2\displaystyle\int \frac{dx}{(1 + x^2)^2}.

  1. x=tan⁡θx = \tan\theta, dx=sec⁡2θ dθdx = \sec^2\theta\,d\theta, 1+x2=sec⁡2θ1 + x^2 = \sec^2\thetaThe form a2+x2a^2 + x^2 with a=1a = 1; there is no root, but the identity still helps.
  2. ∫sec⁡2θsec⁡4θ dθ=∫cos⁡2θ dθ=θ2+sin⁡θcos⁡θ2\displaystyle\int \frac{\sec^2\theta}{\sec^4\theta}\,d\theta = \int\cos^2\theta\,d\theta = \frac\theta2 + \frac{\sin\theta\cos\theta}2As in Problem 2.
  3. sin⁡θ=x1+x2\sin\theta = \dfrac{x}{\sqrt{1 + x^2}}, cos⁡θ=11+x2\cos\theta = \dfrac{1}{\sqrt{1 + x^2}}, so sin⁡θcos⁡θ=x1+x2\sin\theta\cos\theta = \dfrac{x}{1 + x^2}The triangle has opposite xx, adjacent 11 and hypotenuse 1+x2\sqrt{1 + x^2}.
  4. 12arctan⁡x+x2(1+x2)+C\tfrac12\arctan x + \dfrac{x}{2(1 + x^2)} + COver the whole line the second term vanishes at both ends, so ∫−∞∞dx(1+x2)2=12⋅π=π2\int_{-\infty}^\infty\tfrac{dx}{(1 + x^2)^2} = \tfrac12\cdot\pi = \tfrac\pi2.

Problem 5

Evaluate ∫01dxx2+1\displaystyle\int_0^1 \frac{dx}{\sqrt{x^2 + 1}}.

  1. x=tan⁡θx = \tan\theta, dx=sec⁡2θ dθdx = \sec^2\theta\,d\theta, x2+1=sec⁡θ\sqrt{x^2 + 1} = \sec\thetaThe form a2+x2a^2 + x^2 with a=1a = 1.
  2. x=0⇒θ=0x = 0 \Rightarrow \theta = 0; x=1⇒θ=π4x = 1 \Rightarrow \theta = \tfrac\pi4New limits.
  3. ∫0π/4sec⁡2θsec⁡θ dθ=∫0π/4sec⁡θ dθ=[ln⁡∣sec⁡θ+tan⁡θ∣]0π/4\displaystyle\int_0^{\pi/4}\frac{\sec^2\theta}{\sec\theta}\,d\theta = \int_0^{\pi/4}\sec\theta\,d\theta = \Big[\ln\lvert\sec\theta + \tan\theta\rvert\Big]_0^{\pi/4}The standard antiderivative of sec⁡θ\sec\theta.
  4. ln⁡(2+1)−ln⁡(1+0)\ln(\sqrt2 + 1) - \ln(1 + 0)sec⁡π4=2\sec\tfrac\pi4 = \sqrt2, tan⁡π4=1\tan\tfrac\pi4 = 1.
  5. ln⁡(1+2)≈0.8814\ln(1 + \sqrt2) \approx 0.8814In terms of xx the antiderivative is ln⁡(x+x2+1)\ln\big(x + \sqrt{x^2 + 1}\big), which is sinh⁡−1x\sinh^{-1}x.

Problem 6

Find ∫dxx2x2−4\displaystyle\int \frac{dx}{x^2\sqrt{x^2 - 4}} for x>2x > 2.

  1. x=2sec⁡θx = 2\sec\theta, dx=2sec⁡θtan⁡θ dθdx = 2\sec\theta\tan\theta\,d\theta, x2−4=2tan⁡θ\sqrt{x^2 - 4} = 2\tan\thetaThe form x2−a2x^2 - a^2 with a=2a = 2; 0<θ<π20 < \theta < \tfrac\pi2.
  2. ∫2sec⁡θtan⁡θ4sec⁡2θ⋅2tan⁡θ dθ=14∫cos⁡θ dθ=14sin⁡θ\displaystyle\int\frac{2\sec\theta\tan\theta}{4\sec^2\theta\cdot2\tan\theta}\,d\theta = \frac14\int\cos\theta\,d\theta = \frac14\sin\thetatan⁡θ\tan\theta cancels, and 1sec⁡θ=cos⁡θ\tfrac{1}{\sec\theta} = \cos\theta.
  3. sec⁡θ=x2\sec\theta = \tfrac x2: hypotenuse xx, adjacent 22, opposite x2−4\sqrt{x^2 - 4}, so sin⁡θ=x2−4x\sin\theta = \dfrac{\sqrt{x^2 - 4}}{x}sec⁡\sec is hypotenuse over adjacent.
  4. x2−44x+C\dfrac{\sqrt{x^2 - 4}}{4x} + CCheck: the derivative is 14⋅x⋅xx2−4−x2−4x2=1x2x2−4\tfrac{1}{4}\cdot\tfrac{x\cdot\frac{x}{\sqrt{x^2 - 4}} - \sqrt{x^2 - 4}}{x^2} = \tfrac{1}{x^2\sqrt{x^2 - 4}}.

Problem 7

Evaluate ∫−21dx(x2+4x+13)3/2\displaystyle\int_{-2}^{1} \frac{dx}{(x^2 + 4x + 13)^{3/2}}.

  1. x2+4x+13=(x+2)2+9x^2 + 4x + 13 = (x + 2)^2 + 9Complete the square: (x+2)2=x2+4x+4(x + 2)^2 = x^2 + 4x + 4, so add 99 to reach 1313.
  2. u=x+2u = x + 2: ∫03du(u2+9)3/2\displaystyle\int_0^3 \frac{du}{(u^2 + 9)^{3/2}}A shift; the limits −2-2 and 11 become 00 and 33.
  3. u=3tan⁡θu = 3\tan\theta, du=3sec⁡2θ dθdu = 3\sec^2\theta\,d\theta, (u2+9)3/2=27sec⁡3θ(u^2 + 9)^{3/2} = 27\sec^3\theta; θ\theta from 00 to π4\tfrac\pi4The form a2+u2a^2 + u^2 with a=3a = 3; u=3u = 3 gives tan⁡θ=1\tan\theta = 1.
  4. ∫0π/43sec⁡2θ27sec⁡3θ dθ=19∫0π/4cos⁡θ dθ=19sin⁡π4\displaystyle\int_0^{\pi/4}\frac{3\sec^2\theta}{27\sec^3\theta}\,d\theta = \frac19\int_0^{\pi/4}\cos\theta\,d\theta = \frac19\sin\frac\pi4327=19\tfrac{3}{27} = \tfrac19.
  5. 218≈0.07857\dfrac{\sqrt2}{18} \approx 0.0785719⋅22\tfrac19\cdot\tfrac{\sqrt2}2.

Problem 8

Find the area inside the ellipse x29+y24=1\dfrac{x^2}{9} + \dfrac{y^2}{4} = 1, and then inside x2a2+y2b2=1\dfrac{x^2}{a^2} + \dfrac{y^2}{b^2} = 1.

  1. The top half is y=239−x2y = \tfrac23\sqrt{9 - x^2}, so the area is 4∫03239−x2 dx4\displaystyle\int_0^3 \tfrac23\sqrt{9 - x^2}\,dxFour symmetric quarters.
  2. x=3sin⁡θx = 3\sin\theta, θ\theta from 00 to π2\tfrac\pi2: ∫039−x2 dx=∫0π/29cos⁡2θ dθ=9π4\displaystyle\int_0^3\sqrt{9 - x^2}\,dx = \int_0^{\pi/2}9\cos^2\theta\,d\theta = \frac{9\pi}4∫0π/2cos⁡2θ dθ=π4\int_0^{\pi/2}\cos^2\theta\,d\theta = \tfrac\pi4: the sin⁡2θ\sin2\theta term is 00 at both ends.
  3. 4⋅23⋅9π4=6π4\cdot\tfrac23\cdot\tfrac{9\pi}4 = 6\piThe area for a=3a = 3, b=2b = 2.
  4. In general 4⋅ba∫0aa2−x2 dx=4⋅ba⋅πa244\cdot\dfrac ba\displaystyle\int_0^a\sqrt{a^2 - x^2}\,dx = 4\cdot\dfrac ba\cdot\dfrac{\pi a^2}4The same substitution with x=asin⁡θx = a\sin\theta.
  5. 6π≈18.856\pi \approx 18.85; in general πab\pi abWith a=b=ra = b = r it is the circle's πr2\pi r^2.

Problem 9

Evaluate ∫24x2−4x dx\displaystyle\int_2^4 \frac{\sqrt{x^2 - 4}}{x}\,dx.

  1. x=2sec⁡θx = 2\sec\theta, dx=2sec⁡θtan⁡θ dθdx = 2\sec\theta\tan\theta\,d\theta, x2−4=2tan⁡θ\sqrt{x^2 - 4} = 2\tan\thetaThe form x2−a2x^2 - a^2 with a=2a = 2.
  2. x=2⇒θ=0x = 2 \Rightarrow \theta = 0; x=4⇒sec⁡θ=2x = 4 \Rightarrow \sec\theta = 2, θ=π3\theta = \tfrac\pi3cos⁡θ=12\cos\theta = \tfrac12.
  3. ∫0π/32tan⁡θ2sec⁡θ⋅2sec⁡θtan⁡θ dθ=2∫0π/3tan⁡2θ dθ\displaystyle\int_0^{\pi/3}\frac{2\tan\theta}{2\sec\theta}\cdot2\sec\theta\tan\theta\,d\theta = 2\int_0^{\pi/3}\tan^2\theta\,d\thetasec⁡θ\sec\theta cancels.
  4. 2∫0π/3(sec⁡2θ−1) dθ=2[tan⁡θ−θ]0π/32\displaystyle\int_0^{\pi/3}(\sec^2\theta - 1)\,d\theta = 2\Big[\tan\theta - \theta\Big]_0^{\pi/3}Rewrite tan⁡2θ\tan^2\theta with the identity; sec⁡2θ\sec^2\theta has antiderivative tan⁡θ\tan\theta.
  5. 23−2π3≈1.3702\sqrt3 - \dfrac{2\pi}3 \approx 1.370tan⁡π3=3\tan\tfrac\pi3 = \sqrt3.

Problem 10

The Student-t distribution with 33 degrees of freedom has density c(1+x23)−2c\Big(1 + \dfrac{x^2}{3}\Big)^{-2} on the whole real line. Find cc.

  1. cc is 11 over ∫−∞∞(1+x23)−2dx\displaystyle\int_{-\infty}^\infty\Big(1 + \frac{x^2}3\Big)^{-2}dxA density has to integrate to 11.
  2. x=3tan⁡θx = \sqrt3\tan\theta, dx=3sec⁡2θ dθdx = \sqrt3\sec^2\theta\,d\theta, 1+x23=sec⁡2θ1 + \tfrac{x^2}3 = \sec^2\theta; θ\theta runs over (−π2,π2)\big(-\tfrac\pi2, \tfrac\pi2\big)As x→±∞x \to \pm\infty, θ→±π2\theta \to \pm\tfrac\pi2, so the improper integral becomes an ordinary one.
  3. ∫−π/2π/23sec⁡2θsec⁡4θ dθ=3∫−π/2π/2cos⁡2θ dθ=3⋅π2\displaystyle\int_{-\pi/2}^{\pi/2}\frac{\sqrt3\sec^2\theta}{\sec^4\theta}\,d\theta = \sqrt3\int_{-\pi/2}^{\pi/2}\cos^2\theta\,d\theta = \sqrt3\cdot\frac\pi2The same ∫cos⁡2θ\int\cos^2\theta as Problem 4.
  4. c=23 π≈0.3676c = \dfrac{2}{\sqrt3\,\pi} \approx 0.3676This matches the general formula Γ((ν+1)/2)νπ Γ(ν/2)\tfrac{\Gamma((\nu + 1)/2)}{\sqrt{\nu\pi}\,\Gamma(\nu/2)} at ν=3\nu = 3. The tails fall off like x−4x^{-4}, much more slowly than a Gaussian's, which is why a t likelihood is robust to outliers.

Where this goes wrong

1. Leaving out the dx

After substituting for xx in the integrand, dxdx is swapped for dθd\theta as if the two were the same.

  1. ∫011−x2 dx\displaystyle\int_0^1\sqrt{1 - x^2}\,dx with x=sin⁡θx = \sin\theta, so 1−x2=cos⁡θ\sqrt{1 - x^2} = \cos\theta and θ\theta runs from 00 to π2\tfrac\pi2Right so far: Problem 2, on [0,1][0, 1].
  2. “Replace dxdx with dθd\theta.”The habit that causes the mistake: the substitution applied to the integrand only.
  3. ∫0π/2cos⁡θ dθ=1\displaystyle\int_0^{\pi/2}\cos\theta\,d\theta = 1dx=cos⁡θ dθdx = \cos\theta\,d\theta, so the integrand is cos⁡2θ\cos^2\theta, and the area of a quarter of the unit circle is π4≈0.785\tfrac\pi4 \approx 0.785, not 11.

2. Keeping the x-limits

The new integral in θ\theta is evaluated at the numbers that were on the original integral sign.

  1. ∫03dx36−x2=∫dθ\displaystyle\int_0^3\frac{dx}{\sqrt{36 - x^2}} = \int d\theta with x=6sin⁡θx = 6\sin\thetaRight so far: Problem 1, step 3.
  2. “The limits are 00 and 33.”The habit that causes the mistake: the limits copied across without changing variable.
  3. ∫03dθ=3\displaystyle\int_0^3 d\theta = 333 is a value of xx. At x=3x = 3, sin⁡θ=12\sin\theta = \tfrac12 and θ=π6\theta = \tfrac\pi6, so the answer is π6≈0.524\tfrac\pi6 \approx 0.524. Either change the limits or return to xx, as arcsin⁡x6\arcsin\tfrac x6, before evaluating.

3. Completing the square without balancing

The square is built from the x2x^2 and xx terms, and the constant is left as it was.

  1. x2+4x+13x^2 + 4x + 13 contains x2+4xx^2 + 4x, which is the start of (x+2)2(x + 2)^2Right so far: Problem 7, step 1.
  2. “So x2+4x+13=(x+2)2+13x^2 + 4x + 13 = (x + 2)^2 + 13.”The habit that causes the mistake: (x+2)2(x + 2)^2 also contains +4+4, which has to be taken back out.
  3. ∫03du(u2+13)3/2=31322≈0.0492\displaystyle\int_0^3\frac{du}{(u^2 + 13)^{3/2}} = \frac{3}{13\sqrt{22}} \approx 0.0492(x+2)2+13=x2+4x+17(x + 2)^2 + 13 = x^2 + 4x + 17, a different quadratic. The correct form is (x+2)2+9(x + 2)^2 + 9, and the integral is 218≈0.0786\tfrac{\sqrt2}{18} \approx 0.0786. Expand the completed square to check it.

4. Reading the wrong side off the triangle

With three sides and six trig functions, it is easy to pick the ratio for the wrong one.

  1. ∫dxx2x2−4=14sin⁡θ+C\displaystyle\int\frac{dx}{x^2\sqrt{x^2 - 4}} = \frac14\sin\theta + C with x=2sec⁡θx = 2\sec\thetaRight so far: Problem 6, step 2.
  2. “sec⁡θ=x2\sec\theta = \tfrac x2, so sin⁡θ=2x\sin\theta = \tfrac2x.”The habit that causes the mistake: the substitution's ratio flipped and used for a different function. 2x\tfrac2x is cos⁡θ\cos\theta.
  3. The answer is 14⋅2x=12x+C\dfrac14\cdot\dfrac2x = \dfrac{1}{2x} + CDifferentiate it: −12x2-\tfrac{1}{2x^2} is negative, but the integrand is positive. At x=4x = 4 the derivative is −0.03125-0.03125 and the integrand is 11612≈0.0180\tfrac{1}{16\sqrt{12}} \approx 0.0180. With hypotenuse xx and adjacent 22, the opposite side is x2−4\sqrt{x^2 - 4} and sin⁡θ=x2−4x\sin\theta = \tfrac{\sqrt{x^2 - 4}}x.

5. Integrating tan²θ by the power rule

tan⁡2θ\tan^2\theta looks like u2u^2, and ∫u2=u33\int u^2 = \tfrac{u^3}3.

  1. ∫24x2−4x dx=2∫0π/3tan⁡2θ dθ\displaystyle\int_2^4\frac{\sqrt{x^2 - 4}}{x}\,dx = 2\int_0^{\pi/3}\tan^2\theta\,d\thetaRight so far: Problem 9, step 3.
  2. “∫tan⁡2θ dθ=13tan⁡3θ\int\tan^2\theta\,d\theta = \tfrac13\tan^3\theta.”The habit that causes the mistake: the power rule needs the derivative of tan⁡θ\tan\theta, which is sec⁡2θ\sec^2\theta, alongside it, and there is none here.
  3. 2⋅13tan⁡3π3=23(3)3=23≈3.4642\cdot\tfrac13\tan^3\tfrac\pi3 = \tfrac23(\sqrt3)^3 = 2\sqrt3 \approx 3.464Differentiating 13tan⁡3θ\tfrac13\tan^3\theta gives tan⁡2θsec⁡2θ\tan^2\theta\sec^2\theta, not tan⁡2θ\tan^2\theta. Use tan⁡2θ=sec⁡2θ−1\tan^2\theta = \sec^2\theta - 1: the answer is 23−2π3≈1.3702\sqrt3 - \tfrac{2\pi}3 \approx 1.370.

Print this set: trigonometric-substitution.pdf (problems, answers, and worked solutions on separate pages).

Read the guide: Trig substitution: pick sin, tan, or sec from the square root, then draw the triangle