MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Pre-University
MathematicsPre-University

Solving trig equations — general solutions

P1 — Pure Algebra and Functions › P1.3 — Trigonometry AdvancedLecture 8 of 9~2790 words

One answer from the calculator, infinitely many from the equation

Type into a calculator set to radians. It answers −0.5236, which is . Check it: . The answer is correct.

Now solve for . The calculator's answer is not even in the interval. The equation has two solutions there, and , and neither of them is the number on the screen. Outside the interval there are more: , , , and so on, without end.

So the calculator gives one number, and the equation has infinitely many. That raises two questions. Why does the calculator give that particular one? And how do you get every other solution from it?

The lecture on graphs of sin, cos and tan solved between 0 and 2π. It found and from the symmetry of one arch. It ended with a promise: a later lecture finds every solution on any interval. This is that lecture. The difficulty is not the arithmetic. It is knowing that your list is complete. By the end, you will be able to say why there can be no solution you have missed.

Why the calculator gives only one answer

A calculator key is a function. A function gives exactly one output for each input. But sine is not one-to-one. It gives the value at infinitely many angles. So "the angle whose sine is " does not name one angle until you say which part of the graph to use.

The lecture on inverse functions met this problem with . The fix was to restrict the domain, so that the function takes each value only once. Then the inverse exists. Trigonometry does the same thing. The calculator uses one chosen piece of each graph.

For sine, the piece is . On this piece, sine rises steadily from −1 to 1. So it takes every value from −1 to 1, and each value exactly once. The piece also contains all the acute angles, so still gives the angles you found in right-angled triangles.

For cosine, the same piece would not work. Cosine is even, so and are equal. On , every positive value appears twice, and no negative value appears at all. So cosine uses , where it falls steadily from 1 to −1.

For tan, the piece is . Tan rises through every real number there. The ends are left out, because tan does not exist at .

Principal values

The value the calculator gives is called the principal value. It always lies in a fixed interval:

, for

, for

, for every real

Many books write for , and and in the same way. They mean the same thing. This lecture writes .

Now the hook makes sense. The principal value is the one solution of that lies between and . It is a starting point, not the answer. The rest of the lecture builds every other solution from it.

Two points on the circle, then whole turns

Go back to the unit circle. An angle is a turn from , and is the height of the point where you land. So solving means finding every turn that lands at height .

Draw the horizontal line , with . It cuts the circle at exactly two points. One is the point at angle . The other is its mirror image in the -axis. The mirror point has the same height, and it is reached by the angle . This is the rule from the unit circle lecture.

Any turn that lands at height must end on one of these two points. There is nowhere else on the circle at that height. And a turn ends on a given point exactly when it is the angle of that point plus a whole number of full turns. A full turn is . So every solution is in one of two families:

Here is any integer: positive, negative or zero. Positive adds turns anticlockwise. Negative takes them away.

That is it. That is the whole idea. One mirror gives two points, and the period gives every turn that reaches them. The list is complete, because the circle has no third point at that height.

1−1−2π−ππ2π3π4πy = ½x = π/6 + 2nπx = 5π/6 + 2nπ
Figure 1. The solutions of sin x = ½ from −2π to 4π. The teal dots are the family π/6 + 2nπ. The white dots are the family 5π/6 + 2nπ. Each pair sits at equal distances from a dashed line through the top of an arch, because each arch is symmetric about its top.

Figure 1 shows the same idea on the graph. The line crosses every arch twice. One crossing in each arch belongs to each family. The two families do not mix, and they never run out.

Cosine and tan

For , use the vertical line on the circle. It also cuts the circle at two points. One is at angle . The other is its mirror image in the -axis, which is reached by turning the same amount clockwise, . So the families are and . They are usually written together as .

For , recall that is the gradient of . A line through with gradient cuts the circle at two points, opposite each other. They are half a turn apart. So the two families join into one: , with . This is why tan has period π.

General solutions

In each line, is any integer.

, with and : or

, with and :

, for any real , with :

Stop and think

Ravi solves between 0 and 2π. He finds , and then writes the second solution as . Is he right?

Show the answer

No. He used the sine's mirror for a cosine. The angle has the same height as , so it has the same sine. But its across-distance is the opposite, so . For cosine, the mirror is the -axis, so the second point is at . That is outside the interval. Add one turn: . The solutions are and . Check: . The rule to keep is the reason, not the formula. Ask which line cuts the circle (horizontal for sine, vertical for cosine), and find its second point.

Watch the two families move

The two families are not fixed. As changes, they move. Try it below. Look at what happens when reaches 1, and when it goes beyond.

Explore — every solution of sin x = k, cos x = k and tan x = k

Choose a function. Move k, and watch the teal dots and the rings. The shaded band is one turn, 0 ≤ x ≤ 2π.

The table shows the solutions of sin x = k between 0 and 2π for five values of k, with the principal value α = sin⁻¹k. The two solutions in the turn are α (plus 2π if α is negative) and π − α.

kα = sin⁻¹kSolutions in 0 ≤ x ≤ 2π
0.50.5240.524, 2.618
0.91.1201.120, 2.022 (closer together)
11.5711.571 only (the two families meet)
−0.5−0.5243.665, 5.760
1.1does not existnone

As rises towards 1, each teal dot and the ring to its right slide towards each other. They close in on the top of the arch from both sides. At they meet. Then and , so the two families are the same set, . Past 1, the line misses the curve, and there are no solutions at all. The calculator agrees: gives an error.

For tan there is only one family, and the dots are always exactly π apart. No value of is too large, because tan takes every real value.

One formula for both sine families

Some books write the sine solution as a single formula:

Do not learn it as a new fact. Test it. When is even, say , the formula gives . That is the first family. When is odd, say , it gives . That is the second family. So the single formula is the two families, taking turns.

From the general solution to an interval

Exam questions usually ask for the solutions in an interval, such as or . The method has three steps.

The negative values of matter. If the interval reaches below zero, or the principal value is negative, some solutions come from .

When the angle is not just x

Many equations have a transformed angle inside the function, such as or . Before any method, make a guess.

Predict — how many solutions does sin 3x = ½ have?

How many solutions does sin 3x = ½ have for 0 ≤ x ≤ 2π? Choose before you calculate.

The graph of y = sin 3x between 0 and 2π is three full waves. The line y = ½ crosses it six times, so there are six solutions.

1−1π/2π3π/22πy = ½y = sin 3x: three full waves between 0 and 2π

The guess shows where the danger lives. The interval is given for , but the equation is solved for . If you look for only between 0 and 2π, you find two solutions and lose four. So the method is: give the inside angle its own name, and change the interval to match it before you solve.

Worked Example 1 — A general solution with cosine

Find the general solution of . Then list the solutions with .

The principal value is . It is in the second quadrant, where cosine is negative, as it should be. So

The family gives and in the interval. The family gives nothing for , then and . So .

Check: the interval is two turns, and each turn should hold two solutions. Four solutions is right. Also and are equal distances either side of π, as the mirror in the -axis says they must be.

Worked Example 2 — A negative principal value

Solve for . Give the answers to 3 significant figures.

The calculator gives . It is negative, but that does not matter. The families are and .

The first family gives for . The second gives 3.5531 for , which is larger than π. With it gives , which is inside. So or .

Check: both answers are negative. That fits, because sine is negative only below the -axis, where the angles between −π and 0 land. A calculator gives .

Worked Example 3 — Tan, with one family

Solve for .

, so . gives . gives , which is too large. gives , which is inside. So or .

Check: at , the point is . Sine and cosine are equal, so their quotient is 1.

Worked Example 4 — A transformed angle

Solve for .

Let . First move the interval. From , double: . Subtract : . This is two full turns, so expect four solutions.

Now solve . The principal value is , so or . In the -interval: . The next ones, and , are too large. The ones below, and , are too small.

Convert back with . This gives .

Check : , and . If you had kept between 0 and 2π, you would have found only and , and lost half the answers.

Worked Example 5 — Factorise, then solve each factor

Find the general solution of .

Replace by . The last lecture warned against dividing by , because it can be 0. So move everything to one side and factorise:

Each factor gives its own general solution. : here , and the families together are every odd multiple of , so . : or .

Check , from the first factor: and . Dividing by would have lost this whole family.

Traps

Trap 1 — Moving the angle but not the interval

In , students solve for between 0 and 2π. That interval belongs to , not to . Change the interval with the same steps that turn into , and expect two solutions for each turn that makes.

Trap 2 — Mixing degrees and radians

mixes two units, and the answers are nonsense. Use radians throughout when the interval is in radians, and set the calculator to match. In degrees, the families are and .

Trap 3 — Forgetting the negative values of n

For , students often try and only. In Worked Example 2, the answer −2.73 comes from . Try in both directions until the values leave the interval.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Find the general solution of (a) and (b) .

    Hint 1

    Find the principal value first. Both are negative angles.

    Hint 2

    and .

    Full answer

    (a) . The families are and . (b) , so . Check (a) at of the first family, : . Check (b) at , : .

  2. Solve for .

    Hint 1

    Let . What interval does cover?

    Hint 2

    , and gives .

    Full answer

    with . The family gives and . The family gives (the next, , is too large). Divide by 3: . Check: makes one and a half turns, so 3 solutions is reasonable. At , .

  3. Solve for .

    Hint 1

    Write . Do not divide by .

    Hint 2

    Multiply by , which is not 0 wherever exists: , so .

    Full answer

    . gives : . gives . So . None of these makes , so exists at all five. Check : and .

  4. (An invented model.) A seat on an observation wheel is at height metres, minutes after it leaves the bottom. (a) At what times in the first hour is the seat at 29 m? (b) For how long in each turn is the seat above 29 m?

    Hint 1

    Set and rearrange to , with .

    Hint 2

    . Multiply by to get .

    Full answer

    (a) , so and . Then . For : minutes. (b) The wheel turns once in 30 minutes. In the first turn the seat rises past 29 m at and falls past it at , so it is above 29 m for 10 minutes of each turn. Check: at , the top, m, which is above 29 m. The integer counts the turns of the wheel.

The bigger idea

The integer in a general solution is not just bookkeeping. In physics it often becomes the most important number in the problem. A string fixed at both ends, of length , can vibrate in a shape only if the end at stays still. That needs . The general solution of is , so . The allowed wavelengths are . These are the harmonics of the string, and is the harmonic number.

At university, the same equation appears for an electron trapped in a box. Its wave must also vanish at both walls, so again . The energy depends on , so it can take only the values set by . In that model, the "quantum number" of the electron is the of a general solution. The next lecture adds one more tool: it rewrites as a single sine, so that equations with both can be solved by the method of this lecture.

Key concepts in this lesson