Trigonometric Equation Solver
Choose the function and enter m as a number or a radical. Solutions can be written in radians or degrees, and you can list the roots inside an interval.
The solver above handles the four basic trigonometric equations with the standard solution formulas taught in grade 11. When m is a special value, the angle α is written exactly in radians with π or in degrees. If you choose an interval [A; B], the tool solves an inequality for the integer k and lists every solution. Three figures below show where the formulas come from, and the article ends with a 7-question quiz on the theory.
Standard solution formulas
For sin x = m and cos x = m, first check that |m| ≤ 1. Otherwise there is no solution, because sine and cosine only take values in [−1; 1].
When the condition holds, take α = arcsin(m) with α in [−π/2; π/2], or α = arccos(m) with α in [0; π].
Sine is the y-coordinate of the point on the unit circle, so sin x = m means the horizontal line y = m meets the circle. The two intersection points are mirror images across the y-axis, which is why the second family is π − α. Cosine is the x-coordinate, so the vertical line x = m gives two points mirrored across the x-axis, hence ±α.
Tangent and cotangent are defined for every real m, but the unknown must satisfy a condition:
In degrees, the period 2π becomes 360° and the period π becomes 180°.
Special cases m = 0, 1, −1
| Equation | Compact solution |
|---|---|
| sin x = 0 | x = kπ. The families k2π and π + k2π merge. |
| sin x = 1 | x = π/2 + k2π. The two families coincide. |
| sin x = −1 | x = −π/2 + k2π. |
| cos x = 1 | x = k2π. |
| cos x = −1 | x = π + k2π. |
| cos x = 0 | x = π/2 + kπ. |
| tan x = 0 | x = kπ, and the domain condition already holds. |
| cot x = 0 | x = π/2 + kπ. |
For m = 1 or m = −1 with sine and cosine, do not write two different families when they only differ by a multiple of the period.
Finding the solutions in an interval
A family of solutions has the form x = α + kT. To keep x inside [A; B], solve the inequality for the integer k:
k runs from the smallest integer not below the lower bound to the largest integer not above the upper bound. Each k gives one solution. For sine or cosine with two families, handle each family separately, then sort the solutions in increasing order. If A is greater than B the interval is invalid. If no integer k fits, the equation has no solution in that interval.
Three worked examples
Example 1. sin x = 1/2
Since |1/2| < 1, the equation has solutions. α = π/6.
In [0; 2π] only k = 0 works in each family, so the two solutions are π/6 and 5π/6. In degrees they are 30° and 150°, with period 360°.
Example 2. cos x = −1
α = π. The expressions π + k2π and −π + k2π describe the same family.
In degrees: x = 180° + k·360°.
Example 3. tan x = √3 on [0°; 360°]
Domain condition: x ≠ 90° + k·180°. α = 60°.
From 0° ≤ 60° + k·180° ≤ 360° we get k = 0 or k = 1. The solutions are 60° and 240°. Both differ from 90° and 270°, so both are accepted.
Common mistakes
- Solving sin x = 2. This equation has no solution. Never take the arcsine of a number whose absolute value exceeds 1.
- Forgetting the condition for tan and cot. The formula x = α + kπ already avoids the undefined points, but when you list solutions in an interval, check again.
- Writing two families for sin x = 1. π/2 and π − π/2 are the same number. Only one family remains.
- Using a non-integer k. The bounds of the inequality can be fractions. k must be an integer between the two bounds, including the bounds themselves when they are integers.
🎯 Practice quiz: theory of basic trigonometric equations
Seven questions cover the four solution formulas, the condition for solutions to exist, the special cases and solutions in an interval. Pick one answer for each question: the correct answer turns green, a wrong one turns red, and the worked solution appears right below with a ⚠️ Traps section explaining why the distractors are tempting.
🔴 Sine equation Question 1. The solutions of sin x = √3/2 are:
Correct answer: C. x = π/3 + k2π or x = 2π/3 + k2π
Since |√3/2| ≤ 1, the equation has solutions. Take α = arcsin(√3/2) = π/3, which lies in [−π/2; π/2], and apply the sine solution formula:
On the unit circle, the line y = √3/2 cuts the circle at two points symmetric about the y-axis, one for each family.
⚠️ Traps
- A (±π/3 + k2π): the ±α formula of cosine. For sine the second angle is π − α, not −α: sin(−π/3) = −√3/2.
- B (π/6 and 5π/6): the wrong special value. sin(π/6) = 1/2, while √3/2 is sin(π/3).
- D (π/3 + kπ): the two families squeezed into period π as for tangent. With k = 1 we get 4π/3, but sin(4π/3) = −√3/2.
🔵 Cosine equation Question 2. The solutions of cos x = −√2/2 are:
Correct answer: A. x = ±3π/4 + k2π
Take α = arccos(−√2/2). The arccosine of a negative number lies in (π/2; π], here α = 3π/4 because cos(3π/4) = −cos(π/4) = −√2/2. Apply the cosine solution formula:
⚠️ Traps
- B (±π/4 + k2π): the minus sign is dropped. cos(π/4) = √2/2 is positive; a negative cosine needs an angle in quadrant II or III.
- C (3π/4 and π/4): the sine formula π − α is used. cos(π/4) = √2/2, so π/4 is not a solution.
- D (±3π/4 + kπ): the wrong period. With k = 1, 3π/4 + π = 7π/4 and cos(7π/4) = √2/2.
🟢 Tangent equation Question 3. The solutions of tan x = −1 are:
Correct answer: D. x = −π/4 + kπ
Condition: cos x ≠ 0, that is x ≠ π/2 + kπ. Take α = arctan(−1) = −π/4, which lies in (−π/2; π/2). Tangent has period π, so there is only one family:
Writing x = 3π/4 + kπ is also correct, because the two expressions differ by π.
⚠️ Traps
- A (π/4 + kπ): the sign is forgotten: tan(π/4) = 1, not −1.
- B (−π/4 + k2π): period 2π copied from sine and cosine. Half the solutions go missing, for example 3π/4 with tan(3π/4) = −1.
- C (−3π/4 + kπ): the wrong α. −3π/4 is in quadrant III, where tangent is positive: tan(−3π/4) = 1. The arctangent always lies in (−π/2; π/2).
🟣 Cotangent equation Question 4. The solutions of cot x = √3 are:
Correct answer: B. x = π/6 + kπ
Condition: sin x ≠ 0, that is x ≠ kπ. Take α = arccot √3 in (0; π). Since cot(π/6) = cos(π/6)/sin(π/6) = (√3/2):(1/2) = √3, we get α = π/6:
⚠️ Traps
- A (π/3 + kπ): confused with tan x = √3. In fact cot(π/3) = √3/3.
- C (π/6 + k2π): cotangent has period π, not 2π. The solution 7π/6 is missed.
- D (±π/6 + kπ): the ± of cosine added by habit. cot(−π/6) = −√3, so −π/6 is not a solution.
⚠️ Existence of solutions Question 5. Which of the following equations has no solution:
Correct answer: B. cos x = π/3
Sine and cosine only take values in [−1; 1]. On the right-hand side, π/3 is just a real number, π/3 ≈ 1.047 > 1, so cos x = π/3 has no solution.
The other three have solutions: π/4 ≈ 0.785 and 1 − √3 ≈ −0.732 both lie in [−1; 1], and tangent takes every real value, so tan x = 2026 gives x = arctan 2026 + kπ.
⚠️ Traps
- A (sin x = π/4): reading π/4 as the angle 45°. Here it is the value m ≈ 0.785 ≤ 1, so x = arcsin(π/4) + k2π or x = π − arcsin(π/4) + k2π.
- C (tan x = 2026): 2026 looks too large. The condition |m| ≤ 1 only applies to sine and cosine; tangent and cotangent take every real value.
- D (sin x = 1 − √3): a negative surd looks suspicious, but 1 − √3 ≈ −0.732 lies in [−1; 1].
⭐ Special case Question 6. The solutions of cos x = 0 are:
Correct answer: A. x = π/2 + kπ
α = arccos 0 = π/2, so the formula gives x = ±π/2 + k2π. The two points π/2 and −π/2 are B and B′ on the y-axis, symmetric through O and exactly π apart, so the two families merge into one:
⚠️ Traps
- B (kπ): confused with sin x = 0, whose solutions are the points A and A′ on the x-axis.
- C (π/2 + k2π): only the + sign is kept, so B′ is lost. For example cos(3π/2) = 0, but 3π/2 is not in this family.
- D (k2π): confused with cos x = 1, the point A.
📏 Solutions in an interval Question 7. The number of solutions of sin x = 1/2 in the interval [0; 3π] is:
Correct answer: C. 4
The two families are x = π/6 + k2π and x = 5π/6 + k2π. Solve the inequality for the integer k in each family:
The solutions are π/6, 5π/6, 13π/6 and 17π/6, so there are 4.
⚠️ Traps
- A (2): only one turn [0; 2π] is checked. An interval of length 3π contains another half turn.
- B (3): k = 1 is taken in one family but not the other. 5π/6 + 2π = 17π/6 ≈ 2.83π is still ≤ 3π.
- D (6): period π is used as for tangent, which adds points such as 7π/6 where sin x = −1/2.
Frequently asked questions
When does sin x = m have no solution?
When the absolute value of m is greater than 1. Sine and cosine only take values from −1 to 1. Tangent and cotangent have solutions for every real m, as long as x satisfies the domain condition.
How do the solution formulas of sine and cosine differ?
sin x = m gives two families: x = α + k2π or x = π − α + k2π. cos x = m gives a ± form: x = ±α + k2π. The α of sine lies from −π/2 to π/2, and the α of cosine lies from 0 to π.
What condition does tan x = m require?
Tangent is defined when x is not π/2 + kπ. Then the solutions are x = α + kπ, with α = arctan(m) in the open interval from −π/2 to π/2.
What is special about m = 1 and m = −1?
For sine and cosine, the two families coincide. sin x = 1 leaves only x = π/2 + k2π. cos x = 1 leaves only x = k2π. cos x = −1 leaves only x = π + k2π. sin x = −1 leaves only x = −π/2 + k2π.
How do I find the solutions in an interval [A; B]?
For each family x = α + kT, solve A ≤ α + kT ≤ B. So k lies between (A − α)/T and (B − α)/T. Keep only the integers k, then substitute them back to list x.