Article 65TJE Solving quadratic trig equations

Solving quadratic trig equations

by
John
from John D. Cook on (#65TJE)

A few days ago I wrote about how to systematically solve trig equations. That post was abstract and general. This post will be concrete and specific, looking at the special case of quadratic equations in sines and cosines, i.e. any equation of the form

quad_trig1.svg

As outlined earlier, we turn the equation into a system of equations in s and c.

quad_trig6.svg

The resultant of

quad_trig2.svg

and

quad_trig3.svg

as a function of sis

quad_trig4.svg

where

quad_trig5.svg

Example 1

Let's look at a particular example. Suppose we want to solve

quad_trig7.svg

Then the possible sine values are the roots of

quad_trig8.svg

This equation as four real roots: s = -0.993462, -0.300859, -0.0996236, or 0.966329.

So any solution to our original equation must have sine equal to one of these values. Now sine takes on each value twice during each period, so we have a little work left to find the values of . Take the last root for example. If we take the arcsine of 0.966329 we get 1.31056, and = 1.31056 is not a solution to our equation. But arcsin(y) returns only one possible solution to the equation sin(x) = y. In this case, = - 1.31056 is the solution we're looking for.

The full set of solutions for 0 < 2 are

quad_trig9.svg

In the example above our polynomial in s had four real roots in [-1, 1]. In general we could have roots outside this interval, including complex roots. If we're looking for solutions with real values of then we discard these.

Example 2

Now suppose we want to solve

quad_trig11.svg

Our resultant is

quad_trig12.svg

and the roots are 0.119029, 0.987302, and -0.766973 0.319513i.

If we're only interested in real values of then the two solutions are arcsin(0.119029) = 0.119312 and arcsin(0.987302) = 1.41127. But there are two complex solutions, = 3.91711 0.433731i.

The post Solving quadratic trig equations first appeared on John D. Cook.
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments