Absolute Value Function Transformations

April 12, 2026

Problem

Graph y=|x|, y=|x−3|+2, y=−2|x+1|. Show how h, k, a shift and stretch the V-shape.

Explanation

Transformations of the absolute value function

The parent function y=xy = |x| makes a V-shape with vertex at the origin. The general form y=axh+ky = a|x - h| + k transforms it:

  • hh: shifts the vertex horizontally (right if positive, left if negative). Note: x3|x - 3| shifts RIGHT to x=3x = 3.
  • kk: shifts the vertex vertically (up if positive, down if negative).
  • a|a|: stretches (a>1|a| > 1 makes it narrower) or compresses (a<1|a| < 1 makes it wider).
  • sign of aa: negative aa flips the V upside-down (opens downward).

Step-by-step: Graph y=2x+1+3y = -2|x + 1| + 3

Step 1 — Vertex: h=1h = -1, k=3k = 3, so vertex is at (1,3)(-1, 3).

Step 2 — Direction: a=2<0a = -2 < 0, so V opens downward.

Step 3 — Steepness: a=2|a| = 2, so the arms are steeper than the basic x|x|.

Step 4 — Plot: Start at vertex (1,3)(-1, 3). Going right 1 unit, yy decreases by 2 → point (0,1)(0, 1). Going left 1 unit, same → point (2,1)(-2, 1).

Try it in the visualization

Drag the hh, kk, aa sliders to see the V-shape shift, stretch, and flip in real time. The base function y=xy = |x| is shown as a dashed reference. The vertex is vertically, a|a| stretches, and sign(a)\text{sign}(a) flips. The vertex moves to (h,k)(h, k).

Interactive Visualization

Parameters

3.00
2.00
1.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day