Fiveable

📈College Algebra Unit 8 Review

QR code for College Algebra practice questions

8.1 Graphs of the Sine and Cosine Functions

8.1 Graphs of the Sine and Cosine Functions

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
📈College Algebra
Unit & Topic Study Guides

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:

y=Asin(B(xC))+Dy = A \sin(B(x - C)) + D and y=Acos(B(xC))+Dy = A \cos(B(x - C)) + D

Each parameter controls a different transformation of the graph:

  • AA (Amplitude): Determines the vertical stretch or compression.

    • A>1|A| > 1 stretches the graph vertically (taller waves)
    • A<1|A| < 1 compresses the graph vertically (shorter waves)
    • If A<0A < 0, the graph reflects over the x-axis (the wave flips upside down)
  • BB (Related to frequency): Controls horizontal compression or stretch. A larger B|B| squeezes more cycles into the same horizontal space; a smaller B|B| spreads cycles out.

  • CC (Phase shift): Shifts the graph horizontally.

    • C>0C > 0 shifts right
    • C<0C < 0 shifts left Be careful with signs here. In the form B(xC)B(x - C), the shift is CC, not C-C. So y=sin(2(xπ))y = \sin(2(x - \pi)) shifts right by π\pi, while y=sin(2(x+π))y = \sin(2(x + \pi)) shifts left by π\pi (because C=πC = -\pi).
  • DD (Vertical shift): Moves the entire graph up (D>0D > 0) or down (D<0D < 0).

Period is the length of one complete cycle. You calculate it with:

P=2πBP = \frac{2\pi}{|B|}

A few examples to build intuition:

  • Standard sine/cosine (B=1B = 1): period = 2π2\pi
  • B=2B = 2: period = π\pi (the wave completes twice as fast)
  • B=12B = \frac{1}{2}: period = 4π4\pi (the wave takes twice as long to complete)
Graphing sine and cosine variations, Graphs of the Sine and Cosine Functions – Algebra and Trigonometry OpenStax

Key features of sinusoidal graphs

Midline is the horizontal line the graph oscillates around. It's determined by the vertical shift:

Midline: y=D\text{Midline: } y = D

For standard sine or cosine, the midline is y=0y = 0. If D=2D = 2, the midline shifts up to y=2y = 2.

Amplitude is the maximum distance from the midline to a peak (or trough). It equals A|A|. For the standard functions, the amplitude is 1. If A=3A = 3, 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 D+AD + |A| and the minimum value is DAD - |A|.

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 (y=sinxy = \sin x) starts at 0, hits its maximum at x=π2x = \frac{\pi}{2}, returns to 0 at x=πx = \pi, hits its minimum at x=3π2x = \frac{3\pi}{2}, and completes the cycle at x=2πx = 2\pi.
  • Standard cosine (y=cosxy = \cos x) starts at its maximum (x=0x = 0), drops to 0 at x=π2x = \frac{\pi}{2}, hits its minimum at x=πx = \pi, returns to 0 at x=3π2x = \frac{3\pi}{2}, and completes the cycle at x=2πx = 2\pi.

To find extrema for a transformed function, take the standard locations, divide by B|B| (to account for the period change), then add CC (for the phase shift). The y-values of the extrema are D+AD + |A| (max) and DAD - |A| (min).

Graphing sine and cosine variations, Graphs of the Sine and Cosine Functions | Algebra and Trigonometry

Equations from sinusoidal graphs

When you're given a graph and need to write the equation, follow these steps:

  1. Find the midline (DD). Average the maximum and minimum y-values: D=ymax+ymin2D = \frac{y_{\text{max}} + y_{\text{min}}}{2}

  2. Find the amplitude (AA). Measure the distance from the midline to a peak: A=ymaxDA = y_{\text{max}} - D

  3. Find the period (PP) and calculate BB. Measure the horizontal distance for one full cycle (peak to next peak, or any point to the next identical point). Then: B=2πPB = \frac{2\pi}{P}

  4. Find the phase shift (CC). 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 CC. If you're writing a sine equation, look at where the graph crosses the midline going upward; that x-value is your CC.

  5. Plug everything into the general form: y=Asin(B(xC))+Dy = A \sin(B(x - C)) + D or y=Acos(B(xC))+Dy = A \cos(B(x - C)) + D

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 x=3x = 3 hours.

  • Midline: D=6+22=4D = \frac{6 + 2}{2} = 4
  • Amplitude: A=64=2A = 6 - 4 = 2
  • Period: P=12P = 12, so B=2π12=π6B = \frac{2\pi}{12} = \frac{\pi}{6}
  • Phase shift: The first maximum is at x=3x = 3, and cosine naturally peaks at x=0x = 0, so C=3C = 3

The equation is: y=2cos(π6(x3))+4y = 2\cos\left(\frac{\pi}{6}(x - 3)\right) + 4

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 f(x+P)=f(x)f(x + P) = f(x) for some constant PP 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 cos(x)=sin(x+π2)\cos(x) = \sin\left(x + \frac{\pi}{2}\right), a cosine function is just a sine function shifted left by π2\frac{\pi}{2}.