myLearning

Topic 2 of 7

Step 16: Calculus 2

Trig substitution and partial fractions

Step 16 · Calculus 2 topics

Integrate powers of sine and cosine, use trig substitution for square roots of quadratics, and split rational functions into partial fractions.

Trigonometric integrals

For powers of sine and cosine, use identities to set up a substitution. With an odd power, save one factor for du and turn the rest into the other function with sin²x + cos²x = 1. With only even powers, use the half-angle formulas.

sin⁡2x=1−cos⁡2x2cos⁡2x=1+cos⁡2x2\sin^{2} x = \frac{1 - \cos 2x}{2} \qquad \cos^{2} x = \frac{1 + \cos 2x}{2}

Example: An odd power

Find ∫sin⁡3x dx\int \sin^{3} x\,dx.

  1. Write sin³x as (1 − cos²x) sin x.
  2. Let u = cos x, so du = −sin x dx.
  3. −∫(1−u2) du=−u+u33-\int (1 - u^{2})\,du = -u + \frac{u^{3}}{3}.

Answer−cos⁡x+cos⁡3x3+C-\cos x + \frac{\cos^{3} x}{3} + C

Example: An even power

Find ∫cos⁡2x dx\int \cos^{2} x\,dx.

  1. Use the half-angle formula for cos²x.
  2. Integrate: x2+sin⁡2x4\frac{x}{2} + \frac{\sin 2x}{4}.

Answerx2+sin⁡2x4+C\frac{x}{2} + \frac{\sin 2x}{4} + C

Trigonometric substitution

A square root of a quadratic suggests a right triangle. Substituting a trig function turns the root into a single trig term.

RootSubstituteIdentity used
a2−x2\sqrt{a^{2} - x^{2}}x=asin⁡θx = a\sin\theta1−sin⁡2θ=cos⁡2θ1 - \sin^{2}\theta = \cos^{2}\theta
a2+x2\sqrt{a^{2} + x^{2}}x=atan⁡θx = a\tan\theta1+tan⁡2θ=sec⁡2θ1 + \tan^{2}\theta = \sec^{2}\theta
x2−a2\sqrt{x^{2} - a^{2}}x=asec⁡θx = a\sec\thetasec⁡2θ−1=tan⁡2θ\sec^{2}\theta - 1 = \tan^{2}\theta

Example: A quarter circle

Find ∫024−x2 dx\int_{0}^{2} \sqrt{4 - x^{2}}\,dx.

  1. Let x = 2 sin θ, so dx = 2 cos θ dθ and the root is 2 cos θ.
  2. x from 0 to 2 means θ from 0 to π2\frac{\pi}{2}, so the integral is ∫0π/24cos⁡2θ dθ\int_{0}^{\pi/2} 4\cos^{2}\theta\,d\theta.
  3. With the half-angle formula that is 2θ+sin⁡2θ2\theta + \sin 2\theta from 0 to π2\frac{\pi}{2}.

Answerπ: a quarter of a circle of radius 2

Example: An inverse tangent

Find ∫dxx2+9\int \frac{dx}{x^{2} + 9}.

  1. Let x = 3 tan θ, so dx = 3 sec²θ dθ and x² + 9 = 9 sec²θ.
  2. The integral becomes ∫13 dθ=θ3\int \frac{1}{3}\,d\theta = \frac{\theta}{3}.

Answer13tan⁡−1x3+C\frac{1}{3}\tan^{-1}\frac{x}{3} + C

Partial fractions

A rational function whose bottom factors can be split into simpler fractions, one for each factor. Each piece integrates to a logarithm or a power.

Example: Two linear factors

Find ∫dxx2−1\int \frac{dx}{x^{2} - 1}.

  1. Write 1(x−1)(x+1)=Ax−1+Bx+1\frac{1}{(x - 1)(x + 1)} = \frac{A}{x - 1} + \frac{B}{x + 1}, so 1 = A(x + 1) + B(x − 1).
  2. x = 1 gives A = 12\frac{1}{2}, and x = −1 gives B = −12-\frac{1}{2}.

Answer12ln⁡∣x−1∣−12ln⁡∣x+1∣+C\frac{1}{2}\ln|x - 1| - \frac{1}{2}\ln|x + 1| + C

Example: A repeated factor

Split x+3(x+1)2\frac{x + 3}{(x + 1)^{2}}.

  1. Try Ax+1+B(x+1)2\frac{A}{x + 1} + \frac{B}{(x + 1)^{2}}, so x + 3 = A(x + 1) + B.
  2. Matching the x terms gives A = 1, and then B = 2.

Answer1x+1+2(x+1)2\frac{1}{x + 1} + \frac{2}{(x + 1)^{2}}

Try it yourself

Work each one on paper first, then open the answer to check.

  1. Find ∫sin⁡2x dx\int \sin^{2} x\,dx.

    Show answer

    x2−sin⁡2x4+C\frac{x}{2} - \frac{\sin 2x}{4} + C

  2. Find ∫cos⁡3x dx\int \cos^{3} x\,dx.

    Show answer

    sin⁡x−sin⁡3x3+C\sin x - \frac{\sin^{3} x}{3} + C

  3. Which substitution suits ∫dx16−x2\int \frac{dx}{\sqrt{16 - x^{2}}}?

    Show answer

    x = 4 sin θ

  4. Find ∫039−x2 dx\int_{0}^{3} \sqrt{9 - x^{2}}\,dx.

    Show answer

    9π4\frac{9\pi}{4}

  5. Split 5(x−2)(x+3)\frac{5}{(x - 2)(x + 3)} into partial fractions.

    Show answer

    1x−2−1x+3\frac{1}{x - 2} - \frac{1}{x + 3}

  6. Find ∫dxx(x+1)\int \frac{dx}{x(x + 1)}.

    Show answer

    ln⁡∣x∣−ln⁡∣x+1∣+C\ln|x| - \ln|x + 1| + C

What next?