Tutorials › Calculus II › Reconstructing Variables With Right-Triangle Diagrams

Trigonometric Substitution · Tutorial 164 of 998

Reconstructing Variables With Right-Triangle Diagrams

Learn how to label a right triangle for each standard trigonometric substitution and recover the trigonometric ratios needed to write results in terms of the original variable.

Intermediate 9 min read

What You'll Learn

  • Label the right triangle for the sine substitution involving a² − x².
  • Recover trigonometric ratios for the tangent substitution involving a² + x².
  • Reconstruct ratios for the secant substitution involving x² − a².
  • Use the Pythagorean theorem to derive each triangle’s missing side.
  • Check reconstructed expressions against the defining substitution.
  • Recognize when a triangle diagram represents positive side lengths and when signs need attention.

Why Reconstruct a Triangle?

Trigonometric substitution replaces an algebraic expression involving a square root with a trigonometric expression. The substitution can make an integral easier to work with, but the final answer often needs to be written in the original variable \(x\), not in an angle \(\theta\). A right-triangle diagram gives a direct way to translate the trigonometric ratios back into expressions involving \(x\) and \(a\).

The triangle is not a separate trick to memorize. Its side lengths come from the substitution itself and the Pythagorean theorem. Once the sides are labelled correctly, sine, cosine, tangent, and their reciprocals follow from their definitions as ratios of side lengths.

Convention: Throughout, \(a>0\). The diagrams below use the usual positive, acute-angle setting: \(0<x<a\) for the sine substitution, \(x>0\) for the tangent substitution, and \(x>a\) for the secant substitution. Each triangle has positive side lengths. When a variable or angle lies outside these ranges, signs and branches must be handled with care; the side lengths in a triangle are magnitudes, not signed quantities.

The Three Substitutions and Their Triangles

For each substitution, begin with its defining equation. Identify which side lengths are already represented by \(x\) and \(a\), then use the Pythagorean theorem to find the remaining side. Finally, form the trigonometric ratios from the resulting labels.

1
Write the substitution.
It tells you how \(x\) relates to a trigonometric ratio and the parameter \(a\).
2
Label the known sides.
Match the substitution to the definition of sine, tangent, or secant.
3
Find the missing side.
Apply the Pythagorean theorem to the right triangle.
4
Form the needed ratios.
Use the definitions of the trigonometric functions and simplify.

For \(\sqrt{a^2-x^2}\): The Sine Substitution

Suppose \(x=a\sin\theta\), with \(0<x<a\) and \(a>0\). Dividing by \(a\) gives \(\sin\theta=x/a\). Since sine is opposite over hypotenuse, label the opposite side \(x\) and the hypotenuse \(a\). The adjacent side follows from the Pythagorean theorem.

$$ (\text{adjacent})^2+x^2=a^2 \qquad\Longrightarrow\qquad \text{adjacent}=\sqrt{a^2-x^2}. $$

Thus the triangle has opposite side \(x\), adjacent side \(\sqrt{a^2-x^2}\), and hypotenuse \(a\). Taking ratios gives the following expressions:

$$ \sin\theta=\frac{x}{a}, \qquad \cos\theta=\frac{\sqrt{a^2-x^2}}{a}, \qquad \tan\theta=\frac{x}{\sqrt{a^2-x^2}}. $$

Taking reciprocals gives the corresponding reciprocal ratios, whenever their denominators are nonzero:

$$ \csc\theta=\frac{a}{x}, \qquad \sec\theta=\frac{a}{\sqrt{a^2-x^2}}, \qquad \cot\theta=\frac{\sqrt{a^2-x^2}}{x}. $$

Worked Example: Reconstruct Ratios for the Sine Substitution

Let \(a=5\), \(x=3\), and use \(x=a\sin\theta\). First, \(\sin\theta=x/a=3/5\). The hypotenuse is \(5\) and the opposite side is \(3\), so the adjacent side is

$$ \sqrt{a^2-x^2} =\sqrt{5^2-3^2} =\sqrt{25-9} =\sqrt{16} =4. $$

The triangle therefore has opposite side \(3\), adjacent side \(4\), and hypotenuse \(5\). Its ratios are

$$ \sin\theta=\frac{3}{5},\quad \cos\theta=\frac{4}{5},\quad \tan\theta=\frac{3}{4},\quad \csc\theta=\frac{5}{3},\quad \sec\theta=\frac{5}{4},\quad \cot\theta=\frac{4}{3}. $$

Check the construction: \(3^2+4^2=9+16=25=5^2\), and the original substitution gives \(a\sin\theta=5(3/5)=3=x\).

For \(\sqrt{a^2+x^2}\): The Tangent Substitution

Suppose \(x=a\tan\theta\), with \(x>0\). Then \(\tan\theta=x/a\). Since tangent is opposite over adjacent, label the opposite side \(x\) and the adjacent side \(a\). In this case, the hypotenuse is the missing side:

$$ (\text{hypotenuse})^2=x^2+a^2 \qquad\Longrightarrow\qquad \text{hypotenuse}=\sqrt{x^2+a^2}. $$

With opposite side \(x\), adjacent side \(a\), and hypotenuse \(\sqrt{x^2+a^2}\), the ratios are

$$ \tan\theta=\frac{x}{a}, \qquad \sin\theta=\frac{x}{\sqrt{x^2+a^2}}, \qquad \cos\theta=\frac{a}{\sqrt{x^2+a^2}}. $$

The reciprocal ratios are

$$ \cot\theta=\frac{a}{x}, \qquad \csc\theta=\frac{\sqrt{x^2+a^2}}{x}, \qquad \sec\theta=\frac{\sqrt{x^2+a^2}}{a}. $$

Worked Example: Reconstruct Ratios for the Tangent Substitution

Let \(a=3\), \(x=4\), and use \(x=a\tan\theta\). The substitution gives \(\tan\theta=x/a=4/3\). The opposite and adjacent sides are \(4\) and \(3\), so the hypotenuse is

$$ \sqrt{x^2+a^2} =\sqrt{4^2+3^2} =\sqrt{16+9} =\sqrt{25} =5. $$

Therefore,

$$ \sin\theta=\frac{4}{5},\quad \cos\theta=\frac{3}{5},\quad \tan\theta=\frac{4}{3},\quad \csc\theta=\frac{5}{4},\quad \sec\theta=\frac{5}{3},\quad \cot\theta=\frac{3}{4}. $$

Check the side lengths: \(3^2+4^2=9+16=25=5^2\). Also, \(a\tan\theta=3(4/3)=4=x\), as required.

For \(\sqrt{x^2-a^2}\): The Secant Substitution

Suppose \(x=a\sec\theta\), with \(x>a>0\) in the positive acute-angle setting. Then \(\sec\theta=x/a\). Since secant is hypotenuse over adjacent, label the hypotenuse \(x\) and the adjacent side \(a\). The opposite side is

$$ (\text{opposite})^2+a^2=x^2 \qquad\Longrightarrow\qquad \text{opposite}=\sqrt{x^2-a^2}. $$

Now use opposite side \(\sqrt{x^2-a^2}\), adjacent side \(a\), and hypotenuse \(x\). The trigonometric ratios become

$$ \sec\theta=\frac{x}{a}, \qquad \cos\theta=\frac{a}{x}, \qquad \sin\theta=\frac{\sqrt{x^2-a^2}}{x}. $$

The remaining ratios are

$$ \tan\theta=\frac{\sqrt{x^2-a^2}}{a}, \qquad \csc\theta=\frac{x}{\sqrt{x^2-a^2}}, \qquad \cot\theta=\frac{a}{\sqrt{x^2-a^2}}. $$

Worked Example: Reconstruct Ratios for the Secant Substitution

Let \(a=5\), \(x=13\), and use \(x=a\sec\theta\). The substitution gives \(\sec\theta=x/a=13/5\). The hypotenuse is \(13\) and the adjacent side is \(5\), so the opposite side is

$$ \sqrt{x^2-a^2} =\sqrt{13^2-5^2} =\sqrt{169-25} =\sqrt{144} =12. $$

The resulting triangle has sides \(5\), \(12\), and \(13\). Its ratios are

$$ \sec\theta=\frac{13}{5},\quad \cos\theta=\frac{5}{13},\quad \sin\theta=\frac{12}{13},\quad \tan\theta=\frac{12}{5},\quad \csc\theta=\frac{13}{12},\quad \cot\theta=\frac{5}{12}. $$

Check the triangle: \(5^2+12^2=25+144=169=13^2\). Check the substitution: \(a\sec\theta=5(13/5)=13=x\).

Why the Reconstruction Works

The method follows directly from the definitions of the trigonometric ratios and the Pythagorean theorem. Here is the full argument for the tangent substitution; the other two cases use the same reasoning with different sides labelled as known.

1
Start from the substitution.
If \(x=a\tan\theta\), then \(\tan\theta=x/a\). By definition, \(\tan\theta\) is opposite over adjacent, so choose those side lengths to be \(x\) and \(a\).
2
Apply the Pythagorean theorem.
The square of the hypotenuse is \(x^2+a^2\). Because the hypotenuse is positive, its length is \(\sqrt{x^2+a^2}\).
3
Form the ratios.
Sine is opposite over hypotenuse, so \(\sin\theta=x/\sqrt{x^2+a^2}\). Cosine is adjacent over hypotenuse, so \(\cos\theta=a/\sqrt{x^2+a^2}\). Their reciprocals and the other ratios follow from the same side labels.

This also explains why these triangles are useful during back-substitution. If a transformed expression contains, for example, \(\cos\theta\) after the tangent substitution, the triangle identifies it as \(a/\sqrt{x^2+a^2}\). No new integration is involved: the triangle only translates a trigonometric expression into the original variable.

A Common Mistake: Putting a Side in the Wrong Position

The substitution \(x=a\tan\theta\) says that \(x/a\) is tangent, not sine or cosine. Tangent is opposite over adjacent, so \(x\) must be opposite and \(a\) adjacent. Confusing those roles produces incorrect ratios and a triangle that may not satisfy the substitution.

For \(x=4\) and \(a=3\), a wrong assignment might treat \(x=4\) as the hypotenuse and \(a=3\) as the adjacent side. That would give an opposite side \(\sqrt{4^2-3^2}=\sqrt{7}\), and hence \(\tan\theta=\sqrt{7}/3\). But this does not equal \(x/a=4/3\), so it contradicts the defining substitution. The correct assignment is opposite \(4\), adjacent \(3\), and hypotenuse \(\sqrt{4^2+3^2}=5\). It gives \(\tan\theta=4/3\), as required.

Check before using a reconstructed ratio: Verify that the side labels match the defining substitution, that the Pythagorean equation holds, and that the ratio you need uses the correct pair of sides.

When Triangle Diagrams Matter

Triangle diagrams are especially useful when an integral has been transformed into an expression involving several trigonometric functions. Rather than trying to remember a separate list of substitutions, reconstruct the needed ratio from the matching triangle. The same diagram can supply sine, cosine, tangent, secant, and their reciprocals.

The three patterns are worth recognizing:

SubstitutionHypotenuseOther two sides
\(x=a\sin\theta\)\(a\)Opposite \(x\); adjacent \(\sqrt{a^2-x^2}\)
\(x=a\tan\theta\)\(\sqrt{a^2+x^2}\)Opposite \(x\); adjacent \(a\)
\(x=a\sec\theta\)\(x\)Opposite \(\sqrt{x^2-a^2}\); adjacent \(a\)

Each row is a consequence of the substitution and the Pythagorean theorem, not an independent formula. If a variable has a negative value or an angle is outside the positive acute-angle setting, the triangle still describes side magnitudes, but it does not by itself determine the signs of all trigonometric ratios. Keep that distinction in mind when applying the diagrams.

Check Your Understanding

For each question, identify the relevant side labels before writing the trigonometric ratios.

  1. For \(x=a\sin\theta\), which sides correspond to \(x\) and \(a\), and what is the remaining side?
  2. If \(a=8\) and \(x=6\) in the sine substitution, find the adjacent side and \(\cos\theta\).
  3. For \(x=a\tan\theta\), explain why \(\sqrt{x^2+a^2}\) is the hypotenuse.
  4. If \(a=5\) and \(x=12\) in the tangent substitution, find \(\sin\theta\) and \(\sec\theta\).
  5. For \(x=a\sec\theta\), identify the hypotenuse and adjacent side, then derive the opposite side.
  6. What three checks can help detect a triangle-labeling error?

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon