Trig Equation Solver

Solve A·sin(Bx + C) + D = K (or cos, tan) for every x from 0° to 360° (0 to 2π), with exact angles like 5π/6 and the general solution.

A non-zero number up to 24, e.g. 2 for cos(2x).
For tan(x − π/2) enter −90° (or −1.5708 rad).
A number, a fraction, or a root form such as √3/2, −√2/2, 2√3/3 or 1/√2.

Results

Solutions from 0° to 360°
30°, 150°, 210°, 330°
The same solutions from 0 to 2π (radians)
π/6, 5π/6, 7π/6, 11π/6
Number of solutions from 0° to 360°
4
All solutions (n is any whole number)
x = 30° + 180°·n or x = 150° + 180°·n
Working
Isolate the cos: cos(2x) = (K − D) ÷ A = (0.5 − 0) ÷ 1 = 0.5 Let u = 2x. cos⁻¹(0.5) = 60°; cos also equals 0.5 at −60° = −60°, so u = 60° + 360°·n or u = −60° + 360°·n Solve for x: x = u ÷ 2, then keep the values with 0° ≤ x < 360°.

How it’s calculated

To solve a linear trig equation, isolate the trig function, find one angle with the inverse function, use the symmetry of the unit circle to find the others, then undo the inside of the bracket:

A·f(Bx + C) + D = K → f(u) = (K − D) ÷ A, where u = Bx + C sin u = r: u = sin⁻¹ r + 360°n or u = 180° − sin⁻¹ r + 360°n cos u = r: u = cos⁻¹ r + 360°n or u = −cos⁻¹ r + 360°n tan u = r: u = tan⁻¹ r + 180°n x = (u − C) ÷ B

sin u and cos u must be between −1 and 1, so an equation such as sin x = 2 has no solution. Because B squeezes the graph, the equation has about 2|B| solutions in one turn instead of 2.

Example (OpenStax Precalculus 2e, §7.5 Example 17): cos(2x) = 1/2 on [0, 2π). cos⁻¹(1/2) = 60°, so 2x = 60° + 360°n or 2x = −60° + 360°n, giving x = 30° + 180°n or x = 150° + 180°n. From 0° to 360° that is 30°, 150°, 210° and 330°, which is π/6, 5π/6, 7π/6 and 11π/6.

Frequently asked questions

Why does the calculator give more answers than my calculator’s sin⁻¹ key?

The inverse key gives only the principal value. Sine and cosine take each value twice in every full turn (and tangent once every half turn), so an equation usually has several solutions between 0° and 360°.

How do I solve csc, sec or cot equations?

Turn them into sin, cos or tan first: csc x = −2 is sin x = −1/2, sec x = −4 is cos x = −1/4, and cot x = 3 is tan x = 1/3.

What does the general solution mean?

It lists every solution, not just those in one turn. Adding any whole multiple of the spacing (360° ÷ |B| for sin and cos, 180° ÷ |B| for tan) gives another solution.

Can I enter √3/2 for K?

Yes. K accepts root forms such as √3/2, −√2/2 or 2√3/3 (or sqrt(3)/2), so standard angles come out exactly, such as 5π/6.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator