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 and rotate counter-clockwise by an angle (clockwise if is negative). The point where you land is
For this matches the triangle definition: drop a perpendicular from to the x-axis and you get a right triangle with hypotenuse 1, adjacent side and opposite side . So and . For every other angle the circle is the definition.
On a circle of radius the point is . That single formula drives every orbit, clock hand and radial menu in software.
Signs by quadrant
The signs of and in each quadrant give the signs of cosine and sine:
| Quadrant | Angles | () | () | |
|---|---|---|---|---|
| I | to | + | + | + |
| II | to | − | + | − |
| III | to | − | − | + |
| IV | to | + | − | − |
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 and . SymPy confirms the whole table of multiples of 30° and 45°:
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 lies on the circle , and because of the circle's symmetry, several facts come at no cost:
So cosine is an even function and sine is odd, and both are periodic with period . These are the starting point for Trigonometric Identities and the graphs of the trig functions.
A picture of the circle with points every 30°:
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 around a planet at sits at .
- Radial menus, clock faces, dial gauges. Place items at angles .
- Screen coordinates flip y. On most screens grows downward, so a counter-clockwise angle in math looks clockwise on screen. Either negate , or accept clockwise as positive, but decide once.
- Regular polygons and procedural shapes are just points on a circle (see Procedural Shapes and Meshes).
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 growing downward, the angle 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 , and exactly.
Answer
, , .
Solution
Exercise 2: Which quadrant?
and . In which quadrant is ? If also , find .
Answer
Quadrant III; .
Solution
means III or IV; means I or III. Both: III, where cosine is negative.
Exercise 3: Big angles
Find and exactly by removing full turns first.
Answer
, .
Solution
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, up)?
Answer
About .
Solution
20 minutes is a third of a turn clockwise from the top. In math angles, the top is 90° and clockwise is negative: .
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 ?
Which statement is true for every angle ?
In which quadrant are both and negative?
- I
- II
- III
- IV