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.
Advanced25 min18 problems
Definition
Adding a constant to a sine or cosine function moves the whole wave up or down. This is called a vertical shift:
- 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
The midline is the horizontal line the wave oscillates around. For it is the x-axis (). After the shift it is
Maximum, minimum and range
The wave reaches units above and below the midline:
| Feature | Formula | ||||
|---|---|---|---|---|---|
| Midline | |||||
| Maximum value | $D + | A | |||
| Minimum value | $D - | A | |||
| Range | $[D - | A | ,\ D + | A | ]$ |
Going backwards: A and D from data
If you know the highest and lowest values, the midline lies exactly halfway between them and the amplitude is half the distance:
In the general form , the vertical shift is always the last letter, . In this lesson and unless a real situation needs a different period.
Try it now
What is the midline of ?
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.
How close
0 of 5 solved
- A: right
- D: bigger
Tap or hover over the graph to read off values.
y = A·sin(x) + DShift up by 2
Function graph
Tap or hover over the graph to read off values.
- Midline y = 1
- Maximum = 3
- Minimum = -1
y = A·cos(x) + DMidline y = D
- 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 problemsProblem 1 of 18
Easy
What is the midline of ?
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
and
Highest and lowest values of the wave
Range
All output values
From data
,
Midline and amplitude from the highest and lowest values