Chuyển đến nội dung

Bài 27 · Solving Trigonometric Equations

Equations That Need Identities

Rewrite mixed trig equations with the Pythagorean and double-angle identities, and solve a sin x + b cos x = c with the R-formula, checked in code.

Some equations mix different functions or different angles: 2cos²x + 3sin x = 3 has both sine and cosine; cos 2x = sin x has two different angles. You cannot factor them directly. The fix is to use an identity to rewrite the equation using a single function of a single angle, then solve as before.

Pythagorean identity: swap cos² for sin²

Example 1: 2cos²x + 3sin x − 3 = 0, 0° ≤ x < 360°.

Replace cos²x with 1 − sin²x:

Text
2(1 − sin²x) + 3 sin x − 3 = 0
−2 sin²x + 3 sin x − 1 = 0
2 sin²x − 3 sin x + 1 = 0
(2 sin x − 1)(sin x − 1) = 0

sin x = 1/2: x = 30°, 150°. sin x = 1: x = 90°. Solutions: 30°, 90°, 150°.

Example 2: sec²x = 3 tan x − 1. Using sec²x = 1 + tan²x: 1 + tan²x = 3 tan x − 1, so tan²x − 3 tan x + 2 = 0, which factors as (tan x − 1)(tan x − 2) = 0. tan x = 1: 45°, 225°. tan x = 2: arctan 2 ≈ 63.43°, so 63.43°, 243.43°.

Double-angle identity: unify the angles

Example 3: cos 2x = sin x. Use cos 2x = 1 − 2sin²x (the version containing only sine):

Text
1 − 2 sin²x = sin x
2 sin²x + sin x − 1 = 0
(2 sin x − 1)(sin x + 1) = 0

sin x = 1/2: 30°, 150°. sin x = −1: 270°. Solutions: 30°, 150°, 270°.

Example 4: sin 2x = cos x. Use sin 2x = 2 sin x cos x:

Text
2 sin x cos x − cos x = 0
cos x (2 sin x − 1) = 0

cos x = 0: 90°, 270°. sin x = 1/2: 30°, 150°. Solutions: 30°, 90°, 150°, 270°. (Do not divide by cos x!)

Choose the form of the identity that leaves you with one function. If the equation has sin x already, prefer cos 2x = 1 − 2sin²x. If it has cos x, use cos 2x = 2cos²x − 1.

The R-formula: a sin x + b cos x = c

Sometimes you cannot reduce to one function. Equations like sin x + cos x = 1 need a different identity. Write the left side as a single sine wave:

Text
a sin x + b cos x = R sin(x + α)
where  R = √(a² + b²),  tan α = b / a  (α in the quadrant given by the signs of a and b)

This comes from the sum formula: R sin(x + α) = R sin x cos α + R cos x sin α, so a = R cos α and b = R sin α.

Example 5: sin x + cos x = 1 on 0° ≤ x < 360°. Here a = b = 1, so R = √2 and α = 45°.

Text
√2 sin(x + 45°) = 1
sin(x + 45°) = 1/√2

x + 45° runs from 45° to 405°. sin u = √2/2 gives u = 45°, 135° (and 405° would equal x = 360°, outside the interval). So x = 0° or 90°.

Check: sin 0° + cos 0° = 1, and sin 90° + cos 90° = 1.

Python The R-formula as a solver

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.

For 3 sin x + 4 cos x, R = 5 and α = arctan(4/3) ≈ 53.13°. The maximum value of the expression is therefore 5, so 3 sin x + 4 cos x = 6 has no solution.

A brute-force safety net

For tricky equations, you can scan the interval for sign changes and refine each with bisection. This does not replace algebra, but it is a great way to confirm your answers.

Python Numerical solver by scanning and bisection

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.

If the scan misses a solution where the graph only touches zero (like sin x = 1 at 90°), it may report it through the exact-zero check or not at all. That is why algebra remains the main tool and numeric solving is the check.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. To solve cos 2x = sin x using one function, which form of cos 2x is most convenient?

    1 − 2sin²x leaves the equation entirely in sin x, giving a quadratic in sin x.
  2. 2. What is R in sin x + √3 cos x = R sin(x + α)?

    R = √(1² + (√3)²) = √4 = 2 (and α = 60°).
  3. 3. Solve sin 2x = cos x for 0° ≤ x < 360°. How many solutions are there?

    cos x (2 sin x − 1) = 0 gives 90°, 270° from cos x = 0 and 30°, 150° from sin x = 1/2: four solutions.
  4. 4. Does 3 sin x + 4 cos x = 6 have a solution?

    3 sin x + 4 cos x = 5 sin(x + α) can never exceed 5.

Summary

  • Rewrite with Pythagorean identities so only one function remains, then factor or use the quadratic formula.
  • Use double-angle identities to put everything in terms of one angle.
  • Never divide by cos x or sin x; factor.
  • For a sin x + b cos x = c, use R = √(a² + b²); a solution exists only when |c| ≤ R.
  • Confirm with substitution or a numeric scan.

Next: The Law of Sines

Theo dõi tiến độ của bạn

Tạo tài khoản miễn phí để đánh dấu bài đã học và tiếp tục từ chỗ bạn dừng lại trên mọi thiết bị.