Unit 1, lesson 7

Absolute Value as Distance and a Graph

How absolute value measures distance on the number line, why it is never negative, how to solve a simple distance equation, and how the V-shaped graph comes from those distances.

  • Theory part 13
  • Practice part 14
  • Lines, Rates, and Distance

Two hikers stand on a straight trail, one at the 3 kilometer marker and one at the 10 kilometer marker. The distance between them is 7 kilometers, and it stays 7 no matter which hiker you measure from. Absolute value is the tool that turns a signed difference like 3−10=−73 - 10 = -7 into that distance. Calculus uses it constantly to say how close one number is to another.

Key terms

Absolute value

Definition For a real number xx, the absolute value of xx is

∣x∣={x,x≥0,−x,x<0.\lvert x \rvert = \begin{cases} x, & x \ge 0, \\ -x, & x < 0. \end{cases}

In plain words A nonnegative number stays as it is. A negative number has its sign flipped, so the result is positive.

Example The definition gives ∣6∣=6\lvert 6 \rvert = 6, ∣0∣=0\lvert 0 \rvert = 0 and ∣−7∣=−(−7)=7\lvert -7 \rvert = -(-7) = 7. For an expression, work out the inside first, so ∣3−8∣=∣−5∣=5\lvert 3 - 8 \rvert = \lvert -5 \rvert = 5.

Nonnegative values

Definition For every real xx,

∣x∣≥0,\lvert x \rvert \ge 0,

and ∣x∣=0\lvert x \rvert = 0 exactly when x=0x = 0. Also ∣−x∣=∣x∣\lvert -x \rvert = \lvert x \rvert and x2=∣x∣\sqrt{x^2} = \lvert x \rvert for every real xx. A number is nonnegative when it is greater than or equal to 00.

In plain words An absolute value can be zero or positive, never negative. Removing a minus sign is the right picture for numbers, but not for letters, since −x-x is positive whenever xx is negative.

Example Take x=−5x = -5. The second line of the definition gives ∣x∣=−x=−(−5)=5\lvert x \rvert = -x = -(-5) = 5. Here the formula −x-x produces a positive number. Also (−5)2=25=5\sqrt{(-5)^2} = \sqrt{25} = 5, not −5-5. An equation such as ∣x∣=−3\lvert x \rvert = -3 has no solution at all.

Distance on the number line

Definition The number line pairs every real number with a point on a line, with 00 at a chosen origin, positive numbers to the right and equal steps for equal differences. For real numbers aa and bb, the distance between them on the number line is

∣a−b∣=∣b−a∣.\lvert a - b \rvert = \lvert b - a \rvert.

In particular ∣x∣\lvert x \rvert is the distance from xx to 00, and ∣x−a∣\lvert x - a \rvert is the distance from xx to aa.

In plain words Subtract the two numbers in either order and drop the sign. What remains is how far apart they sit on the line.

Example The distance between −3-3 and 44 is

∣4−(−3)∣=∣7∣=7,\lvert 4 - (-3) \rvert = \lvert 7 \rvert = 7,

and in the other order ∣−3−4∣=∣−7∣=7\lvert -3 - 4 \rvert = \lvert -7 \rvert = 7 as well. Count the steps from −3-3 to 44 on a number line and you also get 77.

Solving a distance equation

Definition Let aa and dd be real numbers. The equation ∣x−a∣=d\lvert x - a \rvert = d asks for every xx at distance dd from aa. If d>0d > 0 it has exactly two solutions, x=a−dx = a - d and x=a+dx = a + d. If d=0d = 0 it has exactly one solution, x=ax = a. If d<0d < 0 it has no solution, since a distance is never negative.

In plain words Stand at aa and step dd units to the left and dd units to the right. Those two landing spots are the answers, unless dd is zero or negative.

Example Solve ∣x−2∣=5\lvert x - 2 \rvert = 5. The numbers at distance 55 from 22 are 2−5=−32 - 5 = -3 and 2+5=72 + 5 = 7. Both check, since ∣−3−2∣=5\lvert -3 - 2 \rvert = 5 and ∣7−2∣=5\lvert 7 - 2 \rvert = 5. For an equation like ∣x+1∣=4\lvert x + 1 \rvert = 4, first write x+1x + 1 as x−(−1)x - (-1). The center is −1-1, so the solutions are −5-5 and 33.

Graph of absolute value

Definition The graph of y=∣x∣y = \lvert x \rvert is the set of points (x,∣x∣)(x, \lvert x \rvert) for all real xx. It is made of two rays that start at the origin, the ray y=xy = x for x≥0x \ge 0 and the ray y=−xy = -x for x≤0x \le 0. Its domain is all real numbers and its range is [0,∞)[0, \infty). More generally, the graph of y=∣x−a∣y = \lvert x - a \rvert consists of the ray y=x−ay = x - a for x≥ax \ge a and the ray y=a−xy = a - x for x≤ax \le a. The range [0,∞)[0, \infty) holds for the full real domain. On a smaller domain the range can be smaller.

In plain words The height of the graph above xx is the distance from xx to 00. The farther you go from 00 in either direction, the higher the graph, and it rises one unit for each unit you move.

Example A table of distances gives the points to plot.

xx−3-3−2-2−1-100112233
∣x∣\lvert x \rvert33221100112233

The points on the left lie on the line y=−xy = -x and those on the right lie on y=xy = x. Joined up they make a V. If you keep only the inputs in [−1,2][-1, 2], the outputs fill [0,2][0, 2] instead of all of [0,∞)[0, \infty).

Vertex

Definition The vertex of the graph of y=∣x−a∣y = \lvert x - a \rvert is the point (a,0)(a, 0) where its two rays meet. It is the lowest point of the graph. To its left the graph is a straight piece with slope −1-1, and to its right a straight piece with slope 11. These slopes belong to the separate sides. The two rays meet at the vertex with different directions, forming a corner, so no single slope describes the graph at the vertex itself.

In plain words The vertex is the tip of the V, where the distance is zero. It is a sharp corner, not a smooth turn.

Example The graph of y=∣x−2∣y = \lvert x - 2 \rvert has its vertex at (2,0)(2, 0). Going right from the vertex the points (3,1)(3, 1) and (4,2)(4, 2) rise with slope 11. Going left the points (1,1)(1, 1) and (0,2)(0, 2) rise as you move left, so that side has slope −1-1. That corner is exactly the kind of point where calculus later finds that a graph has no tangent line.

Symmetry

Definition For every real xx, ∣−x∣=∣x∣\lvert -x \rvert = \lvert x \rvert, so the graph of y=∣x∣y = \lvert x \rvert is symmetric about the yy axis. More generally, the graph of y=∣x−a∣y = \lvert x - a \rvert is symmetric about the vertical line x=ax = a, because for every real tt

∣(a+t)−a∣=∣(a−t)−a∣=∣t∣.\lvert (a + t) - a \rvert = \lvert (a - t) - a \rvert = \lvert t \rvert.

In plain words Fold the picture along the vertical line through the vertex and the two sides land on each other. Points the same distance to the left and right of aa have the same height.

Example For y=∣x−2∣y = \lvert x - 2 \rvert, the inputs 2+3=52 + 3 = 5 and 2−3=−12 - 3 = -1 both give height 33. Once you have plotted the right side of the V, you get the left side for free by mirroring it across x=2x = 2.

Check yourself

  1. Solve ∣x+3∣=6\lvert x + 3 \rvert = 6.
Show the answer

Write x+3x + 3 as x−(−3)x - (-3). The equation asks for the numbers at distance 66 from −3-3, which are −3−6=−9-3 - 6 = -9 and −3+6=3-3 + 6 = 3.

  1. How many solutions does each equation have? First ∣x−4∣=0\lvert x - 4 \rvert = 0, then ∣x−4∣=−2\lvert x - 4 \rvert = -2.
Show the answer

The first has exactly one solution, x=4x = 4, because only 44 is at distance 00 from 44. The second has none, because an absolute value is never negative.

  1. Find the vertex of y=∣x−1∣y = \lvert x - 1 \rvert and its range when the domain is only [−2,3][-2, 3].
Show the answer

The vertex is (1,0)(1, 0), and 11 lies in [−2,3][-2, 3], so the smallest output is 00. The largest distance from 11 within the interval is at x=−2x = -2, where the height is 33, while x=3x = 3 gives only 22. The range is [0,3][0, 3].

How this lesson connects