Absolute Value Functions and Graphs
Absolute value functions produce graphs built from straight-line pieces, with the basic function y = |x| forming a V shape. In brief: y = |x − 2| + 1 has vertex (2, 1), opens upward and has minimum value 1. The expression inside the bars shifts the centre of the V, while the outside addition shifts its height.
These graphs connect the distance meaning of absolute value with transformations of functions. A few carefully chosen points can reveal the shape, but identifying the vertex and the two branches is more efficient than plotting many unrelated values. This guide explains the parent graph, transformed forms, intercepts and common interpretation errors.
What does the graph of y = |x| look like?
The basic absolute value function is y = |x|. For nonnegative x, it equals y = x, and for negative x, it equals y = −x. The two straight-line pieces meet at the origin, producing a V-shaped graph with vertex (0, 0) and symmetry about the y-axis.
The right branch rises one unit for every unit moved right, so its slope is 1. The left branch has slope −1 when read from left to right, descending toward the vertex. Both branches extend indefinitely, and the function never takes a negative value because absolute value is nonnegative.
Its domain is all real numbers and its range is y ≥ 0. The vertex is the lowest point, and each positive output corresponds to two opposite inputs. For example, y = 3 occurs at x = −3 and x = 3, reflecting the equal distances of those inputs from zero.
How do you plot an absolute value graph from a table?
Choose inputs on both sides of the expected vertex and evaluate the function for each one. For y = |x|, the inputs −3, −2, −1, 0, 1, 2 and 3 give outputs 3, 2, 1, 0, 1, 2 and 3. The paired equal outputs make the symmetry visible.
Plot the ordered pairs using consistent axis scales, then join points on each side with straight segments that continue as rays. Do not draw a smooth rounded bottom: the two branches meet at a sharp corner at the vertex. A curved sketch would suggest a different function, such as a parabola.
The table supports the drawing, but the piecewise rule explains why the branches are straight between and beyond the listed points. If only a few isolated data values were supplied without a function rule, connecting them would require justification. Here the equation defines the output for every real input, so the continuous branches are part of the graph.
| x | y = |x| |
|---|---|
| −3 | 3 |
| −2 | 2 |
| −1 | 1 |
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
What does y = a|x − h| + k tell you?
For a nonzero coefficient a, the function y = a|x − h| + k has vertex (h, k) and axis of symmetry x = h. The absolute value reaches zero when x = h, so substituting that input leaves y = k. This gives the vertex directly without needing a full table.
If a is positive, the graph opens upward and has minimum value k. If a is negative, it opens downward and has maximum value k. The magnitude |a| controls steepness: a larger magnitude gives steeper branches, while a value between zero and one gives shallower branches relative to the same axis scales.
The domain remains all real numbers. The range is y ≥ k for positive a and y ≤ k for negative a. When a = 0, the formula reduces to the constant function y = k, so it no longer has a distinct V-shaped vertex and should be treated as a separate case.
How do shifts, stretches and reflections change the graph?
Replacing x by x − h shifts the parent graph horizontally by h. Thus |x − 3| shifts right by 3, while |x + 3| = |x − (−3)| shifts left by 3. The sign appears reversed inside the bars because the vertex occurs where that entire inner expression becomes zero.
Adding k outside the bars shifts the graph vertically: |x| + 4 moves it up four units and |x| − 4 moves it down four units. Multiplying by a negative coefficient outside reflects the graph across the x-axis, so −|x| opens downward rather than upward.
A factor inside the bars needs careful handling. Since |b(x − h)| = |b||x − h|, the graph y = |2x − 6| can be rewritten as y = 2|x − 3|. Its vertex is at x = 3, not 6, and its branches are twice as steep as those of the parent graph.
How do you graph y = −2|x − 1| + 3?
The equation is already in vertex form with a = −2, h = 1 and k = 3. The vertex is (1, 3), the symmetry line is x = 1 and the graph opens downward. Its maximum value is 3, and each unit of horizontal distance from the vertex lowers the output by 2.
Choose symmetric inputs around x = 1. At x = 0 and x = 2, the output is −2 × 1 + 3 = 1. At x = −1 and x = 3, it is −2 × 2 + 3 = −1. Plot these points with the vertex and draw the two straight branches through them.
The domain is all real numbers and the range is y ≤ 3. The y-intercept is (0, 1). For x-intercepts, solve −2|x − 1| + 3 = 0, giving |x − 1| = 1.5, so x = −0.5 or x = 2.5. Both intercepts lie equally far from the symmetry line.
- Read a, h and k from the transformed form.
- Plot the vertex and identify the opening direction.
- Choose pairs of inputs equally far from h.
- Evaluate and plot their matching outputs.
- Draw straight branches and check intercepts and range.
How do you write an absolute value function piecewise?
To remove the bars correctly, determine where their input changes sign. For |x − h|, the change occurs at x = h. When x is at least h, |x − h| = x − h; when x is less than h, |x − h| = −(x − h). Each rule is valid only on its stated interval.
For y = 2|x − 3| + 1, the left branch is y = −2(x − 3) + 1 = −2x + 7 for x < 3. The right branch is y = 2(x − 3) + 1 = 2x − 5 for x ≥ 3. Both give 1 at the joining input x = 3.
This representation explains branch slopes and makes algebraic comparisons easier. The left slope is −2 and the right slope is 2 in this example. Do not graph either line over the entire plane as part of the function; each line contributes only the portion allowed by its corresponding input condition.
How do absolute value graphs model distance and deviation?
The function y = |x − h| measures distance from x to a fixed point h. Its minimum occurs at h because the distance there is zero, and moving equally far in either direction produces equal outputs. This distance interpretation supplies the background for the V shape without requiring any visual memorisation.
A simple model for a penalty based on deviation from a target can have the form P = 5|x − 10|, where each unit away from the target 10 adds five penalty units. Both x = 8 and x = 12 produce P = 10. Such a model assumes the same rate of penalty on either side of the target.
A real application may restrict the domain, for example to nonnegative measurements or a bounded interval of allowed settings. The full algebraic function exists for every real x, but only the relevant portion belongs to the practical model. State those restrictions separately rather than changing the underlying graph rule silently.
What mistakes are common when graphing absolute value functions?
The most common horizontal-shift error is reading |x + 4| as a shift right by four. Set the inner expression equal to zero instead: x + 4 = 0 gives x = −4, which locates the vertex correctly. This method also works when the inner expression contains a coefficient of x.
Do not assume every expression containing absolute value has a simple single V. Sums such as |x| + |x − 2| can have more than two linear pieces, while more complicated inner expressions can produce curves. The standard vertex rules here apply to a nonzero multiple of one absolute value of a linear expression, plus a constant.
Finally, distinguish vertical reflection from an absolute value applied to an entire output. The functions −|x| and |−x| are different: the first opens downward, while the second equals |x| and opens upward. Checking a single nonzero input often exposes this error before it affects the full graph.