Midterm 2 · Part 1 Review

Friday  |  §6.2 Trig Substitution & §6.3 Partial Fractions
Trig sub: $x=a\sin\theta$ problems (42–60)  ·  Partial fractions (7–23)

§6.2 Trig Substitution  —  the sine case

Use this whenever you see $\sqrt{a^{2}-x^{2}}$ (or $a^2-x^2$ to a power). The substitution turns the radical into a clean trig expression.

The Setup

For an integrand containing $\sqrt{a^{2}-x^{2}}$, let:

$x = a\sin\theta, \qquad dx = a\cos\theta\,d\theta$

Then the radical collapses:

$\sqrt{a^{2}-x^{2}} = \sqrt{a^{2}-a^{2}\sin^{2}\theta} = a\cos\theta$

(valid for $-\tfrac{\pi}{2}\le\theta\le\tfrac{\pi}{2}$, where $\cos\theta\ge 0$, so no absolute value needed)

Reference Triangle  — how to get back to x

From $\sin\theta=\dfrac{x}{a}$: opposite $=x$, hypotenuse $=a$.

θ a x √(a²−x²)

So: $\cos\theta=\dfrac{\sqrt{a^{2}-x^{2}}}{a}$,   $\tan\theta=\dfrac{x}{\sqrt{a^{2}-x^{2}}}$,   $\theta=\arcsin\dfrac{x}{a}$.

Common Mistakes

  • Forgetting to convert $dx$ → $a\cos\theta\,d\theta$.
  • Leaving the answer in $\theta$ — always back-substitute to $x$ using the triangle.
  • Mishandling $\sin 2\theta$: rewrite as $2\sin\theta\cos\theta$, then sub.
  • Wrong $a$: match $a^2$ to the constant, so $a=\sqrt{\text{const}}$.

The Method — 5 steps

  1. Identify $a$ from $\sqrt{a^{2}-x^{2}}$.
  2. Substitute $x=a\sin\theta$ and $dx=a\cos\theta\,d\theta$.
  3. Simplify — the radical becomes $a\cos\theta$.
  4. Integrate the resulting trig integral.
  5. Back-substitute via the reference triangle.
Example 1 — basic
$\displaystyle\int \frac{dx}{\sqrt{9-x^{2}}}$
Set up $a=3$,  $x=3\sin\theta$,  $dx=3\cos\theta\,d\theta$,  $\sqrt{9-x^2}=3\cos\theta$.
Sub $\displaystyle\int\frac{3\cos\theta\,d\theta}{3\cos\theta}=\int d\theta=\theta+C$.
Back $\displaystyle =\arcsin\frac{x}{3}+C$
Example 2 — radical on top
$\displaystyle\int \sqrt{4-x^{2}}\,dx$
Set up $a=2$,  $x=2\sin\theta$,  $\sqrt{4-x^2}=2\cos\theta$.
Sub $\displaystyle\int 2\cos\theta\cdot 2\cos\theta\,d\theta = 4\int\cos^{2}\theta\,d\theta$
Half-angle $\displaystyle = 4\!\left(\frac{\theta}{2}+\frac{\sin 2\theta}{4}\right)=2\theta+\sin 2\theta$
Back $\sin2\theta=2\sin\theta\cos\theta=\dfrac{x\sqrt{4-x^2}}{2}$, so
$\displaystyle =2\arcsin\frac{x}{2}+\frac{x\sqrt{4-x^{2}}}{2}+C$
Example 3 — x² in numerator
$\displaystyle\int \frac{x^{2}}{\sqrt{1-x^{2}}}\,dx$
Set up $a=1$,  $x=\sin\theta$,  $\sqrt{1-x^2}=\cos\theta$.
Sub $\displaystyle\int\frac{\sin^{2}\theta\cos\theta}{\cos\theta}\,d\theta=\int\sin^{2}\theta\,d\theta=\frac{\theta}{2}-\frac{\sin2\theta}{4}$
Back $\displaystyle =\frac{1}{2}\arcsin x-\frac{1}{2}x\sqrt{1-x^{2}}+C$
§6.3 Partial Fraction Decomposition

Use this to integrate a rational function $\dfrac{P(x)}{Q(x)}$ by breaking it into simple pieces you can integrate to logs and arctangents.

The Method — 4 steps

  1. Make it proper. If $\deg P \ge \deg Q$, do polynomial long division first.
  2. Factor $Q(x)$ completely into linear and irreducible quadratic factors.
  3. Write the decomposition (one term per factor — see cases) and solve for the constants.
  4. Integrate each simple piece.

The Four Cases — how to set up

Distinct linear $(x-a)(x-b)$ $\dfrac{A}{x-a}+\dfrac{B}{x-b}$
Repeated linear $(x-a)^{2}$ $\dfrac{A}{x-a}+\dfrac{B}{(x-a)^{2}}$
Irreducible quadratic $x^{2}+bx+c$ $\dfrac{Ax+B}{x^{2}+bx+c}$
Repeated quadratic $(x^{2}+c)^{2}$ $\dfrac{Ax+B}{x^{2}+c}+\dfrac{Cx+D}{(x^{2}+c)^{2}}$

Integration Results You'll Need

$\displaystyle\int\frac{dx}{x-a}=\ln|x-a|+C$
$\displaystyle\int\frac{dx}{(x-a)^{2}}=-\frac{1}{x-a}+C$
$\displaystyle\int\frac{2x}{x^{2}+a^{2}}\,dx=\ln(x^{2}+a^{2})+C$
$\displaystyle\int\frac{dx}{x^{2}+a^{2}}=\frac{1}{a}\arctan\frac{x}{a}+C$

Common Mistakes

  • Skipping long division when the top degree $\ge$ bottom degree.
  • Forgetting the $(x-a)^2$ term for repeated factors.
  • Using $\frac{A}{\,\cdot\,}$ instead of $\frac{Ax+B}{\,\cdot\,}$ over a quadratic.
  • For a quadratic, split into a $\frac{2x}{\,\cdot\,}$ (→ ln) piece plus a constant (→ arctan) piece.
Example 1 — distinct linear
$\displaystyle\int \frac{3x+11}{x^{2}-x-6}\,dx$
Factor $x^2-x-6=(x-3)(x+2)$
Set up $\dfrac{3x+11}{(x-3)(x+2)}=\dfrac{A}{x-3}+\dfrac{B}{x+2}$
Solve $3x+11=A(x+2)+B(x-3)$.
$x=3:\;20=5A\Rightarrow A=4$.   $x=-2:\;5=-5B\Rightarrow B=-1$.
Integrate
$\displaystyle =4\ln|x-3|-\ln|x+2|+C$
Example 2 — repeated linear
$\displaystyle\int \frac{x+4}{(x-2)^{2}}\,dx$
Set up $\dfrac{x+4}{(x-2)^{2}}=\dfrac{A}{x-2}+\dfrac{B}{(x-2)^{2}}$
Solve $x+4=A(x-2)+B$.
$x=2:\;B=6$.   coeff of $x:\;A=1$.
Integrate
$\displaystyle =\ln|x-2|-\frac{6}{x-2}+C$
Example 3 — irreducible quadratic
$\displaystyle\int \frac{4x}{(x-1)(x^{2}+1)}\,dx$
Set up $\dfrac{4x}{(x-1)(x^{2}+1)}=\dfrac{A}{x-1}+\dfrac{Bx+C}{x^{2}+1}$
Solve $4x=A(x^2+1)+(Bx+C)(x-1)$.
$x=1:\;4=2A\Rightarrow A=2$.
match $x^2:\;A+B=0\Rightarrow B=-2$.   match $x^0:\;A-C=0\Rightarrow C=2$.
Integrate split $\dfrac{-2x+2}{x^2+1}$ into a $\ln$ piece and an $\arctan$ piece:
$\displaystyle =2\ln|x-1|-\ln(x^{2}+1)+2\arctan x+C$