Tutorials › Calculus I › Vertical Shifts and Reflections of Sinusoids

Trigonometric Function Toolkit · Tutorial 128 of 1495

Vertical Shifts and Reflections of Sinusoids

Identify how vertical translation and reflection change a sinusoid, then use its midline and range to sketch and check the graph.

Beginner 9 min read

What You'll Learn

  • Find the midline of a vertically translated sine or cosine function
  • Determine the range and extreme values from the vertical parameters
  • Recognize when a sinusoid is reflected across its midline
  • Distinguish reflection across a shifted midline from reflection across the x-axis
  • Plot key points to sketch and check a transformed sinusoid

Vertical Changes to a Sinusoid

A sine or cosine graph repeats the same pattern of rises and falls. Two simple changes alter where that pattern sits vertically and which way its peaks and troughs face: adding a constant shifts the graph, while multiplying by a negative number reflects it.

These changes can be read directly from the function. They determine the graph’s midline, its highest and lowest values, and whether its usual orientation has been reversed. The horizontal placement and period may also be encoded in the function, but here the focus is on the vertical features.

Midline, Vertical Shift, and Reflection

Write a transformed sine or cosine function in the form

$$ y=A\sin\bigl(B(x-C)\bigr)+D \qquad\text{or}\qquad y=A\cos\bigl(B(x-C)\bigr)+D, $$

where \(A\ne 0\), \(B>0\), and \(C,D\) are real numbers. The parameters \(B\) and \(C\) describe horizontal behavior. The parameters \(A\) and \(D\) control the vertical behavior. In particular, the horizontal line \(y=D\) is the graph’s midline.

Definition: In these forms, \(D\) is the vertical shift and \(y=D\) is the midline. The vertical scale is \(|A|\). If \(A<0\), the graph is reflected across its midline compared with the graph having coefficient \(|A|\), with the same other parameters.

Adding \(D\) moves every output by \(D\): positive \(D\) shifts the graph upward and negative \(D\) shifts it downward. The sign of \(A\) has a different effect. A negative sign reverses the vertical displacement from the midline: points above the midline move below it, and points below it move above it.

It is important to identify the line of reflection correctly. When \(D=0\), reflecting across the midline means reflecting across the \(x\)-axis. When \(D\ne 0\), the reflection is across \(y=D\), not across the \(x\)-axis.

Range and Extreme Values

For every real input \(u\), the sine and cosine values lie between \(-1\) and \(1\), inclusive. Multiplication by \(A\) scales these values, and addition of \(D\) shifts them. This gives the range and extrema for either function form.

Theorem: If \(A\ne 0\), then the range of \(y=A\sin(B(x-C))+D\) and of \(y=A\cos(B(x-C))+D\) is $$ [D-|A|,\ D+|A|]. $$ The minimum value is \(D-|A|\), and the maximum value is \(D+|A|\). The midline is \(y=D\).

The absolute value is essential: the size of the vertical displacement from the midline is \(|A|\), regardless of the sign of \(A\). A negative coefficient changes which phase points produce the maximum and minimum, but it does not change the range.

Why the Range Formula Works

Here is a direct justification. Set \(u=B(x-C)\). As \(x\) ranges over all real numbers and \(B>0\), \(u\) also ranges over all real numbers. For either sine or cosine, write the trigonometric value as \(t\), where \(-1\le t\le 1\). Then \(-|A|\le At\le |A|\), whether \(A\) is positive or negative. Adding \(D\) to all three parts gives

$$ D-|A|\le At+D\le D+|A|. $$

Thus every output is between \(D-|A|\) and \(D+|A|\). The endpoints are attained because sine and cosine each attain both \(-1\) and \(1\). So these bounds are the actual minimum and maximum, not just estimates.

The same reasoning explains the reflection. Let \(g(x)=|A|\sin(B(x-C))+D\), and let \(f(x)=A\sin(B(x-C))+D\) with \(A<0\). Since \(A=-|A|\),

$$ f(x)=D-|A|\sin(B(x-C)) =2D-g(x). $$

A point with vertical coordinate \(g(x)\) is therefore moved to the coordinate \(2D-g(x)\), which is the same distance on the opposite side of \(D\). This is precisely reflection across the horizontal line \(y=D\). The proof for cosine is identical after replacing sine with cosine.

A Reliable Sketching Process

To sketch a sinusoid when its equation is given, first mark the midline and the two extreme values. Then use the sine or cosine key points in the angle input, taking care to multiply their vertical displacements from the midline by \(A\). This makes the effect of a negative coefficient visible without confusing it with a shift.

1
Read the vertical parameters.
Identify \(A\) and \(D\). The midline is \(y=D\).
2
Mark the range.
The minimum is \(D-|A|\), and the maximum is \(D+|A|\).
3
Place key points.
Evaluate the sine or cosine at its usual key angles, then apply multiplication by \(A\) and addition of \(D\).
4
Check the orientation.
A negative \(A\) exchanges peaks and troughs relative to the midline. Confirm that the plotted values stay within the range.

Worked Examples

Worked Example: Shifting a Sine Graph Upward

Find the midline, range, and key values of \(y=2\sin x+3\) over one period, from \(x=0\) to \(x=2\pi\).

Here \(A=2\), \(B=1\), \(C=0\), and \(D=3\). The midline is \(y=3\). The vertical distance from the midline is \(|A|=2\), so the range is

$$ [3-2,\ 3+2]=[1,5]. $$

Use the five standard sine key inputs \(0,\ \frac{\pi}{2},\ \pi,\ \frac{3\pi}{2},\ 2\pi\). At these inputs, sine takes the values \(0,1,0,-1,0\). Apply \(y=2\sin x+3\) at each one:

$$ \begin{aligned} x=0 &: \quad y=2(0)+3=3,\\ x=\frac{\pi}{2} &: \quad y=2(1)+3=5,\\ x=\pi &: \quad y=2(0)+3=3,\\ x=\frac{3\pi}{2} &: \quad y=2(-1)+3=1,\\ x=2\pi &: \quad y=2(0)+3=3. \end{aligned} $$

The plotted values rise from the midline to \(5\), return to the midline, descend to \(1\), and return to the midline. They agree with the predicted range \([1,5]\) and complete one sine cycle. As a check, the maximum listed value is \(5\), the minimum is \(1\), and their average is \(\frac{5+1}{2}=3\), the stated midline.

Worked Example: A Reflected and Shifted Cosine Graph

For \(y=-3\cos\bigl(2(x-\frac{\pi}{4})\bigr)-1\), find the midline, range, and five key points over one period. Explain the reflection.

The vertical parameters are \(A=-3\) and \(D=-1\). Therefore the midline is \(y=-1\), and the range is

$$ [-1-3,\ -1+3]=[-4,2]. $$

The angle input is \(2(x-\frac{\pi}{4})\). One full cosine cycle occurs as this input goes from \(0\) to \(2\pi\), corresponding to \(x\) from \(\frac{\pi}{4}\) to \(\frac{5\pi}{4}\). The five key inputs are \(0,\frac{\pi}{2},\pi,\frac{3\pi}{2},2\pi\). Solving \(2(x-\frac{\pi}{4})\) equal to these values gives \(x=\frac{\pi}{4},\frac{\pi}{2},\frac{3\pi}{4},\pi,\frac{5\pi}{4}\).

The corresponding cosine values are \(1,0,-1,0,1\). Substitution gives

$$ \begin{aligned} x=\frac{\pi}{4} &: \quad y=-3(1)-1=-4,\\ x=\frac{\pi}{2} &: \quad y=-3(0)-1=-1,\\ x=\frac{3\pi}{4} &: \quad y=-3(-1)-1=2,\\ x=\pi &: \quad y=-3(0)-1=-1,\\ x=\frac{5\pi}{4} &: \quad y=-3(1)-1=-4. \end{aligned} $$

The negative coefficient reflects the cosine pattern across \(y=-1\): its starting maximum becomes a minimum, and its minimum becomes a maximum. Check that the listed extremes are \(-4\) and \(2\), exactly the endpoints of the predicted range, and that their midpoint is \(\frac{-4+2}{2}=-1\).

Worked Example: A Reflected Sine Graph with a Downward Shift

Analyze \(y=-\frac{1}{2}\sin(3x)+2\). Give its midline, range, orientation at \(x=0\), and key values over the interval from \(0\) to \(\frac{2\pi}{3}\).

Here \(A=-\frac{1}{2}\), \(B=3\), and \(D=2\). The midline is \(y=2\), and the vertical distance from it is \(\frac{1}{2}\). Thus the range is

$$ \left[2-\frac{1}{2},\ 2+\frac{1}{2}\right] = \left[\frac{3}{2},\frac{5}{2}\right]. $$

Over the stated interval, \(3x\) runs from \(0\) to \(2\pi\), so it covers one sine cycle. Use inputs \(3x=0,\frac{\pi}{2},\pi,\frac{3\pi}{2},2\pi\), which give \(x=0,\frac{\pi}{6},\frac{\pi}{3},\frac{\pi}{2},\frac{2\pi}{3}\). Substituting the sine values \(0,1,0,-1,0\) yields

$$ \begin{aligned} x=0 &: \quad y=-\frac{1}{2}(0)+2=2,\\ x=\frac{\pi}{6} &: \quad y=-\frac{1}{2}(1)+2=\frac{3}{2},\\ x=\frac{\pi}{3} &: \quad y=-\frac{1}{2}(0)+2=2,\\ x=\frac{\pi}{2} &: \quad y=-\frac{1}{2}(-1)+2=\frac{5}{2},\\ x=\frac{2\pi}{3} &: \quad y=-\frac{1}{2}(0)+2=2. \end{aligned} $$

The graph starts at the midline and moves downward to a minimum, because the positive sine pattern is reflected across \(y=2\). The calculated minimum and maximum, \(\frac{3}{2}\) and \(\frac{5}{2}\), match the range. Their average is \(\frac{\frac{3}{2}+\frac{5}{2}}{2}=2\), confirming the midline.

Common Mistake: Treating Every Negative Coefficient as a Shift Down

A frequent error is to interpret a negative \(A\) as though it lowered the whole graph. For example, for \(y=-2\cos x+3\), one might incorrectly say that the graph has midline \(y=1\), reasoning that the negative coefficient subtracts \(2\) from \(3\). That is not what the expression means: the cosine value changes with \(x\), so the negative coefficient reverses the cosine pattern rather than setting a new constant midline.

The correct calculation is \(D=3\), so the midline is \(y=3\). Since \(|A|=2\), the range is \([3-2,3+2]=[1,5]\). At \(x=0\), \(y=-2(1)+3=1\), a minimum; at \(x=\pi\), \(y=-2(-1)+3=5\), a maximum. The two values sit equally far below and above \(3\), confirming that the reflection is across \(y=3\).

Why These Vertical Features Matter

The midline and range give a quick way to test whether a sketch is plausible. A graph that claims to represent \(A\sin(B(x-C))+D\) must oscillate around \(y=D\) and remain between \(D-|A|\) and \(D+|A|\). A negative \(A\) changes the order of peaks and troughs, not these bounds.

When comparing two sine or cosine equations, first separate vertical changes from horizontal ones. The constant outside the trigonometric function gives the midline; the coefficient multiplying the trigonometric function gives the vertical scale and, through its sign, whether the pattern is reflected. Keeping those roles distinct prevents common graphing errors.

Check Your Understanding

Answer these questions using the relationship between the coefficient, the midline, and the range.

  1. For \(y=4\sin x-2\), what are the midline and range?
  2. For \(y=-\cos x+1\), across which horizontal line is the cosine pattern reflected, and what is its range?
  3. Why does a negative coefficient not necessarily shift the graph below the \(x\)-axis?
  4. For \(y=-2\sin x+3\), what is the value at \(x=\frac{\pi}{2}\), and is it a maximum or minimum?
  5. For any nonzero \(A\), explain why the midpoint of the maximum and minimum values is \(D\).

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon