Trigonometric Equation Solver

Basic Trigonometric Equation Solver sin x = m

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 solutions
cosine solutions

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 ±α.

Solving sin x = m and cos x = m on the unit circlecossinO1cossinO1|m| > 1: no intersectiony = 1/2αM₁: π/6M₂: 5π/6sin x = 1/2x = π/6 + k2π or x = 5π/6 + k2πx = 1/2α−αM₁: π/3M₂: −π/3cos x = 1/2x = ±π/3 + k2π
Left: sin x is the y-coordinate, so sin x = 1/2 means the horizontal line y = 1/2 meets the unit circle. The two points M₁ (π/6) and M₂ (5π/6) are mirror images across the y-axis, which gives the two families α + k2π and π − α + k2π. A line y = m with |m| > 1 misses the circle, so the equation has no solution. Right: cos x is the x-coordinate, so the vertical line x = 1/2 meets the circle at M₁ (π/3) and M₂ (−π/3), mirror images across the x-axis, which gives x = ±π/3 + k2π.

Tangent and cotangent are defined for every real m, but the unknown must satisfy a condition:

tangent solutions
cotangent solutions
Solving tan x = m with the tangent axis+παOABB′tsTAT = √3M: π/3M′: π/3 + π = 4π/3tan x = √3 ⇔ x = π/3 + kπOM meets the tangent axis At at T, AT = m.Line OT cuts the circle at M and M′,symmetric through O, exactly π apart.→ one family only, period π.B and B′ have cos x = 0, so they areexcluded: x ≠ π/2 + kπ.cot x = m: use the cotangent axis Bs(tangent line at B), BS = m.x = α + kπ, α = arccot m ∈ (0; π)Condition: x ≠ kπ (sin x ≠ 0).
To solve tan x = √3, mark T on the tangent axis At with AT = √3 and draw the line OT. It cuts the unit circle at two points M (π/3) and M′ (4π/3) that are symmetric through O, so they differ by exactly π and merge into one family x = π/3 + kπ. The points B and B′, where tangent is undefined, are never solutions. Cotangent works the same way with the cotangent axis Bs.

In degrees, the period 2π becomes 360° and the period π becomes 180°.

Special cases m = 0, 1, −1

EquationCompact solution
sin x = 0x = kπ. The families k2π and π + k2π merge.
sin x = 1x = π/2 + k2π. The two families coincide.
sin x = −1x = −π/2 + k2π.
cos x = 1x = k2π.
cos x = −1x = π + k2π.
cos x = 0x = π/2 + kπ.
tan x = 0x = kπ, and the domain condition already holds.
cot x = 0x = π/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:

inequality for 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.

Solutions of sin x = 1/2 in the interval [0; 2π]interval [0; 2π]−ππ2π3πO1−1xyy = sin xy = 1/2π/6k = 05π/6k = 013π/6k = 117π/6k = 1solution inside [0; 2π]outside the interval
The graph of y = sin x meets the line y = 1/2 at π/6 + k2π and 5π/6 + k2π. Inside the shaded interval [0; 2π], each family only allows k = 0, giving the two solutions π/6 and 5π/6. The intersections 13π/6 and 17π/6 come from k = 1 and already exceed 2π. On [−π; 0] sine is never positive, so there is no intersection there.

Three worked examples

Example 1. sin x = 1/2

Since |1/2| < 1, the equation has solutions. α = π/6.

solutions of sin x = 1/2

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.

cos x = −1

In degrees: x = 180° + k·360°.

Example 3. tan x = √3 on [0°; 360°]

Domain condition: x ≠ 90° + k·180°. α = 60°.

x = 60° + k·180°

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

  1. Solving sin x = 2. This equation has no solution. Never take the arcsine of a number whose absolute value exceeds 1.
  2. 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.
  3. Writing two families for sin x = 1. π/2 and π − π/2 are the same number. Only one family remains.
  4. 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:

🔵 Cosine equation Question 2. The solutions of cos x = −√2/2 are:

🟢 Tangent equation Question 3. The solutions of tan x = −1 are:

🟣 Cotangent equation Question 4. The solutions of cot x = √3 are:

⚠️ Existence of solutions Question 5. Which of the following equations has no solution:

⭐ Special case Question 6. The solutions of cos x = 0 are:

📏 Solutions in an interval Question 7. The number of solutions of sin x = 1/2 in the interval [0; 3π] is:

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.

🔗 Related tools