Skip to content

Trigonometric equations: exact and numerical solutions

A trigonometric equation is true only for particular values of its variable. For example, sinx=1/2sin x=1/2 is an equation, while sin2x+cos2x1sin^2x+cos^2x\equiv1 is an identity true for every real xx.

The central difficulty is not finding one angle. It is finding every angle in the stated interval. In radians,

sinx=12,qquad0x<2π\sin x=\frac12,qquad 0\leq x<2\pi

has the two solutions x=π/6x=\pi/6 and x=5π/6x=5\pi/6. A calculator’s inverse sine returns only the principal value π/6\pi/6.

You should be able to:

Always check the calculator’s angle mode. A degree answer from a radian calculation is not a small rounding error. It is a different angle.

Let nZn\in\mathbb Z. If α\alpha is one solution, periodicity and symmetry give the complete families

sinx=sinα    x=nπ+(1)nα,\boxed{\sin x=\sin\alpha \iff x=n\pi+(-1)^n\alpha}, cosx=cosα    x=2nπ±α,\boxed{\cos x=\cos\alpha \iff x=2n\pi\pm\alpha}, tanx=tanα    x=nπ+α.\boxed{\tan x=\tan\alpha \iff x=n\pi+\alpha}.

In degrees, replace pipi by 180180^\circ and 2π2\pi by 360360^\circ.

These formulae are useful for unrestricted solutions. For a finite interval, many learners find this safer:

  1. Rearrange to isolate one trigonometric function.
  2. Find a reference angle or principal value.
  3. Use the signs of the function to select the correct quadrants.
  4. Add or subtract full periods until every angle in the interval has been listed.
  5. Substitute back, especially if the equation was transformed or squared.

The signs by quadrant are

quadrantIIIIIIIVsinx++cosx++tanx++\begin{array}{c|cccc} \text{quadrant} & \mathrm I & \mathrm{II} & \mathrm{III} & \mathrm{IV}\\ \hline \sin x & + & + & - & -\\ \cos x & + & - & - & +\\ \tan x & + & - & + & - \end{array}

Solve

2sinx=3,qquad0x<2π.2\sin x=\sqrt3,qquad 0\leq x<2\pi.

First isolate sine:

sinx=32.\sin x=\frac{\sqrt3}{2}.

The reference angle is π/3\pi/3. Sine is positive in quadrants I and II, so

x=π3orx=ππ3=2π3.x=\frac\pi3 \quad\text{or}\quad x=\pi-\frac\pi3=\frac{2\pi}{3}.

Therefore

x=π3, 2π3.\boxed{x=\frac\pi3,\ \frac{2\pi}{3}}.

The endpoint 2π2\pi is excluded by x<2πx<2\pi. Read strict and inclusive inequalities carefully.

Worked example 2: a negative cosine in degrees

Section titled “Worked example 2: a negative cosine in degrees”

Solve

3cosθ+1=0,qquad0θ360,3\cos\theta+1=0,qquad 0^\circ\leq\theta\leq360^\circ,

giving answers to 11 decimal place.

Rearrange:

cosθ=13.\cos\theta=-\frac13.

The calculator principal value is

cos1(13)=109.471.\cos^{-1}\left(-\frac13\right)=109.471\ldots^\circ.

Cosine is negative in quadrants II and III. The second solution is the reflection in the horizontal axis:

360109.471=250.528.360^\circ-109.471\ldots^\circ=250.528\ldots^\circ.

Thus

θ=109.5, 250.5.\boxed{\theta=109.5^\circ,\ 250.5^\circ}.

An alternative is to use the acute reference angle cos1(1/3)\cos^{-1}(1/3), then form 180α180^\circ-\alpha and 180+α180^\circ+\alpha. Both approaches are valid if signs and quadrants are handled consistently.

Worked example 3: tangent over a longer interval

Section titled “Worked example 3: tangent over a longer interval”

Solve

tanx=1,qquadπx2π.\tan x=-1,qquad -\pi\leq x\leq2\pi.

One solution is x=π/4x=-\pi/4. Tangent has period π\pi, so all solutions are

x=π4+nπ,qquadnZ.x=-\frac\pi4+n\pi,qquad n\in\mathbb Z.

Choose integers that place xx in the interval:

nπ/4+nπ0π/413π/427π/4\begin{array}{c|c} n & -\pi/4+n\pi\\ \hline 0 & -\pi/4\\ 1 & 3\pi/4\\ 2 & 7\pi/4 \end{array}

The neighbouring values for n=1n=-1 and n=3n=3 lie outside. Hence

x=π4, 3π4, 7π4.\boxed{x=-\frac\pi4,\ \frac{3\pi}{4},\ \frac{7\pi}{4}}.

Do not use a 2π2\pi step for tangent. Its period is pipi.

Principal values are not complete solution sets

Section titled “Principal values are not complete solution sets”

Inverse trigonometric functions return values in restricted ranges:

functionprincipal rangearcsinx[π/2,π/2]arccosx[0,π]arctanx(π/2,π/2)\begin{array}{c|c} \text{function} & \text{principal range}\\ \hline \arcsin x & [-\pi/2,\pi/2]\\ \arccos x & [0,\pi]\\ \arctan x & (-\pi/2,\pi/2) \end{array}

This makes each inverse a function, but it means a calculator usually supplies only one starting value. The graph, quadrants and period supply the rest.

  1. Solve sinx=1/2\sin x=-1/2 for 0x<2π0\leq x<2\pi.
  2. Solve cosθ=2/2\cos\theta=\sqrt2/2 for 180θ360-180^\circ\leq\theta\leq360^\circ.
  3. Solve tanx=3\tan x=\sqrt3 for 0x3π0\leq x\leq3\pi.
Answers
  1. Sine is negative in quadrants III and IV: x=7π/6,11π/6x=7\pi/6,11\pi/6.
  2. Cosine is positive at θ=±45+360n\theta=\pm45^\circ+360n^\circ: θ=45,45,315\theta=-45^\circ,45^\circ,315^\circ.
  3. One solution is π/3\pi/3 and tangent has period π\pi: x=π/3,4π/3,7π/3x=\pi/3,4\pi/3,7\pi/3.

For an equation involving sin(kx)\sin(kx), cos(kx)\cos(kx) or tan(kx)\tan(kx), temporarily let

u=kx.u=kx.

Transform the interval for xx into the corresponding interval for uu, solve fully there, and only then divide by kk. If the uu interval is not widened, solutions are lost.

Solve

sin(2x)=12,qquad0x2π.\sin(2x)=\frac12,qquad 0\leq x\leq2\pi.

Let u=2xu=2x. Since 0x2π0\leq x\leq2\pi,

0u4π.0\leq u\leq4\pi.

Within this two-cycle interval, sinu=1/2\sin u=1/2 at

u=π6, 5π6, 13π6, 17π6.u=\frac\pi6,\ \frac{5\pi}{6},\ \frac{13\pi}{6},\ \frac{17\pi}{6}.

Now divide every value by 22:

x=π12, 5π12, 13π12, 17π12.\boxed{x=\frac\pi{12},\ \frac{5\pi}{12},\ \frac{13\pi}{12},\ \frac{17\pi}{12}}.

There are four solutions because sin(2x)sin(2x) completes two cycles while xx travels from 00 to 2π2\pi.

Worked example 5: a horizontal translation

Section titled “Worked example 5: a horizontal translation”

Solve

cos(3x20)=0,qquad0x180.\cos(3x-20^\circ)=0,qquad 0^\circ\leq x\leq180^\circ.

Set u=3x20u=3x-20^\circ. Transform both endpoints:

20u520.-20^\circ\leq u\leq520^\circ.

Cosine is zero when

u=90+180n.u=90^\circ+180n^\circ.

The values in the transformed interval are

u=90,270,450.u=90^\circ,270^\circ,450^\circ.

Solve 3x20=u3x-20^\circ=u:

x=u+203.x=\frac{u+20^\circ}{3}.

Therefore

x=1103, 2903, 4703.\boxed{x=\frac{110}3^\circ,\ \frac{290}3^\circ,\ \frac{470}3^\circ}.

These exact fractional-degree answers may be written as 362336\tfrac23^\circ, 962396\tfrac23^\circ and 15623156\tfrac23^\circ.

Equations that are quadratic in a trigonometric function

Section titled “Equations that are quadratic in a trigonometric function”

Treat sinx\sin x, cosx\cos x or tanx\tan x as one algebraic quantity. Factorise or use the quadratic formula, reject impossible function values, then solve each remaining basic equation.

Worked example 6: factorise, then solve each branch

Section titled “Worked example 6: factorise, then solve each branch”

Solve

2cos2x3cosx+1=0,qquad0x<2π.2\cos^2x-3\cos x+1=0,qquad 0\leq x<2\pi.

Let c=cosxc=\cos x. Then

2c23c+1=0,2c^2-3c+1=0,

so

(2c1)(c1)=0.(2c-1)(c-1)=0.

Therefore

cosx=12orcosx=1.\cos x=\frac12 \quad\text{or}\quad \cos x=1.

For cosx=1/2cos x=1/2,

x=π3, 5π3.x=\frac\pi3,\ \frac{5\pi}{3}.

For cosx=1cos x=1, the interval contains x=0x=0. Although 2π2\pi gives the same point on the unit circle, it is excluded. Thus

x=0, π3, 5π3.\boxed{x=0,\ \frac\pi3,\ \frac{5\pi}{3}}.

Worked example 7: reject an impossible branch

Section titled “Worked example 7: reject an impossible branch”

Solve

3sin2x+2sinx1=0,qquad0x360.3\sin^2x+2\sin x-1=0,qquad 0^\circ\leq x\leq360^\circ.

Factorise:

(3sinx1)(sinx+1)=0.(3\sin x-1)(\sin x+1)=0.

Hence

sinx=13orsinx=1.\sin x=\frac13 \quad\text{or}\quad \sin x=-1.

For the first branch,

α=sin1(13)=19.471.\alpha=\sin^{-1}\left(\frac13\right)=19.471\ldots^\circ.

Sine is positive in quadrants I and II, giving

x=19.471,quad160.528.x=19.471\ldots^\circ,quad 160.528\ldots^\circ.

The second branch gives x=270x=270^\circ. Therefore, to 11 decimal place,

x=19.5, 160.5, 270.0.\boxed{x=19.5^\circ,\ 160.5^\circ,\ 270.0^\circ}.

If factorisation had produced sinx=4/3sin x=4/3, that entire branch would be rejected because 1sinx1-1\leq\sin x\leq1.

An equation containing different trigonometric functions usually needs rewriting in terms of one function. Useful identities include

sin2x+cos2x1,\sin^2x+\cos^2x\equiv1, tanxsinxcosx,1+tan2xsec2x.\tan x\equiv\frac{\sin x}{\cos x}, \qquad 1+\tan^2x\equiv\sec^2x.

Later, compound and double angle formulae and harmonic form extend the range of equations that can be solved exactly.

Solve

2sin2x+3cosx=3,qquad0x<2π.2\sin^2x+3\cos x=3,qquad 0\leq x<2\pi.

Use sin2x=1cos2x\sin^2x=1-\cos^2x:

2(1cos2x)+3cosx=3.2(1-\cos^2x)+3\cos x=3.

Rearranging gives

2cos2x3cosx+1=0.2\cos^2x-3\cos x+1=0.

Factorise:

(2cosx1)(cosx1)=0.(2\cos x-1)(\cos x-1)=0.

Thus cosx=1/2\cos x=1/2 or cosx=1\cos x=1, so

x=0, π3, 5π3.\boxed{x=0,\ \frac\pi3,\ \frac{5\pi}{3}}.

Solve

sinx=2sinxcosx,qquad0x2π.\sin x=2\sin x\cos x,qquad 0\leq x\leq2\pi.

Bring everything to one side and factorise:

sinx(12cosx)=0.\sin x(1-2\cos x)=0.

Therefore

sinx=0orcosx=12.\sin x=0 \quad\text{or}\quad \cos x=\frac12.

The first branch gives x=0,π,2πx=0,\pi,2\pi. The second gives x=π/3,5π/3x=\pi/3,5\pi/3. Hence

x=0, π3, π, 5π3, 2π.\boxed{x=0,\ \frac\pi3,\ \pi,\ \frac{5\pi}{3},\ 2\pi}.

Dividing the original equation by sinx\sin x would silently discard the solutions where sinx=0\sin x=0. Factor first unless you have proved that the proposed divisor cannot be zero.

Worked example 10: division with a domain check

Section titled “Worked example 10: division with a domain check”

Solve

sinx=cosx,qquad0x<2π.\sin x=\cos x,qquad 0\leq x<2\pi.

If cosx=0\cos x=0, then sinx=±1\sin x=\pm1, so such values do not satisfy the equation. Division by cosx\cos x is therefore safe:

sinxcosx=1,\frac{\sin x}{\cos x}=1,

so

tanx=1.\tan x=1.

Tangent is positive in quadrants I and III:

x=π4, 5π4.\boxed{x=\frac\pi4,\ \frac{5\pi}{4}}.

Squaring can introduce extraneous solutions

Section titled “Squaring can introduce extraneous solutions”

If a=ba=b, then a2=b2a^2=b^2. The converse is not always true because a2=b2a^2=b^2 also allows a=ba=-b. Any solution obtained after squaring must be checked in the original equation.

Solve

sinx=cos2x,qquad0x<2π.\sin x=\cos^2x,qquad 0\leq x<2\pi.

Use cos2x=1sin2x\cos^2x=1-\sin^2x:

sinx=1sin2x.\sin x=1-\sin^2x.

Let s=sinxs=\sin x:

s2+s1=0.s^2+s-1=0.

The quadratic formula gives

s=1±52.s=\frac{-1\pm\sqrt5}{2}.

Since (15)/2<1(-1-\sqrt5)/2<-1, that value is impossible for sine. Let

a=512.a=\frac{\sqrt5-1}{2}.

Then 0<a<10<a<1, and sine is positive in quadrants I and II:

x=arcsina, πarcsina.\boxed{x=\arcsin a,\ \pi-\arcsin a}.

Numerically, these are x0.666x\approx0.666 and x2.475x\approx2.475 radians. Both satisfy the original equation. No squaring was needed here, but the range check plays the same protective role against invalid algebraic roots.

Equations involving secx\sec x, cscx\csc x or cotx\cot x can often be converted to cosine, sine or tangent. Keep track of where the reciprocal expression is undefined.

Worked example 12: solve a secant equation

Section titled “Worked example 12: solve a secant equation”

Solve

2secx+1=0,qquad0x<2π.2\sec x+1=0,qquad 0\leq x<2\pi.

Rearrange:

secx=12.\sec x=-\frac12.

But every real secant value satisfies secx1|\sec x|\geq1. Equivalently, taking reciprocals would require cosx=2\cos x=-2, which is impossible. Therefore

there are no real solutions.\boxed{\text{there are no real solutions}.}

Never assume that every rearranged trigonometric equation has a solution. The ranges of sine and cosine are [1,1][-1,1], while the ranges of secant and cosecant exclude (1,1)(-1,1).

Some equations cannot be reduced to standard exact forms, for example

x=2cosx.x=2\cos x.

Rewrite as a root problem,

f(x)=x2cosx=0,f(x)=x-2\cos x=0,

then use a graph, sign-change search and a numerical method. A calculator’s solver needs sensible starting values and may return only one root.

Worked example 13: locate and refine a root

Section titled “Worked example 13: locate and refine a root”

Find the positive solution of

x=2cosxx=2\cos x

to 33 decimal places.

Define f(x)=x2cosxf(x)=x-2\cos x. Then

f(1)=12cos10.081,f(1)=1-2\cos1\approx-0.081, f(1.1)=1.12cos1.10.193.f(1.1)=1.1-2\cos1.1\approx0.193.

Because ff is continuous, the sign change shows that a root lies in (1,1.1)(1,1.1). Numerical refinement gives

x=1.029866,x=1.029866\ldots,

so

x=1.030.\boxed{x=1.030}.

For x>0x>0, the equation requires x2x\leq2. On (0,2)(0,2),

f(x)=1+2sinx>0,f'(x)=1+2\sin x>0,

so ff is strictly increasing there. The positive root is therefore unique. A graph suggests this; the derivative proves it.

When solving a trigonometric equation in an interval:

  1. Record whether angles are in degrees or radians.
  2. Simplify algebraically and use identities to obtain one trigonometric function where possible.
  3. Factorise rather than divide by an expression that might be zero.
  4. Transform the interval when the angle is kx+ckx+c.
  5. Find a principal value or exact reference angle.
  6. Use quadrants, symmetry and period to list every candidate.
  7. Return from the transformed angle to the original variable.
  8. Reject out-of-range algebraic values and candidates outside the interval.
  9. Check candidates in the original equation if you squared, multiplied by a variable expression or used a numerical method.
  10. Round only at the end and state the requested accuracy.
  • Stopping at the inverse value: arcsina\arcsin a is generally one solution, not the solution set.
  • Using the wrong period: sine and cosine repeat every 2π2\pi; tangent repeats every π\pi.
  • Ignoring the transformed interval: if u=3xu=3x, the uu interval is three times as wide.
  • Dividing away roots: division by sinx\sin x loses every solution for which sinx=0\sin x=0.
  • Accepting impossible values: sinx=1.4\sin x=1.4 and cosx=3\cos x=-3 have no real solutions.
  • Confusing sin2x\sin^2x with sin(x2)\sin(x^2): sin2x\sin^2x means (sinx)2(\sin x)^2.
  • Mixing angle units: write the degree symbol on degree answers; radian answers have no unit symbol.
  • Rounding a reference angle early: this can move a final answer across the required rounding boundary.

Solve each equation in the stated interval.

  1. 2cos2x+cosx1=02\cos^2x+\cos x-1=0, for 0x<2π0\leq x<2\pi.
  2. sin(3x)=0\sin(3x)=0, for π/3xπ-\pi/3\leq x\leq\pi.
  3. tan(2θ+15)=1\tan(2\theta+15^\circ)=1, for 0θ1800^\circ\leq\theta\leq180^\circ.
  4. sin2x=cosx\sin^2x=\cos x, for 0x<2π0\leq x<2\pi.
  5. Explain why dividing sinxcosx=sinx\sin x\cos x=\sin x by sinx\sin x gives an incomplete solution set.
Answers
  1. (2cosx1)(cosx+1)=0(2\cos x-1)(\cos x+1)=0, so cosx=1/2\cos x=1/2 or 1-1. Hence x=π/3,π,5π/3x=\pi/3,\pi,5\pi/3.
  2. Let u=3xu=3x, so πu3π-\pi\leq u\leq3\pi. Since sinu=0\sin u=0 when u=nπu=n\pi, u=π,0,π,2π,3πu=-\pi,0,\pi,2\pi,3\pi. Thus x=π/3,0,π/3,2π/3,πx=-\pi/3,0,\pi/3,2\pi/3,\pi.
  3. Let u=2θ+15u=2\theta+15^\circ, so 15u37515^\circ\leq u\leq375^\circ. Since tanu=1\tan u=1, u=45,225u=45^\circ,225^\circ. Thus θ=15,105\theta=15^\circ,105^\circ.
  4. Use sin2x=1cos2x\sin^2x=1-\cos^2x. Then cos2x+cosx1=0\cos^2x+\cos x-1=0, so cosx=(51)/2\cos x=(\sqrt5-1)/2; the other quadratic root is below 1-1. Therefore x=arccos(512),2πarccos(512).x=\arccos\left(\frac{\sqrt5-1}{2}\right),\quad 2\pi-\arccos\left(\frac{\sqrt5-1}{2}\right).
  5. Division assumes sinx0\sin x\ne0 and loses the branch sinx=0\sin x=0. Factoring gives sinx(cosx1)=0\sin x(\cos x-1)=0, preserving all roots.

Strengthen the algebra behind this lesson with trigonometric identities. Then learn to solve equations involving sin(A±B)\sin(A\pm B), cos2x\cos2x and tan2x\tan2x in compound and double angle formulae. For expressions of the form asinx+bcosxa\sin x+b\cos x, continue to harmonic form, and apply periodic solutions in trigonometric proof and modelling.