Tutorials › Calculus II › Rationalizing √(a + b cos x) with a Half-Angle Parameter

Rationalizing Substitutions · Tutorial 245 of 998

Rationalizing √(a + b cos x) with a Half-Angle Parameter

Use \(t=\tan(x/2)\) to rewrite \(\sqrt{a+b\cos x}\), track its domain, and determine when a transformed integrand is rational.

Intermediate 10 min read

What You'll Learn

  • Derive the half-angle expression for the radical and the transformed differential.
  • State the domain conditions needed for the square root and substitution.
  • Identify when the radical itself is rational as a function of the parameter.
  • Distinguish a rational prefactor from factors that can cancel an algebraic radical.
  • Check transformed expressions by substituting back into the original trigonometric formulas.

From a Trigonometric Radical to a Parameter

The substitution \(t=\tan(x/2)\) turns sine and cosine into rational functions of \(t\). A radical involving cosine does not automatically become rational, however: after the substitution, it generally contains a quotient of quadratic expressions under a square root. Seeing that structure clearly helps determine whether the whole transformed integrand is rational, or whether a radical remains.

Throughout, let \(a,b\in\mathbb R\), and consider real \(x\) for which \(a+b\cos x\geq 0\). The substitution is defined when \(x\neq (2k+1)\pi\) for every integer \(k\), because tangent has a pole at those points. On any interval that avoids such a point, it has the familiar differential and trigonometric formulas.

Definition: The half-angle parameter is \(t=\tan(x/2)\). Where it is defined, \(\cos x=(1-t^2)/(1+t^2)\), \(\sin x=2t/(1+t^2)\), and \(dx=2\,dt/(1+t^2)\).

Substituting the cosine formula into the radicand gives

$$ a+b\cos x =a+b\frac{1-t^2}{1+t^2} =\frac{a(1+t^2)+b(1-t^2)}{1+t^2} =\frac{(a+b)+(a-b)t^2}{1+t^2}. $$

Since \(1+t^2>0\) for every real \(t\), the square root can be written as a quotient of nonnegative square roots wherever the original radicand is nonnegative.

$$ \sqrt{a+b\cos x} = \frac{\sqrt{(a+b)+(a-b)t^2}}{\sqrt{1+t^2}}. $$

This is the basic half-angle form. The numerator contains a quadratic expression with no linear term, while the denominator contains \(1+t^2\). Depending on \(a\) and \(b\), the numerator may simplify, but the quotient is not generally a rational function.

Domain and Sign Conditions

The formula must be used on a domain where the quantities under the square roots are nonnegative. Because \(1+t^2\) is positive, the condition is exactly

$$ (a+b)+(a-b)t^2\geq 0. $$

The square root symbol denotes the principal, nonnegative square root. This matters when simplifying a quadratic such as \(t^2\): \(\sqrt{t^2}=|t|\), not \(t\) on the entire real line. On an interval where \(t\geq 0\), that expression does equal \(t\); where \(t\leq 0\), it equals \(-t\).

Worked Example: Rewriting a General Radical

Rewrite \(\sqrt{5+3\cos x}\) in terms of \(t=\tan(x/2)\), and check the result at \(x=0\).

Here \(a=5\), \(b=3\), so \(a+b=8\) and \(a-b=2\). Therefore

$$ \sqrt{5+3\cos x} = \frac{\sqrt{8+2t^2}}{\sqrt{1+t^2}} = \sqrt{2}\,\frac{\sqrt{t^2+4}}{\sqrt{t^2+1}}. $$

For every real \(t\), both quadratic expressions under the square roots are positive, so this expression is defined. At \(x=0\), \(t=\tan 0=0\). The original radical is \(\sqrt{5+3}= \sqrt{8}=2\sqrt{2}\), and the transformed expression is

$$ \sqrt{2}\,\frac{\sqrt{0^2+4}}{\sqrt{0^2+1}} =\sqrt{2}\,\frac{2}{1} =2\sqrt{2}. $$

The two evaluations agree.

When Is the Radical Rational in \(t\)?

A rational function is a quotient of polynomials in \(t\). The expression \(\sqrt{a+b\cos x}\), after substitution, is rational in \(t\) only if the quotient \(\big((a+b)+(a-b)t^2\big)/(1+t^2)\) is the square of a rational function, up to a nonnegative constant factor. For real \(a,b\), this happens in the nontrivial real-valued case precisely when \(b=0\): then the original radicand is the constant \(a\).

Theorem: If \(a>0\), the expression \(\sqrt{a+b\cos x}\) becomes a rational function of \(t\) on its real domain exactly when \(b=0\). If \(b\neq 0\), the transformed radical is not a rational function of \(t\).

Here is a justification of the obstruction when \(b\neq 0\). Work with rational functions over the real numbers, and write \(N(t)=(a+b)+(a-b)t^2\). The polynomial \(1+t^2\) is irreducible over the reals: it has no real root. If \(N(t)\) were divisible by \(1+t^2\), then, because both have degree at most two, \(N\) would have to be a constant multiple of \(1+t^2\). Comparing the constant and \(t^2\) coefficients would require \(a+b=a-b\), hence \(b=0\). Thus, when \(b\neq 0\), the factor \(1+t^2\) does not cancel from \(N(t)/(1+t^2)\).

In a square of a rational function, every irreducible polynomial factor has an even net exponent: squaring doubles every exponent in the numerator and denominator. Here the factor \(1+t^2\) has exponent \(-1\) in the quotient, since it occurs in the denominator and not the numerator. That odd exponent rules out a rational square. This proves the claim. When \(b=0\), the radical is simply the constant \(\sqrt a\), provided \(a\geq 0\); if \(a=0\), it is identically zero.

This conclusion concerns the radical itself. In a full integrand, additional factors may include other radicals that cancel it, or may combine with it to make every factor under a root occur to an even power. But multiplying a nonsquare radical by an ordinary rational function cannot make it rational: if \(R(t)\sqrt{S(t)}\) were rational for a nonzero rational function \(R\), then \(\sqrt{S(t)}\) would also be rational by division by \(R(t)\).

Worked Examples of Simplification and Rationality

Worked Example: The Constant-Radicand Case

Rewrite \(\sqrt{7+0\cos x}\) using the half-angle parameter, including the differential, and check the result at \(x=\pi/3\).

The parameters are \(a=7\), \(b=0\). The radicand is constant, and the transformed expression is

$$ \sqrt{7+0\cos x} =\frac{\sqrt{7+7t^2}}{\sqrt{1+t^2}} =\frac{\sqrt{7}\sqrt{1+t^2}}{\sqrt{1+t^2}} =\sqrt{7}. $$

Thus, for an integral containing this factor, the combined radical and differential become

$$ \sqrt{7}\,dx=\frac{2\sqrt{7}}{1+t^2}\,dt, $$

which has a rational function of \(t\) as its variable-dependent factor. To check the radical at \(x=\pi/3\), the original value is \(\sqrt{7+0\cdot\cos(\pi/3)}=\sqrt7\). At this \(x\), \(t=\tan(\pi/6)=1/\sqrt3\). The transformed quotient is

$$ \frac{\sqrt{7+7(1/3)}}{\sqrt{1+1/3}} =\frac{\sqrt{28/3}}{\sqrt{4/3}} =\sqrt7. $$

The expression agrees with the original value.

Worked Example: A Coefficient Cancels the Radical

Consider \(\sqrt{2(1+\cos x)}\sec(x/2)\,dx\) on \(-\pi<x<\pi\). Show that its transformed integrand is rational.

On this interval, \(\cos(x/2)>0\), so \(\sqrt{2(1+\cos x)}=2\cos(x/2)\). Also, \(t=\tan(x/2)\), and \(\sec(x/2)=\sqrt{1+t^2}\) on this interval. These identities give

$$ \sqrt{2(1+\cos x)}\sec(x/2) = 2\cos(x/2)\sec(x/2) =2. $$

Using \(dx=2\,dt/(1+t^2)\), the complete differential transforms to

$$ \sqrt{2(1+\cos x)}\sec(x/2)\,dx = 2\frac{2}{1+t^2}\,dt = \frac{4}{1+t^2}\,dt. $$

This is rational in \(t\). To check the cancellation directly from the general radical formula, set \(a=b=2\). Then its transformed radical is

$$ \sqrt{2+2\cos x} =\frac{\sqrt{4+0t^2}}{\sqrt{1+t^2}} =\frac{2}{\sqrt{1+t^2}}. $$

Multiplying by \(\sec(x/2)=\sqrt{1+t^2}\) gives \(2\), as above. The interval restriction is essential for the stated equality with \(2\cos(x/2)\); it ensures that the half-angle cosine is positive.

As a check at \(x=0\), the original coefficient is \(\sqrt{2(1+1)}\sec 0=2\). Also \(t=0\), so the transformed coefficient before \(dx\) is \(2\), and the differential factor is \(2\,dt\) at \(t=0\). Thus the transformed density is \(4\,dt\), agreeing with \(4/(1+t^2)\,dt\) at \(t=0\).

Worked Example: A Radical Remains Despite the Differential

Transform \(\sqrt{5+3\cos x}\,dx\), and determine whether the result is rational in \(t\).

The radical from the first example is \(\sqrt{2}\sqrt{t^2+4}/\sqrt{t^2+1}\), and \(dx=2\,dt/(1+t^2)\). Therefore

$$ \sqrt{5+3\cos x}\,dx = \frac{2\sqrt{2}\sqrt{t^2+4}}{(1+t^2)\sqrt{t^2+1}}\,dt. $$

The factor \(2\sqrt2/(1+t^2)\) is rational in \(t\), but the remaining square-root quotient is not. Indeed, here \(b=3\neq0\), so the theorem applies. The differential contributes another rational factor; it does not remove the nonsquare factor from the radical.

At \(x=0\), the original coefficient is \(2\sqrt2\), and \(t=0\). The transformed coefficient, including \(dx/dt\), is

$$ \frac{2\sqrt{2}\sqrt{0^2+4}}{(1+0^2)\sqrt{0^2+1}} =4\sqrt2. $$

This is twice the original coefficient because the transformed expression is a density with respect to \(dt\): at \(x=0\), \(dx/dt=2\). In fact, the substitution rule requires precisely this factor, so the check confirms both the radical and the differential.

A Practical Test for the Full Integrand

First rewrite the radical using \(t\), then include every other factor and the differential before deciding whether the result is rational. The differential contributes \(2/(1+t^2)\), which is rational, so by itself it cannot change whether the radical is rational. A rational trigonometric coefficient also cannot cancel a nonsquare radical. Cancellation is possible when another algebraic factor supplies the matching square root, as in the preceding example.

1
Substitute the trigonometric functions.
Replace \(\cos x\) by \((1-t^2)/(1+t^2)\), and replace other trigonometric factors by their half-angle forms.
2
Rewrite the radical and include \(dx\).
Use \(\sqrt{a+b\cos x}=\sqrt{(a+b)+(a-b)t^2}/\sqrt{1+t^2}\) and \(dx=2\,dt/(1+t^2)\).
3
Combine all factors before classifying.
Check whether another factor cancels the radical. A rational prefactor alone cannot turn a nonsquare rational function under a root into a rational function.
4
Check the real domain and branches.
Require the original radicand to be nonnegative and retain absolute values when a square root simplifies to the absolute value of a variable.

The parameter substitution is useful even when a radical remains: it exposes the exact algebraic expression that must be handled next. But it is important not to label an integrand rational merely because its sine and cosine factors have become rational. The radical must also simplify or cancel.

Key takeaway: Under \(t=\tan(x/2)\), the radical becomes \(\sqrt{(a+b)+(a-b)t^2}/\sqrt{1+t^2}\). For \(a>0\), this is rational in \(t\) exactly when \(b=0\). The complete integrand can be rational in other cases only if its additional factors cancel the nonsquare radical.

Check Your Understanding

Try each question by writing the transformed expression and checking its domain.

  1. Use \(t=\tan(x/2)\) to rewrite \(\sqrt{4+2\cos x}\). For which real \(t\) is the radical defined?
  2. For \(a=6\) and \(b=0\), what does the radical become after substitution, and what factor does \(dx\) contribute?
  3. Why does a rational function multiplying \(\sqrt{((a+b)+(a-b)t^2)/(1+t^2)}\) not make it rational when \(b\neq0\)?
  4. On \(-\pi<x<\pi\), simplify \(\sqrt{2(1+\cos x)}\sec(x/2)\), and state why the interval matters.
  5. When substituting into an integral, why must the factor \(dx=2\,dt/(1+t^2)\) be included before classifying the transformed integrand?

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