← MATH 142 MathScape 0 MATH142

Graphs of Sine and Cosine

16 min read

Jump to a section
Textbook: Stewart, Redlin, Watson, Precalculus: Mathematics for Calculus, 7th ed.  •  Chapter: 5  •  Section: 3

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:

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?

Stewart 7e, Section 5.2 Trigonometric Functions of Real Numbers

What are the values of sin 0, sin(pi/2), sin(pi), sin(3pi/2), in that order?

Stewart 7e, Section 5.2

The horizontal axis of a sine or cosine graph is measured in radians. What is the period of the basic y = sin x?

Stewart 7e, Section 5.3 Trigonometric Graphs


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:

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?

Stewart 7e, Section 5.3

What is the amplitude of y = -4 cos x ?

Stewart 7e, Section 5.3

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?

Stewart 7e, Section 5.3

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$.

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$.

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$.

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}$.

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?

Stewart 7e, Section 5.3

For y = cos(3x - pi/2), find the phase shift. Show the factoring step.

Stewart 7e, Section 5.3

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.

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

Common misconception

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.

Common misconception

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$.

Common misconception

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

Level 1 Reading the Base Graph

State the domain, range, and period of $y = \cos x$, and give its value at $x = 0$.

Show Answer

Domain: $(-\infty, \infty)$. Range: $[-1, 1]$. Period: $2\pi$. Value at $x = 0$: $\cos 0 = 1$.

The cosine curve starts at its peak height $1$ when $x = 0$, which is the main feature that separates it from the sine curve.

Level 2 Amplitude and Period

Find the amplitude and period of $y = 5\sin(3x)$.

Thought Process

Match $y = 5\sin(3x)$ to $y = a\sin k(x - b)$. Read $a = 5$ and $k = 3$. Amplitude is $\lvert a\rvert$; period is $\dfrac{2\pi}{k}$.

Show Answer

Amplitude: $\lvert 5\rvert = 5$. Period: $\dfrac{2\pi}{3}$.

The swing reaches $5$ above and below the center line $y = 0$, and one full repeat takes an input length of $\dfrac{2\pi}{3}$.

Level 2 Amplitude Is Half the Span

A sine curve centered on the horizontal axis runs from a minimum of $-7$ to a maximum of $7$. What is its amplitude?

Show Answer

The amplitude is the distance from the center line to a peak, which is $7$, not the full span of $14$.

The peak-to-trough span is $7 - (-7) = 14$, and the amplitude is half of that: $\dfrac{14}{2} = 7$.

Level 3 Phase Shift by Factoring

Find the amplitude, period, and phase shift of $y = 2\cos\!\left(3x - \dfrac{\pi}{2}\right)$.

Thought Process

Read $a = 2$ and $k = 3$ for amplitude and period. For the shift, factor the $3$ out of $3x - \dfrac{\pi}{2}$ before reading $b$. Do not stop at the loose constant.

Show Answer

Amplitude: $\lvert 2\rvert = 2$. Period: $\dfrac{2\pi}{3}$.

Factor the inside: $3x - \dfrac{\pi}{2} = 3\!\left(x - \dfrac{\pi}{6}\right)$.

Phase shift: $b = \dfrac{\pi}{6}$ to the right.

The curve is the basic cosine, repeating every $\dfrac{2\pi}{3}$, swinging $2$ above and below the axis, slid $\dfrac{\pi}{6}$ to the right.

Level 4 Build the Formula from a Description

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.

Thought Process

Amplitude $3$ gives $a = 3$. Period $\pi$ comes from $\dfrac{2\pi}{k} = \pi$, so $k = 2$. A shift of $\dfrac{\pi}{4}$ to the right means $b = \dfrac{\pi}{4}$. Assemble in the factored form $a\sin k(x - b)$.

Show Answer

From $\dfrac{2\pi}{k} = \pi$, solve $k = 2$.

$$y = 3\sin 2\!\left(x - \dfrac{\pi}{4}\right).$$

Check: amplitude $|3| = 3$, period $\dfrac{2\pi}{2} = \pi$, phase shift $b = \dfrac{\pi}{4}$. All three match. Multiplying the inside out gives the equivalent $y = 3\sin\!\left(2x - \dfrac{\pi}{2}\right)$, where the loose constant is $\dfrac{\pi}{2}$, confirming that the shift $\dfrac{\pi}{4}$ is the constant divided by $k$.

Level 5 Recover the Equation from a Graph

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.

Thought Process

A peak at $x = 0$ is the cosine signature, so use cosine with $b = 0$. Amplitude is the peak height. The distance between consecutive peaks is one period, so set $\dfrac{2\pi}{k}$ equal to that distance and solve for $k$. For the sine form, a cosine is a sine shifted a quarter period to the left.

Show Answer

Amplitude: peak height $4$, so $a = 4$ (positive, since the peak is at $x = 0$).

Period: consecutive peaks are $6$ apart, so $\dfrac{2\pi}{k} = 6$, giving $k = \dfrac{2\pi}{6} = \dfrac{\pi}{3}$.

Phase shift: a cosine already peaks at $x = 0$, so $b = 0$.

$$y = 4\cos\!\left(\dfrac{\pi}{3}\,x\right).$$

Check: at $x = 0$, $y = 4\cos 0 = 4$; the period is $\dfrac{2\pi}{\pi/3} = 6$. Both match.

As a sine. Since $\cos\theta = \sin\!\left(\theta + \dfrac{\pi}{2}\right)$, a cosine is a sine slid a quarter period to the left. One quarter of the period $6$ is $1.5$, so the same curve is $y = 4\sin\!\left(\dfrac{\pi}{3}(x + 1.5)\right)$, that is, $b = -1.5$.

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:

Stewart 7e, Section 5.3

A wave runs from a low of -5 to a high of 5. What is its amplitude?

Stewart 7e, Section 5.3

For y = cos(2x - pi), what is the phase shift after factoring out k?

Stewart 7e, Section 5.3

Changing y = sin x to y = sin(3x) does what?

Stewart 7e, Section 5.3

In one sentence, why must you factor out k before reading the phase shift from y = a sin(kx - c)?

Stewart 7e, Section 5.3


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:

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:

Looking ahead:

Real-world connections:


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).


Last updated: 2026-06-24