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.
Period and frequency are reciprocals, not synonyms
It is easy to blur period and frequency together since they describe the same wave, but they answer different questions and are genuine reciprocals of one another: period = 1/frequency, and frequency = 1/period. Period asks "how long is one cycle," measured in the same units as x. Frequency asks "how many cycles fit in one unit of x," which is why a short period always pairs with a high frequency and a long period with a low one. Sound, alternating current, and any other rapidly repeating signal are usually described by frequency because the number of cycles per second is the more natural quantity to talk about; a slow ocean swell or a business cycle is more often described by its period, because a single "how long until it repeats" is easier to picture than a tiny fractional frequency. Both descriptions carry exactly the same information, so converting between them is never lossy — it is purely a matter of which framing the situation calls for.
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.
Where the wave crosses its own midline
Besides the maximum and minimum, a sketch benefits from knowing where the curve crosses back through the midline, since those crossings are where the wave is changing fastest. For y = A sin(B(x − C)) + D, the midline crossings inside one period sit at the phase shift itself (x = C) and again half a period later (x = C + period/2), with the curve heading upward at the first crossing and downward at the second — assuming A is positive. In the worked example above, C = π/4 and the period is π, so the crossings fall at x = π/4 (heading up) and x = π/4 + π/2 = 3π/4 (heading down), which matches the two midline evaluations confirmed by the calculator earlier. Together with the maximum and minimum a quarter-period on either side of those crossings, that is the full set of five evenly-spaced landmarks needed to sketch one clean cycle.
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.
A and B stretch the graph in different directions
Amplitude and the period-controlling B are easy to blur together since both "resize" the curve, but they act on perpendicular axes and are worth keeping firmly separate. Amplitude A is a vertical stretch: it changes how high and low the wave reaches, without touching how often it repeats. B controls a horizontal stretch (really a compression, since a larger B squeezes the wave tighter): it changes how quickly the wave repeats, without touching how tall it gets. A wave with a huge amplitude and a huge period looks tall and lazy; one with a tiny amplitude and a tiny period looks flat and frantic; and every other combination of the two is possible independently, since nothing in the general form ties A's value to B's.
Confirming the sketch with the calculator
Everything above can be checked directly rather than trusted on faith. Feeding y = 3 sin(2x − π/2) + 1 into the sine wave calculator as amplitude 3, period π, phase shift π/4, and midline 1 returns exactly the values worked out by hand: B = 2, maximum 4, minimum −2, and a frequency of 1/π ≈ 0.3183 cycles per unit. Asking it to evaluate y at x = π/4, the phase-shifted starting point, returns y = 1 — the midline, confirming that is indeed where the curve crosses on its way up. Asking for y at x = 3π/4, three quarters of the way through the first period, also returns y = 1: the wave has completed a full half-cycle-plus-quarter by then and is crossing the midline again on its way back down. Two different x-values landing on the same y is exactly what a periodic, oscillating curve should do, and it is a useful sanity check that the sketch has the right shape.
A second worked example: negative amplitude
Amplitude does not have to be positive, and a negative value is worth sketching at least once because of the flip it causes. Take y = −5 sin(πx) + 10, so amplitude A = −5, period 2 (since B = π gives period 2π/π = 2), and midline D = 10. Running these values through the sine wave calculator gives a maximum of 15 and a minimum of 5 — the midline of 10 plus or minus |−5| = 5, exactly as the max/min formulas predict when you take the absolute value of the amplitude. But the shape itself is upside down compared with a positive-amplitude sine wave: instead of rising first from the midline, the curve immediately falls toward its minimum, because multiplying the whole sine function by a negative number flips it vertically. Evaluating at x = 0.5 (a quarter of the way through the period) returns y = 5, confirming the curve is already at its minimum a quarter-cycle in, rather than at its maximum the way a positive-amplitude wave would be. Whenever A is negative, sketch the ordinary positive-amplitude curve first and then flip it top to bottom around the midline — it is far less error-prone than trying to reason about the flip while also tracking the shift and the scale.
Reading the four numbers back out of real data
The reverse skill — starting from an oscillating quantity and recovering A, B, C, and D — is at least as useful as sketching from an equation, since most real oscillations arrive as measurements rather than as a tidy formula. Reading Amplitude, Period, Phase, and Midline Off a Sinusoid works through exactly that process end to end, turning a maximum, a minimum, and a timestamp into a complete sinusoid equation.
Reading a wave gets faster with practice. Plot and check your own equations with the calculators on SinCosTan.