Part 24 of 36 · InequalitiesSee the whole course

Absolute value equations and graphs

Short answer

The absolute value |x| is how far x is from 0, so it is never negative: |5| = 5 and |−5| = 5. To solve |something| = k, with k zero or more, solve two equations: something = k and something = −k. If k is negative there is no solution. The graph of y = |x| is a V with its point at the origin.

What absolute value means

Picture a number line. The absolute value of a number is its distance from 0, counted in steps and never in a direction. 5 is five steps from 0, and so is −5, so |5| = |−5| = 5. And |0| = 0.

It is not just “drop the minus sign”. Bars work on the whole result inside: |3 − 8| = |−5| = 5. Do the sum first, then take the distance.

The graph is a V

For x zero or more, |x| is just x, so the graph follows the line y = x. For x less than zero, |x| flips the sign, so it follows y = −x. Together they make a V with its point (the vertex) at the origin, and both arms have slope 1 and −1.

Change x to x − h and the V slides sideways so that its point is at x = h. This is the same move as in the horizontal shift of a function.

Solving means cutting the V with a line

To solve |x − h| = k, draw the horizontal line y = k across the V. The x-values where they meet are the solutions. A line cuts a V in two places, and the two places are the same distance from h, one on each side. So the solutions are x = h + k and x = h − k. Try it:

|x − 2| = 3
  1. Case 1: x − 2 = 3, so x = 5
  2. Case 2: x − 2 = −3, so x = −1
Numbers that are 3 away from 2: 5 and −1.

Example 1: |x| = 5

Two numbers are 5 steps from 0.
Case 1: x = 5
Case 2: x = −5
The solutions are x = 5 or x = −5.

Example 2: |x − 3| = 4

The number x − 3 is 4 steps from 0, so it is 4 or −4.
Case 1: x − 3 = 4, so x = 7
Case 2: x − 3 = −4, so x = −1
Check: |7 − 3| = 4 ✓ and |−1 − 3| = |−4| = 4 ✓
The solutions are x = 7 or x = −1: the two numbers that are 4 away from 3.

Example 3: with something inside, |2x + 1| = 7

Case 1: 2x + 1 = 7, so 2x = 6 and x = 3
Case 2: 2x + 1 = −7, so 2x = −8 and x = −4
Check: |2(3) + 1| = 7 ✓ and |2(−4) + 1| = |−7| = 7 ✓
The solutions are x = 3 or x = −4.

Example 4: get the absolute value alone first, 2|x − 1| + 3 = 11

You can only split into two cases once the bars stand alone on one side.

Subtract 3: 2|x − 1| = 8
Divide by 2: |x − 1| = 4
Case 1: x − 1 = 4, so x = 5
Case 2: x − 1 = −4, so x = −3
Check x = −3: 2|−4| + 3 = 8 + 3 = 11 ✓
The solutions are x = 5 or x = −3.

One solution, or none

A peek at inequalities

The same picture solves inequalities. |x| < 3 means “less than 3 steps from 0”, which is −3 < x < 3 (the part of the V below the line y = 3). |x| > 3 means “more than 3 steps away”, which is x < −3 or x > 3 (the part above it). If inequalities are new, start with how to solve a linear inequality.

Watch it explained in under a minute

The same idea, narrated step by step. Square version for sharing: download the 1:1 video.
Read the video transcript

Absolute value means distance from zero. 5 is 5 steps away. So is −5.

Graph y = |x|. It makes a V, with its point at 0.

Now solve: |x| = 5. Draw the line y = 5. It crosses the V twice. So x = 5, or x = −5.

Slide the V 3 to the right. Now it is |x − 3|. Set it equal to 4. x = 7, or x = −1.

Want practice questions and more examples? Full guide: pipmath.app/blog

The five mistakes to avoid

Try it yourself

Solve each equation. Tap a question to see the answer.

1. |x| = 8

The numbers 8 steps from 0: x = 8 or x = −8.

2. |x + 2| = 5

Case 1: x + 2 = 5, so x = 3. Case 2: x + 2 = −5, so x = −7. x = 3 or x = −7. Check: |3 + 2| = 5 ✓ and |−7 + 2| = |−5| = 5 ✓.

3. |2x − 4| = 6

Case 1: 2x − 4 = 6, so 2x = 10 and x = 5. Case 2: 2x − 4 = −6, so 2x = −2 and x = −1. x = 5 or x = −1. Check: |10 − 4| = 6 ✓ and |−2 − 4| = 6 ✓.

Where this fits in

The V is one of the most useful shapes for seeing transformations: shift it, flip it and stretch it. That is the next part of the course, starting with function transformations.

Quick answers

Questions about this topic

What is absolute value?

The absolute value of a number is its distance from 0 on the number line. It is never negative, so |5| = 5 and |−5| = 5.

Why does an absolute value equation have two solutions?

Two different numbers can be the same distance from a point, one on each side. For |x − 3| = 4, both 7 and −1 are 4 steps from 3.

Can an absolute value equation have no solution?

Yes. If the absolute value is set equal to a negative number, like |x| = −3, there is no solution, because a distance cannot be negative.

What does the graph of y = |x| look like?

It is a V with its point at the origin. The right arm is the line y = x and the left arm is the line y = −x.

Keep going

Learn it by playing

Pip: Math Adventure is a math game for iPhone where functions, lines, equations and calculus are puzzles you solve by playing. It is coming soon to the App Store.

Join the list and we will tell you the day Pip is out.