algebraunstuck.com

Unit 4 · Graphs of sine & cosine

Writing equations from graphs

About 18 minFree, no account needed
Goal
Read the midline, amplitude, period and starting point of a wave and write its equation.

To write an equation from a graph, read four things. Midline: D=max⁡+min⁡2D = \frac{\max + \min}{2}. Amplitude: ∣A∣=max⁡−D|A| = \max - D. Period PP, the width of one full cycle, gives B=2πPB = \frac{2\pi}{P}. Start: sine begins on the midline going up, cosine begins at a peak. If the graph does the opposite, AA is negative.

xyπ/4π/23π/4π5π/43π/27π/44−21
Max 4, min −2, and one cycle every π.

Example 1

Turn a wave into an equation in four reads

y=Acos⁡(Bx)+Dy = A\cos(Bx) + D
  1. Midline: halfway between 4 and −2

    D=4+(−2)2=1D = \frac{4 + (-2)}{2} = 1
  2. Amplitude: from the midline up to the max

    ∣A∣=4−1=3|A| = 4 - 1 = 3
  3. One full cycle is π wide

    B=2ππ=2B = \frac{2\pi}{\pi} = 2
  4. At x = 0 it starts at the max: A > 0

    A=3A = 3
  5. Put the pieces together

    y=3cos⁡(2x)+1y = 3\cos(2x) + 1

Check: y(0) = 3 · cos 0 + 1 = 4, the max ✓

xyπ2π3π2−2
A sine wave that falls from the midline at x = 0.

Example 2

A sine wave that goes down first? That's a negative A

y=Asin⁡(Bx)y = A\sin(Bx)
  1. Midline y = 0; the peaks reach 2

    ∣A∣=2|A| = 2
  2. One full cycle is 4π wide

    B=2π4π=12B = \frac{2\pi}{4\pi} = \frac{1}{2}
  3. At x = 0 it falls from the midline: A < 0

    A=−2A = -2
  4. Put the pieces together

    y=−2sin⁡(12x)y = -2\sin\left(\frac{1}{2}x\right)

Check: at x = π: −2 sin(π/2) = −2, a minimum ✓

Practice

10 practice problems with hints, then a mastery check of 8 questions, right on this page.