Tutorials › Calculus II › Selecting Trigonometric Substitutions From Completed Squares

Completing the Square Techniques · Tutorial 270 of 998

Selecting Trigonometric Substitutions From Completed Squares

Recognize the three standard completed-square forms and select a trigonometric substitution that simplifies each radical while respecting its domain.

Intermediate 9 min read

What You'll Learn

  • Match a completed-square radicand to one of three standard forms
  • Normalize the shifted variable and identify the positive scale
  • Choose sine, tangent, or secant substitutions from the form
  • Track the square-root sign by choosing an appropriate angle interval
  • Check the transformed differential and radical
  • Recognize when a substitution applies only on one domain branch

Reading the Completed Square

A completed square reveals which trigonometric identity can simplify a quadratic radical. The decision depends on the signs in the expression, not on the fact that it is quadratic. Once the square is completed, identify whether the radicand is a positive constant minus a square, a positive constant plus a square, or a square minus a positive constant.

The corresponding substitutions come from the identities \(1-\sin^2\theta=\cos^2\theta\), \(1+\tan^2\theta=\sec^2\theta\), and \(\sec^2\theta-1=\tan^2\theta\). The angle interval matters: it determines the sign of the trigonometric factor when the square root is taken.

Definition: A completed-square radicand is in a standard trigonometric form if it can be written, possibly after extracting a positive factor, as \(a^2-u^2\), \(a^2+u^2\), or \(u^2-a^2\), where \(a>0\) and \(u\) is a shifted and scaled variable.

The Three Forms and Their Substitutions

Choose the substitution after expressing the radicand in one of these forms. In the table, \(a>0\). The indicated intervals make the square-root expressions nonnegative and keep the substitutions on a single branch.

Completed-square formSubstitutionSquare root on the stated interval
\(a^2-u^2\), with \(-a<u<a\)\(u=a\sin\theta\), \(-\pi/2<\theta<\pi/2\)\(\sqrt{a^2-u^2}=a\cos\theta\)
\(a^2+u^2\), for real \(u\)\(u=a\tan\theta\), \(-\pi/2<\theta<\pi/2\)\(\sqrt{a^2+u^2}=a\sec\theta\)
\(u^2-a^2\), with \(u>a\)\(u=a\sec\theta\), \(0<\theta<\pi/2\)\(\sqrt{u^2-a^2}=a\tan\theta\)

For the third form, the domain also has a negative branch, \(u<-a\). On that branch one may use \(u=-a\sec\theta\) with \(0<\theta<\pi/2\); then \(\sqrt{u^2-a^2}=a\tan\theta\). A substitution must describe the branch of the original variable being considered. At the boundary points \(u=\pm a\), the radical is zero, so formulas involving division by the radical are not defined there.

In each case the differential follows by differentiating the substitution. The scale \(a\) is part of the substitution, so it must also appear in \(du\): respectively, \(du=a\cos\theta\,d\theta\), \(du=a\sec^2\theta\,d\theta\), and \(du=a\sec\theta\tan\theta\,d\theta\) on the positive branch.

Why These Choices Work

The substitutions work because they turn the radicand into a square of a trigonometric function. Here is the complete verification. For the difference form, substitute \(u=a\sin\theta\) and use the identity \(1-\sin^2\theta=\cos^2\theta\). Since \(\cos\theta>0\) on the chosen interval, taking the square root gives \(a\cos\theta\), not \(a|\cos\theta|\) left unresolved.

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

For the sum form, \(1+\tan^2\theta=\sec^2\theta\), and \(\sec\theta>0\) on \((-\pi/2,\pi/2)\). For the exterior form, \(\sec^2\theta-1=\tan^2\theta\), and both \(\sec\theta\) and \(\tan\theta\) are positive on \((0,\pi/2)\). These identities and signs give the following results.

$$ \begin{aligned} a^2+u^2 &=a^2(1+\tan^2\theta) =a^2\sec^2\theta, &\sqrt{a^2+u^2}&=a\sec\theta, \\ u^2-a^2 &=a^2(\sec^2\theta-1) =a^2\tan^2\theta, &\sqrt{u^2-a^2}&=a\tan\theta. \end{aligned} $$
Selection rule: Use sine for \(a^2-u^2\), tangent for \(a^2+u^2\), and secant for \(u^2-a^2\). Then choose an angle interval on which the trigonometric factor used for the square root has the required sign.

Worked Example: A Constant Minus a Shifted Square

Worked Example: A Constant Minus a Shifted Square

Choose a substitution for the radical \(\sqrt{25-(2x-1)^2}\) and transform the differential quotient \(dx/\sqrt{25-(2x-1)^2}\).

Set \(u=2x-1\). The radicand is \(25-u^2\), so it has the form \(a^2-u^2\) with \(a=5\). The original radicand is nonnegative when \(-5\leq u\leq5\), or equivalently \(-2\leq x\leq3\). Use the sine substitution \(u=5\sin\theta\), with \(-\pi/2<\theta<\pi/2\).

$$ 2x-1=5\sin\theta,\qquad x=\frac{1+5\sin\theta}{2},\qquad dx=\frac{5}{2}\cos\theta\,d\theta. $$

On this angle interval, \(\cos\theta>0\), so the radical becomes \(5\cos\theta\). Therefore, wherever the quotient is defined,

$$ \frac{dx}{\sqrt{25-(2x-1)^2}} = \frac{\frac{5}{2}\cos\theta\,d\theta}{5\cos\theta} =\frac12\,d\theta. $$

Check the substitution: \(25-(2x-1)^2=25-25\sin^2\theta=25\cos^2\theta\), whose positive square root is \(5\cos\theta\) on the chosen interval. Differentiating \(x=(1+5\sin\theta)/2\) gives \(dx/d\theta=(5/2)\cos\theta\), as used above.

Worked Example: A Positive-Sign Sum

Worked Example: A Positive-Sign Sum

Choose a substitution for \(\sqrt{9+4(x+1)^2}\) and transform \(dx/\sqrt{9+4(x+1)^2}\).

Set \(u=2(x+1)\). Then the radicand is \(9+u^2\), which has the form \(a^2+u^2\) with \(a=3\). This radicand is positive for every real \(x\). Use \(u=3\tan\theta\), with \(-\pi/2<\theta<\pi/2\), so that \(\theta=\arctan(u/3)\) lies on one-to-one branch.

$$ 2(x+1)=3\tan\theta,\qquad x=-1+\frac32\tan\theta,\qquad dx=\frac32\sec^2\theta\,d\theta. $$

Since \(\sec\theta>0\) on this interval, the radical is \(3\sec\theta\). The transformed quotient is

$$ \frac{dx}{\sqrt{9+4(x+1)^2}} = \frac{\frac32\sec^2\theta\,d\theta}{3\sec\theta} =\frac12\sec\theta\,d\theta. $$

Check the radical: \(9+4(x+1)^2=9+9\tan^2\theta=9\sec^2\theta\), so its positive square root is \(3\sec\theta\). Differentiating the stated \(x\) gives \(dx/d\theta=(3/2)\sec^2\theta\), confirming the differential.

Worked Example: A Square Minus a Constant

Worked Example: A Square Minus a Constant

Choose substitutions on both domain branches for \(\sqrt{9(x-2)^2-16}\), and transform \(dx/\sqrt{9(x-2)^2-16}\) on the positive branch.

Set \(u=3(x-2)\). The radicand is \(u^2-16\), so \(a=4\). It is nonnegative when \(|u|\geq4\). Thus the two open intervals where the quotient is defined are \(x>10/3\) and \(x<2/3\), found from \(3(x-2)>4\) and \(3(x-2)<-4\).

On \(x>10/3\), use \(u=4\sec\theta\), \(0<\theta<\pi/2\). Solving for \(x\) and differentiating gives

$$ x=2+\frac43\sec\theta,\qquad dx=\frac43\sec\theta\tan\theta\,d\theta,\qquad \sqrt{u^2-16}=4\tan\theta. $$

Consequently,

$$ \frac{dx}{\sqrt{9(x-2)^2-16}} = \frac{\frac43\sec\theta\tan\theta\,d\theta}{4\tan\theta} =\frac13\sec\theta\,d\theta. $$

Check: \(u^2-16=16(\sec^2\theta-1)=16\tan^2\theta\), whose positive square root is \(4\tan\theta\) on this interval. Also, differentiating \(x=2+(4/3)\sec\theta\) gives \(dx/d\theta=(4/3)\sec\theta\tan\theta\).

On the other branch, \(x<2/3\), use \(u=-4\sec\theta\) with \(0<\theta<\pi/2\). Then \(x=2-(4/3)\sec\theta\), which indeed satisfies \(x<2/3\). The same identity gives \(\sqrt{u^2-16}=4\tan\theta\). The negative sign in \(dx=-(4/3)\sec\theta\tan\theta\,d\theta\) records the direction in which \(x\) changes as \(\theta\) increases.

Using the Completed Square Without Repeating the Algebra

In an expression such as \(A(x-h)^2+B\), the completed square already identifies the shift \(h\). If \(A>0\), set \(u=\sqrt{A}(x-h)\); if \(A<0\), set \(u=\sqrt{-A}(x-h)\). These choices convert the squared term into \(u^2\) or \(-u^2\), respectively. Then compare the constant term and the squared term to the three standard forms.

A positive factor can be extracted without changing which substitution matches. For example, \(\lambda(a^2-u^2)\), where \(\lambda>0\), has square root \(\sqrt{\lambda}\sqrt{a^2-u^2}\). The substitution is still \(u=a\sin\theta\); the factor \(\sqrt{\lambda}\) remains outside the trigonometric identity.

1
Read the completed square.
Identify the shifted variable and the coefficient multiplying its square.
2
Normalize the square.
Rescale the shifted variable so its squared term is \(u^2\), and identify the positive constant \(a\).
3
Match the signs.
Choose sine for \(a^2-u^2\), tangent for \(a^2+u^2\), or secant for \(u^2-a^2\).
4
Check the domain and branch.
Confirm that the original radicand is nonnegative and that the chosen angle interval gives the correct square-root sign.

A Common Mistake: Choosing by Shape Alone

A substitution that contains the right trigonometric function can still be wrong if it does not match the signs. For example, the incorrect choice \(u=5\tan\theta\) for \(25-u^2\) gives

$$ 25-u^2 =25-25\tan^2\theta =25(1-\tan^2\theta), $$

which does not simplify to a square of a basic trigonometric function by the identity \(1+\tan^2\theta=\sec^2\theta\). The correction is to match the difference form \(a^2-u^2\) with \(u=a\sin\theta\); then \(25-u^2=25\cos^2\theta\). Also, if one uses a substitution outside an interval where the relevant trigonometric factor is positive, the square root may be an absolute value rather than the factor itself. State the interval before simplifying the radical.

Why the Match Matters

Choosing from the completed square makes the substitution systematic: the algebra determines the form, the form determines the trigonometric function, and the domain determines the angle branch. This prevents sign errors and preserves the scale factors in the differential. The same checks are useful whenever a radical appears inside a more complicated integrand: first identify the completed-square form, then check the branch before transforming the rest of the expression.

Takeaway: Do not select a trigonometric substitution from the appearance of the variable alone. Match the signs in the completed square, carry the scale into the differential, and verify the square-root sign on the chosen domain.

Check Your Understanding

For each question, identify the form first and then state the substitution and any needed domain restriction.

  1. Which substitution matches \(\sqrt{36-(x-4)^2}\), and what interval for \(\theta\) makes the square root \(6\cos\theta\)?
  2. For \(\sqrt{7+9(x+2)^2}\), what normalized variable \(u\) and value of \(a\) give the sum form?
  3. For \(\sqrt{4(x-1)^2-25}\), what are the two domain branches in \(x\), and which substitution applies on the branch \(x>7/2\)?
  4. Why is \(\sqrt{a^2+u^2}=a\sec\theta\) valid for \(u=a\tan\theta\) on \(-\pi/2<\theta<\pi/2\)?
  5. What is the mistake in using \(u=a\tan\theta\) for a radicand \(a^2-u^2\)?

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