Trig Substitution Calculator

Type an integrand with a square root of a quadratic to substitute for x.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Try

Result

You entered∫1−x2 dx\int \sqrt{1 - x^{2}}\,dx

∫1−x2 dx=x 1−x22+arcsin⁡x2+C\displaystyle \int \sqrt{1 - x^{2}}\,dx = \frac{x\,\sqrt{1 - x^{2}}}{2} + \frac{\arcsin x}{2} + C
Show the work
  1. Trigonometric substitution

    The integrand contains a2−x2\sqrt{a^2 - x^2} form, so let x=asin⁡θx = a\sin\theta: then a2−x2=a2cos⁡2θa^2 - x^2 = a^2\cos^2\theta and the root becomes a trigonometric function.

    x=sin⁡θdx=cos⁡θ dθ1−x2=cos⁡2θ\begin{gathered} x = \sin\theta \\ dx = \cos \theta\,d\theta \\ 1 - x^{2} = \cos^{2} \theta \end{gathered}
  2. Rewrite in theta

    Replace every x, the root and dx, then simplify.

    ∫1−x2 dx=∫cos⁡2θ dθ\int \sqrt{1 - x^{2}}\,dx = \int \cos^{2} \theta\,d\theta
  3. Reduction formula

    An even power of cosine is lowered by two with a reduction formula, repeated until nothing is left but a constant.

    Using ∫cos⁡nx dx=cos⁡n−1xsin⁡xn+n−1n∫cos⁡n−2x dx\int \cos^n x\,dx = \frac{\cos^{n-1}x\sin x}{n} + \frac{n-1}{n}\int \cos^{n-2}x\,dx

    ∫cos⁡2θ dθ=sin⁡θ cos⁡θ2+θ2\int \cos^{2} \theta\,d\theta = \frac{\sin \theta\,\cos \theta}{2} + \frac{\theta}{2}
  4. Constant rule

    The integrand does not contain θ\theta, so it is a constant.

    Using ∫c dx=cx+C\int c\,dx = cx + C

    ∫1 dθ=θ\int 1\,d\theta = \theta
  5. Back-substitute with the triangle

    Draw a right triangle with hypotenuse 11, opposite side xx and adjacent side 1−x2\sqrt{1 - x^{2}}.

    sin⁡θ cos⁡θ2+θ2  →  x 1−x2+arcsin⁡x2\frac{\sin \theta\,\cos \theta}{2} + \frac{\theta}{2} \;\to\; \frac{x\,\sqrt{1 - x^{2}} + \arcsin x}{2}
  6. Result

    An antiderivative is only defined up to a constant, so the constant of integration CC is added.

    ∫1−x2 dx=x 1−x22+arcsin⁡x2+C\int \sqrt{1 - x^{2}}\,dx = \frac{x\,\sqrt{1 - x^{2}}}{2} + \frac{\arcsin x}{2} + C

Worked examples