Vertical Shift
Learn how the constant D in y = A sin(x) + D moves a sine or cosine wave up or down, sets its midline and decides its maximum, minimum and range.
Definition
- If , the graph moves up by units.
- If , the graph moves down by units.
- The shape, the amplitude and the period do not change.
The midline
Maximum, minimum and range
| Feature | Formula | ||||
|---|---|---|---|---|---|
| Midline | |||||
| Maximum value | $D + | A | |||
| Minimum value | $D - | A | |||
| Range | $[D - | A | ,\ D + | A | ]$ |
Going backwards: A and D from data
Try it now
Worked Examples
Identify A and D
Write the midline
Find the maximum and minimum
Write the range
Answer: Midline , maximum , minimum , range .
Common Mistakes
Writing the maximum of as
Why it's wrong: The wave reaches the amplitude above and below the midline, and the amplitude is always positive. The sign of only flips the wave.
Correct: Maximum , minimum .
Reading as a shift up by 2
Why it's wrong: In the shift is with its sign. Here .
Correct: moves the wave down 2 units, the midline is .
Calling the maximum the amplitude: in the amplitude is 7
Why it's wrong: The amplitude is measured from the midline, not from the x-axis. The shift adds height but does not make the wave taller.
Correct: The amplitude is . The maximum is .
Forgetting to divide by 2: amplitude
Why it's wrong: is the full height from the lowest to the highest point, which is two amplitudes.
Correct: and . For max 9 and min 3: , .
Interactive Visual
Function graph
y = sin(x)
Challenge 1 of 5
Shift up by 2
Move the sliders until your curve lies exactly on the dashed target curve.
0 of 5 solved
- A: 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.
- Midline y = 1
- Maximum = 3
- Minimum = -1
- Minimum: (-3.14, -1)
- Maximum: (0, 3)
- Minimum: (3.14, -1)
Interactive Sandbox
Interactive Grapher
Tap or hover over the graph to read off values.
Try these examples:
sin(x) + 2
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsWhy It Matters
- Tides: the water in a harbor rises and falls around an average depth, for example between 1 m and 5 m around a midline of 3 m.
- Ferris wheels: a seat goes up and down around the height of the wheel's center, never below the boarding platform.
- Daily temperature: the temperature swings around the day's average, for example between 12°C and 24°C around 18°C.
- Blood pressure and heartbeats: pressure pulses between about 80 and 120 around a midline of 100.
- Daylight hours: day length varies over the year around about 12 hours.
Real World Applications
Ferris Wheels
The height of a seat on a Ferris wheel goes up and down like a cosine wave. The midline is the height of the wheel's center.
Example:
A wheel with diameter 40 m whose lowest seat is 2 m above the ground can be modeled by (t in minutes): amplitude 20, midline 22, range .
A Ferris wheel has a diameter of 40 m. Its lowest point is 2 m above the ground.
At what height is the midline of the height function (the center of the wheel), in meters?
Step 1: Write the mathematical expression
Average the highest and lowest heights:
Tides
Harbor masters and sailors model the water level with a sine or cosine wave whose midline is the mean water level.
Example:
If high tide is 5.2 m and low tide is 0.8 m, the mean water level is m, so the model has .
At a port, high tide is 5.2 m and low tide is 0.8 m.
What is the amplitude of the tide model, in meters?
Step 1: Write the mathematical expression
Take half the difference between high and low tide:
Temperature over a Day
Weather scientists model the temperature over 24 hours with a cosine wave around the day's average temperature.
Example:
The model , with t in hours after 3:00, is coldest at 3:00 and warmest 12 hours later.
The temperature in a city is modeled by in °C.
What is the highest temperature of the day, in °C?
Step 1: Write the mathematical expression
Add the amplitude to the midline:
Key Takeaways
- 1In and , the constant moves the wave up () or down ()
- 2The midline is the horizontal line , halfway between the maximum and the minimum
- 3Maximum and minimum , always with the absolute value of
- 4The range is
- 5From data: and
- 6A vertical shift changes neither the amplitude nor the period, only the height of the whole wave
Frequently Asked Questions
Glossary
- Vertical shift
- Moving a whole graph up or down by adding a constant to the function
- Midline
- The horizontal line halfway between the maximum and minimum values of a wave
- Maximum value
- The highest y-value of the wave,
- Minimum value
- The lowest y-value of the wave,
- Range
- All y-values the function takes: for a shifted sine or cosine
- Sinusoidal model
- A sine or cosine function used to describe a repeating real situation, such as tides or temperature
Formula Card
Shifted sine and cosine
D moves the wave up (D > 0) or down (D < 0)
Midline
The line the wave oscillates around
Maximum and minimum
Highest and lowest values of the wave
Range
All output values
From data
Midline and amplitude from the highest and lowest values