Skip to content
Family Table Math

Sinusoidal Equations from Graphs

Going backwards, from a wave to its equation, is what lets you build models of real data. You read four things off the graph (amplitude, axis, period, and a starting point) and the equation almost writes itself. All angles are in degrees.

For y=asin⁡(k(x−d))+cy = a\sin\big(k(x - d)\big) + c or y=acos⁡(k(x−d))+cy = a\cos\big(k(x - d)\big) + c:

  1. Amplitude: a=max−min2a = \dfrac{\text{max} - \text{min}}{2}
  2. Axis: c=max+min2c = \dfrac{\text{max} + \text{min}}{2}
  3. Period, then k=360∘periodk = \dfrac{360^\circ}{\text{period}}. Measure the period between two matching points, like consecutive maximums.
  4. Phase shift dd:
    • For cosine, choose dd at a maximum: y=acos⁡xy = a\cos x starts at its peak.
    • For sine, choose dd where the graph crosses the axis going up: y=asin⁡xy = a\sin x starts on its axis, rising.

The same graph has many correct equations. You can use sine or cosine, choose a different maximum (any dd plus or minus a whole period works), or use a negative aa and start from a minimum. Check any equation by substituting a known point.

Write a cosine equation and a sine equation for this graph.

A sinusoidal graph with maximums at (60, 5) and (240, 5), minimums at (150, -1) and (330, -1), and axis y = 2 90 180 270 360 2 4 (60°, 5) (150°, −1) (240°, 5) (330°, −1) y = 2

Solution.

  1. a=5−(−1)2=3a = \dfrac{5 - (-1)}{2} = 3
  2. c=5+(−1)2=2c = \dfrac{5 + (-1)}{2} = 2
  3. The maximums are at 60∘60^\circ and 240∘240^\circ, so the period is 180∘180^\circ and k=360∘180∘=2k = \dfrac{360^\circ}{180^\circ} = 2.
  4. Cosine: there’s a maximum at x=60∘x = 60^\circ, so d=60∘d = 60^\circ:
y=3cos⁡(2(x−60∘))+2y = 3\cos\big(2(x - 60^\circ)\big) + 2

Sine: the graph crosses the axis going up halfway between the minimum at −30∘-30^\circ (one period before 150∘150^\circ) and the maximum at 60∘60^\circ. That’s a quarter period before the maximum: 60∘−45∘=15∘60^\circ - 45^\circ = 15^\circ:

y=3sin⁡(2(x−15∘))+2y = 3\sin\big(2(x - 15^\circ)\big) + 2

Check both at x=60∘x = 60^\circ: 3cos⁡0∘+2=53\cos 0^\circ + 2 = 5 ✓ and 3sin⁡90∘+2=53\sin 90^\circ + 2 = 5 ✓.

A sinusoidal function has a maximum value of 1010 at x=30∘x = 30^\circ, a minimum value of 44, and a period of 120∘120^\circ. Write a cosine equation.

Solution. a=10−42=3a = \tfrac{10 - 4}{2} = 3, c=10+42=7c = \tfrac{10 + 4}{2} = 7, k=360∘120∘=3k = \tfrac{360^\circ}{120^\circ} = 3, and the maximum gives d=30∘d = 30^\circ:

y=3cos⁡(3(x−30∘))+7y = 3\cos\big(3(x - 30^\circ)\big) + 7

Check: half a period after the maximum, at x=90∘x = 90^\circ, y=3cos⁡180∘+7=4y = 3\cos 180^\circ + 7 = 4, the minimum. ✓

Write an equation for this data.

xx0∘0^\circ45∘45^\circ90∘90^\circ135∘135^\circ180∘180^\circ
yy114411−2-211

Solution. Maximum 44 at 45∘45^\circ, minimum −2-2 at 135∘135^\circ, and the pattern repeats after 180∘180^\circ.

a=3a = 3, c=1c = 1, period 180∘180^\circ so k=2k = 2. At x=0∘x = 0^\circ, y=1y = 1 is on the axis and rising, so a sine function with d=0d = 0 fits:

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

Check: x=45∘x = 45^\circ gives 3sin⁡90∘+1=43\sin 90^\circ + 1 = 4. ✓

Write a second equation for the graph in Example 1 using a cosine with a negative aa.

Solution. y=−3cos⁡xy = -3\cos x starts at its minimum. The graph has a minimum at 150∘150^\circ, so use d=150∘d = 150^\circ:

y=−3cos⁡(2(x−150∘))+2y = -3\cos\big(2(x - 150^\circ)\big) + 2

Check at x=60∘x = 60^\circ: −3cos⁡(−180∘)+2=−3(−1)+2=5-3\cos(-180^\circ) + 2 = -3(-1) + 2 = 5. ✓

Using the full height for aa. The amplitude is half of (maximum − minimum).

Using the period as kk. k=360∘periodk = \dfrac{360^\circ}{\text{period}}, so a period of 180∘180^\circ gives k=2k = 2.

Choosing the wrong starting point. For cosine, dd is at a maximum (or a minimum if a<0a \lt 0). For sine, dd is where the graph crosses its axis going up, not where it crosses the xx-axis.

Not checking. Substitute a maximum or minimum into your equation. If it doesn’t give the right yy, revisit dd.

1. (Warm-up) A sinusoidal graph has a maximum of 88 and a minimum of 22. Find aa (positive) and cc.

Solution

a=3a = 3, c=5c = 5.

2. (Warm-up) A sinusoidal graph has a period of 90∘90^\circ. Find kk.

Solution

k=360∘90∘=4k = \tfrac{360^\circ}{90^\circ} = 4.

3. (Warm-up) A graph has a maximum at x=20∘x = 20^\circ. What value of dd would you use in a cosine equation with a>0a \gt 0?

Solution

d=20∘d = 20^\circ.

4. (Core) A sinusoidal function has a maximum of 66 at x=0∘x = 0^\circ and its next minimum, −2-2, at x=180∘x = 180^\circ. Write its equation.

Solution

a=4a = 4, c=2c = 2. Maximum to minimum is half a period, so the period is 360∘360^\circ and k=1k = 1. Cosine with d=0d = 0:

y=4cos⁡x+2y = 4\cos x + 2

5. (Core) A sinusoidal function has a maximum of 33, a minimum of −3-3, and a period of 720∘720^\circ, and it passes through the origin going up. Write its equation.

Solution

a=3a = 3, c=0c = 0, k=360∘720∘=0.5k = \tfrac{360^\circ}{720^\circ} = 0.5, and it starts on its axis rising, so sine with d=0d = 0:

y=3sin⁡(0.5x)y = 3\sin(0.5x)

6. (Core) Write a cosine equation for this data.

xx0∘0^\circ30∘30^\circ60∘60^\circ90∘90^\circ120∘120^\circ
yy5522−1-12255
Solution

Maximum 55 at 0∘0^\circ and 120∘120^\circ, so the period is 120∘120^\circ and k=3k = 3. Minimum −1-1, so a=3a = 3 and c=2c = 2:

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

7. (Core) Write a sine equation for the data in Question 6.

Solution

The graph crosses its axis y=2y = 2 going up at x=90∘x = 90^\circ (between the minimum at 60∘60^\circ and the maximum at 120∘120^\circ). So d=90∘d = 90^\circ:

y=3sin⁡(3(x−90∘))+2y = 3\sin\big(3(x - 90^\circ)\big) + 2

Check x=0∘x = 0^\circ: 3sin⁡(−270∘)+2=3(1)+2=53\sin(-270^\circ) + 2 = 3(1) + 2 = 5. ✓

8. (Challenge) Explain why y=3cos⁡(2(x−240∘))+2y = 3\cos\big(2(x - 240^\circ)\big) + 2 is also a correct equation for the graph in Example 1.

Solution

The graph has a maximum at 240∘240^\circ too, so it’s equally valid to start the cosine there. Also, 240∘=60∘+180∘240^\circ = 60^\circ + 180^\circ: shifting by a whole period gives the same graph.

9. (Challenge) A sinusoidal graph has a minimum of −5-5 at x=30∘x = 30^\circ and the next maximum, 11, at x=90∘x = 90^\circ. Write a cosine equation with a<0a \lt 0, and a cosine equation with a>0a \gt 0.

Solution

∣a∣=3|a| = 3, c=−2c = -2. Minimum to maximum is half a period, so the period is 120∘120^\circ and k=3k = 3.

With a<0a \lt 0, start at the minimum: y=−3cos⁡(3(x−30∘))−2y = -3\cos\big(3(x - 30^\circ)\big) - 2.

With a>0a \gt 0, start at the maximum: y=3cos⁡(3(x−90∘))−2y = 3\cos\big(3(x - 90^\circ)\big) - 2.