Skip to content
Tutorials Center
My learning

Topics

Lesson 26 of 38 · Solving Trigonometric Equations

Factorable and Quadratic Trigonometric Equations

Solve trig equations that factor or look like quadratics in sin x or cos x, avoid dividing out solutions, and verify every root with code.

Many trig equations are algebra equations in disguise. 2sin²x − sin x − 1 = 0 is a quadratic where the unknown is sin x. sin x cos x = sin x factors. Once you spot the algebra, you solve it exactly as you would in algebra class, and then you solve the simple trig equations that result.

Quadratic in a single trig function

Treat the trig function as a variable. Let s = sin x (or c = cos x, t = tan x).

Example 1: 2sin²x − sin x − 1 = 0 for 0° ≤ x < 360°.

  1. Let s = sin x: 2s² − s − 1 = 0.
  2. Factor: (2s + 1)(s − 1) = 0.
  3. s = −1/2 or s = 1.
  4. sin x = −1/2: x = 210°, 330°. sin x = 1: x = 90°.

Solutions: x = 90°, 210°, 330°.

Example 2: cos²x + 3cos x + 2 = 0.

Factor: (cos x + 1)(cos x + 2) = 0. cos x = −2 is impossible (cosine is never below −1). cos x = −1 gives x = 180°.

After solving the quadratic, always check each value against the range of the function. A root such as sin x = 2 or cos x = −2 gives no angles. It is an extraneous root, not a mistake in the algebra.

Using the quadratic formula

When the quadratic does not factor, use s = (−b ± √(b² − 4ac)) / (2a).

Example 3: sin²x − 2 sin x − 0.5 = 0 does not factor nicely. With a = 1, b = −2, c = −0.5: s = (2 ± √(4 + 2))/2 = 1 ± √6/2, which is about 2.2247 or −0.2247. Only s = −0.2247 is allowed, because sine cannot exceed 1. The reference angle is arcsin 0.2247 ≈ 12.98°, and sine is negative in quadrants III and IV, so x ≈ 192.98° or 347.02°.

Factoring by common factor, and the dividing trap

Example 4: sin x cos x = sin x, 0° ≤ x < 360°.

Tempting but wrong: divide both sides by sin x. That throws away the solutions where sin x = 0. Instead, move everything to one side and factor:

Text
sin x cos x − sin x = 0
sin x (cos x − 1) = 0
sin x = 0   →  x = 0°, 180°
cos x = 1   →  x = 0°

Solutions: x = 0°, 180°. Dividing by sin x would have given cos x = 1 and lost 180°.

Example 5: 2sin x cos x + cos x = 0. Factor cos x (2 sin x + 1) = 0. cos x = 0: x = 90°, 270°. sin x = −1/2: x = 210°, 330°.

Example 6: tan²x − tan x = 0: tan x (tan x − 1) = 0, so tan x = 0 gives x = 0°, 180° and tan x = 1 gives x = 45°, 225°.

Difference of squares

4cos²x − 3 = 0. Treat it as cos²x = 3/4, so cos x = ±√3/2. For cos x = √3/2: 30°, 330°. For cos x = −√3/2: 150°, 210°. Four solutions: 30°, 150°, 210°, 330°. Remember the ± when you take a square root.

Python Solve quadratics in sin x or cos x

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Why you should never divide by a trig function

Python The dividing trap

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A solving checklist

  1. Move everything to one side so the other side is 0.
  2. Factor (common factor, difference of squares, quadratic factoring or the formula).
  3. Set each factor to 0 and solve the simple equations.
  4. Discard impossible values (|sin| or |cos| greater than 1).
  5. List all angles in the interval and check.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Solve 2cos²x − cos x = 0 for 0° ≤ x < 360°. Which list is complete?

    Factor: cos x (2cos x − 1) = 0. cos x = 0 gives 90°, 270°; cos x = 1/2 gives 60°, 300°.
  2. 2. Why is dividing both sides of sin x cos x = sin x by sin x risky?

    Dividing by an expression that can be zero removes those solutions. Factor instead.
  3. 3. In the quadratic 2s² + s − 1 = 0, with s = sin x, one root is s = −1. What does that give for 0° ≤ x < 360°?

    sin x = −1 happens only at 270° in one turn.
  4. 4. What are the possible values of cos x if 4cos²x = 3?

    cos²x = 3/4, so cos x = ±√3/2 (take both square roots).

Summary

  • Treat sin x, cos x or tan x as a variable and factor or use the quadratic formula.
  • Discard roots outside the range of the function (|sin x| ≤ 1, |cos x| ≤ 1).
  • Never divide by a trig function that could be zero; factor it out.
  • Remember ± when taking square roots.
  • Solve every simple equation that results, then list all angles in the interval.

Next: Equations That Need Identities