What Is Trigonometric Substitution?
Trigonometric substitution is a technique in calculus for evaluating integrals whose integrand contains a square root of a quadratic, such as $\sqrt{a^2-x^2}$, $\sqrt{a^2+x^2}$, or $\sqrt{x^2-a^2}$. You replace $x$ with a trig function of a new variable $\theta$, chosen so that a Pythagorean identity collapses the root into a single trig term. The integral then becomes an ordinary trig integral, and a right triangle sends the answer back to $x$.
The whole method rests on three pairings, one for each radical shape:
$$\sqrt{a^2-x^2}\ \Rightarrow\ x=a\sin\theta \qquad \sqrt{a^2+x^2}\ \Rightarrow\ x=a\tan\theta \qquad \sqrt{x^2-a^2}\ \Rightarrow\ x=a\sec\theta$$
Here $a$ is a positive constant. The choice is not arbitrary: each substitution is picked precisely because one of the trigonometric identities turns the quantity under the root into a perfect square. That is the entire idea, and the next section shows the machinery.
How Do You Set Up Each Trigonometric Substitution?
Every setup has the same three moving parts: the substitution for $x$, the matching differential $dx$, and the identity that clears the root. Get the differential right and the rest follows.
Table: The three standard trigonometric substitutions and the identity each one uses.
Radical form | Substitution | Differential $dx$ | Root becomes | Identity used |
|---|---|---|---|---|
$\sqrt{a^2-x^2}$ | $x=a\sin\theta$ | $a\cos\theta,d\theta$ | $a\cos\theta$ | $1-\sin^2\theta=\cos^2\theta$ |
$\sqrt{a^2+x^2}$ | $x=a\tan\theta$ | $a\sec^2\theta,d\theta$ | $a\sec\theta$ | $1+\tan^2\theta=\sec^2\theta$ |
$\sqrt{x^2-a^2}$ | $x=a\sec\theta$ | $a\sec\theta\tan\theta,d\theta$ | $a\tan\theta$ | $\sec^2\theta-1=\tan^2\theta$ |
Take the first row in detail. With $x=a\sin\theta$,
$$\sqrt{a^2-x^2}=\sqrt{a^2-a^2\sin^2\theta}=a\sqrt{1-\sin^2\theta}=a\sqrt{\cos^2\theta}=a\cos\theta$$
The root is gone. The same pattern runs the other two rows: $1+\tan^2\theta=\sec^2\theta$ handles the plus sign, and $\sec^2\theta-1=\tan^2\theta$ handles $x^2-a^2$. Restricting $\theta$ to the principal range of each inverse trig function keeps $\cos\theta$, $\sec\theta$, and $\tan\theta$ non-negative, so the square root stays positive as it should.
How Do You Convert Back To x With A Reference Triangle?
After you integrate in $\theta$, the answer still contains $\theta$, $\sin\theta$, or $\sec\theta$. The reference-triangle method turns those back into $x$ without solving a trig equation.
Read the substitution as a ratio of sides in a right triangle, then read every other trig value straight off that triangle:
$x=a\sin\theta$ means $\sin\theta=\dfrac{x}{a}$: draw a right triangle with opposite side $x$ and hypotenuse $a$. The third side is $\sqrt{a^2-x^2}$, so $\cos\theta=\dfrac{\sqrt{a^2-x^2}}{a}$ and $\tan\theta=\dfrac{x}{\sqrt{a^2-x^2}}$.
$x=a\tan\theta$ means $\tan\theta=\dfrac{x}{a}$: opposite $x$, adjacent $a$, hypotenuse $\sqrt{a^2+x^2}$, so $\sec\theta=\dfrac{\sqrt{a^2+x^2}}{a}$.
$x=a\sec\theta$ means $\sec\theta=\dfrac{x}{a}$: hypotenuse $x$, adjacent $a$, opposite $\sqrt{x^2-a^2}$, so $\tan\theta=\dfrac{\sqrt{x^2-a^2}}{a}$.
The angle $\theta$ itself becomes an inverse trig function, for instance $\theta=\arcsin\dfrac{x}{a}$. With the triangle in hand, back-substitution is just copying side ratios.
How Do You Use Trigonometric Substitution? (Worked Examples)
Throughout, the derivative notation $\dfrac{d}{dx}[,\cdot,]$ is used for the checks, and every antiderivative is differentiated back to confirm it returns the original integrand.
Example 1: Evaluate $\displaystyle\int \frac{dx}{\sqrt{a^2-x^2}}$.
Substitute $x=a\sin\theta$, so $dx=a\cos\theta,d\theta$ and $\sqrt{a^2-x^2}=a\cos\theta$:
$$\int \frac{dx}{\sqrt{a^2-x^2}}=\int \frac{a\cos\theta,d\theta}{a\cos\theta}=\int d\theta=\theta+C=\arcsin\frac{x}{a}+C$$
Check: $\dfrac{d}{dx}\left[\arcsin\dfrac{x}{a}\right]=\dfrac{1}{\sqrt{1-(x/a)^2}}\cdot\dfrac{1}{a}=\dfrac{1}{\sqrt{a^2-x^2}}$, the original integrand.
Final answer: $\displaystyle\int \frac{dx}{\sqrt{a^2-x^2}}=\arcsin\frac{x}{a}+C$.
Example 2: Evaluate $\displaystyle\int \frac{dx}{a^2+x^2}$.
There is no visible root here, but $a^2+x^2$ is still the tangent form, so substitute $x=a\tan\theta$, $dx=a\sec^2\theta,d\theta$, and $a^2+x^2=a^2\sec^2\theta$:
$$\int \frac{dx}{a^2+x^2}=\int \frac{a\sec^2\theta,d\theta}{a^2\sec^2\theta}=\int \frac{d\theta}{a}=\frac{\theta}{a}+C=\frac{1}{a}\arctan\frac{x}{a}+C$$
Check: $\dfrac{d}{dx}\left[\dfrac{1}{a}\arctan\dfrac{x}{a}\right]=\dfrac{1}{a}\cdot\dfrac{1}{1+(x/a)^2}\cdot\dfrac{1}{a}=\dfrac{1}{a^2+x^2}$.
Final answer: $\displaystyle\int \frac{dx}{a^2+x^2}=\frac{1}{a}\arctan\frac{x}{a}+C$.
Example 3: Evaluate $\displaystyle\int \sqrt{a^2-x^2},dx$ (the area of a circular segment).
Substitute $x=a\sin\theta$ again, so $\sqrt{a^2-x^2}=a\cos\theta$ and $dx=a\cos\theta,d\theta$:
$$\int \sqrt{a^2-x^2},dx=\int (a\cos\theta)(a\cos\theta),d\theta=a^2\int \cos^2\theta,d\theta$$
Use the power-reduction identity $\cos^2\theta=\dfrac{1+\cos 2\theta}{2}$:
$$a^2\int \frac{1+\cos 2\theta}{2},d\theta=\frac{a^2}{2}\left(\theta+\frac{\sin 2\theta}{2}\right)+C=\frac{a^2}{2},\theta+\frac{a^2}{2}\sin\theta\cos\theta+C$$
From the reference triangle, $\theta=\arcsin\dfrac{x}{a}$, $\sin\theta=\dfrac{x}{a}$, and $\cos\theta=\dfrac{\sqrt{a^2-x^2}}{a}$, so $\dfrac{a^2}{2}\sin\theta\cos\theta=\dfrac{x\sqrt{a^2-x^2}}{2}$:
$$\int \sqrt{a^2-x^2},dx=\frac{x}{2}\sqrt{a^2-x^2}+\frac{a^2}{2}\arcsin\frac{x}{a}+C$$
Check: differentiate the result.
$$\frac{d}{dx}\left[\frac{x}{2}\sqrt{a^2-x^2}\right]=\frac{1}{2}\sqrt{a^2-x^2}-\frac{x^2}{2\sqrt{a^2-x^2}}, \qquad \frac{d}{dx}\left[\frac{a^2}{2}\arcsin\frac{x}{a}\right]=\frac{a^2}{2\sqrt{a^2-x^2}}$$
Adding the last two fractions gives $\dfrac{a^2-x^2}{2\sqrt{a^2-x^2}}=\dfrac{1}{2}\sqrt{a^2-x^2}$, and the total is $\sqrt{a^2-x^2}$. The antiderivative is confirmed.
Final answer: $\displaystyle\int \sqrt{a^2-x^2},dx=\frac{x}{2}\sqrt{a^2-x^2}+\frac{a^2}{2}\arcsin\frac{x}{a}+C$.
This one has a geometric payoff. The graph of $y=\sqrt{a^2-x^2}$ is the upper half of a circle of radius $a$, so the integral measures area under that arc. Testing on a quarter circle of radius $3$:
$$\int_{0}^{3}\sqrt{9-x^2},dx=\left[\frac{x}{2}\sqrt{9-x^2}+\frac{9}{2}\arcsin\frac{x}{3}\right]_{0}^{3}=\frac{9}{2}\cdot\frac{\pi}{2}=\frac{9\pi}{4}\approx 7.0686$$
That is exactly a quarter of the circle's area $\pi(3)^2=9\pi$, the geometric interpretation of the algebra.
Example 4: Evaluate $\displaystyle\int \frac{dx}{\sqrt{x^2-a^2}}$.
This is the secant form. Substitute $x=a\sec\theta$, so $dx=a\sec\theta\tan\theta,d\theta$ and $\sqrt{x^2-a^2}=a\tan\theta$:
$$\int \frac{dx}{\sqrt{x^2-a^2}}=\int \frac{a\sec\theta\tan\theta,d\theta}{a\tan\theta}=\int \sec\theta,d\theta=\ln\left|\sec\theta+\tan\theta\right|+C$$
From the triangle, $\sec\theta=\dfrac{x}{a}$ and $\tan\theta=\dfrac{\sqrt{x^2-a^2}}{a}$, so
$$\int \frac{dx}{\sqrt{x^2-a^2}}=\ln\left|\frac{x}{a}+\frac{\sqrt{x^2-a^2}}{a}\right|+C=\ln\left|x+\sqrt{x^2-a^2}\right|+C_1$$
absorbing the constant $-\ln a$ into $C_1$.
Check: $\dfrac{d}{dx}\left[\ln\left(x+\sqrt{x^2-a^2}\right)\right]=\dfrac{1+\dfrac{x}{\sqrt{x^2-a^2}}}{x+\sqrt{x^2-a^2}}=\dfrac{1}{\sqrt{x^2-a^2}}$.
Final answer: $\displaystyle\int \frac{dx}{\sqrt{x^2-a^2}}=\ln\left|x+\sqrt{x^2-a^2}\right|+C$.
Why Does Trigonometric Substitution Work?
The method is not a trick to memorise. It is the Pythagorean theorem, read backwards.
Each substitution builds a right triangle in which $x$ and $a$ are two of the sides. The root you are fighting, $\sqrt{a^2-x^2}$, $\sqrt{a^2+x^2}$, or $\sqrt{x^2-a^2}$, is simply the length of the third side.
The Pythagorean identities ($1-\sin^2\theta=\cos^2\theta$ and its two relatives) are the Pythagorean theorem for that triangle. That is why the identity "happens" to turn the sum or difference under the root into a single squared term.
A square root is hard to integrate because it has no clean antiderivative rule. A trig function is easy, because differentiation and integration of trig functions are fully mapped out. The substitution trades a hard object for an easy one.
Geometrically, $x=a\sin\theta$ is nothing more than sweeping a point around a circle of radius $a$ and reading off its coordinate. The angle $\theta$ is the natural parameter of a circle, so an integral tied to a circular curve, an area, an arc length, becomes simple the moment you describe the curve by its angle instead of its $x$-coordinate. The algebra is following the geometry.
Who Invented Trigonometric Substitution?
Integration by trig substitution grew out of the founding of calculus itself and the much older problem of measuring curved regions.
Two figures anchor the story:
Isaac Newton (1643–1727, England) developed the calculus of fluxions and used series and substitutions to integrate expressions involving roots of quadratics.
Leonhard Euler (1707–1783, Switzerland) systematised substitution methods for integration in his textbooks, turning scattered tricks into the organised catalogue of techniques taught today.
Where Is Trigonometric Substitution Used In The Real World?
The method appears wherever a square root of a quadratic shows up, which is often, because $\sqrt{a^2-x^2}$ is the equation of a circle and its relatives describe ellipses and hyperbolas.
Geometry and design: exact areas of circular segments, lenses, and the area of an ellipse come from these integrals, used in optics, architecture, and manufacturing.
Physics: the electric or gravitational field along the axis of a charged or massive ring or rod involves $\int \frac{dx}{(a^2+x^2)^{3/2}}$, a textbook tangent substitution.
Engineering: arc length of a curved beam or cable, and the moment of inertia of curved cross-sections, reduce to roots of quadratics.
Signal processing and statistics: integrals tied to circular and elliptical shapes, and to the arctangent that Example 2 produced, appear in Fourier analysis and probability.
Computer graphics: parametrising a circle or ellipse by its angle, the geometric heart of the method, is exactly how curved paths are drawn and animated.
One integration idea reaches from a physics field problem to the area of a lens. Mathematics reuses the same tool across fields that look unrelated.
What Are The Most Common Mistakes With Trigonometric Substitution?
These four errors account for most lost marks, drawn from the pitfalls flagged in OpenStax and Paul's Online Math Notes and the recurring "which substitution do I use?" questions students post.
Choosing the wrong substitution for the radical form.
Where it slips in:
A student sees any square root and reaches for $x=a\sin\theta$ out of habit, or mixes up the plus and minus cases.
Don't do this:
Do not guess. Using $\sin\theta$ on $\sqrt{a^2+x^2}$ leaves $\sqrt{a^2+a^2\sin^2\theta}$, which the identity cannot simplify.
The correct way:
Match the sign pattern: $a^2-x^2$ takes $\sin$, $a^2+x^2$ takes $\tan$, $x^2-a^2$ takes $\sec$. Read the form first, then pick.
Forgetting the differential $dx=a\cos\theta,d\theta$.
Where it slips in:
A student replaces $x$ inside the integrand but leaves the $dx$ untouched, or swaps it for a bare $d\theta$.
Don't do this:
Do not carry the old $dx$ into the new variable. Every substitution changes the differential too.
The correct way:
Differentiate the substitution to get $dx$. For $x=a\sin\theta$, $dx=a\cos\theta,d\theta$; for $x=a\tan\theta$, $dx=a\sec^2\theta,d\theta$; for $x=a\sec\theta$, $dx=a\sec\theta\tan\theta,d\theta$.
Leaving the answer in $\theta$ instead of converting back to $x$.
Where it slips in:
A student integrates correctly, writes $\theta+C$ or $\tan\theta+C$, and stops, forgetting that the original problem was in $x$.
Don't do this:
Do not hand in an answer that still contains $\theta$. The variable $\theta$ never existed in the question.
The correct way:
Draw the reference triangle and read every trig value back in terms of $x$ and $a$. For a definite integral, an alternative is to change the limits to $\theta$-values and skip the conversion.
Sign and absolute-value slips on the root.
Where it slips in:
A student writes $\sqrt{x^2-a^2}=a\tan\theta$ but drops the absolute value, or mishandles the domain so the root comes out negative.
Don't do this:
Do not assume $\sqrt{\tan^2\theta}=\tan\theta$ without checking the range. In general $\sqrt{\tan^2\theta}=|\tan\theta|$.
The correct way:
Restrict $\theta$ to the principal range of the inverse function so the root stays non-negative, then the absolute value drops cleanly and the sign is correct.
Practice Problems On Trigonometric Substitution
Work each with the substitution named, and convert back to $x$. Answers follow.
$\displaystyle\int \frac{dx}{\sqrt{9-x^2}}$ using $x=3\sin\theta$.
(Answer: $\arcsin\dfrac{x}{3}+C$.)$\displaystyle\int \frac{dx}{4+x^2}$ using $x=2\tan\theta$.
(Answer: $\dfrac{1}{2}\arctan\dfrac{x}{2}+C$.)$\displaystyle\int \frac{dx}{\sqrt{a^2+x^2}}$ using $x=a\tan\theta$.
(Answer: $\ln\left|x+\sqrt{a^2+x^2}\right|+C$.)$\displaystyle\int_{0}^{2}\sqrt{4-x^2},dx$ (a quarter circle of radius $2$).
(Answer: $\pi\approx 3.1416$.)$\displaystyle\int \frac{x^2}{\sqrt{a^2-x^2}},dx$ using $x=a\sin\theta$.
(Answer: $\dfrac{a^2}{2}\arcsin\dfrac{x}{a}-\dfrac{x}{2}\sqrt{a^2-x^2}+C$.)$\displaystyle\int \sqrt{x^2-1},dx$ using $x=\sec\theta$.
(Answer: $\dfrac{x}{2}\sqrt{x^2-1}-\dfrac{1}{2}\ln\left|x+\sqrt{x^2-1}\right|+C$.)
Where Should You Go Next After Trigonometric Substitution?
Trigonometric substitution sits inside the wider toolkit of integration, and several natural doors open from here.
Integration. Revisit the core rules and standard forms so you can spot when a radical actually needs a trig substitution and when a simpler method wins.
Inverse trigonometric functions. The $\arcsin$ and $\arctan$ that these integrals produce become clearer once their domains and ranges are solid.
Derivatives. Every antiderivative here was verified by differentiating back, so fluency with the derivative rules is what lets you check your own work.
If your child is building calculus foundations, a live Bhanzu trainer teaches trigonometric substitution starting from the reference-triangle picture (why the identity clears the root) rather than a memorised table, in the Bhanzu math tutoring program.
Was this article helpful?
Your feedback helps us write better content
