Question

How horizontal shift works in trig graph transformations

Original question: 4. The horizontal shift is hh units to the right if hh is positive, and hh units to the left if hh is negative.

Expert Verified Solution

thumb_up100%(1 rated)

Key concept: When a trigonometric function is shifted, the tricky part is that the motion happens inside the parentheses, not outside. That’s why the sign feels backwards at first.

Step by step

For a function written in the transformed form

y=Asin(B(xh))+Dory=Acos(B(xh))+D,y=A\sin(B(x-h))+D \quad \text{or} \quad y=A\cos(B(x-h))+D,

the horizontal shift is determined by the value of hh.

Step 1: Read the inside carefully

  • If h>0h>0, the graph shifts right by hh units
  • If h<0h<0, the graph shifts left by h|h| units

Step 2: Match the form

Notice the expression is usually written as (xh)(x-h), not (x+h)(x+h). That means the sign appears reversed compared with the motion.

Step 3: Example

  • y=sin(x3)y=\sin(x-3) shifts right 3 units
  • y=sin(x+3)=sin(x(3))y=\sin(x+3)=\sin(x-(-3)) shifts left 3 units

So the statement is correct: a positive hh means a shift to the right, and a negative hh means a shift to the left.

Pitfall alert

Students often read the sign literally and say (x+2)(x+2) means right 2. It does the opposite. The safest habit is to rewrite the inside as xhx-h first, then identify hh. That removes most sign mistakes on graph transformations.

Try different conditions

If the function is written as y=f(x+h)y=f(x+h) instead of y=f(xh)y=f(x-h), the shift is still the same idea, but the visible sign flips. For example, f(x+4)f(x+4) means the graph moves left 4 units. If there is also a factor like B(xh)B(x-h), first handle the horizontal stretch by 1B\frac{1}{|B|}, then read the shift hh.

Further reading

phase shift, horizontal translation, graph transformation

FAQ

What does a positive h mean in x-h?

A positive h shifts the graph to the right by h units.

What does x+h mean on a graph?

It means the graph shifts left by h units, because x+h can be rewritten as x-(-h).

chat