Graphs of Sine and Cosine
Tape a marker to the rim of a bike wheel and spin it. Watch only how high the marker rides off the ground. It climbs, drops, and climbs again, tracing a smooth wave that never stops. That wave is the graph of sine. Cosine is the same wave that got a quarter-turn head start.
By the end of this page you can:
- Read the amplitude $|a|$, the period $\dfrac{2\pi}{k}$, and the phase shift $b$ off $y = a\sin k(x - b)$ and $y = a\cos k(x - b)$.
- Sketch one full period by marking the five quarter points (midline, peak, midline, trough, midline for sine).
- Recover an equation $y = a\sin k(x - b)$ or $y = a\cos k(x - b)$ from a given graph.
- Tell a change of period (a change in $k$) apart from a horizontal slide (a change in $b$).
The floor. For $y = a\sin k(x - b)$, the amplitude is $|a|$, the period is $\dfrac{2\pi}{k}$, and the shift is $b$, but only once the inside is written as $k(x - b)$. Factor the inside first, then read the three numbers straight off.
Quick Reference
| Field | Value |
|---|---|
| Textbook | Stewart, Redlin, Watson, Precalculus: Mathematics for Calculus, 7th ed. |
| Chapter | 5 (Trigonometric Functions: Unit Circle Approach) |
| Section | 5.3 Trigonometric Graphs |
| Page | p. 419 ff. (page to confirm) |
| Open alternate | OpenStax Precalculus 2e, Section 6.1 Graphs of the Sine and Cosine Functions |
| Course | MATH142 (Precalculus II, Trigonometry) |
| Difficulty | Core |
| Time | ~35 minutes |
Before You Start
Check each box you can do from memory. A box you cannot check yet points to a quick refresher, not a grade.
A 60-second self-check. Pick an answer, then reveal the reasoning.
Check your understanding
On the unit circle, the sine of an angle is which coordinate of the point?
What are the values of sin 0, sin(pi/2), sin(pi), sin(3pi/2), in that order?
The horizontal axis of a sine or cosine graph is measured in radians. What is the period of the basic y = sin x?
Where the Wave Comes From
Before any formula, walk one trip around the unit circle and record the height. A point moves counterclockwise from the far right. Its height above the horizontal axis is the sine value. Read the height at five stops, a quarter turn apart.
| Quarter turn (radians) | Where the point sits | Height (sine value) |
|---|---|---|
| $0$ | far right | $0$ |
| $\frac{\pi}{2}$ | top | $1$ |
| $\pi$ | far left | $0$ |
| $\frac{3\pi}{2}$ | bottom | $-1$ |
| $2\pi$ | far right again | $0$ |
Plot those five heights left to right, with the angle on the horizontal axis and the height on the vertical axis, and connect them smoothly. Where does the curve peak, and where does it bottom out? What happens after one full turn?
What you should notice (click after you have tried it)
The curve rises from $0$ to $1$, falls through $0$ down to $-1$, then climbs back to $0$. That single rise and fall is one period. The point returns to the far right after $2\pi$ and starts the identical trip, so the curve repeats forever. That repetition is what makes the function periodic. The cosine graph is the same shape read as the point’s horizontal position instead of its height, which is why cosine starts at $1$ rather than $0$.
A periodic function returns to the same value after a fixed amount of input, then does the same thing again. A wheel at steady speed, a tide, a vibrating string: each comes back to its earlier state after a fixed interval. Sine and cosine are the cleanest such functions, and their graphs are pictures of that motion. Three numbers describe any one of these curves once the midline sits on the axis:
- how tall the swing is above and below the center (amplitude),
- how long one full repeat takes (period),
- how far the pattern is slid sideways (phase shift, also called the horizontal shift).
Stewart writes the general curve as $$y = a\sin k(x - b) \qquad\text{or}\qquad y = a\cos k(x - b), \qquad k > 0.$$ The inside is already factored as $k(x - b)$, the form that makes the three numbers read off directly: amplitude $|a|$, period $\dfrac{2\pi}{k}$, phase shift $b$.
Prerequisite Hub
graph LR
subgraph BuildsOn["Builds On"]
A["Unit Circle:<br/>Sine and Cosine"]
B["Signs and Domains<br/>of Trig Functions"]
end
subgraph ThisSkill["This Skill"]
F["Graphs of Sine<br/>and Cosine"]
end
subgraph Unlocks["Unlocks"]
G["Graphs of the<br/>Other Trig Functions"]
end
A --> F
B --> F
F --> G
style F fill:#d1fae5,stroke:#a565f0,stroke-width:3px
Builds on (master these first):
| Skill | Why it helps |
|---|---|
| Unit Circle: Sine and Cosine | The graph plots the function output as the input sweeps the circle, so the unit-circle values are the heights being plotted. |
| Signs and Domains of Trig Functions | The sign pattern across the quadrants is the rise and fall of the wave: positive heights above the axis, negative heights below it. |
Unlocks (what this feeds into next):
| Skill | What it adds |
|---|---|
| Graphs of the Other Trig Functions | Tangent, cotangent, secant, and cosecant graphs are read against the sine and cosine pictures built here. |
Cross-course prerequisites: none required.
Official Definitions
Each statement below traces to Stewart 7e, Section 5.3. The verbatim OpenStax quotes that follow are an alternate phrasing of the same facts.
Amplitude
For $y = a\sin k(x - b)$ and $y = a\cos k(x - b)$ with $k > 0$, the amplitude is $|a|$, the largest distance the graph rises above or falls below its center line.
Stewart 7e, Section 5.3 Trigonometric Graphs (page to confirm).
The absolute value matters. A negative $a$ still produces a swing of size $|a|$; the sign reflects the graph across the center line so the curve starts by going down rather than up. The full distance from a peak down to a trough is $2|a|$, twice the amplitude, not the amplitude itself.
Period
For $y = a\sin k(x - b)$ and $y = a\cos k(x - b)$ with $k > 0$, the period is $\dfrac{2\pi}{k}$, the input length of one complete repeat.
Stewart 7e, Section 5.3 Trigonometric Graphs (page to confirm).
A larger $k$ packs more repeats into the same stretch of input, so the period shrinks. With $k = 2$ the curve repeats twice as fast as the basic sine, giving a period of $\dfrac{2\pi}{2} = \pi$.
Phase shift (horizontal shift)
For $y = a\sin k(x - b)$ and $y = a\cos k(x - b)$, the phase shift is $b$, the horizontal displacement of the basic sine or cosine curve. One complete period is graphed on the interval from $x = b$ to $x = b + \dfrac{2\pi}{k}$.
Stewart 7e, Section 5.3 Trigonometric Graphs (page to confirm).
The shift is the number $b$ that appears in the factored inside $k(x - b)$, not the loose constant that appears when the inside is multiplied out. A positive $b$ slides the pattern right; a negative $b$ slides it left.
Periodic function (alternate phrasing)
“A periodic function is a function for which a specific horizontal shift, $P$, results in a function equal to the original function: $f(x + P) = f(x)$ for all values of $x$ in the domain of $f$.”
OpenStax Precalculus 2e, Section 6.1 Graphs of the Sine and Cosine Functions.
The smallest positive such $P$ is the period. For the basic sine and cosine that smallest $P$ is $2\pi$.
Base-graph facts
| Feature | $y = \sin x$ | $y = \cos x$ |
|---|---|---|
| Domain | $(-\infty, \infty)$ | $(-\infty, \infty)$ |
| Range | $[-1, 1]$ | $[-1, 1]$ |
| Period | $2\pi$ | $2\pi$ |
| Value at $x = 0$ | $0$ | $1$ |
| Parity | odd: $\sin(-x) = -\sin x$ | even: $\cos(-x) = \cos x$ |
Stewart 7e, Section 5.3 Trigonometric Graphs.
Reading the Three Numbers off the Form
For $y = a\sin k(x - b)$ or $y = a\cos k(x - b)$ with $k > 0$:
| Symbol | Name | How to read it |
|---|---|---|
| $\lvert a \rvert$ | amplitude | vertical distance from the center line to a peak |
| $\dfrac{2\pi}{k}$ | period | input length of one full repeat |
| $b$ | phase shift | how far the pattern slides horizontally, read from $k(x - b)$ |
Two views of the same three numbers help to hold at once. As transformations: stretch the height by $|a|$, compress the input by $k$, then slide right by $b$. This answers “what changed from $y = \sin x$?” As a recipe for landmark points: one period splits into four equal quarters, and across them an unshifted sine passes through midline, peak, midline, trough, midline. This answers “where do I put my pencil?” The quarter-point view is faster for a hand sketch; the transformation view is clearer for explaining what a coefficient does.
The single most common error is reading the shift before factoring out $k$. The quiz below checks the three reads in turn, including that trap.
Check your understanding
For y = 5 sin(3x), what is the amplitude and the period?
What is the amplitude of y = -4 cos x ?
For y = sin(2x - pi), a student reads the phase shift straight off as pi. Factor out k first. What is the actual phase shift?
Worked Examples
Worked Example 1: Amplitude and period from the formula
Problem. Graph one period of $y = 3\sin(2x)$. State the amplitude, period, and midline.
Predict first. The $3$ out front should stretch the swing taller than the basic sine, and the $2$ inside should make it repeat faster. Predict an amplitude bigger than $1$ and a period smaller than $2\pi$.
Now compute. Match $y = 3\sin(2x)$ to $y = a\sin k(x - b)$ with $a = 3$, $k = 2$, $b = 0$.
- Amplitude: $|a| = |3| = 3$.
- Period: $\dfrac{2\pi}{k} = \dfrac{2\pi}{2} = \pi$.
- Midline: $y = 0$.
Quarter points. One period runs from $x = 0$ to $x = \pi$, split into four pieces of width $\dfrac{\pi}{4}$:
| $x$ | $0$ | $\frac{\pi}{4}$ | $\frac{\pi}{2}$ | $\frac{3\pi}{4}$ | $\pi$ |
|---|---|---|---|---|---|
| $2x$ | $0$ | $\frac{\pi}{2}$ | $\pi$ | $\frac{3\pi}{2}$ | $2\pi$ |
| $\sin(2x)$ | $0$ | $1$ | $0$ | $-1$ | $0$ |
| $y = 3\sin(2x)$ | $0$ | $3$ | $0$ | $-3$ | $0$ |
Check the prediction. Amplitude $3 > 1$ and period $\pi < 2\pi$, as predicted. The curve climbs to $3$, returns through $0$, drops to $-3$, and comes back, all within an input length of $\pi$.
Worked Example 2: A reflection from a negative coefficient
Problem. Graph one period of $y = -2\cos x$. State the amplitude, period, maximum, and minimum.
Predict first. The $2$ should double the swing, and the negative sign should flip the cosine so it starts at its lowest point. Predict a curve that begins at $-2$, not $+2$, and an amplitude of $2$ rather than $-2$.
Now compute. Match $y = -2\cos x$ to $y = a\cos k(x - b)$ with $a = -2$, $k = 1$, $b = 0$.
- Amplitude: $|a| = |-2| = 2$.
- Period: $\dfrac{2\pi}{1} = 2\pi$.
- Maximum: $+2$. Minimum: $-2$.
Quarter points over one period from $x = 0$ to $x = 2\pi$:
| $x$ | $0$ | $\frac{\pi}{2}$ | $\pi$ | $\frac{3\pi}{2}$ | $2\pi$ |
|---|---|---|---|---|---|
| $\cos x$ | $1$ | $0$ | $-1$ | $0$ | $1$ |
| $y = -2\cos x$ | $-2$ | $0$ | $2$ | $0$ | $-2$ |
Check the prediction. The curve starts at its minimum $-2$ (the negative sign flipped the usual peak into a trough), rises to the maximum $2$ at $x = \pi$, and returns. The amplitude is $2$, a positive height, even though $a = -2$. The full span from $-2$ to $2$ is $4$, which is $2|a|$, twice the amplitude.
Worked Example 3: Phase shift from the factored form
Problem. Find the amplitude, period, and phase shift of $y = 4\sin(2x - \pi)$, then state the interval covering the first full period.
Predict first. The $-\pi$ inside slides the curve sideways. A common trap is to read the shift as $\pi$. Predict instead a shift smaller than $\pi$, because the $2$ multiplying $x$ shares the input.
Now compute. Read amplitude and period directly: $a = 4$, $k = 2$.
- Amplitude: $|a| = 4$.
- Period: $\dfrac{2\pi}{2} = \pi$.
Factor out $k$ before reading the shift. The inside is $2x - \pi$. Factor the $2$: $$2x - \pi = 2\left(x - \frac{\pi}{2}\right).$$ So $y = 4\sin\!\left(2\left(x - \frac{\pi}{2}\right)\right)$, which matches $a\sin k(x - b)$ with $b = \dfrac{\pi}{2}$.
- Phase shift: $b = \dfrac{\pi}{2}$, to the right.
- First full period: from $x = b = \dfrac{\pi}{2}$ to $x = b + \text{period} = \dfrac{\pi}{2} + \pi = \dfrac{3\pi}{2}$.
Check the prediction. The shift is $\dfrac{\pi}{2}$, not $\pi$. Reading the loose $-\pi$ as the shift would have placed the start a full $\pi$ too far right. Factoring out $k = 2$ first fixes that.
A note on the trap: the quantity $\dfrac{C}{B}$ that some texts (and the OpenStax alternate, written $y = A\sin(Bx - C)$) call the phase shift is exactly Stewart’s $b$. Here $\dfrac{C}{B} = \dfrac{\pi}{2}$ agrees with $b = \dfrac{\pi}{2}$. The two forms name the same shift; the factored form $k(x - b)$ shows it without an extra division.
Check your understanding
Compare y = sin x and y = sin(2x). Changing the inside coefficient from 1 to 2 does what to the graph?
For y = cos(3x - pi/2), find the phase shift. Show the factoring step.
Worked Example 4: Recover the equation from a graph
Problem. A cosine-shaped curve has its center line on the horizontal axis. It reaches a maximum of $3$ and a minimum of $-3$. One full repeat takes a horizontal length of $4\pi$, and the curve has a peak exactly at $x = 0$. Write an equation of the form $y = a\cos k(x - b)$.
Predict first. A peak at $x = 0$ with no vertical shift is the signature of a plain cosine, so predict $b = 0$. The swing of $3$ predicts $a = 3$, and a repeat longer than $2\pi$ predicts $k$ smaller than $1$.
Now compute.
- Amplitude: the curve rises $3$ above the center line, so $|a| = 3$. The peak sits at $x = 0$, where a positive cosine peaks, so take $a = 3$ (no reflection).
- Period: the repeat length is $4\pi$. Solve $\dfrac{2\pi}{k} = 4\pi$, which gives $k = \dfrac{2\pi}{4\pi} = \dfrac{1}{2}$.
- Phase shift: a plain cosine already peaks at $x = 0$, so $b = 0$.
Assemble. $$y = 3\cos\!\left(\tfrac{1}{2}\,x\right) = 3\cos\!\left(\tfrac{1}{2}(x - 0)\right).$$
Check the prediction. At $x = 0$, $y = 3\cos 0 = 3$, the stated maximum. The period is $\dfrac{2\pi}{1/2} = 4\pi$, the stated repeat length. Both match, and $b = 0$ matches the prediction.
Worked Example 5: Using parity to evaluate
Problem. Without a calculator, use the parity facts to rewrite $\sin\!\left(-\frac{\pi}{6}\right)$ and $\cos\!\left(-\frac{\pi}{3}\right)$ with positive inputs, then give their values.
Predict first. Sine is odd and cosine is even. Predict that the sine value picks up a negative sign while the cosine value does not.
Now compute. Apply $\sin(-x) = -\sin x$ and $\cos(-x) = \cos x$: $$\sin\!\left(-\frac{\pi}{6}\right) = -\sin\!\left(\frac{\pi}{6}\right) = -\frac{1}{2}.$$ $$\cos\!\left(-\frac{\pi}{3}\right) = \cos\!\left(\frac{\pi}{3}\right) = \frac{1}{2}.$$
Check the prediction. The sine result is negative and the cosine result stays positive, matching odd-and-even behavior. On the graph this shows directly: the sine curve has point symmetry through the origin, and the cosine curve is mirror-symmetric across the vertical axis.
Common Misconceptions
a coefficient on $x$ slides the graph sideways. The coefficient on $x$ is $k$, and $k$ sets the period $\dfrac{2\pi}{k}$, not a horizontal shift. Predict-then-check on $y = \sin(2x)$: a student who reads the $2$ as a slide expects the same wave moved over, but the table of quarter points shows the wave repeating twice as fast, with a period of $\pi$ rather than $2\pi$. Changing $k$ squeezes or stretches the wave horizontally; only $b$ slides it.
read the phase shift straight off the inside without factoring out $k$. In $y = a\sin k(x - b)$ the shift is $b$, the number inside the factored form, not the loose constant left when the inside is multiplied out. Predict-then-check on $y = \sin(2x - \pi)$: reading the shift as $\pi$ slides the curve a full $\pi$ to the right, but factoring gives $\sin\!\left(2\left(x - \frac{\pi}{2}\right)\right)$, so the true shift is $\frac{\pi}{2}$. The $k$ multiplying $x$ shares the horizontal move. Factor out $k$ first, then read $b$.
the amplitude is the full distance from the lowest point to the highest point. The amplitude is $|a|$, the distance from the center line to a peak, which is half of the peak-to-trough span. Predict-then-check on $y = 2\sin x$: the curve runs from $-2$ to $2$, a full span of $4$, yet the amplitude is $2$, not $4$. The total height of the wave is $2|a|$, and the amplitude is one of those two halves. A negative $a$ does not change this, since $|a|$ stays positive; it only reflects the curve.
Practice Problems
State the domain, range, and period of $y = \cos x$, and give its value at $x = 0$.
Find the amplitude and period of $y = 5\sin(3x)$.
A sine curve centered on the horizontal axis runs from a minimum of $-7$ to a maximum of $7$. What is its amplitude?
Find the amplitude, period, and phase shift of $y = 2\cos\!\left(3x - \dfrac{\pi}{2}\right)$.
Write a sine function $y = a\sin k(x - b)$ centered on the horizontal axis with amplitude $3$, period $\pi$, and a phase shift of $\dfrac{\pi}{4}$ to the right.
A wave centered on the horizontal axis has a peak of $4$ at $x = 0$ and the next peak at $x = 6$. Write it both as a cosine $y = a\cos k(x - b)$ and explain in one line how to write the same curve as a sine.
Check Yourself
Close the notes and answer each from memory, then reveal it. Pulling an idea back from memory is one of the strongest ways to make it stick.
Check your understanding
For y = 6 sin(4x), the amplitude and period are:
A wave runs from a low of -5 to a high of 5. What is its amplitude?
For y = cos(2x - pi), what is the phase shift after factoring out k?
Changing y = sin x to y = sin(3x) does what?
In one sentence, why must you factor out k before reading the phase shift from y = a sin(kx - c)?
Go Deeper (optional)
A pure tone is a single sine wave. When a tuning fork vibrates, the air pressure at your ear rises and falls as a sine curve, where amplitude is the loudness and a shorter period (a larger $k$) is a higher note. A chord is a sum of a few sine waves; a recorded voice is a sum of many. Fourier analysis takes any repeating signal apart into sine and cosine pieces, and it drives audio compression, image formats, and signal processing.
Where these waves show up in work:
- Engineering: alternating current is a sinusoid, and the amplitude and period of a voltage are the first two numbers any circuit analysis needs.
- Data science: seasonal patterns such as daily temperature, yearly sales, and tide height are modeled as sinusoids, and fitting amplitude, period, and phase to data is a standard regression task.
- Computer graphics and games: smooth looping motion, a bobbing object or a pulsing light, is usually driven by a sine of time.
A runner picture ties it together. Plot a runner’s height above the center of a circular track against time. The plot rises to a maximum (runner at the top), falls to a minimum (runner at the bottom), and repeats every lap. The amplitude is the track’s radius, the period is the lap time, and the phase shift is where the runner started the clock.
Mastery Checklist
Novice (Level 1-2):
Competent (Level 3-4):
Proficient (Level 5):
Connections
Looking back:
- Unit Circle: Sine and Cosine supplies the exact heights the graph plots.
- Signs and Domains of Trig Functions explains the sign pattern that becomes the rise and fall of the wave.
Looking ahead:
- Graphs of the Other Trig Functions: tangent, cotangent, secant, and cosecant are read against these sine and cosine pictures.
Real-world connections:
- Sound: a pure tone is a sine wave; amplitude is loudness and period sets pitch.
- Tides: water height rises and falls on a near-sinusoidal daily cycle.
- Alternating current: household voltage is a sinusoid oscillating around a zero center line.
Resources
| Resource | Reference |
|---|---|
| Primary text | Stewart, Redlin, Watson, Precalculus: Mathematics for Calculus, 7th ed., Section 5.3 Trigonometric Graphs (p. 419 ff., page to confirm). |
| Open alternate | OpenStax Precalculus 2e, Section 6.1 Graphs of the Sine and Cosine Functions |
| Source of the values being graphed | OpenStax Precalculus 2e, Section 5.2 Unit Circle (Sine and Cosine Functions) |
| Next tree node | Graphs of the Other Trig Functions (the section this unlocks). |
| Previous | Up | Next |
|---|---|---|
| Unit Circle: Sine and Cosine | Skills Index | Graphs of the Other Trig Functions |
Last updated: 2026-06-24