MathsTrigonometry

Trigonometric Equation
solver.

Solve sin, cos and tan equations for every angle in your interval, with steps.

How it's worked out

The solver takes two shapes, which cover most textbook equations. The first is a stretched and shifted wave set equal to 0. The second is a quadratic in the trig function, with sin or cos or tan in place of x.

asin⁡(bx+c)+d\displaystyle a\sin(bx + c) + d=0\displaystyle {}= 0
Asin2⁡x+Bsin⁡x+C\displaystyle A\sin^2 x + B\sin x + C=0\displaystyle {}= 0

For the first shape, it moves everything else across to get the function alone, with θ=bx+c\theta = bx + c as the angle. If the target is outside −1 to 1 for sine or cosine, no real angle works. Otherwise, each function gives its own family of angles, where k is your target value and n is any whole number.

sin⁡θ\displaystyle \sin\theta=k\displaystyle {}= k⇒θ\displaystyle {}\Rightarrow \theta=arcsin⁡k+2πn\displaystyle {}= \arcsin k + 2\pi n
or θ\displaystyle \text{or } \theta=π−arcsin⁡k+2πn\displaystyle {}= \pi - \arcsin k + 2\pi n
cos⁡θ\displaystyle \cos\theta=k\displaystyle {}= k⇒θ\displaystyle {}\Rightarrow \theta=±arccos⁡k+2πn\displaystyle {}= \pm\arccos k + 2\pi n
tan⁡θ\displaystyle \tan\theta=k\displaystyle {}= k⇒θ\displaystyle {}\Rightarrow \theta=arctan⁡k+πn\displaystyle {}= \arctan k + \pi n

Each family is then turned back into x. Dividing by b also divides the gap between solutions, so a larger b packs more of them into the same window. That is why a sine of 2x has more solutions in a full turn than a sine of x.

x\displaystyle x=θ−cb\displaystyle {}= \frac{\theta - c}{b}

For the second shape, the substitution \(u = \sin x\) gives a plain quadratic in u. Each real root inside the reach of the function becomes its own simple equation. A root outside that reach is thrown away. The final list is sorted, and repeats are removed in case two families meet at one angle.

Worked examples

Ines times a tide for her boat

Ines models her harbor with a simple wave, 1.5 m above and below the average level, with a cycle of about 12 hours. Dividing a full turn by 12 gives a b of about 0.5236. She needs the water to be 0.75 m above average to clear a bar, so she solves for that, with x in hours from 0 up to 12.

The answers come to 1 and 5 hours, to the nearest tenth. The water stays above that level between them, so she can cross then. A real tide depends on the moon, the coast and the weather, so she would check a tide table before she sets out.

Open this example in the tool

Theo factors a quadratic in sine

Theo writes u for the sine of x. The equation becomes a quadratic that factors, which means u is 1 or u is −12-\frac{1}{2}. The first gives one angle in a full turn, and the second gives two, so he gets 3 solutions: π2\frac{\pi }{2}, 7π6\frac{7\pi }{6}, 11π6\frac{11\pi }{6}.

(2u+1)(u−1)\displaystyle (2u + 1)(u - 1)=0\displaystyle {}= 0

Open this example in the tool

Asha throws away a root that cannot be

With u for the cosine of x, the roots are 1 and 2. A cosine can never be 2, so that root adds nothing, which leaves the cosine of x at 1. From 0 up to a full turn, the only angle that gives this is 00. The general solution is x=2πnx = 2\pi n, for any whole number n.

Open this example in the tool

Reading your result

A quick count can warn you that a solution has gone missing. From 0 up to a full turn, a sine or cosine at a value inside −1 to 1 gives two solutions per wave, and b sets the number of waves. A tangent gives one solution for each of its shorter repeats. The table comes from the solver.

Solutions from 0 up to a full turn
bsin⁡bx=12\sin bx = \frac{1}{2}tan⁡bx=1\tan bx = 1
122
244
366
488
51010

The end of the interval is left out. From 0 up to 2π2\pi lists 0 only once, not again as 2π2\pi, since those are one point on the circle. If your problem includes the end, use a custom interval that runs a little past it.

A b that is not whole gives a period that does not fit a turn evenly. For a sine of 1.5x at 0.5, the solutions repeat every 4π3\frac{4\pi }{3}, so the list is 4 long and it does not repeat at a full turn.

Angles with no exact form show as decimals. A cosine of 0.3 gives 72.54° and 287.46° in one turn. Those two add up to 360°, as any pair of cosine solutions in one turn does.

No solution is a real answer. A sine of 2 has no angle at all, and the solver reports no real solution for it.

Common mistakes

  • Stopping at the first family. Taking only the inverse sine loses the second angle. For a sine of 2x at one half, that leaves 2 solutions in one turn when the true count is 4.
  • Limiting the angle too soon. The interval applies to x, not to 2x. So work through two full turns of 2x before you divide, or you lose the second half of the list.
  • Forgetting that tangent repeats sooner. Tangent repeats every half turn. A tangent of 2x at 1 repeats every quarter turn, which gives 4 solutions in one turn.
  • Keeping a root outside the reach of the function. A quadratic can give a sine of 2 or a cosine of −3. The algebra is right, and no angle matches it.

Questions people ask

The wave runs twice as fast, so it fits two full cycles into one turn of x. Each cycle crosses a given level twice, which gives four solutions in place of two. Solve for 2x over two full turns, and divide each answer by 2 at the end.

Sources