Why This Matters
The unit circle is the master key to trigonometry. It extends sine and cosine beyond right triangles to handle any angle — including negative angles, angles larger than 360 degrees, and everything in between. When you plot a point on a circle of radius 1 centered at the origin, the x-coordinate is the cosine of the angle and the y-coordinate is the sine. This single idea unlocks everything from wave generation to circular motion to signal processing.
Every quadrant of the unit circle has its own pattern of positive and negative values for sin and cos. Knowing which functions are positive in which quadrant lets you quickly reason about angles without a calculator. The concept of a reference angle — the acute angle formed with the x-axis — means you only need to memorize the values for angles between 0 and 90 degrees, and then apply sign rules for the other three quadrants. This is how professionals mentally navigate trigonometry.
Define Terms
Visual Model
The full process at a glance. Click Start tour to walk through each step.
The unit circle maps every angle to a point (cos, sin). Reference angles and quadrant signs let you evaluate trig functions for any angle.
Code Example
// Unit circle: point coordinates from angle
function unitCirclePoint(degrees) {
const rad = degrees * Math.PI / 180;
return {
x: Math.cos(rad),
y: Math.sin(rad)
};
}
// Key angles on the unit circle
const keyAngles = [0, 30, 45, 60, 90, 120, 135, 150, 180, 210, 225, 270, 315, 360];
for (const deg of keyAngles) {
const p = unitCirclePoint(deg);
console.log(`${deg} deg: (${p.x.toFixed(4)}, ${p.y.toFixed(4)})`);
}
// Determine the quadrant of an angle
function getQuadrant(degrees) {
const normalized = ((degrees % 360) + 360) % 360;
if (normalized >= 0 && normalized < 90) return 1;
if (normalized >= 90 && normalized < 180) return 2;
if (normalized >= 180 && normalized < 270) return 3;
return 4;
}
console.log("150 deg is Q", getQuadrant(150)); // Q2
console.log("225 deg is Q", getQuadrant(225)); // Q3
console.log("350 deg is Q", getQuadrant(350)); // Q4
// Reference angle
function referenceAngle(degrees) {
const normalized = ((degrees % 360) + 360) % 360;
if (normalized <= 90) return normalized;
if (normalized <= 180) return 180 - normalized;
if (normalized <= 270) return normalized - 180;
return 360 - normalized;
}
console.log("ref(150):", referenceAngle(150)); // 30
console.log("ref(225):", referenceAngle(225)); // 45
console.log("ref(300):", referenceAngle(300)); // 60
// Sign of sin/cos/tan by quadrant
function trigSigns(degrees) {
const q = getQuadrant(degrees);
return {
sin: (q === 1 || q === 2) ? "+" : "-",
cos: (q === 1 || q === 4) ? "+" : "-",
tan: (q === 1 || q === 3) ? "+" : "-"
};
}
console.log("Signs at 150 deg:", trigSigns(150)); // sin+, cos-, tan-Interactive Experiment
Try these exercises:
- Compute the unit circle coordinates for 0, 90, 180, 270, and 360 degrees. What pattern do you see in the x and y values?
- Find the reference angle for 135, 210, 300, and 405 degrees. What do you notice about 405?
- Verify that sin(150) equals sin(30) and cos(150) equals -cos(30). Why does the sign flip?
- Plot 36 points around the unit circle (every 10 degrees). Print the coordinates and observe how x and y trace out cosine and sine waves.
- What quadrant is -45 degrees in? What about -270 degrees? How do negative angles work on the unit circle?
Quick Quiz
Coding Challenge
Write two functions. First, `getQuadrant(degrees)` should return the quadrant number (1, 2, 3, or 4) for any angle in degrees. Normalize the angle to 0-360 range first using modulo. Second, `getReferenceAngle(degrees)` should return the reference angle in degrees. The reference angle is: Q1: angle itself, Q2: 180 - angle, Q3: angle - 180, Q4: 360 - angle. Print the quadrant and reference angle for each test input.
Real-World Usage
The unit circle is the foundation for many computing applications:
- Animation and motion: Circular motion is computed by sweeping an angle around the unit circle. The x and y coordinates trace out cos and sin waves, creating smooth orbits, rotations, and oscillations.
- Signal processing: Radio and audio signals are modeled as points rotating around the unit circle. The quadrant determines the phase of the signal, which is critical for demodulation.
- Color spaces: HSL and HSV color models use an angle (hue) to represent color. The hue wheel is a unit circle where the angle determines the color.
- Compass and navigation: Bearing calculations map compass directions to unit circle angles. North is 0/360 degrees, East is 90 degrees, and the quadrant tells you the general direction.
- Complex numbers: A complex number on the unit circle is written as cos(A) + i * sin(A). This is Euler's formula, and it is fundamental to electrical engineering and quantum computing.