Integrals: functions and by parts

Trigonometric substitution (x = a sin θ)

For an integral containing a2−x2\sqrt{a^2-x^2} (a>0)(a>0), setting x=asin⁡θx=a\sin\theta removes the square root and turns it into an integral in θ\theta.

x=asin⁡θ (a>0, −π2≤θ≤π2)⇒ a2−x2=acos⁡θ,  dx=acos⁡θ dθ\begin{gathered} x=a\sin\theta\ \left(a>0,\ -\frac{\pi}{2}\le\theta\le\frac{\pi}{2}\right) \\[4pt] \Rightarrow\ \sqrt{a^{2}-x^{2}}=a\cos\theta,\ \ dx=a\cos\theta\,d\theta \end{gathered}

With x=asin⁡θx=a\sin\theta (−π2≤θ≤π2)\left(-\frac{\pi}{2}\le\theta\le\frac{\pi}{2}\right), a2−x2=a2cos⁡2θa^2-x^2=a^2\cos^2\theta, and cos⁡θ≥0\cos\theta\ge 0 on this range, so a2−x2=acos⁡θ\sqrt{a^2-x^2}=a\cos\theta. Rewrite dx=acos⁡θ dθdx=a\cos\theta\,d\theta at the same time.

∫011−x2 dx=∫0π2cos⁡2θ dθ=π4\begin{gathered} \int_{0}^{1}\sqrt{1-x^{2}}\,dx \\[4pt] =\int_{0}^{\frac{\pi}{2}}\cos^{2}\theta\,d\theta \\[4pt] =\frac{\pi}{4} \end{gathered}

As xx goes 0→10\to 1, θ\theta goes 0→π20\to\frac{\pi}{2}. When the denominator contains a2+x2a^2+x^2, set x=atan⁡θx=a\tan\theta: then a2+x2=a2cos⁡2θa^2+x^2=\frac{a^2}{\cos^2\theta} and dx=acos⁡2θ dθdx=\frac{a}{\cos^2\theta}\,d\theta, so the cos⁡2θ\cos^2\theta cancels.

Examples

  1. 01Which substitution removes the square root?∫16−x2 dx\displaystyle \int \sqrt{16-x^{2}}\,dxAnswerHide
    Answerx=4sin⁡θ\displaystyle x=4\sin\theta

    Steps

    1. We want sin⁡2θ+cos⁡2θ=1\sin^{2}\theta+\cos^{2}\theta=1 to apply. Setting x=4sin⁡θx=4\sin\theta makes the inside
    2. 16−(4sin⁡θ)2\displaystyle 16-(4\sin\theta)^{2}=16cos⁡2θ\displaystyle = 16\cos^{2}\theta
    3. That is a square, so the root comes off. With tan⁡\tan or a bare θ\theta it never becomes a square
  2. 02Which substitution makes the denominator a constant multiple of 1cos⁡2θ\frac{1}{\cos^{2}\theta}?∫dx4+x2\displaystyle \int \frac{dx}{4+x^{2}}AnswerHide
    Answerx=2tan⁡θ\displaystyle x=2\tan\theta

    Steps

    1. Here we use 1+tan⁡2θ=1cos⁡2θ1+\tan^{2}\theta=\frac{1}{\cos^{2}\theta}. Setting x=2tan⁡θx=2\tan\theta makes the denominator
    2. 4+(2tan⁡θ)2\displaystyle 4+(2\tan\theta)^{2}=4cos⁡2θ\displaystyle = \frac{4}{\cos^{2}\theta}
    3. With sin⁡\sin you would get 1−sin⁡2θ1-\sin^{2}\theta, which does not tidy the denominator
  3. 03What goes in □?x=3sin⁡θ  ⇒  dx=□ dθ\displaystyle x=3\sin\theta \;\Rightarrow\; dx = \square\,d\thetaAnswerHide
    Answer3cos⁡θ\displaystyle 3\cos\theta

    Steps

    1. Differentiate xx with respect to θ\theta
    2. x\displaystyle x=3sin⁡θ\displaystyle = 3\sin\thetadxdθ\displaystyle \frac{dx}{d\theta}=3cos⁡θ\displaystyle = 3\cos\theta
    3. sin⁡\sin differentiates to cos⁡\cos; the minus sign appears only when you differentiate cos⁡\cos
  4. 04As xx goes 0→10 \to 1, how does θ\theta go?x=sin⁡θ  (−π2≤θ≤π2)\displaystyle x=\sin\theta \; \left(-\frac{\pi}{2}\le\theta\le\frac{\pi}{2}\right)AnswerHide
    Answer0→π2\displaystyle 0 \to \frac{\pi}{2}
  5. 05What do you get after substituting?x=2sin⁡θ  (−π2≤θ≤π2),4−x2\displaystyle \begin{gathered} \displaystyle x=2\sin\theta \; \left(-\frac{\pi}{2}\le\theta\le\frac{\pi}{2}\right), \\[6pt] \displaystyle \sqrt{4-x^{2}} \end{gathered}AnswerHide
    Answer2cos⁡θ\displaystyle 2\cos\theta
  6. 06What goes in □?x=5sin⁡θ  ⇒  dx=□ dθ\displaystyle x=5\sin\theta \;\Rightarrow\; dx = \square\,d\thetaAnswerHide
    Answer5cos⁡θ\displaystyle 5\cos\theta

    Steps

    1. Differentiate xx with respect to θ\theta
    2. x\displaystyle x=5sin⁡θ\displaystyle = 5\sin\thetadxdθ\displaystyle \frac{dx}{d\theta}=5cos⁡θ\displaystyle = 5\cos\theta
    3. sin⁡\sin differentiates to cos⁡\cos; the minus sign appears only when you differentiate cos⁡\cos

FAQ

Q1Why restrict θ\theta to −π2≤θ≤π2-\frac{\pi}{2}\le\theta\le\frac{\pi}{2}?AnswerHide
A
On this range cos⁡θ≥0\cos\theta\ge 0, so a2cos⁡2θ=acos⁡θ\sqrt{a^2\cos^2\theta}=a\cos\theta with no sign issue. Also, xx and θ\theta correspond one to one, so the new limits are determined uniquely.
Q2When do I use sin⁡\sin and when tan⁡\tan?AnswerHide
A
Use x=asin⁡θx=a\sin\theta for a2−x2\sqrt{a^2-x^2} and x=atan⁡θx=a\tan\theta for a2+x2a^2+x^2. It depends on whether you need 1−sin⁡2θ=cos⁡2θ1-\sin^2\theta=\cos^2\theta or 1+tan⁡2θ=1cos⁡2θ1+\tan^2\theta=\frac{1}{\cos^2\theta}.

Published 2026-10-14 · Updated 2026-10-14