Sine and cosine functions are the building blocks of periodic motion. These waves show up everywhere, from sound to light to ocean tides. Understanding how to graph and manipulate them is key to modeling real-world phenomena.
This section covers how to adjust sine and cosine graphs using amplitude, frequency, phase shift, and vertical shift. You'll also learn how to read these elements off a graph and write equations from them.
Graphs of Sine and Cosine Functions
Graphing sine and cosine variations
The general form for both functions is:
and
Each parameter controls a different transformation of the graph:
-
(Amplitude): Determines the vertical stretch or compression.
- stretches the graph vertically (taller waves)
- compresses the graph vertically (shorter waves)
- If , the graph reflects over the x-axis (the wave flips upside down)
-
(Related to frequency): Controls horizontal compression or stretch. A larger squeezes more cycles into the same horizontal space; a smaller spreads cycles out.
-
(Phase shift): Shifts the graph horizontally.
- shifts right
- shifts left Be careful with signs here. In the form , the shift is , not . So shifts right by , while shifts left by (because ).
-
(Vertical shift): Moves the entire graph up () or down ().
Period is the length of one complete cycle. You calculate it with:
A few examples to build intuition:
- Standard sine/cosine (): period =
- : period = (the wave completes twice as fast)
- : period = (the wave takes twice as long to complete)

Key features of sinusoidal graphs
Midline is the horizontal line the graph oscillates around. It's determined by the vertical shift:
For standard sine or cosine, the midline is . If , the midline shifts up to .
Amplitude is the maximum distance from the midline to a peak (or trough). It equals . For the standard functions, the amplitude is 1. If , the peaks reach 3 units above the midline and the troughs dip 3 units below it. This means the maximum value of the function is and the minimum value is .
Extrema are the maximum and minimum points. Rather than memorizing formulas for their locations, think about where the parent functions naturally peak and dip, then apply your transformations:
- Standard sine () starts at 0, hits its maximum at , returns to 0 at , hits its minimum at , and completes the cycle at .
- Standard cosine () starts at its maximum (), drops to 0 at , hits its minimum at , returns to 0 at , and completes the cycle at .
To find extrema for a transformed function, take the standard locations, divide by (to account for the period change), then add (for the phase shift). The y-values of the extrema are (max) and (min).

Equations from sinusoidal graphs
When you're given a graph and need to write the equation, follow these steps:
-
Find the midline (). Average the maximum and minimum y-values:
-
Find the amplitude (). Measure the distance from the midline to a peak:
-
Find the period () and calculate . Measure the horizontal distance for one full cycle (peak to next peak, or any point to the next identical point). Then:
-
Find the phase shift (). Compare the graph to the parent function. If you're writing a cosine equation, look at where the nearest maximum occurs; that x-value is your . If you're writing a sine equation, look at where the graph crosses the midline going upward; that x-value is your .
-
Plug everything into the general form: or
Worked example: Suppose a tide graph has a maximum height of 6 m, a minimum height of 2 m, completes one cycle every 12 hours, and the first high tide occurs at hours.
- Midline:
- Amplitude:
- Period: , so
- Phase shift: The first maximum is at , and cosine naturally peaks at , so
The equation is:
You could also write this as a sine function with a different phase shift, since the sine's first upward midline crossing would occur at a different x-value. Both forms are valid.
Additional Concepts
- Periodic functions repeat their values at regular intervals. Sine and cosine are the most common examples, but any function where for some constant is periodic.
- The unit circle is the foundation for understanding why sine and cosine behave the way they do. The x-coordinate of a point on the unit circle gives cosine, and the y-coordinate gives sine.
- You can always convert between sine and cosine equations for the same graph. Since , a cosine function is just a sine function shifted left by .