Precalculus

Simplifying trig expressions

An expression like \displaystyle \frac{\cos x}{1 - \sin x} - \frac{\cos x}{1 + \sin x} is a tangle of functions and fractions. Which identities untangle it, and on which inputs is the short form a faithful stand-in for the long one?

Where you are 13 in Trigonometric identities

When you reach for it

Reach for these moves when an expression carries more than it needs: several different functions of the same angle, a fraction inside a fraction, two fractions waiting to be combined, or a square such as 1 - \sin^2 x that one identity collapses. A shorter form is easier to evaluate, graph and solve, which is why trigonometric equations usually start with a step like this.

The same identities also run the other way, into algebra. A radical such as \displaystyle \sqrt{9 - x^2} turns into a single trigonometric function when the variable is replaced by 3\sin\theta, because the identity 1 - \sin^2\theta = \cos^2\theta swallows the subtraction under the root. That replacement is called a trigonometric substitution.

To simplify is not to prove. Here the task is to start from one expression and find a shorter equal one. Showing that two given expressions are equal is verifying an identity, the next lesson.

The procedure

Everything rests on four families of identities, each from an earlier lesson.

  • Reciprocal and quotient, holding wherever the left side exists: \displaystyle \sec x = \frac{1}{\cos x}, \displaystyle \csc x = \frac{1}{\sin x}, \displaystyle \tan x = \frac{\sin x}{\cos x}, \displaystyle \cot x = \frac{\cos x}{\sin x}.
  • Pythagorean, holding wherever both sides exist: \sin^2 x + \cos^2 x = 1, 1 + \tan^2 x = \sec^2 x, 1 + \cot^2 x = \csc^2 x.
  • Cofunction: \displaystyle \sin\left(\frac{\pi}{2} - x\right) = \cos x, \displaystyle \cos\left(\frac{\pi}{2} - x\right) = \sin x, \displaystyle \cot\left(\frac{\pi}{2} - x\right) = \tan x.
  • Even and odd: \cos(-x) = \cos x and \sec(-x) = \sec x, while \sin(-x) = -\sin x, and likewise \tan, \csc and \cot are odd.

Rewrite in sine and cosine when the expression mixes functions. Each reciprocal and quotient identity holds wherever the function being replaced exists, so the swap never changes a value.

Look for a Pythagorean pair. The forms 1 - \sin^2 x = \cos^2 x, 1 - \cos^2 x = \sin^2 x, \sec^2 x - 1 = \tan^2 x and \csc^2 x - 1 = \cot^2 x are the ones that shorten expressions. A denominator 1 + \sin x or 1 - \cos x is half of such a pair, since (1 - \sin x)(1 + \sin x) = 1 - \sin^2 x.

Treat \sin x as a number. At each input, \sin x is a real number, so every law of algebra applies to it: factoring a quadratic in \sin x, combining fractions over a common denominator, the difference of squares. This is the algebra of Simplifying rational expressions with \sin x or \cos x in place of the variable.

Cancel only what is not zero, and keep the domain. Find the original expression’s domain before the first step, and quote the answer on it: “equals \tan x for \displaystyle x \neq \frac{k\pi}{2}”. Cancelling a factor can give a short form that exists at inputs the original excluded, which shows as holes in the original’s graph. Multiplying top and bottom by a new factor can do the reverse, and the new factor must be nonzero for the step to multiply by 1. Throughout, k is any integer.

There is no single simplest form: fewer functions, fewer terms and no fraction inside a fraction are the usual aims.

A variable replaced by a trigonometric function

To simplify \displaystyle \sqrt{9 - x^2}, set x = 3\sin\theta. Then 9 - x^2 = 9 - 9\sin^2\theta = 9\cos^2\theta, and the square root of a square is an absolute value (Simplifying radicals):

\sqrt{9 - x^2} = \sqrt{9\cos^2\theta} = 3|\cos\theta|

The bars come off only if the sign of \cos\theta is known, and that is what the interval is for. With \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2}, the angle’s point lies on the right half of the circle (Figure 1), where \cos\theta \ge 0; so \displaystyle \sqrt{9 - x^2} = 3\cos\theta. The same interval lets 3\sin\theta take every value from -3 to 3 exactly once, so each x in the domain has one \theta, the one an inverse sine would return.

θ
3
x
\displaystyle \sqrt{9 - x^2}
\displaystyle \theta = \frac{\pi}{2}
\displaystyle \theta = -\frac{\pi}{2}
Figure 1The vertical leg is x = 3\sin\theta and the horizontal leg is \displaystyle 3\cos\theta = \sqrt{9 - x^2}. With \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2} the point stays on the solid right half, so that leg is never negative.

The three standard substitutions, for a constant a > 0:

  • \displaystyle \sqrt{a^2 - x^2}: set x = a\sin\theta with \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2}; the root becomes a\cos\theta.
  • \displaystyle \sqrt{a^2 + x^2}: set x = a\tan\theta with \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2}; the root becomes a\sec\theta.
  • \displaystyle \sqrt{x^2 - a^2} for x \ge a: set x = a\sec\theta with \displaystyle 0 \le \theta < \frac{\pi}{2}; the root becomes a\tan\theta.

In each row the interval is chosen so that the function left under the root is not negative there.

Worked examples

Example 1

Two terms over the cosine

Simplify \sec x - \sin x\tan x and state where the result agrees with it.

Solution

Both \sec x and \tan x need \cos x \neq 0, so the expression is defined for \displaystyle x \neq \frac{\pi}{2} + k\pi. Write both terms in sine and cosine; they then share the denominator \cos x:

\begin{aligned} \sec x - \sin x\tan x &= \frac{1}{\cos x} - \frac{\sin^2 x}{\cos x} \\ &= \frac{1 - \sin^2 x}{\cos x} = \frac{\cos^2 x}{\cos x} = \cos x \end{aligned}

The last step cancels a \cos x, which is not zero on the domain. So \sec x - \sin x\tan x = \cos x for \displaystyle x \neq \frac{\pi}{2} + k\pi. The cosine exists everywhere, so the graph of the original is the cosine graph with holes at \displaystyle \left(\frac{\pi}{2} + k\pi, 0\right).

Example 2

Even, odd and cofunction together

Simplify \displaystyle \cos(-x)\csc(-x) + \sin\left(\frac{\pi}{2} - x\right)\sec x.

Solution

The cosecant needs \sin(-x) \neq 0, that is x \neq k\pi, and the secant needs \displaystyle x \neq \frac{\pi}{2} + k\pi; together, \displaystyle x \neq \frac{k\pi}{2}. Cosine is even, cosecant is odd, and the cofunction identity turns \displaystyle \sin\left(\frac{\pi}{2} - x\right) into \cos x:

\begin{aligned} &\cos(-x)\csc(-x) + \sin\left(\tfrac{\pi}{2} - x\right)\sec x \\ &\quad = \cos x\,(-\csc x) + \cos x\sec x \\ &\quad = -\frac{\cos x}{\sin x} + \frac{\cos x}{\cos x} = 1 - \cot x \end{aligned}

The result 1 - \cot x holds for \displaystyle x \neq \frac{k\pi}{2}. The short form also exists at \displaystyle x = \frac{\pi}{2} + k\pi, where \cot x = 0, so the original’s graph has holes at \displaystyle \left(\frac{\pi}{2} + k\pi, 1\right).

Example 3

Two fractions with partner denominators

Simplify \displaystyle \frac{\cos x}{1 - \sin x} - \frac{\cos x}{1 + \sin x}.

Solution

The denominators must be nonzero, so \sin x \neq 1 and \sin x \neq -1, which is the same as \cos x \neq 0: the domain is \displaystyle x \neq \frac{\pi}{2} + k\pi. The common denominator is (1 - \sin x)(1 + \sin x) = 1 - \sin^2 x = \cos^2 x:

\begin{aligned} &\frac{\cos x}{1 - \sin x} - \frac{\cos x}{1 + \sin x} \\ &\quad = \frac{\cos x\,(1 + \sin x) - \cos x\,(1 - \sin x)}{\cos^2 x} \\ &\quad = \frac{2\sin x\cos x}{\cos^2 x} = \frac{2\sin x}{\cos x} = 2\tan x \end{aligned}

Cancelling \cos x is allowed on the domain. Here 2\tan x needs exactly \cos x \neq 0 too, so the two agree for \displaystyle x \neq \frac{\pi}{2} + k\pi and the graphs match with no holes.

Example 4

A quadratic in the sine

Simplify \displaystyle \frac{\cos^2 x}{3\sin^2 x - 2\sin x - 5} and find the holes in the graph of the original.

Solution

Read the denominator as a quadratic in s = \sin x: 3s^2 - 2s - 5 = (3s - 5)(s + 1). It is zero when \sin x = -1 or \displaystyle \sin x = \frac{5}{3}, and the second is impossible, so the expression is defined for \displaystyle x \neq \frac{3\pi}{2} + 2k\pi. The numerator is half of a Pythagorean pair: \cos^2 x = 1 - \sin^2 x = (1 - \sin x)(1 + \sin x). Then

\begin{aligned} \frac{\cos^2 x}{3\sin^2 x - 2\sin x - 5} &= \frac{(1 - \sin x)(1 + \sin x)}{(3\sin x - 5)(\sin x + 1)} \\ &= \frac{1 - \sin x}{3\sin x - 5} \end{aligned}

cancelling \sin x + 1, which is not zero on the domain. The short form’s denominator satisfies 3\sin x - 5 \le -2, so it exists for every x. At \displaystyle x = \frac{3\pi}{2} + 2k\pi the original is the form \displaystyle \frac{0}{0}, while the short form gives \displaystyle \frac{1 - (-1)}{-3 - 5} = -\frac{1}{4}. The two agree for \displaystyle x \neq \frac{3\pi}{2} + 2k\pi, and the original’s graph has holes at \displaystyle \left(\frac{3\pi}{2} + 2k\pi, -\frac{1}{4}\right).

Example 5

Clearing a sum from a denominator

Rewrite \displaystyle \frac{\sin x}{1 + \cos x} as a difference of two single functions, and state where the new form agrees with the original.

Solution

The original needs 1 + \cos x \neq 0, so it is defined for x \neq \pi + 2k\pi. Its denominator is half of the pair (1 + \cos x)(1 - \cos x) = 1 - \cos^2 x = \sin^2 x, so multiply top and bottom by 1 - \cos x. That multiplies by 1 only where 1 - \cos x \neq 0, which removes x = 2k\pi as well:

\begin{aligned} \frac{\sin x}{1 + \cos x} &= \frac{\sin x\,(1 - \cos x)}{1 - \cos^2 x} \\ &= \frac{\sin x\,(1 - \cos x)}{\sin^2 x} \\ &= \frac{1 - \cos x}{\sin x} = \csc x - \cot x \end{aligned}

Cancelling \sin x is allowed because the two exclusions together leave x \neq k\pi, where \sin x \neq 0. So \displaystyle \frac{\sin x}{1 + \cos x} = \csc x - \cot x for x \neq k\pi. At x = 2k\pi the two part ways: the original is \displaystyle \frac{0}{2} = 0, while \csc x - \cot x has no value. This time the rewritten form lost inputs instead of gaining them.

Example 6

A sine substitution

Bautista substitutes x = 3\sin\theta, with \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2}, into \displaystyle \frac{\sqrt{9 - x^2}}{x}. Write the result as a single trigonometric function of \theta, and check it at \displaystyle x = \frac{3}{2}.

Solution

The expression is defined for -3 \le x \le 3 with x \neq 0. Each such x has exactly one \theta in the interval, and \theta \neq 0 because x \neq 0. Under the root,

9 - x^2 = 9 - 9\sin^2\theta = 9(1 - \sin^2\theta) = 9\cos^2\theta

so \displaystyle \sqrt{9 - x^2} = 3|\cos\theta| = 3\cos\theta, the bars dropping because \cos\theta \ge 0 on the interval (Figure 1). Dividing,

\frac{\sqrt{9 - x^2}}{x} = \frac{3\cos\theta}{3\sin\theta} = \cot\theta, \qquad \theta \neq 0

Check: \displaystyle x = \frac{3}{2} gives \displaystyle \sin\theta = \frac{1}{2}, so \displaystyle \theta = \frac{\pi}{6} and \displaystyle \cot\frac{\pi}{6} = \sqrt{3}. Directly, \displaystyle \sqrt{9 - \frac{9}{4}} \div \frac{3}{2} = \frac{3\sqrt{3}}{2} \cdot \frac{2}{3} = \sqrt{3}. The angle \displaystyle \frac{5\pi}{6} also has sine \displaystyle \frac{1}{2}, but there \cos\theta < 0, the root would equal -3\cos\theta, and the answer \cot\theta would come out with the wrong sign. The interval is what rules it out.

Example 7

A tangent substitution

Florencia substitutes x = 2\tan\theta, with \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2}, into \displaystyle \frac{\sqrt{x^2 + 4}}{x^2}. Write the result in terms of \theta using no squares, and check it at x = 2.

Solution

The expression is defined for x \neq 0. On the open interval 2\tan\theta takes every real value exactly once, so each x has one \theta, and \theta \neq 0. Under the root the second Pythagorean identity does the work:

x^2 + 4 = 4\tan^2\theta + 4 = 4(\tan^2\theta + 1) = 4\sec^2\theta

so \displaystyle \sqrt{x^2 + 4} = 2|\sec\theta| = 2\sec\theta, because \cos\theta > 0 on the open interval. Now rewrite in sine and cosine:

\begin{aligned} \frac{\sqrt{x^2 + 4}}{x^2} &= \frac{2\sec\theta}{4\tan^2\theta} \\ &= \frac{1}{2} \cdot \frac{1}{\cos\theta} \cdot \frac{\cos^2\theta}{\sin^2\theta} \\ &= \frac{\cos\theta}{2\sin^2\theta} = \frac{1}{2}\cot\theta\csc\theta \end{aligned}

Check: x = 2 gives \tan\theta = 1, so \displaystyle \theta = \frac{\pi}{4}, and \displaystyle \frac{1}{2} \cdot 1 \cdot \sqrt{2} = \frac{\sqrt{2}}{2}. Directly, \displaystyle \frac{\sqrt{8}}{4} = \frac{2\sqrt{2}}{4} = \frac{\sqrt{2}}{2}.

Boundaries

The short form stands in only on the original’s domain. Cancelling can make the short form exist at extra inputs (Examples 1, 2 and 4), which appear as holes in the original’s graph. Multiplying by a new factor can make it miss inputs where the original had a value (Example 5). Either way the result is an identity only on the stated set.

A cancelled factor must be nonzero. Dividing top and bottom by \sin x + 1 is allowed only where \sin x \neq -1, which is why that set leaves the domain.

The root of a square is an absolute value. \displaystyle \sqrt{1 - \sin^2 x} = |\cos x|, which equals \cos x only where \cos x \ge 0. A substitution drops the bars only because its interval fixes the sign; outside the interval the same algebra gives the negative.

A substitution covers only the values it reaches. x = 3\sin\theta reaches only -3 \le x \le 3, which is exactly where \displaystyle \sqrt{9 - x^2} exists. x = a\sec\theta with \displaystyle 0 \le \theta < \frac{\pi}{2} reaches only x \ge a; the values x \le -a need \displaystyle \frac{\pi}{2} < \theta \le \pi, where \tan\theta \le 0 and the root is -a\tan\theta.

Where this goes next

The same moves, aimed at a target, are how an identity is proved in Verifying identities: one side is simplified until it becomes the other. Simplifying first is also the opening step of most Solving trigonometric equations, where the domain bookkeeping decides which candidate solutions survive. The reverse of a substitution, getting from \theta back to an expression in x, is Composing trig and inverse trig functions, drawn with the same reference triangle as Figure 1. In calculus, trigonometric substitution is a standard way to handle \displaystyle \sqrt{a^2 - x^2}, \displaystyle \sqrt{a^2 + x^2} and \displaystyle \sqrt{x^2 - a^2}, in the same spirit as u-substitution.

Exercises

Rewrite and combine

Simplify, and state the set on which the result agrees with the original.

  1. \cos x + \sin x\tan x
  2. \displaystyle \frac{1 - \cos^2 x}{\sin x\cos x}
  3. \csc x - \cos x\cot x
  4. (\sec x - \tan x)(\sec x + \tan x)
  5. \displaystyle \frac{\sin x}{\csc x} + \frac{\cos x}{\sec x}
  6. \displaystyle \frac{1}{1 + \sin x} + \frac{1}{1 - \sin x}
  7. \displaystyle \frac{\cos x}{1 + \sin x} + \frac{1 + \sin x}{\cos x}

Even, odd and cofunction

Simplify, and state the set on which the result agrees with the original.

  1. \sin(-x)\csc x + \cos^2(-x)
  2. \displaystyle \sin\left(\frac{\pi}{2} - x\right)\tan x
  3. \displaystyle \frac{\tan(-x)}{\cot\left(\frac{\pi}{2} - x\right)}

Factor first

  1. Simplify \displaystyle \frac{\tan^2 x}{\sec x + 1}, state its domain, and find the holes in its graph.
  2. Simplify \sin^4 x - \cos^4 x.
  3. Simplify \displaystyle \frac{2\cos^2 x - \cos x - 1}{\sin^2 x} and find the holes in its graph.

Substitutions

Make the substitution and write the result in terms of \theta with no square root.

  1. \displaystyle \sqrt{16 - x^2} with x = 4\sin\theta, \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2}
  2. \displaystyle \sqrt{4x^2 + 49} with \displaystyle x = \frac{7}{2}\tan\theta, \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2}
  3. \displaystyle \sqrt{x^2 - 36} with x = 6\sec\theta, \displaystyle 0 \le \theta < \frac{\pi}{2}
  4. \displaystyle \frac{x^2}{\sqrt{1 - x^2}} with x = \sin\theta, \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2}
  5. \displaystyle \frac{\sqrt{4 - 9x^2}}{x} with \displaystyle x = \frac{2}{3}\sin\theta, \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2}, \theta \neq 0
  6. \displaystyle \sqrt{x^2 - 36} with x = 6\sec\theta, but now for x \le -6, using \displaystyle \frac{\pi}{2} < \theta \le \pi
  7. \displaystyle \frac{1}{1 + x^2} with x = \tan\theta, \displaystyle -\frac{\pi}{2} < \theta < \frac{\pi}{2}

Reasoning

  1. Explain why the substitution x = 3\sin\theta comes with the interval \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2}. What would go wrong with \displaystyle \frac{\pi}{2} \le \theta \le \frac{3\pi}{2}?
  2. Emiliano writes \displaystyle \frac{\sin^2 x}{1 - \cos x} = 1 + \cos x and says the two sides are the same function. Where is he right, and where not?
  3. Explain why cancelling a common factor can only give a short form that exists at least everywhere the original does, while multiplying top and bottom by a new factor, as in Example 5, can lose inputs.
Answers
  1. \sec x, for \displaystyle x \neq \frac{\pi}{2} + k\pi. \displaystyle \cos x + \frac{\sin^2 x}{\cos x} = \frac{\cos^2 x + \sin^2 x}{\cos x} = \frac{1}{\cos x}; both sides need exactly \cos x \neq 0.
  2. \tan x, for \displaystyle x \neq \frac{k\pi}{2}. \displaystyle \frac{\sin^2 x}{\sin x\cos x} = \frac{\sin x}{\cos x}, cancelling the nonzero \sin x; the original’s graph is the tangent graph with holes at (k\pi, 0).
  3. \sin x, for x \neq k\pi. \displaystyle \frac{1}{\sin x} - \frac{\cos^2 x}{\sin x} = \frac{1 - \cos^2 x}{\sin x} = \frac{\sin^2 x}{\sin x}.
  4. 1, for \displaystyle x \neq \frac{\pi}{2} + k\pi. The product is \sec^2 x - \tan^2 x, and 1 + \tan^2 x = \sec^2 x.
  5. 1, for \displaystyle x \neq \frac{k\pi}{2}. \displaystyle \frac{\sin x}{\csc x} = \sin^2 x and \displaystyle \frac{\cos x}{\sec x} = \cos^2 x; the original needs both \csc x and \sec x to exist.
  6. 2\sec^2 x, for \displaystyle x \neq \frac{\pi}{2} + k\pi. Over (1 + \sin x)(1 - \sin x) = \cos^2 x the numerator is (1 - \sin x) + (1 + \sin x) = 2; the original needs \sin x \neq \pm 1, which is \cos x \neq 0.
  7. 2\sec x, for \displaystyle x \neq \frac{\pi}{2} + k\pi. Over (1 + \sin x)\cos x the numerator is \cos^2 x + 1 + 2\sin x + \sin^2 x = 2(1 + \sin x), and 1 + \sin x \neq 0 wherever \cos x \neq 0.
  8. -\sin^2 x, for x \neq k\pi. \sin(-x) = -\sin x and \cos(-x) = \cos x, so the expression is -1 + \cos^2 x.
  9. \sin x, for \displaystyle x \neq \frac{\pi}{2} + k\pi. \displaystyle \sin\left(\frac{\pi}{2} - x\right) = \cos x and \displaystyle \cos x \cdot \frac{\sin x}{\cos x} = \sin x; the original’s graph is the sine graph with its highest and lowest points removed.
  10. -1, for \displaystyle x \neq \frac{k\pi}{2}. \tan(-x) = -\tan x and \displaystyle \cot\left(\frac{\pi}{2} - x\right) = \tan x; the division needs \tan x to exist and be nonzero.
  11. \sec x - 1, for \displaystyle x \neq \frac{\pi}{2} + k\pi and x \neq \pi + 2k\pi. \tan^2 x = \sec^2 x - 1 = (\sec x - 1)(\sec x + 1), and the denominator needs \sec x \neq -1, that is \cos x \neq -1. The short form exists at x = \pi + 2k\pi, so the holes are at (\pi + 2k\pi, -2).
  12. \sin^2 x - \cos^2 x, for every real x. Difference of squares: (\sin^2 x - \cos^2 x)(\sin^2 x + \cos^2 x), and the second factor is 1. The form 2\sin^2 x - 1 is equally short.
  13. \displaystyle -\frac{2\cos x + 1}{1 + \cos x}, for x \neq k\pi. The numerator is (2\cos x + 1)(\cos x - 1) and the denominator 1 - \cos^2 x = (1 - \cos x)(1 + \cos x), with \displaystyle \frac{\cos x - 1}{1 - \cos x} = -1. The short form exists at x = 2k\pi, so the holes are at \displaystyle \left(2k\pi, -\frac{3}{2}\right).
  14. 4\cos\theta. 16 - 16\sin^2\theta = 16\cos^2\theta, and 4|\cos\theta| = 4\cos\theta because \cos\theta \ge 0 on the interval.
  15. 7\sec\theta. 4x^2 = 49\tan^2\theta, so 4x^2 + 49 = 49\sec^2\theta, and \sec\theta > 0 on the open interval.
  16. 6\tan\theta. 36\sec^2\theta - 36 = 36\tan^2\theta, and \tan\theta \ge 0 for \displaystyle 0 \le \theta < \frac{\pi}{2}.
  17. \sin\theta\tan\theta. \displaystyle \frac{\sin^2\theta}{\sqrt{\cos^2\theta}} = \frac{\sin^2\theta}{\cos\theta} because \cos\theta > 0 on the open interval, and \displaystyle \frac{\sin\theta}{\cos\theta} = \tan\theta.
  18. 3\cot\theta. 9x^2 = 4\sin^2\theta, so the root is \displaystyle \sqrt{4\cos^2\theta} = 2\cos\theta, and \displaystyle \frac{2\cos\theta}{\frac{2}{3}\sin\theta} = 3\cot\theta.
  19. -6\tan\theta. The root is 6|\tan\theta|, and \tan\theta \le 0 for \displaystyle \frac{\pi}{2} < \theta \le \pi. At \displaystyle \theta = \frac{3\pi}{4}: \displaystyle x = -6\sqrt{2}, the root is \displaystyle \sqrt{72 - 36} = 6, and \displaystyle -6\tan\frac{3\pi}{4} = 6.
  20. \cos^2\theta. 1 + \tan^2\theta = \sec^2\theta and \displaystyle \frac{1}{\sec^2\theta} = \cos^2\theta; no root is taken, so no sign question arises.
  21. On \displaystyle -\frac{\pi}{2} \le \theta \le \frac{\pi}{2}, 3\sin\theta takes every value from -3 to 3 exactly once, so every x where \displaystyle \sqrt{9 - x^2} exists has one \theta; and \cos\theta \ge 0 there, so \displaystyle \sqrt{9\cos^2\theta} = 3\cos\theta. The interval \displaystyle \frac{\pi}{2} \le \theta \le \frac{3\pi}{2} also reaches each x once, but there \cos\theta \le 0, so the root would be -3\cos\theta and every formula would carry an extra minus sign.
  22. He is right for x \neq 2k\pi: \displaystyle \frac{\sin^2 x}{1 - \cos x} = \frac{(1 - \cos x)(1 + \cos x)}{1 - \cos x} = 1 + \cos x, cancelling the nonzero 1 - \cos x. At x = 2k\pi the left side is \displaystyle \frac{0}{0} and has no value, while 1 + \cos x = 2. So they are different functions: the left side’s graph is the graph of 1 + \cos x with holes at (2k\pi, 2).
  23. Cancelling removes a factor from the denominator, so the short form’s denominator is zero at no more inputs than before, and the short form exists wherever the original does. Multiplying top and bottom by a new factor f puts f into the denominator, so the new form fails wherever f = 0, even where the original had a value. In Example 5, f = 1 - \cos x is zero at x = 2k\pi, where the original is 0 and \csc x - \cot x does not exist.
unattributed · CC-BY-SA-4.0