Learning Objectives
By the end of this section you will be able to:
- Define sine, cosine, tangent and their reciprocals from both the right-triangle picture and the unit-circle picture, and explain why the unit-circle definition is the "true" one.
- Convert fluently between degrees and radians, and explain why radians are the natural angle unit for calculus.
- Recognise the four-parameter wave family and read off amplitude, period, phase and offset from a graph.
- Apply the Pythagorean, sum, and double-angle identities to simplify expressions and solve modeling problems.
- Model periodic phenomena (sound, AC current, tides, body temperature, orbital motion) with sinusoidal functions.
- Compute trig values in Python and explain why expects radians, never degrees.
The Story: Where Trigonometry Came From
Trigonometry was invented twice. The first time, around 2,000 years ago, by astronomers (Hipparchus, Ptolemy) who needed to predict where a planet would appear in the night sky. The geometry of a circle was the only way to handle the rotation of the heavens. The second time, in the 17th and 18th centuries, the same functions were rediscovered as the natural way to describe any oscillation: a pendulum, a vibrating string, an AC voltage, a sound wave, a heartbeat.
Why this matters: Anything that repeats — a planet circling the sun, a guitar string vibrating, your circadian rhythm, the alternating current in a wall outlet, the bit pattern of a Wi-Fi signal — speaks the language of sine and cosine. Once you can read this language, periodic motion becomes a four-knob machine you can dial in.
The single most important picture in trigonometry is the unit circle — a circle of radius 1 centered at the origin. Every trig function is just a different way of measuring something about a point walking around that circle.
Interactive Unit Circle — drag the point
Walk around the circle and watch cos θ and sin θ appear as the horizontal and vertical shadows of the moving point.
purple segment = sin θ (the y-coordinate).
The yellow wedge area is θ/2 — that is why radians are the natural angle unit.
The one-sentence intuition. A point moves around the unit circle. Its x-coordinate is cos θ. Its y-coordinate is sin θ. Everything else — the graphs, the identities, the calculus — flows from this one fact.
First Definition: Ratios in a Right Triangle
Drop a perpendicular from the moving point to the x-axis. You get a right triangle whose hypotenuse is the radius (length 1), whose horizontal leg has length , and whose vertical leg has length . The ancient definitions are the three ratios you can form from the three sides:
The schoolroom mnemonic SOH-CAH-TOA is just these three ratios. They work fine for angles between and (a right triangle cannot have an obtuse angle as the angle of interest). But what about ? Or ? Or a full rotation of ? The triangle picture breaks. We need the unit-circle picture.
Better Definition: The Unit Circle
Place a circle of radius 1 at the origin. Measure an angle counter-clockwise from the positive x-axis. The point where the rotating radius meets the circle has coordinates
That is the definition. Three things become immediate consequences:
- Pythagorean identity. The point sits on a circle of radius 1, so by the distance formula . Always.
- Range. Coordinates on a unit circle live in , so and .
- Periodicity. Going around once returns you to the start, so and the same for cosine.
What changed
Why Radians? The Natural Angle Unit
A degree is a human invention: the Babylonians divided a full turn into 360 because 360 has many divisors (and roughly matches the number of days in a year). It is a pragmatic choice with no mathematical justification.
A radian, in contrast, is the angle subtended at the center of a circle by an arc equal in length to the radius. On the unit circle this means:
A full turn traces an arc of length , so radians. The conversion is
| Degrees | Radians | Common name |
|---|---|---|
| 0° | 0 | no rotation |
| 30° | π/6 | small triangle angle |
| 45° | π/4 | diagonal of a square |
| 60° | π/3 | equilateral triangle |
| 90° | π/2 | quarter turn |
| 180° | π | half turn |
| 270° | 3π/2 | three-quarter turn |
| 360° | 2π | full turn |
📐 Worked example: convert 240° to radians by hand
Start from the formula . Substitute 240:
Simplify the fraction. Divide top and bottom by 60:
Numerical check: radians. Since one full turn is , the value 4.189 should land two-thirds of the way around the circle — and 240° is indeed two-thirds of 360°. ✓
Special Angles You Must Know
There are five angles whose sine and cosine you should be able to recall in your sleep. They come from the geometry of two simple triangles: the 45-45-90 (half a unit square) and the 30-60-90 (half an equilateral triangle).
| θ (rad) | θ (deg) | cos θ | sin θ | tan θ |
|---|---|---|---|---|
| 0 | 0° | 1 | 0 | 0 |
| π/6 | 30° | √3/2 | 1/2 | 1/√3 |
| π/4 | 45° | √2/2 | √2/2 | 1 |
| π/3 | 60° | 1/2 | √3/2 | √3 |
| π/2 | 90° | 0 | 1 | undefined |
A memory trick
All Six Trig Functions
From sine and cosine you can build four more functions by taking ratios and reciprocals. You only need to memorize the two; the rest are derived:
| Function | Definition | Period | Domain (gaps) | Range |
|---|---|---|---|---|
| sin θ | y-coord on unit circle | 2π | all ℝ | [−1, 1] |
| cos θ | x-coord on unit circle | 2π | all ℝ | [−1, 1] |
| tan θ | sin θ / cos θ | π | θ ≠ π/2 + kπ | all ℝ |
| cot θ | cos θ / sin θ | π | θ ≠ kπ | all ℝ |
| sec θ | 1 / cos θ | 2π | θ ≠ π/2 + kπ | (−∞,−1] ∪ [1,∞) |
| csc θ | 1 / sin θ | 2π | θ ≠ kπ | (−∞,−1] ∪ [1,∞) |
Graphs of Sine and Cosine
If you start a stopwatch and watch the y-coordinate of a point spinning around the unit circle, you trace out the graph of . If you watch the x-coordinate, you trace out . The animation below makes this concrete.
How the Circle Becomes a Wave
On the left, a point moves around the unit circle at constant angular speed. On the right, its height is unrolled along time — that is exactly the graph of sin(t).
From this picture, a few facts are visible:
- Both and oscillate between and .
- They have the same shape but cosine is shifted left by : .
- Sine is odd: . Cosine is even: . (Geometrically: flipping the unit circle over the x-axis sends y to −y but leaves x alone.)
The Four Knobs: A · sin(B(x − C)) + D
Every sine wave that nature can produce — the pressure variation of a pure tone, the voltage at a wall outlet, the height of the tide at a port — fits the same template:
Each letter has a single physical meaning. The order matters because each knob acts on a different axis:
| Parameter | Role | Effect on graph |
|---|---|---|
| A | amplitude | vertical stretch — peak-to-mean distance |
| B | angular frequency | horizontal squeeze — period T = 2π/B |
| C | phase shift | slide left/right — peak moves to x = C + π/(2B) |
| D | vertical offset | slide whole wave up/down — midline y = D |
Build a Sinusoidal Wave: y = A · sin(B(x − C)) + D
Each slider changes a single behaviour: vertical stretch, horizontal squeeze, slide left/right, slide up/down. This is the 4-parameter language of every wave on Earth.
Period vs frequency vs angular frequency. Three different numbers measure the same thing in different units:
- Period — how many secondsper cycle. Units: s/cycle.
- Frequency — how many cycles per second. Units: Hz.
- Angular frequency — how many radians per second. This is the in our formula.
A 440 Hz musical "A" has , period ms, angular frequency rad/s.
The Identities That Tie It Together
An identity is an equation that holds for every value of the variable, not just some. Trig has dozens, but four families are enough to derive the rest.
1. Pythagorean identities
Direct from on the unit circle:
Dividing through by and by gives two siblings:
2. Even / odd identities
3. Co-function (complementary-angle) identities
4. Sum and difference formulas
The most useful identities of all. Memorize these two:
Plugging gives the double-angle formulas:
📐 Worked example: simplify sin(75°) using a sum formula
We do not have 75° in the special-angles table. But 75° = 45° + 30°, and both of those are in the table. Use the sum formula:
Plug in the table values:
Numerical check: . And from a calculator . ✓
That is the entire pleasure of identities: they let you reach values that look inaccessible by chaining together values you already know.
Modeling Periodic Phenomena
Whenever a quantity oscillates between two extremes over a fixed period, the four-knob template gives you a model with very little extra work. The recipe is:
- Find the midline: .
- Find the amplitude: .
- Find the angular frequency: , where is the observed period.
- Find the phase shift from where the peak (for cosine) or zero-crossing-going-up (for sine) actually occurs.
🌊 Worked example: model a tide
At a coastal town, high tide is 8 m, low tide is 2 m. High tide arrived at 03:00 today. The next high tide arrives at 15:24. Find a function for the water height in metres, with in hours from midnight.
Step 1 — midline. m.
Step 2 — amplitude. m.
Step 3 — period. Two consecutive high tides are 15:24 − 03:00 = 12.4 hours apart, so h. Therefore rad/h.
Step 4 — phase. Cosine peaks at its argument = 0. We want the peak at . So choose . Putting it together:
Quick sanity check at : . ✓ At (low tide, halfway between): . ✓
Pattern to remember: the shape of the wave (sine vs cosine, which phase) is always a stylistic choice. The four numbers A, B, C, D carry all the physics. Find them, write the formula, you are done.
Sums of Sines: A Peek at Fourier
A single sine wave is monotonous. Reality — a violin note, a spoken vowel, a radio signal — is more complicated. The Fourier theorem says something astonishing: any periodic function (under very mild conditions) is a sum of sines and cosines with different amplitudes and frequencies.
Adding Sine Waves — a peek at Fourier
A sum of three sines with different amplitudes and frequencies. Any periodic signal — your voice, a violin, a heartbeat — is a sum like this with many more terms.
Play with the sliders. Three sine waves are already enough to make complex, irregular-looking shapes. A full violin tone uses dozens. An MP3 file is basically a list of amplitudes for thousands of these sine waves. The whole field of signal processing exists to find clever ways of computing and storing those amplitudes.
Computing with Python and NumPy
Now let us see how all this looks in code. We start with plain Python to keep the algorithm visible, then move to NumPy where vectorization makes everything fast. Both libraries use the radian convention — feeding them degrees by mistake is one of the most common bugs in scientific Python.
1. Plain Python: building a sine table by hand
The expected output is exactly the textbook table:
angle | rad | sin | cos
----------------------------------------------
0 | 0.0000 | 0.000000 | 1.000000
pi/6 | 0.5236 | 0.500000 | 0.866025
pi/4 | 0.7854 | 0.707107 | 0.707107
pi/3 | 1.0472 | 0.866025 | 0.500000
pi/2 | 1.5708 | 1.000000 | 0.0000002. NumPy: vectorized version for plotting
Plain Python is great for one value at a time. For the thousands of points you need to draw a sine wave, NumPy is 100× faster because the whole loop runs in compiled C under the hood.
Expected console output:
period T = 4.1888 s, frequency f = 0.2387 Hz
3. Verifying the Pythagorean identity numerically
Expected output:
max absolute error = 2.220e-16 mean absolute error = 5.551e-17
Why this matters
Calculus Preview: Why sin and cos Are Magical
We have not done calculus yet, but you should know what makes sin and cos uniquely beautiful before we get there.
The miracle of trigonometry:
That is to say: the rate of change of sin is cos, and the rate of change of cos is −sin. This is the only pair of functions (besides exponentials) that is essentially its own derivative. And this is precisely why every linear differential equation describing oscillation — a mass on a spring, a pendulum, an LC circuit, a photon — has sines and cosines as solutions.
We will derive both of these formulas from the limit definition in Chapter 5. The key ingredient turns out to be a special limit you will meet in Chapter 2: — the statement that for small angles, sine and angle are the same number.
Summary
- Definition. On the unit circle a point at angle θ has coordinates . Every trig function is a ratio or reciprocal built from these two.
- Radians. Angle = arc length on the unit circle. One full turn is radians. All of calculus assumes this unit.
- Special angles. 0, π/6, π/4, π/3, π/2 give the table you should know by heart.
- Graphs. covers every sinusoid you will ever see: amplitude A, period 2π/B, phase shift C, midline D.
- Identities. Pythagorean (), even/odd, complementary, sum/difference, double-angle. Each is a tool for converting one form to a more useful one.
- Modeling. Periodic phenomena follow the four-knob template; find midline, amplitude, period, phase from the data.
- Fourier hint. Every periodic signal is a sum of sines. We will formalise this much later.
- Code. and both expect radians. Mixing units silently is the #1 trig bug.
Exercises
Conceptual
- Explain in one sentence, using the unit-circle picture, why .
- Why is undefined, but is perfectly fine? Answer with coordinates, not just "division by zero".
- Without computing, decide whether is positive or negative. Which quadrant?
Computational
- Convert 210° to radians and find and exactly.
- Find amplitude, period, phase shift, and midline of .
- Use the sum formula to find exactly. Hint: 15 = 45 − 30.
- Solve for all .
Modeling
- A Ferris wheel of radius 20 m turns once every 90 s. A passenger starts at the bottom (3 m above ground). Write a function for the passenger's height vs time. What is the height at s?
- A 60 Hz alternating-current outlet supplies voltage . What are amplitude, period, and frequency? Why is "120π" the angular frequency for a 60 Hz signal?
- Daylight in Boston ranges from 9.0 h (Dec 21) to 15.3 h (Jun 21). Build a sinusoidal model for daylight hours as a function of day-of-year . How many hours of daylight on March 21 (day 80)?
Programming
- Write a Python function from scratch (no ). Verify with at least three test angles.
- Plot on . What familiar shape does this look like? (Hint: it converges to a square wave.)
- Vectorize the Pythagorean-identity check from this section to also verify . Be careful around where tan blows up.
In the next section we will invert these functions — arcsin, arccos, arctan — to answer the reverse question: "given a sine value, what angle produced it?" That requires choosing a single branch and is the cousin of the multi-valued conversation we began here.