Welcome to the world of sine and cosine! These two functions are the backbone of trigonometry, and they’re much simpler than they seem. In this article, we will explore the unit circle, the home of sine and cosine, and learn how they map angles to coordinates. By the end, you will see why sine and cosine are so powerful.

Somehow the rule always works. Magic!
What is the Unit Circle?
The unit circle is a circle with a radius of 1, centered at the origin (0,0) in the Cartesian plane. Every angle θ (theta) corresponds to a unique point on the circle. The x-coordinate of that point is cos θ, and the y-coordinate is sin θ.
Think of the unit circle as a compass:
- The red line (x-axis) represents cos θ.
- The blue line (y-axis) represents sin θ.
Here’s how it looks in Python:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import numpy as np import matplotlib.pyplot as plt FONTSIZE = 10 fig, ax = plt.subplots(figsize=(8, 8)) ax.set_aspect('equal') # Draw bold x/y axes (main diameters) ax.axhline(0, color='red', lw=2, alpha=0.5) # x-axis = cos(theta) ax.axvline(0, color='blue', lw=2, alpha=0.5) # y-axis = sin(theta) # Draw unit circle theta = np.linspace(0, 2*np.pi, 100) ax.plot(np.cos(theta), np.sin(theta), 'k-', lw=1) ax.set_title("The Unit Circle: Your New Best Friend", fontsize=FONTSIZE+2) plt.show() |
Let’s start with four cardinal directions:
- 0°: Facing right (east). Coordinates: (1, 0).
-
- cos 0° = 1, sin 0° = 0.
- 90°: Facing up (north). Coordinates: (0, 1).
- cos 90° = 0, sin 90° = 1.
- 180°: Facing left (west). Coordinates: (-1, 0).
- cos 180° = -1, sin 180° = 0.
- 270°: Facing down (south). Coordinates: (0, -1).
- cos 270° = 0, sin 270° = -1.
These are your compass points on the circle!
Friendly Angles: 30°, 45°, 60°
Now, let’s meet three special friends:
- 45° (π/4):
- cos 45° = sin 45° ≈ 0.707.
- Why? Imagine walking northeast: equal steps east and north!
- 30° (π/6):
- cos 30° ≈ 0.866, sin 30° = 0.5.
- Think of a gentle slope: mostly east, a little north.
- 60° (π/3):
- cos 60° = 0.5, sin 60° ≈ 0.866.
- Now the slope is steeper: mostly north, a little east.
These ratios come from splitting triangles. For example, at 30°, the triangle’s sides are in the ratio 1:√3:2. Here’s the Python code to visualize these angles: