Writing Trig Equations from Graphs
Read the maximum, minimum, period and a starting point from a wave and turn them into y = A sin(B(x - C)) + D or a cosine equation.
Definition
| Letter | What it means | How to find it |
|---|---|---|
| midline (vertical shift) | ||
| amplitude | ||
| how fast the wave repeats | ||
| phase shift (horizontal shift) | where one cycle starts |
- Cosine starts at a maximum: = the of a maximum.
- Sine starts on the midline going up: = the where the graph crosses the midline while rising.
Try it now
Worked Examples
Find the midline D
Find the amplitude A
Find B from the period
Choose the form and C
Answer:
Common Mistakes
Using the maximum as the amplitude (max , min , so )
Why it's wrong: The amplitude is measured from the midline, not from the x-axis. The wave is only units above its midline .
Correct: , and the goes into .
Writing the period as B (period , so )
Why it's wrong: B is not the period. A bigger B makes the wave repeat faster, so the period gets shorter.
Correct: .
Getting the sign of C wrong: a maximum at written as
Why it's wrong: Inside the bracket the shift has the opposite sign. moves the wave to the left.
Correct: A maximum at means . Check: at the bracket is and .
Using sine and putting C at the maximum
Why it's wrong: Sine does not start at a maximum. At the sine wave is on the midline, going up.
Correct: For sine take the midline crossing going up, which is a quarter period before the maximum. Or use cosine and take the maximum.
Interactive Visual
Function graph
y = sin(x)
Challenge 1 of 5
Move the sliders until your curve lies exactly on the dashed target curve.
0 of 5 solved
Tap or hover over the graph to read off values.
Function graph
y = cos(x)
Challenge 1 of 3
Move the sliders until your curve lies exactly on the dashed target curve.
0 of 3 solved
- A: smaller
- B: right
- C: right
- D: bigger
Tap or hover over the graph to read off values.
Function graph
Tap or hover over the graph to read off values.
Interactive Sandbox
Interactive Grapher
Tap or hover over the graph to read off values.
Try these examples:
2cos(x) + 3
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsWhy It Matters
- Ferris wheels: your height above the ground rises and falls every turn
- Tides: the sea level goes between high and low tide about every 12 hours
- Daylight: the number of daylight hours peaks in summer and repeats every 365 days
- Springs and pendulums: a weight bounces up and down in a fixed time
- Temperature: the average daily temperature follows a yearly wave
Real World Applications
Hours of Daylight
Astronomers and solar engineers model the length of the day with a cosine wave that repeats every year.
Example:
In a northern city the longest day (day , around June 21) has hours of daylight and the shortest has . A model is .
Another city has hours of daylight on its longest day and hours on its shortest. The pattern repeats every days.
What value of B goes into the model ?
Step 1: Write the mathematical expression
Use :
Ferris Wheels
Ride designers use the height equation to check how fast riders climb and how long they spend near the top.
Example:
A wheel m across with its center m high turns once every minutes. Boarding at the bottom gives .
You board the wheel above ( m across, center m high, one turn every minutes) at the bottom at .
How high are you after minutes (in m)?
Step 1: Write the mathematical expression
Put into :
A Weight on a Spring
Engineers model vibrations (car suspensions, bridges, sensors) with the same equations as a weight bouncing on a spring.
Example:
A weight bounces between cm and cm above a table and needs seconds for one full bounce.
The weight above is let go at its highest point ( cm) at . One full bounce takes seconds, the lowest point is cm.
How high is the weight after of a second (in cm)?
Step 1: Write the mathematical expression
Use with :
Key Takeaways
- 1Midline: ; amplitude:
- 2From the period: (from a maximum to the next minimum is half a period)
- 3Cosine: is the of a maximum; sine: is where the wave crosses the midline going up
- 4A wave that starts at a minimum is a cosine with a negative
- 5One graph has many correct equations: add whole periods to , move a quarter period to switch sine and cosine, or flip the sign of and move half a period
- 6Always check one point (a maximum or a minimum) in your finished equation
Frequently Asked Questions
Glossary
- Midline
- The horizontal line halfway between the maximum and the minimum of the wave
- Amplitude
- The distance from the midline to a maximum:
- Period
- The horizontal length of one full cycle;
- Phase shift
- The horizontal shift : where a cycle of the basic sine or cosine wave starts
- Sinusoidal model
- An equation or that describes a real repeating quantity
Formula Card
General forms
Every sine or cosine wave fits one of these forms
Midline
The average of the highest and lowest value
Amplitude
Half of the total height of the wave
B from the period
The period is the distance between two maxima
Starting point C
Cosine starts at a maximum, sine on the midline going up