Trigonometric Substitution

Trigonometric substitution replaces expressions like a2x2\sqrt{a^2-x^2} with trig functions, making integrals with radicals easier to solve.

a2x2    x=asinθ\sqrt{a^2 - x^2} \implies x = a\sin\theta

Solve a problem with Trigonometric Substitution

Type the problem. The solver will use Trigonometric Substitution where Trigonometric Substitution is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Trigonometric Substitution takes
aa
xx
θ\theta
Trigonometric Substitution
SymbolMeaning
aaA positive constant that scales the radical expression; it represents the radius or half-width in the form a2x2\sqrt{a^2-x^2} and must be extracted before the substitution begins.
xxThe variable of integration being replaced by the trigonometric form; it must satisfy xa|x| \le a for the substitution to remain valid on the real numbers.
θ\thetaThe new variable after substitution, typically restricted to π2θπ2-\frac{\pi}{2} \le \theta \le \frac{\pi}{2} so that cosθ0\cos\theta \ge 0 and the square root simplifies correctly without absolute values.

When to use it

Use this substitution when you encounter an integral containing a2x2\sqrt{a^2-x^2} that resists direct simplification or standard methods.

Level

Usually taught in: Calculus II

Worked examples

1. Integrate a simple radical with small integers

Problem

Find 9x2dx\int \sqrt{9-x^2} \, dx.
  1. x=3sinθ,dx=3cosθdθx = 3\sin\theta, \quad dx = 3\cos\theta \, d\theta

    We identify a=3a = 3 and apply the substitution pattern x=asinθx = a\sin\theta.

  2. 9x2=9(1sin2θ)=3cosθ\sqrt{9-x^2} = \sqrt{9(1-\sin^2\theta)} = 3\cos\theta

    Using the Pythagorean identity 1sin2θ=cos2θ1-\sin^2\theta = \cos^2\theta, the radical becomes a single trig function.

  3. 9x2dx=3cosθ3cosθdθ=9cos2θdθ\int \sqrt{9-x^2} \, dx = \int 3\cos\theta \cdot 3\cos\theta \, d\theta = 9\int\cos^2\theta \, d\theta

    Substituting both the radical and dxdx into the original integral.

  4. 9cos2θdθ=912(θ+sinθcosθ)9\int\cos^2\theta \, d\theta = 9 \cdot \frac{1}{2}\left(\theta + \sin\theta\cos\theta\right)

    The standard antiderivative cos2θdθ=12(θ+sinθcosθ)\int\cos^2\theta \, d\theta = \frac{1}{2}(\theta + \sin\theta\cos\theta) comes from the identity cos2θ=1+cos2θ2\cos^2\theta = \frac{1+\cos 2\theta}{2}.

  5. 92arcsinx3+92x39x23\frac{9}{2}\arcsin\frac{x}{3} + \frac{9}{2} \cdot \frac{x}{3} \cdot \frac{\sqrt{9-x^2}}{3}

    Back-substituting: θ=arcsin(x/3)\theta = \arcsin(x/3), sinθ=x/3\sin\theta = x/3, and cosθ=9x2/3\cos\theta = \sqrt{9-x^2}/3.

  6. 92arcsinx3+x9x22+C\frac{9}{2}\arcsin\frac{x}{3} + \frac{x\sqrt{9-x^2}}{2} + C

    Simplifying: 92x39x23=x9x22\frac{9}{2} \cdot \frac{x}{3} \cdot \frac{\sqrt{9-x^2}}{3} = \frac{x\sqrt{9-x^2}}{2}.

Answer: 92arcsinx3+x9x22+C\frac{9}{2}\arcsin\frac{x}{3} + \frac{x\sqrt{9-x^2}}{2} + C

This is a classic application where trig substitution transforms a complicated radical into powers of cosθ\cos\theta, which integrate easily using the half-angle identity. The back-substitution recovers the final answer in terms of the original variable xx.

2. Evaluate a definite integral with reciprocal and careful limits

Problem

Evaluate 0114x2dx\int_0^1 \frac{1}{\sqrt{4-x^2}} \, dx.
  1. x=2sinθ,dx=2cosθdθx = 2\sin\theta, \quad dx = 2\cos\theta \, d\theta

    Setting x=2sinθx = 2\sin\theta with a=2a = 2.

  2. x:01    θ:0arcsin12=π6x: 0 \to 1 \implies \theta: 0 \to \arcsin\tfrac{1}{2} = \frac{\pi}{6}

    Converting the integration limits: sin(0)=0\sin(0) = 0 and sin(π/6)=1/2\sin(\pi/6) = 1/2.

  3. 4x2=44sin2θ=2cosθ\sqrt{4-x^2} = \sqrt{4-4\sin^2\theta} = 2\cos\theta

    The radical simplifies using the Pythagorean identity.

  4. 0π/612cosθ2cosθdθ=0π/61dθ\int_0^{\pi/6} \frac{1}{2\cos\theta} \cdot 2\cos\theta \, d\theta = \int_0^{\pi/6} 1 \, d\theta

    The cosθ\cos\theta terms cancel, leaving a simple integral.

  5. [θ]0π/6=π60=π6\left[\theta\right]_0^{\pi/6} = \frac{\pi}{6} - 0 = \frac{\pi}{6}

    Evaluating the antiderivative at the converted limits.

Answer: π6\frac{\pi}{6}

Definite integrals with trig substitution often simplify completely once you convert both limits. Here, converting limits and substituting immediately reveals that the integrand reduces to 1, making the answer just the difference in θ\theta bounds.

3. Construction crew paving a curved path: area calculation

Problem

A construction crew is paving a curved path described by y=25x2y = \sqrt{25-x^2} from x=0x = 0 to x=3x = 3 meters. To calculate material costs, they need the area under this curve. Evaluate 0325x2dx\int_0^3 \sqrt{25-x^2} \, dx.
  1. x=5sinθ,dx=5cosθdθx = 5\sin\theta, \quad dx = 5\cos\theta \, d\theta

    Identifying a=5a = 5 from the radical 25x2\sqrt{25-x^2}.

  2. x:03    θ:0arcsin35x: 0 \to 3 \implies \theta: 0 \to \arcsin\tfrac{3}{5}

    When x=3x = 3, we have sinθ=3/5\sin\theta = 3/5, so the upper limit becomes arcsin(3/5)\arcsin(3/5).

  3. 25x2=5cosθ\sqrt{25-x^2} = 5\cos\theta

    The radical simplifies to a trig function using the Pythagorean identity.

  4. 0arcsin(3/5)5cosθ5cosθdθ=250arcsin(3/5)cos2θdθ\int_0^{\arcsin(3/5)} 5\cos\theta \cdot 5\cos\theta \, d\theta = 25\int_0^{\arcsin(3/5)} \cos^2\theta \, d\theta

    After substitution, both the radical and dxdx combine to give 25cos2θ25\cos^2\theta.

  5. 2512[θ+sin2θ2]0arcsin(3/5)=252[arcsin35+3545]25 \cdot \frac{1}{2}\left[\theta + \frac{\sin 2\theta}{2}\right]_0^{\arcsin(3/5)} = \frac{25}{2}\left[\arcsin\frac{3}{5} + \frac{3}{5} \cdot \frac{4}{5}\right]

    At θ=arcsin(3/5)\theta = \arcsin(3/5), we have sinθ=3/5\sin\theta = 3/5 and cosθ=4/5\cos\theta = 4/5 (from 1(3/5)2\sqrt{1-(3/5)^2}), so sin2θ=2(3/5)(4/5)=24/25\sin 2\theta = 2 \cdot (3/5) \cdot (4/5) = 24/25.

  6. 252arcsin35+2521225=252arcsin35+6\frac{25}{2}\arcsin\frac{3}{5} + \frac{25}{2} \cdot \frac{12}{25} = \frac{25}{2}\arcsin\frac{3}{5} + 6

    Simplifying the product: 2522450=6\frac{25}{2} \cdot \frac{24}{50} = 6.

Answer: 252arcsin35+6\frac{25}{2}\arcsin\frac{3}{5} + 6

Real-world problems involving circular arcs often lead to integrals of the form a2x2\sqrt{a^2-x^2}. Trig substitution is the standard tool because it converts the radii into a single trig function, and definite integrals let us evaluate numerically if needed (here the exact form combines an inverse sine with a numerical term).

Common mistakes

Where Trigonometric Substitution usually goes wrong
Answer came out wrong
Forgetting to convert back from θ\theta to xx after finding the antiderivative in terms of θ\theta.
Always include the back-substitution step using θ=arcsin(x/a)\theta = \arcsin(x/a), sinθ=x/a\sin\theta = x/a, and cosθ=a2x2/a\cos\theta = \sqrt{a^2-x^2}/a. For definite integrals only, if you evaluate at θ\theta bounds, the back-substitution is implicit.
Writing a2x2=acos2θ\sqrt{a^2 - x^2} = a\sqrt{\cos^2\theta} and then simplifying to acosθa\cos\theta without restricting θ\theta or acknowledging the absolute value.
Always explicitly enforce the range π/2θπ/2-\pi/2 \le \theta \le \pi/2 when using x=asinθx = a\sin\theta. This restriction guarantees cosθ0\cos\theta \ge 0, so cos2θ=cosθ\sqrt{\cos^2\theta} = \cos\theta without an absolute value.
Applying the substitution x=asinθx = a\sin\theta to an integrand containing x2a2\sqrt{x^2 - a^2} (with x2x^2 minus a2a^2, not a2a^2 minus x2x^2).
Always identify which form the radical takes: use x=asinθx = a\sin\theta for a2x2\sqrt{a^2 - x^2}, use x=atanθx = a\tan\theta for a2+x2\sqrt{a^2 + x^2}, and use x=asecθx = a\sec\theta for x2a2\sqrt{x^2 - a^2}.
The mistakeWhy it is wrongThe fix
Forgetting to convert back from θ\theta to xx after finding the antiderivative in terms of θ\theta.The original problem is posed in terms of xx, and leaving the answer as a function of θ\theta is incomplete and loses connection to the original variable.Always include the back-substitution step using θ=arcsin(x/a)\theta = \arcsin(x/a), sinθ=x/a\sin\theta = x/a, and cosθ=a2x2/a\cos\theta = \sqrt{a^2-x^2}/a. For definite integrals only, if you evaluate at θ\theta bounds, the back-substitution is implicit.
Writing a2x2=acos2θ\sqrt{a^2 - x^2} = a\sqrt{\cos^2\theta} and then simplifying to acosθa\cos\theta without restricting θ\theta or acknowledging the absolute value.In general, cos2θ=cosθ\sqrt{\cos^2\theta} = |\cos\theta|, which equals cosθ\cos\theta only when cosθ0\cos\theta \ge 0. Ignoring this can lead to a sign error.Always explicitly enforce the range π/2θπ/2-\pi/2 \le \theta \le \pi/2 when using x=asinθx = a\sin\theta. This restriction guarantees cosθ0\cos\theta \ge 0, so cos2θ=cosθ\sqrt{\cos^2\theta} = \cos\theta without an absolute value.
Applying the substitution x=asinθx = a\sin\theta to an integrand containing x2a2\sqrt{x^2 - a^2} (with x2x^2 minus a2a^2, not a2a^2 minus x2x^2).The substitution x=asinθx = a\sin\theta is designed specifically for a2x2\sqrt{a^2 - x^2}. For x2a2\sqrt{x^2 - a^2}, this substitution does not produce a simplifying trig identity.Always identify which form the radical takes: use x=asinθx = a\sin\theta for a2x2\sqrt{a^2 - x^2}, use x=atanθx = a\tan\theta for a2+x2\sqrt{a^2 + x^2}, and use x=asecθx = a\sec\theta for x2a2\sqrt{x^2 - a^2}.

Tips and when to use something else

  • Always restrict θ\theta to [π/2,π/2][-\pi/2, \pi/2] when setting x=asinθx = a\sin\theta so that sinθ\sin\theta is bijective and cosθ0\cos\theta \ge 0; this is essential for the square root to simplify correctly.
  • For definite integrals, convert both limits of integration immediately after substituting; working entirely in θ\theta bounds from the start avoids errors and often makes the integral simpler.
  • After substituting x=asinθx = a\sin\theta, pause and verify that the radical simplifies to a single trig function before proceeding; if it does not, re-examine the form of the integrand.
  • If the integrand contains x2a2\sqrt{x^2 - a^2} or x2+a2\sqrt{x^2 + a^2} instead of a2x2\sqrt{a^2 - x^2}, use a different trig substitution (x=asecθx = a\sec\theta or x=atanθx = a\tan\theta, respectively) rather than forcing x=asinθx = a\sin\theta.

Frequently asked questions

How do I know when to use trigonometric substitution instead of uu-substitution?
uu-substitution works when you spot a function and its derivative within the integrand. Trigonometric substitution targets integrals containing a radical of the form a2x2\sqrt{a^2-x^2}, a2+x2\sqrt{a^2+x^2}, or x2a2\sqrt{x^2-a^2} that resist direct simplification. If you encounter a nested radical without an obvious uu-substitution, trig substitution is your next strategy.
In a definite integral, do I have to back-substitute from θ\theta to xx?
No. Once you convert both integration limits to θ\theta bounds and evaluate the antiderivative at those bounds, you have a numerical (or closed-form) answer that implicitly accounts for the original variable. Back-substitution to xx is necessary only for indefinite integrals, where you must return to the original variable.
Why is the restriction π/2θπ/2-\pi/2 \le \theta \le \pi/2 mandatory?
This range ensures two things: (1) sinθ\sin\theta is one-to-one, so you can uniquely recover θ\theta from x/ax/a, and (2) cosθ0\cos\theta \ge 0 on this interval, so cos2θ=cosθ\sqrt{\cos^2\theta} = \cos\theta without needing an absolute value. Without this restriction, the radical may not simplify correctly or could introduce sign errors.
Can I use trigonometric substitution if the integrand has other terms besides the radical?
Yes. For instance, x9x2dx\int \frac{x}{\sqrt{9-x^2}} \, dx still works with x=3sinθx = 3\sin\theta. The numerator xx becomes 3sinθ3\sin\theta, and after the radical vanishes, the remaining trig integrand is usually simpler to handle than before.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18