02 Horizontal Shifts
02 Horizontal Shifts
As you should recall from algebraic functions, the 𝑝 value causes shifts left or right:
𝑦 = 𝑎 sin(𝑥 + 𝑝) + 𝑞
𝑦 = 𝑎 cos(𝑥 + 𝑝) + 𝑞
𝑦 = 𝑎 tan(𝑥 + 𝑝) + 𝑞
We know that adding or subtracting a constant from 𝑥 in a function shifts the graph horizontally.
e.g. 𝑦 = sin(𝑥 + 30°) is obtained by shifting 𝒚 = 𝐬𝐢𝐧 𝒙 30° to the left
This is because effectively the new "ZERO" position on the x axis is where
𝑥 + 30 = 0.
𝑝 > 0 The graph is shifted to the left NOTE: This is if the bracket is (𝑥 + 𝑝)
The general formula in a question could
𝑃 < 0 The graph is shifted to the right also be written as (𝑥 − 𝑝) in which case
the opposite shifts would be true for 𝑝.
1
Worked Example 1: Sketch the graphs of the following functions:
1. 𝑦 = sin(𝑥 + 30°), 𝑥 ∈ [−390°; 330°]
2. 𝑦 = tan(𝑥 − 15°), 𝑥 ∈ [−75°; 195°]
Solutions:
Step 3: Now extend the interval for the final sketch and label all those critical points,
including the 𝑦 intercept.
Note: The 𝑦 intercept AND the coordinates of the end-points, if they are not lying on the 𝑥
axis must be shown. It can be found by substituting 𝑥 = 0 AND the lower and upper 𝑥 values
of the given interval into the given equation:
1
𝑦 intercept: 𝑦 = sin(0 + 30°) = 2
2
2. 𝑦 = tan(𝑥 − 15°), 𝑥 ∈ [−75°; 195°]
Step 1: Consider the basic shape: 𝑦 = tan 𝑥 with asymptotes at 𝑥 = 90° 𝑎𝑛𝑑 𝑥 = 270°
𝑝 = −15° This is a tan graph which is shifted 15° to the right. Think of the critical points
(the zeros, and the points showing the gradient or steepness) as well as the asymptotes each
moved 15° to the right
Step 3: Now extend the interval for the final sketch and label all those critical points, including
the 𝑦 intercept.
(60°; 1)
NOTE: Add arrows where the
graph approaches the asymptotes
(−30; −1) (150°; −1)
Rules for sketching graphs of the form 𝑦 = 𝑎 𝑠𝑖𝑛(𝑥 + 𝑝), 𝑦 = 𝑎 𝑐𝑜𝑠(𝑥 + 𝑝), 𝑦 = 𝑎 𝑡𝑎𝑛(𝑥 + 𝑝)
3
Worked Example 2: Sketch the graphs of the following functions:
1. 𝑦 = −2 cos(𝑥 − 20°), 𝑥 ∈ [−160°; 200°]
2. 5.2 𝑦 = tan(𝑥 + 60°) − 1, 𝑥 ∈ [−150°; 180°]
Solutions:
1. 𝑦 = −2 cos(𝑥 − 20°), 𝑥 ∈ [−160°; 200°]
Step 1: Consider the basic shape: 𝑦 = cos 𝑥 with an 𝑎 = −2 so stretch the cos graph
vertically up to 2 and down to -2 and then the graph is reflected in the 𝑥 axis.
Step 3: Now see the required interval: 𝑥 ∈ [−160°; 200°].The graph has been drawn up to
380°, but needs to be ‘cut off’ now at 200°, which is the maximum value. Lastly, extend the
graph pattern to -160°, which is the minimum value.
4
3. 𝑦 = tan(𝑥 + 60°) − 1, 𝑥 ∈ [−150°; 180°]
Step 1: Consider the basic shape: 𝑦 = tan 𝑥 with asymptotes at 𝑥 = 90° 𝑎𝑛𝑑 𝑥 = 270°
Step 3: Now see the required interval: 𝑥 ∈ [−160°; 200°].The graph has been drawn up to
380°, but needs to be ‘cut off’ now at 200°, which is the maximum value. Lastly, extend the
graph pattern to -160°, which is the minimum value.