Graphing Sine and Cosine Waves
Sine and cosine trace out the same endlessly repeating wave; cosine is simply sine given a head start of a quarter cycle. The real payoff of learning their graphs is this: once you can pull four numbers out of an equation, you can sketch either curve without plotting a single point by hand. Everything after that is just interpreting those four numbers.
The parent graphs
Begin with the plain versions. The graph of y = sin x starts at 0, climbs to a peak of 1 at π/2, returns to 0 at π, dips to a trough of −1 at 3π/2, and arrives back at 0 at 2π, where it repeats forever. The graph of y = cos x follows the identical shape but launches from its peak of 1 at x = 0. Both oscillate smoothly between −1 and 1, and both complete one full cycle over a horizontal distance of 2π.
The general form
Every transformed sine wave can be written as
y = A sin(B(x − C)) + D,
and cosine takes exactly the same template. Four parameters — A, B, C, and D — stretch, squeeze, and slide the parent graph into any wave you need.
What each parameter controls
- Amplitude, A. The amplitude is |A|, half the vertical distance from the lowest point to the highest. It stretches the wave taller or squashes it flatter. A negative A also flips the graph upside down.
- Period, 2π/B. The value B counts how many full cycles are packed into an interval of 2π, so the length of one cycle is 2π/B. A larger B means a shorter, more tightly packed wave.
- Frequency, B/(2π). Frequency is the reciprocal idea — how many cycles occur per single unit of x. It rises as the period shrinks.
- Phase shift, C. This slides the whole wave sideways. A positive C moves it to the right, a negative C to the left.
- Vertical shift, D. This raises or lowers the entire wave. The horizontal line y = D becomes the midline the wave oscillates around.
Worked example
Take y = 3 sin(2x − π/2) + 1 and read off everything about it. First, match it to the general form by factoring the inside: 2x − π/2 = 2(x − π/4). So A = 3, B = 2, C = π/4, and D = 1. Factoring out B before reading the phase shift is the step people most often skip, and it is essential — the shift is π/4, not π/2.
- Amplitude: |3| = 3.
- Period: 2π/2 = π. Each cycle spans a horizontal length of π.
- Phase shift: π/4 to the right.
- Midline: y = 1.
- Maximum: D + A = 1 + 3 = 4.
- Minimum: D − A = 1 − 3 = −2.
- Frequency: 2/(2π) = 1/π cycles per unit.
With those in hand, sketching is quick: draw the midline at y = 1, mark the ceiling at 4 and the floor at −2, start the sine shape a quarter turn to the right at x = π/4, and repeat every π units across the axis.
Cosine as a shifted sine
You may wonder why cosine barely came up above. The reason is that it needs no separate treatment: cosine is sine slid left by a quarter cycle, since cos x = sin(x + π/2). Whatever you learn about reading amplitude, period, shift, and midline from a sine equation transfers unchanged to a cosine equation. The only practical difference is your starting point — a cosine wave begins at its maximum rather than on the midline.
Locating the key points
To turn the four numbers into an accurate sketch, divide one period into quarters. For our example the period is π, so the quarter step is π/4. Starting from the phase shift at x = π/4, the wave hits the midline, then the maximum of 4, then the midline again, then the minimum of −2, landing on those milestones one quarter-period apart. Marking those five points across a single cycle and joining them with a smooth curve gives a graph that is faithful without any tedious point-by-point plotting.
Reading a wave gets faster with practice. Plot and check your own equations with the calculators on SinCosTan.