TExcelTAD

The Unit Circle

Right triangles only define sine and cosine for angles between 0° and 90°. The unit circle removes that limit: it defines the trig functions for every angle, positive or negative, as the coordinates of a point moving around a circle of radius 1.

The definition

Draw a circle of radius 1 centred at the origin. Start at the point (1,0)(1, 0) and rotate counter-clockwise by an angle θ\theta (clockwise if θ\theta is negative). The point where you land is

P(θ)=(cos⁡θ,sin⁡θ)tan⁡θ=sin⁡θcos⁡θ=yx(undefined when x=0)\begin{aligned} P(\theta) &= (\cos\theta, \sin\theta) \\ \tan\theta &= \frac{\sin\theta}{\cos\theta} = \frac{y}{x} && (\text{undefined when } x = 0) \end{aligned}

For 0<θ<90∘0 < \theta < 90^\circ this matches the triangle definition: drop a perpendicular from PP to the x-axis and you get a right triangle with hypotenuse 1, adjacent side xx and opposite side yy. So cos⁡θ=x/1\cos\theta = x / 1 and sin⁡θ=y/1\sin\theta = y / 1. For every other angle the circle is the definition.

On a circle of radius rr the point is (rcos⁡θ,rsin⁡θ)(r\cos\theta, r\sin\theta). That single formula drives every orbit, clock hand and radial menu in software.

Signs by quadrant

The signs of xx and yy in each quadrant give the signs of cosine and sine:

Quadrant Angles cos⁡θ\cos\theta (xx) sin⁡θ\sin\theta (yy) tan⁡θ\tan\theta
I 00 to π2\frac{\pi}{2} + + +
II π2\frac{\pi}{2} to π\pi − + −
III π\pi to 3π2\frac{3\pi}{2} − − +
IV 3π2\frac{3\pi}{2} to 2π2\pi + − −

Tip: "All Students Take Calculus" names the functions that are positive in quadrants I, II, III, IV: All, Sine, Tangent, Cosine.

Exact values for any special angle

Combine a reference angle (the acute angle to the x-axis) with the quadrant sign. For 150°: reference angle 30°, quadrant II, so cos⁡150∘=−32\cos 150^\circ = -\frac{\sqrt{3}}{2} and sin⁡150∘=12\sin 150^\circ = \frac{1}{2}. SymPy confirms the whole table of multiples of 30° and 45°:

python · try it yourself
import sympy as sp

angles = [0, 30, 45, 60, 90, 120, 135, 150, 180, 210, 225, 240, 270, 300, 315, 330]
print(f"{'deg':>4}  {'cos':>10}  {'sin':>10}")
for d in angles:
    t = sp.rad(d)
    print(f"{d:>4}  {str(sp.cos(t)):>10}  {str(sp.sin(t)):>10}")
 deg         cos         sin
   0           1           0
  30   sqrt(3)/2         1/2
  45   sqrt(2)/2   sqrt(2)/2
  60         1/2   sqrt(3)/2
  90           0           1
 120        -1/2   sqrt(3)/2
 135  -sqrt(2)/2   sqrt(2)/2
 150  -sqrt(3)/2         1/2
 180          -1           0
 210  -sqrt(3)/2        -1/2
 225  -sqrt(2)/2  -sqrt(2)/2
 240        -1/2  -sqrt(3)/2
 270           0          -1
 300         1/2  -sqrt(3)/2
 315   sqrt(2)/2  -sqrt(2)/2
 330   sqrt(3)/2        -1/2

What the circle tells you for free

Because P(θ)P(\theta) lies on the circle x2+y2=1x^2 + y^2 = 1, and because of the circle's symmetry, several facts come at no cost:

cos⁡2θ+sin⁡2θ=1(the Pythagorean identity: P is at distance 1 from O)−1≤sin⁡θ≤1,−1≤cos⁡θ≤1sin⁡(θ+2π)=sin⁡θ,cos⁡(θ+2π)=cos⁡θ(a full turn returns to the same point)cos⁡(−θ)=cos⁡θ,sin⁡(−θ)=−sin⁡θ(reflection in the x-axis)cos⁡(π−θ)=−cos⁡θ,sin⁡(π−θ)=sin⁡θ(reflection in the y-axis)cos⁡(θ+π)=−cos⁡θ,sin⁡(θ+π)=−sin⁡θ(the opposite point)\begin{aligned} &\cos^2\theta + \sin^2\theta = 1 && \text{(the Pythagorean identity: } P \text{ is at distance 1 from } O\text{)} \\ &-1 \le \sin\theta \le 1, \quad -1 \le \cos\theta \le 1 \\ &\sin(\theta + 2\pi) = \sin\theta, \quad \cos(\theta + 2\pi) = \cos\theta && \text{(a full turn returns to the same point)} \\ &\cos(-\theta) = \cos\theta, \quad \sin(-\theta) = -\sin\theta && \text{(reflection in the x-axis)} \\ &\cos(\pi - \theta) = -\cos\theta, \quad \sin(\pi - \theta) = \sin\theta && \text{(reflection in the y-axis)} \\ &\cos(\theta + \pi) = -\cos\theta, \quad \sin(\theta + \pi) = -\sin\theta && \text{(the opposite point)} \end{aligned}

So cosine is an even function and sine is odd, and both are periodic with period 2π2\pi. These are the starting point for Trigonometric Identities and the graphs of the trig functions.

A picture of the circle with points every 30°:

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt

t = np.linspace(0, 2 * np.pi, 400)
plt.figure(figsize=(5, 5))
plt.plot(np.cos(t), np.sin(t), color="gray")
for d in range(0, 360, 30):
    a = np.radians(d)
    x, y = np.cos(a), np.sin(a)
    plt.plot([0, x], [0, y], color="lightgray", lw=0.8)
    plt.plot(x, y, "o", color="purple")
    plt.annotate(f"{d}°", (1.15 * x, 1.15 * y), ha="center", va="center", fontsize=8)
plt.axhline(0, color="black", lw=0.6); plt.axvline(0, color="black", lw=0.6)
plt.gca().set_aspect("equal"); plt.xlim(-1.35, 1.35); plt.ylim(-1.35, 1.35)
plt.title("Unit circle: P(θ) = (cos θ, sin θ)")
print("point at 210°:", tuple(round(float(v), 4) for v in (np.cos(np.radians(210)), np.sin(np.radians(210)))))
point at 210°: (-0.866, -0.5)

In software

  • Circular motion and orbits. A moon at angle ωt\omega t around a planet at (cx,cy)(c_x, c_y) sits at (cx+r⋅cos⁡(ωt),cy+r⋅sin⁡(ωt))(c_x + r \cdot \cos(\omega t), c_y + r \cdot \sin(\omega t)).
  • Radial menus, clock faces, dial gauges. Place nn items at angles 2πk/n2\pi k/n.
  • Screen coordinates flip y. On most screens yy grows downward, so a counter-clockwise angle in math looks clockwise on screen. Either negate sin⁡\sin, or accept clockwise as positive, but decide once.
  • Regular polygons and procedural shapes are just nn points on a circle (see Procedural Shapes and Meshes).
python · try it yourself
import math

def ring_positions(n, cx, cy, r, screen=True):
    """n items on a circle, first one at the top; screen=True means y grows downward."""
    pts = []
    for k in range(n):
        a = -math.pi / 2 + 2 * math.pi * k / n        # start at the top, go round
        y = cy + r * math.sin(a)
        pts.append((round(cx + r * math.cos(a), 1) + 0.0, round(y, 1) + 0.0))
    return pts

for p in ring_positions(6, 200, 200, 100):
    print(p)
(200.0, 100.0)
(286.6, 150.0)
(286.6, 250.0)
(200.0, 300.0)
(113.4, 250.0)
(113.4, 150.0)

With yy growing downward, the angle −π2-\frac{\pi}{2} is the top of the screen and increasing angles go clockwise, which is what users expect from a clock-style menu.

Exercises

Exercise 1: Exact values

Find cos⁡240∘\cos 240^\circ, sin⁡315∘\sin 315^\circ and tan⁡150∘\tan 150^\circ exactly.

Answer

cos⁡240∘=−12\cos 240^\circ = -\frac{1}{2}, sin⁡315∘=−22\sin 315^\circ = -\frac{\sqrt{2}}{2}, tan⁡150∘=−33\tan 150^\circ = -\frac{\sqrt{3}}{3}.

Solution
240∘: quadrant III, reference 60∘:cos⁡=−cos⁡60∘=−12315∘: quadrant IV, reference 45∘:sin⁡=−sin⁡45∘=−22150∘: quadrant II, reference 30∘:tan⁡=−tan⁡30∘=−13=−33\begin{aligned} 240^\circ&: \ \text{quadrant III, reference } 60^\circ\text{:} && \cos = -\cos 60^\circ = -\tfrac{1}{2} \\ 315^\circ&: \ \text{quadrant IV, reference } 45^\circ\text{:} && \sin = -\sin 45^\circ = -\tfrac{\sqrt{2}}{2} \\ 150^\circ&: \ \text{quadrant II, reference } 30^\circ\text{:} && \tan = -\tan 30^\circ = -\tfrac{1}{\sqrt{3}} = -\tfrac{\sqrt{3}}{3} \end{aligned}

Exercise 2: Which quadrant?

sin⁡θ<0\sin\theta < 0 and tan⁡θ>0\tan\theta > 0. In which quadrant is θ\theta? If also sin⁡θ=−513\sin\theta = -\frac{5}{13}, find cos⁡θ\cos\theta.

Answer

Quadrant III; cos⁡θ=−1213\cos\theta = -\frac{12}{13}.

Solution

sin⁡<0\sin < 0 means III or IV; tan⁡>0\tan > 0 means I or III. Both: III, where cosine is negative.

cos⁡2θ=1−25169=144169⇒cos⁡θ=−1213\cos^2\theta = 1 - \frac{25}{169} = \frac{144}{169} \quad\Rightarrow\quad \cos\theta = -\frac{12}{13}

Exercise 3: Big angles

Find sin⁡(17π6)\sin\left(\frac{17\pi}{6}\right) and cos⁡(−7π4)\cos\left(-\frac{7\pi}{4}\right) exactly by removing full turns first.

Answer

sin⁡(17π6)=12\sin\left(\frac{17\pi}{6}\right) = \frac{1}{2}, cos⁡(−7π4)=22\cos\left(-\frac{7\pi}{4}\right) = \frac{\sqrt{2}}{2}.

Solution
17π6−2π=5π6 (150∘):sin⁡=12−7π4+2π=π4 (45∘):cos⁡=22\begin{aligned} \frac{17\pi}{6} - 2\pi &= \frac{5\pi}{6}\ (150^\circ)\text{:} && \sin = \frac{1}{2} \\ -\frac{7\pi}{4} + 2\pi &= \frac{\pi}{4}\ (45^\circ)\text{:} && \cos = \frac{\sqrt{2}}{2} \end{aligned}
python · try it yourself
import sympy as sp
print(sp.sin(17*sp.pi/6), sp.cos(-7*sp.pi/4))
1/2 sqrt(2)/2

Exercise 4: Clock hand

A clock's minute hand is 12 cm long and its pivot is at the origin; 12 o'clock is straight up. Where is the tip at 20 minutes past the hour (math coordinates, yy up)?

Answer

About (10.392,−6.0)(10.392, -6.0).

Solution

20 minutes is a third of a turn clockwise from the top. In math angles, the top is 90° and clockwise is negative: θ=90∘−120∘=−30∘\theta = 90^\circ - 120^\circ = -30^\circ.

x=12cos⁡(−30∘)=12⋅32=63≈10.392y=12sin⁡(−30∘)=−6\begin{aligned} x &= 12\cos(-30^\circ) = 12 \cdot \frac{\sqrt{3}}{2} = 6\sqrt{3} \approx 10.392 \\ y &= 12\sin(-30^\circ) = -6 \end{aligned}
python · try it yourself
import math
a = math.radians(90 - 360 * 20 / 60)
print(round(12 * math.cos(a), 3), round(12 * math.sin(a), 3))
10.392 -6.0

Test yourself

What are the coordinates of the unit-circle point at θ=270∘\theta = 270^\circ?

  1. (1,0)(1, 0)
  2. (0,1)(0, 1)
  3. (−1,0)(-1, 0)
  4. (0,−1)(0, -1)

Which statement is true for every angle θ\theta?

  1. sin⁡(−θ)=sin⁡θ\sin(-\theta) = \sin\theta
  2. cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\theta
  3. cos⁡(π−θ)=cos⁡θ\cos(\pi - \theta) = \cos\theta
  4. sin⁡(θ+π)=sin⁡θ\sin(\theta + \pi) = \sin\theta

In which quadrant are both cos⁡θ\cos\theta and tan⁡θ\tan\theta negative?

  1. I
  2. II
  3. III
  4. IV