Absolute Value Equations and Graphs

Learning goals

  • Read ∣x∣\lvert x \rvert as distance, never negative
  • Graph the V, meeting at the vertex
  • Locate the vertex (h,k)(h, k) in y=a∣x−h∣+ky = a\lvert x - h \rvert + k when a≠0a\ne0
  • Split ∣X∣=c\lvert X \rvert = c into two cases when c>0c > 0
  • Solve absolute-value inequalities as bands or rays when the right side is positive

What absolute value measures

Recall from Pre-Algebra that the distance between aa and bb is ∣a−b∣\lvert a-b\rvert. Distance from zero is the simplest case. On the number line, ∣x∣\lvert x \rvert is the distance from xx to 00, counted as a nonnegative length no matter which side of zero the number sits on. Since 55 is five units to the right of zero, ∣5∣=5\lvert 5 \rvert = 5. Since −5-5 is five units to the left, ∣−5∣=5\lvert -5 \rvert = 5 as well. And 00 is no distance from itself, so ∣0∣=0\lvert 0 \rvert = 0.

If xx is already zero or positive, its distance from zero is xx. If xx is negative, take its opposite. We can write these two cases together as a piecewise definition: choose the line whose condition fits the input. The last lesson of this chapter develops this idea.

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

In the second line, −x-x is positive because that line applies only when x<0x<0. At x=−5x=-5, it gives ∣−5∣=−(−5)=5\lvert -5\rvert=-(-5)=5. A minus sign in front of a variable means “take the opposite,” not “the answer must be negative.”

Both branches of the rule always output zero or a positive number, so

∣x∣≥0for every real x,\lvert x \rvert \ge 0 \quad \text{for every real } x,

with equality only at x=0x = 0. This fact is why the graph never dips below the x-axis, and why some of the equations later in this lesson have no solution.

The graph of the absolute value function

Packaging the rule as a function gives the absolute value function

f(x)=∣x∣.f(x) = \lvert x \rvert.

To see its shape, make a short table, choosing inputs on both sides of zero:

xx−3-3−1-1002244
y=∣x∣y = \lvert x \rvert3311002244

The table’s points with x≥0x\ge0 lie on y=xy=x; those with x<0x<0 lie on y=−xy=-x. Draw the right half of the first line and the left half of the second. Their slopes are 11 and −1-1, so they meet in a sharp V shape.

The corner is the vertex, (0,0)(0,0). It is the lowest point because all other outputs are positive. Every real input has an absolute value, so the domain is all real numbers. Every nonnegative height occurs: height 00 at the vertex, and each positive height on both branches. The range is therefore y≥0y\ge0.

The graph of y equals the absolute value of xA V with vertex at the origin, its right branch on the line y equals x and its left branch on the line y equals negative x, opening upward so every output is zero or greater.xy-4-3-2-112341234(0, 0)y = xy = -xy = |x|
The graph of y equal to the absolute value of x is a V. To the right of zero the rule is simply y equals x, a line of slope 1, and to the left it is y equals negative x, a line of slope negative 1. The two lines meet at the vertex (0, 0), the lowest point, so the domain is every real number and the range is y greater than or equal to 0.

Reading transformations off the equation

The graphs in this family are shifted and scaled copies of the basic V. Look at one concrete shift before naming the general pattern. Replace xx by x−2x - 2 and add 11 outside the bars, turning y=∣x∣y = \lvert x \rvert into y=∣x−2∣+1y = \lvert x - 2 \rvert + 1:

Shifting y equals the absolute value of x to y equals the absolute value of x minus 2, plus 1The base V, dashed, with vertex at the origin, and the shifted V, solid, with vertex at 2 comma 1, the same shape moved right 2 and up 1.xy-3-2-112345612345(0, 0)(2, 1)y = |x|y = |x - 2| + 1
Shifting the vertex. The dashed V is y equal to the absolute value of x, with vertex (0, 0). Replacing x by x minus 2 and adding 1 outside the bars gives y equal to the absolute value of (x minus 2), plus 1, which slides the whole V right 2 and up 1, so the solid vertex sits at (2, 1). The branch slopes and the shape do not change, only the position of the vertex.

The bars ∣x−2∣\lvert x-2\rvert are smallest, zero, at x=2x=2, where adding 11 gives output 11. This moves the vertex from (0,0)(0,0) to (2,1)(2,1) while keeping the branch slopes unchanged.

That pattern generalizes to any shift and any stretch. The general form is

y=a∣x−h∣+k,a≠0.y = a\lvert x - h \rvert + k, \qquad a \ne 0.

The coefficient aa must be nonzero: at a=0a = 0 the bars no longer affect the output, and the graph is just the horizontal line y=ky = k, with no vertex and no V. Read the three constants one at a time:

Putting the shifts together, the vertex moves from (0,0)(0, 0) to (h,k)(h, k), exactly as it just moved to (2,1)(2, 1) above. The domain stays all real numbers. The range is y≥ky \ge k when a>0a > 0 (the V opens up from its lowest point) or y≤ky \le k when a<0a < 0 (it opens down from its highest point).

Worked example 1 Graph y=∣x−2∣+1y = \lvert x - 2 \rvert + 1 and state its domain and range

Match y=∣x−2∣+1y = \lvert x - 2 \rvert + 1 to the form y=a∣x−h∣+ky = a\lvert x - h \rvert + k. Here a=1a = 1, h=2h = 2, and k=1k = 1, so nothing is stretched or flipped, and the V is only shifted.

The inside x−2x - 2 moves the graph right by 22 and the +1+1 moves it up by 11, so the vertex travels from (0,0)(0, 0) to

(h,k)=(2,1).(h, k) = (2, 1).

From the vertex the branches keep the ordinary slopes +1+1 and −1-1. To pin down one more point, step right by 33: at x=5x = 5, the height is ∣5−2∣+1=3+1=4\lvert 5 - 2 \rvert + 1 = 3 + 1 = 4, giving the point (5,4)(5, 4). The domain is all real numbers, and since a=1>0a = 1 > 0 the graph opens upward from its lowest point, so the range is y≥1y \ge 1.

Worked example 2 Describe the graph of y=−2∣x∣y = -2\lvert x \rvert

Read y=−2∣x∣y = -2\lvert x \rvert as y=a∣x∣y = a\lvert x \rvert with a=−2a = -2. This one coefficient has two effects.

Its size, ∣a∣=2\lvert a \rvert = 2, is a vertical stretch, so each branch is twice as steep as the basic V. Its sign, negative, reflects the graph across the x-axis, turning the V upside down so it opens downward. Here is where two points of y=∣x∣y = \lvert x \rvert go:

(1,1)⟶(1,−2),(−1,1)⟶(−1,−2).(1, 1) \longrightarrow (1, -2), \qquad (-1, 1) \longrightarrow (-1, -2).

The vertex (0,0)(0, 0) stays fixed, since −2×0=0-2 \times 0 = 0. The domain is unchanged at all real numbers, because the input is untouched. But the outputs are now zero or negative, so the range flips to y≤0y \le 0: the V hangs below the x-axis instead of rising above it.

Check your understanding

The graph of y=∣x+3∣−5y = \lvert x + 3 \rvert - 5 is the graph of y=∣x∣y = \lvert x \rvert shifted how, and where is its vertex?

Answer choices

Use the controls to connect the graph to its equation:

  1. Set the inside shift to −3-3 and the outside shift to −5-5. The vertex moves to (−3,−5)(-3,-5), and the expression inside reads x+3x+3. Notice the opposite signs of the shift and the number written inside.
  2. Reset the inside shift to 00 and the coefficient to 11, then set the outside shift to −4-4. The V crosses the x-axis at x=−4x=-4 and x=4x=4. Raise the outside shift: the crossings approach each other, meet when k=0k=0, then disappear when k>0k>0.
  3. Set the outside shift to −2-2 and the coefficient to −1-1. The downward V lies entirely below the x-axis. Raise kk to 22: its peak is now above the axis, and there are two crossings.

These experiments show the three possible outcomes for a V meeting a horizontal axis: two crossings, one, or none. The equations below explain the same pattern using distance.

How often does y=a∣x−h∣+ky = a\lvert x - h\rvert + k meet the x-axis?

y = |x| - 3. Its corner sits at (0, -3), shifted 3 down. Its two arms point upward, rising one unit for every unit across. A coordinate plane with the graph of |x| drawn on it, with its corner marked. Use the controls below the figure to stretch it, or to shift it across or up and down. -4 -2 2 4 -6 -4 -2 2 4
Stretch a Inside h Outside k

y = |x| - 3. Its corner sits at (0, -3), shifted 3 down. Its two arms point upward, rising one unit for every unit across.

A V-shaped graph on a coordinate plane, with its vertex placed by the inside and outside shifts and its branches set by the coefficient. For a positive coefficient, raising the vertex through the horizontal axis takes the graph from two crossings to one to none; a negative coefficient flips the V and reverses that order.

Solving absolute value equations

An absolute value equation has the variable inside the bars, as in ∣2x−3∣=7\lvert 2x - 3 \rvert = 7. To solve one, read the bars as distance again. The equation ∣X∣=c\lvert X \rvert = c says the quantity XX sits exactly cc units from zero. How many numbers are that far from zero depends entirely on the sign of cc. So the first thing to check is whether the right side is positive, zero, or negative.

Why ∣X∣=c\lvert X \rvert = c splits into cases#

Everything follows from the meaning of distance, together with the fact that an absolute value is never negative.

Suppose c>0c > 0. Take c=7c = 7 as a concrete case first: the only numbers seven units from zero are 77 and −7-7, one on each side.

Points at distance 7 from zeroA number line with filled dots at negative seven and seven. Zero is marked halfway between them; each dot is seven units from zero.-770
The only two numbers seven units from zero: -7 and 7.

The same reasoning holds for any positive cc: exactly two numbers sit that far from zero, cc itself and its opposite −c-c, so

X=corX=−c.X = c \quad \text{or} \quad X = -c.

Suppose c=0c = 0. The only number at distance zero from zero is zero itself, so ∣X∣=0\lvert X \rvert = 0 forces X=0X = 0, a single solution.

Suppose c<0c < 0. Since ∣X∣≥0\lvert X \rvert \ge 0 for every XX, a nonnegative quantity can never equal a negative number, so ∣X∣=c\lvert X \rvert = c has no solution at all. This is why you check the sign of the right side before splitting into cases.

Worked example 3 Solve ∣2x−3∣=7\lvert 2x - 3 \rvert = 7

The right side 77 is positive, so the two-case rule applies. Set the inside equal to 77 and to −7-7:

2x−3=7or2x−3=−7.2x - 3 = 7 \quad \text{or} \quad 2x - 3 = -7.

Solve each as an ordinary linear equation. The first gives 2x=102x = 10, so x=5x = 5. The second gives 2x=−42x = -4, so x=−2x = -2.

x=5orx=−2.x = 5 \quad \text{or} \quad x = -2.

Both check: ∣2(5)−3∣=∣7∣=7\lvert 2(5) - 3 \rvert = \lvert 7 \rvert = 7 and ∣2(−2)−3∣=∣−7∣=7\lvert 2(-2) - 3 \rvert = \lvert -7 \rvert = 7.

Worked example 4 Solve 2∣x+1∣−3=52\lvert x + 1 \rvert - 3 = 5

The bars are not alone yet, so isolate them before splitting into cases. Add 33 to both sides, then divide by 22:

2∣x+1∣=8⟹∣x+1∣=4.2\lvert x + 1 \rvert = 8 \quad \Longrightarrow \quad \lvert x + 1 \rvert = 4.

Now the right side is the positive number 44, so use the two-case rule on the inside:

x+1=4orx+1=−4.x + 1 = 4 \quad \text{or} \quad x + 1 = -4.

This gives x=3x=3 or x=−5x=-5. Both make the original left side 2(4)−3=52(4)-3=5.

Writing x+1=5x+1=5 or x+1=−5x+1=-5 before isolating would ignore the 22 and −3-3 outside the bars and solve a different equation.

Worked example 5 Solve ∣3x−6∣=0\lvert 3x - 6 \rvert = 0 and ∣x+4∣=−2\lvert x + 4 \rvert = -2

These two short equations show the other two cases. First, solve ∣3x−6∣=0\lvert 3x - 6 \rvert = 0. Only zero has absolute value zero, so the inside must be zero:

3x−6=0⟹x=2,3x - 6 = 0 \quad \Longrightarrow \quad x = 2,

a single solution. Next, solve ∣x+4∣=−2\lvert x + 4 \rvert = -2. The right side is negative, and an absolute value is never negative, so no number can satisfy it:

∣x+4∣≥0>−2⟹no solution.\lvert x + 4 \rvert \ge 0 > -2 \quad \Longrightarrow \quad \text{no solution}.

If you used the two-case rule here, you would get the false answers x=−6x = -6 and x=−2x = -2. Check the sign of the right side first, so that you do not report them.

Check your understanding

Solve ∣2x−1∣=9\lvert 2x - 1 \rvert = 9.

Answer choices

When the right side contains a variable, split ∣X∣=R\lvert X\rvert=R into X=RX=R or X=−RX=-R, then keep only candidates with R≥0R\ge0 that check in the original equation. Try ∣x−6∣=2x\lvert x-6\rvert=2x:

Thus the only solution is x=2x=2. A variable right side can also give infinitely many solutions: ∣x∣=x\lvert x\rvert=x holds for every x≥0x\ge0 and fails for x<0x<0. The two/one/none count above applies when the expression inside the bars is linear with a nonzero coefficient and the isolated right side is a constant.

Absolute value inequalities

The distance picture works for inequalities too. Reading ∣X∣\lvert X \rvert as the distance from XX to zero turns each inequality into a statement about how near or far XX is. The two directions give different shapes: one band or two rays.

The inequality ∣X∣<5\lvert X\rvert<5 asks for numbers less than five units from zero. They lie between −5-5 and 55. The same picture works for ∣X∣<c\lvert X\rvert<c whenever c>0c>0:

Inputs strictly between negative five and fiveA number line with the interval from negative five to five highlighted. Open circles exclude both endpoints. Zero lies inside the highlighted interval.-55|X| < 50
The numbers less than 5 units from zero: everything strictly between -5 and 5, not including -5 or 5 themselves.

In general,

∣X∣<c⟺−c<X<c.\lvert X \rvert < c \quad \Longleftrightarrow \quad -c < X < c.

For ∣X∣>5\lvert X\rvert>5, the numbers must be more than five units from zero. They lie beyond 55 or below −5-5. More generally, ∣X∣>c\lvert X\rvert>c with c>0c>0 gives two outside rays:

Inputs below negative five or above fiveA number line with a highlighted leftward ray below negative five and rightward ray above five. Open circles exclude negative five and five. The region between the endpoints is not highlighted.-55X < -5X > 50
The numbers more than 5 units from zero: two separate pieces, everything less than -5 and everything greater than 5, with nothing between them.

In general,

∣X∣>c⟺X<−c  or  X>c.\lvert X \rvert > c \quad \Longleftrightarrow \quad X < -c \ \text{ or } \ X > c.

The reminders some people memorize, “less than gives one band” and “greater than gives two rays,” are just these two distance pictures in words. The non-strict versions with ≤\le and ≥\ge work the same way, now including the endpoints. If c≤0c\le0, start from nonnegativity instead. For example, ∣X∣<0\lvert X\rvert<0 has no solution, ∣X∣≤0\lvert X\rvert\le0 requires X=0X=0, and ∣X∣>−2\lvert X\rvert>-2 holds for every real XX.

Worked example 6 Solve ∣2x−1∣<5\lvert 2x - 1 \rvert < 5 and ∣x+3∣≥4\lvert x + 3 \rvert \ge 4

Start with ∣2x−1∣<5\lvert 2x - 1 \rvert < 5. Because the inequality is “less than,” the inside is trapped between −5-5 and 55:

−5<2x−1<5.-5 < 2x - 1 < 5.

Add 11 to all three parts, then divide by 22:

−4<2x<6⟹−2<x<3.-4 < 2x < 6 \quad \Longrightarrow \quad -2 < x < 3.

The solution is the single interval −2<x<3-2 < x < 3.

Now solve ∣x+3∣≥4\lvert x + 3 \rvert \ge 4. Because the inequality is “greater than or equal to,” the inside lies beyond 44 or beyond −4-4:

x+3≥4orx+3≤−4.x + 3 \ge 4 \quad \text{or} \quad x + 3 \le -4.

Solving each gives x≥1x \ge 1 or x≤−7x \le -7. The solution is two rays, everything at least 11 together with everything at most −7-7.

Check your understanding

Solve ∣x−1∣≤3\lvert x - 1 \rvert \le 3.

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

At the vertex of y=∣x∣y=\lvert x\rvert, the slope changes from −1-1 to 11. The graph has no break, yet it has a sharp corner. Elsewhere, each branch is a straight line with a clear direction.

Could an unbroken graph fail to have a slope everywhere? In 1872, Karl Weierstrass gave a striking example: a continuous function with no derivative at any point. Here “continuous” means it has no breaks, and a derivative measures slope at a point. His example never settles into a definite slope, however closely one examines it. It challenged mathematicians who relied on pictures to decide what curves could do. (Weierstrass and his example) An 1893 remark by Charles Hermite conveys the reaction: he described turning away with “fright and horror” from functions without derivatives. (The recorded remark)

The two vertical bars for absolute value appear in the published version of an essay Weierstrass wrote in 1841. (History of the notation)

Our V is much simpler than his famous example. It has just one corner, at its vertex, but it still shows that a graph can be unbroken without being smooth at every point.

Your progress

See all your progress →