Algebra · real student question

The function f(x) = |x - 5| is translated 4 units left. Write the new function.

Question

The function

f(x)=x5f(x)=\left|x-5\right|

is translated 4 units to the left. Write the new function.

Step-by-step solution

  1. Recall the rule for a horizontal shift and why it looks backwards. To shift a graph hh units left, replace xx with x+hx+h; to shift it right, replace xx with xhx-h. The reason is that the new function must reach a given output sooner, i.e. at a smaller xx, so the input has to be nudged forward.

  2. Locate the current vertex. x5\left|x-5\right| is zero when x=5x=5, so the V has its vertex at (5,0)(5,0). Tracking this single point is the fastest way to check any translation.

  3. Apply the substitution xx+4x\mapsto x+4.

    f(x+4)=(x+4)5=x1f(x+4)=\left|(x+4)-5\right|=\left|x-1\right|

    The two constants combine inside the bars: +45=1+4-5=-1.

  4. Check the vertex moved the right way. The new function x1\left|x-1\right| has its vertex at (1,0)(1,0), and 54=15-4=1 ✓ — four units to the left, as required. Had you wrongly used x4x-4, the result would be x9\left|x-9\right| with vertex at 99, four units to the right.

  5. Confirm nothing else changed. The shape stays a V with slopes ±1\pm1 and the graph never dips below the xx-axis, since only the horizontal position was altered. For instance f(0)f(0) changes from 55 to 11, and the new value equals the old function evaluated at 0+4=40+4=4, which is 45=1\left|4-5\right|=1 ✓.

Answer

f(x)=x1f(x)=\left|x-1\right|

Need to solve a different problem like this? Open the solver →