Absolute Value & Piecewise Functions
|x| just measures distance from zero — the V-shaped graph and its two-line definition are two views of that one idea.
Distance, not sign
|x| answers exactly one question: how far is x from zero on the number line? Distance has no direction, so it is never negative — |5| = 5 and |−5| = 5, because both 5 and −5 sit exactly 5 units from zero, one to the right and one to the left.
That single idea — strip away the direction, keep the size — is all absolute value ever does. Everything else in this lesson, the piecewise rule and the V-shaped graph, is just that idea written out in different notations.
The V-shaped graph
Plot y = |x| and the two piecewise branches show up as two straight rays: for x ≥ 0 the line y = x, and for x < 0 the line y = −x. They meet at the origin, forming a sharp V. The point where the two rays meet, (0, 0), is the vertex, and the vertical line x = 0 is the graph’s axis of symmetry — the left half is a mirror image of the right half.
Transformations: y = a|x − h| + k
This should look familiar — it is exactly the vertex-form pattern from transforming a parabola, applied to a V instead of a curve. The vertex sits at (h, k); h slides the V left or right, k slides it up or down. The number a controls the steepness — |a| > 1 makes the V narrower, |a| < 1 makes it wider — and if a is negative, the V flips upside down into a Λ shape, opening downward instead of upward.
- Compare to y = a|x − h| + k: here a = 1, h = 3, k = 2.
- The vertex is at (h, k) = (3, 2).
- a = 1 means no stretch or flip, so the graph is the ordinary V, just slid 3 right and 2 up.
- |x| = 7 asks: which numbers are exactly 7 units from zero? Both +7 and −7 satisfy that.
- So x = 7 or x = −7.
- |x| = −4 asks for a distance of −4 units, but distance can never be negative, so no real number satisfies it.
Beyond the V: general piecewise functions
|x| is the simplest example of a piecewise-defined function — a function built from different rules on different parts of the domain, like a shipping rate that charges one formula under 5 kg and a different formula at or above 5 kg. Reading a piecewise graph means checking, at each x-value, which piece of the domain you are in and applying only that branch’s rule; sketching one means drawing each branch only over its own stated interval and marking clearly whether each boundary point is included.
Check your understanding
- |x| measures distance from zero, so it is always non-negative regardless of the sign of x.
- Piecewise definition: |x| = x when x ≥ 0, and |x| = −x when x < 0.
- y = |x| graphs as a V with vertex (0, 0) and axis of symmetry x = 0; y = a|x − h| + k moves the vertex to (h, k), a flips it when negative.
- |x| = c has two solutions when c > 0, one when c = 0, and none when c < 0.
- −x is not automatically negative — it means 'the opposite sign of x,' which is exactly why the x < 0 branch produces a positive output.