Build an equation from a graph
Think of rebuilding a Ferris wheel from a photo and a stopwatch: top and bottom seats give its size and hub height, the time from top to top gives one turn, and you pick a start.
A graph peaks at y = 10, bottoms at y = 2, and has neighboring peaks at x = 1 and x = 7. Size: A = = 4. Center: B = = 6. Period: T = 7 − 1 = 6, so ω = = . A positive cosine starts at a peak, so the start is h = 1 and φ = ω × h = . Equation: y = 4 cos(x − ) + 6.
Check x = 4, halfway between the peaks: the inside is × 4 − = − = π, cos π = −1, and y = −4 + 6 = 2, the bottom. Why φ = ω × h: at the start x = h the inside ω × h − φ must be 0.
In plain wordsThink of rebuilding a Ferris wheel from a picture and a timing record. The highest and lowest positions tell you the center and size. Two neighboring peaks tell you how long one trip takes. Then you choose where to call the start. A positive Cosine model begins at a peak. A positive Sine model begins where the wave crosses its center going up. Either can describe the same picture. You must match the direction at that point, not only its height. Once you have those measurements, writing the equation is filling four labeled slots. You can then predict points and compare them with the graph.
- Average and half-difference. Maximum 9 and minimum 3 give B = 6 and A = 3.
- Horizontal distance. From x = 1 to x = 9 the distance is 8.
- Recover input speed. T = 8 gives ω = ; multiplying by 8 gives 2π.
- Solving for φ. At h = 1, ωh − φ = 0 gives φ = ωh; substituting gives ωh − ωh = 0.
- Quarter-turn values. cos 0 = 1, cos() = 0, cos π = −1.
Build a sine or cosine rule that matches the pictured wave.
A graph determines height, center, repeat width and a suitable cycle start.
- y = A sin(ω(x − h)) + B
- y = A cos(ω(x − h)) + B
- φ = ωh
- Quarter period =
- Graph words: use a peak or an upward midline crossing.
Rebuild a wheel's size and timing from a picture of its motion.
Height span, center height, repeat width and chosen starting position fill four formula slots.
Reading a formula predicts a graph. Reading the graph recovers the same numbers by undoing those predictions.
.1Positive sine at an upward middle crossing
A Midline crossing is where the wave passes through its center height. An upward crossing passes from below the center to above it. Positive sine has exactly that direction at inside input 0.
- Rule: choose h at an upward crossing when A > 0.
Positive sine at an upward middle crossing
An upward crossing means the graph passes from below the center to above it. Positive sine has exactly that direction at inside input 0.
- Rule: choose h at an upward crossing when A > 0.
Start timing the wheel when the seat passes its center while rising.
A graph has maximum 8, minimum −2, period 10 and an upward midline crossing at x = 2. Write a positive sine equation. Upward means the height passes through the middle from below to above.
- A = = 5 and B = = 3.Half the span gives the amplitude; average gives the center.
- ω = = .The inside must advance one full turn during 10 horizontal units.
- Choose positive sine with h = 2, the upward middle crossing.Sine begins at 0 and rises, so after adding 3 it starts at the center and rises.
- φ = ωh = × 2 = .Convert horizontal position into inside offset.
- Plug back: × 2 − = 0.The crossing is at the intended inside start.
- Write y = 5 sin(x − ) + 3.The positive A preserves the upward direction.
- Tip: Check that the graph rises through the selected crossing.
.2Positive cosine at a peak
Positive cosine gives its top height at inside 0, so a peak supplies h directly.
- Rule: choose h at a maximum when A > 0.
Positive cosine at a peak
Positive cosine gives its top height at inside 0, so a peak supplies h directly.
- Rule: choose h at a maximum when A > 0.
Start timing the wheel when the seat reaches its top.
A smooth sinusoidal graph has maximum 9, minimum 3 and consecutive peaks at x = 1 and x = 9. Write a positive cosine equation. This asks you to turn its heights, width and peak position into a formula.
- A = = 3 and B = = 6.The two extreme heights determine size and center.
- T = 9 − 1 = 8; ω = = .Adjacent peaks are the same stage one cycle apart.
- Choose cosine with positive A and h = 1.At the chosen start, positive cosine sits at a peak.
- φ = ωh = × 1 = .φ is an inside offset, so multiply the x-distance by the inside coefficient.
- Plug h back: × 1 − = 0.The chosen peak position feeds cosine its starting input.
- Write y = 3 cos(x − ) + 6, or y = 3 cos((x − 1)) + 6.Factoring displays the horizontal distance without changing the function.
- Tip: Use a peak, or choose negative A for a trough.
.3Different equivalent equations
A selected phase shift belongs to the chosen sine or cosine representation. The same wave can have a different start in another representation. Moving h by a whole T also keeps the same repeating graph. On the unit circle, a clockwise quarter turn sends a point's vertical coordinate to its horizontal coordinate. Therefore sin u = cos(u − ) for every angle u, which explains the quarter-period difference between matching positive sine and cosine starts.
- Rule: replacing h with h + T advances the inside by −2π, a full turn.
- Rule: sine and cosine starts are a quarter period apart for the same positive-A wave.
- Rule: sin u = cos(u − ) and cos u = sin(u + ). The quarter turn exchanges the coordinate read without changing its value.
The same wave can be described from a middle crossing or from a peak.
A selected phase shift belongs to the chosen sine or cosine representation. The same wave can have a different start in another representation. Moving h by a whole T also keeps the same repeating graph.
- 3 cos((x − 1)) + 6 = 3 sin((x + 1)) + 6
- ω(x − (h + T)) = ω(x − h) − 2π
- = + for matching positive-A starts
- sin u = cos(u − )
- cos u = sin(u + )
Start describing the same wheel ride at a different moment.
Use the same graph with peaks at x = 1 and 9, maximum 9 and minimum 3. Write a positive sine equation instead of cosine. This asks for a sine start that produces the same highs and lows as the cosine picture.
- A = 3, B = 6, T = 8, ω = .Changing the wave name does not change the graph's size, center or period.
- An upward middle crossing occurs one quarter period before the peak at 1: h = 1 − 2 = −1.Positive sine rises from its middle to its peak during the first quarter cycle.
- φ = ωh = −.The selected sine start lies one unit left of 0.
- Plug back: (−1) + = 0.That crossing is the inside sine start.
- Write y = 3 sin(x + ) + 6.A negative φ produces a plus in the standard sine input.
- Tip: Compare the predicted graph stages and their directions.
.4Quarter-period key points
Key points mark the four quarter-turn stages and the return to the start. Add repeatedly from h, then read the sine or cosine heights.
- Rule: inputs h, h + , h + , h + , h + T.
Quarter-period key points
Key points mark the four quarter-turn stages and the return to the start. Add repeatedly from h, then read the sine or cosine heights.
- Rule: inputs h, h + , h + , h + , h + T.
Place four equal time marks along a one-revolution timetable.
For y = 3 cos((x − 1)) + 6, locate the five Key points of one cycle. This asks for the peak, middle, trough, middle and next peak.
- The start is h = 1 and T = 8, so Quarter period = T ÷ 4 = 2.A full turn has four quarter-turn steps.
- Use x = h + k() with k = 0, 1, 2, 3, 4; the table shows these inputs.Each step advances the inside by () × 2 = .
- In the table, the column under 1 has inside 0, so y = 3(1) + 6 = 9.Positive cosine starts at a peak.
- The columns under 3 and 7 have inside and , so y = 6.Cosine gives 0 at the two middle stages.
- The column under 5 has inside π, so y = 3(−1) + 6 = 3; the column under 9 returns to inside 2π and output 9.The half-turn gives the trough and the full turn gives the next peak.
- Five points:
- (1, 9)
- (3, 6)
- (5, 3)
- (7, 6)
- (9, 9)
- Tip: Add along the input axis, then compute each output.
- Read the maximum and minimum, then find positive A and B.
- Read T between adjacent matching stages.
- Compute ω = 2π ÷ T.
- Choose sine at an upward middle crossing or cosine at a peak; read h.
- Compute φ = ωh and substitute h back into the inside.
- Check points one quarter period apart.
Strategy: turn a graph into an equation
- Recover height and center from the extrema.
- Recover timing from two adjacent matching points.
- Pick a convenient positive-A start.
- Convert h to φ and check the five cycle stages.
A smooth cosine-shaped graph has maximum 1, minimum −1 and adjacent peaks at x = 0 and x = 2π. Write one equation. You are converting the pictured heights and repeat width into a rule.
- Amplitude = = 1; B = = 0.Half-difference gives size, and average gives center.
- T = 2π − 0 = 2π, so ω = 2π ÷ 2π = 1.Adjacent peaks mark one full cycle.
- Choose positive cosine with h = 0, the first peak.Positive cosine reaches its maximum when its inside is 0.
- φ = ωh = 1 × 0 = 0; plug back: 1 × 0 − 0 = 0.The peak's x-coordinate gives the inside start after converting h to φ.
- Write y = cos x.All four parameters are now fixed.
A smooth cosine-shaped graph has maximum 1, minimum −1 and adjacent peaks at x = 0 and x = 2π. Write one equation. You are converting the pictured heights and repeat width into a rule.
- Amplitude = = 1; B = = 0.Half-difference gives size, and average gives center.
- T = 2π − 0 = 2π, so ω = 2π ÷ 2π = 1.Adjacent peaks mark one full cycle.
- Choose positive cosine with h = 0, the first peak.Positive cosine reaches its maximum when its inside is 0.
- φ = ωh = 1 × 0 = 0; plug back: 1 × 0 − 0 = 0.The peak's x-coordinate gives the inside start after converting h to φ.
- Write y = cos x.All four parameters are now fixed.
A graph has maximum 9, minimum 3, and adjacent peaks at x = 0 and x = 8. Write a positive cosine equation. This asks for the wave's size, center and repeat width, with its peak placed at input 0.
- A = = 3 and B = = 6.Choose positive A so a peak is the cosine start.
- T = 8 − 0 = 8, so ω = = .The two peaks enclose one full inside turn.
- h = 0, so φ = ωh = 0. At x = 0, the inside is 0.The first peak is at the standard cosine start.
- Write y = 3 cos(x) + 6.Combine size, speed, position and center.
A smooth sinusoidal graph has maximum 9, minimum 3 and consecutive peaks at x = 1 and x = 9. Write a positive cosine equation. This asks you to turn its heights, width and peak position into a formula.
- A = = 3 and B = = 6.The two extreme heights determine size and center.
- T = 9 − 1 = 8; ω = = .Adjacent peaks are the same stage one cycle apart.
- Choose cosine with positive A and h = 1.At the chosen start, positive cosine sits at a peak.
- φ = ωh = × 1 = .φ is an inside offset, so multiply the x-distance by the inside coefficient.
- Plug h back: × 1 − = 0.The chosen peak position feeds cosine its starting input.
- Write y = 3 cos(x − ) + 6, or y = 3 cos((x − 1)) + 6.Factoring displays the horizontal distance without changing the function.
A graph has maximum 8, minimum −2, period 10 and an upward midline crossing at x = 2. Write a positive sine equation. Upward means the height passes through the middle from below to above.
- A = = 5 and B = = 3.Half the span gives the amplitude; average gives the center.
- ω = = .The inside must advance one full turn during 10 horizontal units.
- Choose positive sine with h = 2, the upward middle crossing.Sine begins at 0 and rises, so after adding 3 it starts at the center and rises.
- φ = ωh = × 2 = .Convert horizontal position into inside offset.
- Plug back: × 2 − = 0.The crossing is at the intended inside start.
- Write y = 5 sin(x − ) + 3.The positive A preserves the upward direction.
- Tip: Choose the starting point with the clearest graph label.
- Tip: If asked for one equation, equivalent sine and cosine answers may both fit.
- A positive cosine starts at a peak and a positive sine starts where the wave crosses its midline going up, so read h at the feature that matches your choice.
- The period runs peak to next peak: peaks at x = 1 and x = 7 give T = 6, not 3, since peak to trough is half a cycle.
- Multiply to get φ: φ = ω × h, so ω = and h = 1 give φ = , not 1.
- More than one equation is correct: starting at the next peak, h = 7, gives y = 4 cos(x − ) + 6, the same graph.
From a graph, how do you get A and B?
- A =
- B =
Where does a positive cosine model start? Where does a positive sine model start?
- Cosine: at a peak
- Sine: where the wave crosses its midline going up
Neighboring peaks sit at x = 2 and x = 14. Find T and ω.
- T = 12
- ω = =