Absolute Value in Algebra

Absolute Value means ...

... how far a number is from zero:

Number line showing that both 6 and -6 are 6 units away from zero

"6" is 6 away from zero,
and "−6" is also 6 away from zero.

So the absolute value of 6 is 6,
and the absolute value of −6 is also 6

Absolute Value Symbol

To show we want the absolute value we put "|" marks either side (called "bars"), like these examples:

|−5|
= 5
|7|
= 7
Computer keyboard highlighting the vertical bar key located above the Enter key The "|" can be found just above the enter key on most keyboards.

More Formal

More formally we have:

The piecewise function definition: |x| equals x if x is positive, 0 if x is 0, and -x if x is negative

Which says the absolute value of x equals:

So when a number is positive or zero we leave it alone, when it is negative we change it to positive using −x.

Example: what's |−17| ?

Well, it is less than zero, so we need to calculate "−x":

− ( −17 ) = +17

(Because two minuses make a plus)

Useful Properties

Here are some properties of absolute values that can be useful:

Example: Solve |x+2| = 5

Using "|u| = a is the same as u = ±a":

this:|x+2| = 5 is the same as this:x+2 = ±5

Which has two solutions:

x+2 = −5   x+2 = +5
x = −7   x = 3

Graphically

Let's graph that example:

|x+2| = 5

It is easier to graph when we have an "=0" equation, so subtract 5 from both sides:

|x+2| − 5 = 0

Now let's plot y=|x+2|−5 and find where it equals zero.

images/function-graph.js?fn0=abs(x+2)-5&vara=1|0|2&xmin=-12&xmax=12&ymin=-8&ymax=8

But just for fun let's make the graph by shifting it around:

Three graphs showing the horizontal shift of y=|x| to y=|x+2| and vertical shift to y=|x+2|-5
Start with y=|x| then shift it left to make
it y=|x+2|
then shift it down to make
it y=|x+2|−5

And the two solutions (circled) are −7 and +3.

Absolute Value Inequalities

Mixing Absolute Values and Inequalites needs a little care!

There are 4 inequalities:

<   >
less than less than
or equal to
  greater than greater than
or equal to

Less Than, Less Than or Equal To

With "<" and "" we get one interval centered on zero:

Example: Solve |x| < 3

This means the distance from x to zero must be less than 3:

Number line showing the interval between -3 and 3 with open circles at the ends

Everything in between (but not including) −3 and 3

It can be rewritten as:

−3 < x < 3

As an interval it can be written as:

(−3, 3)

The same thing works for "Less Than or Equal To":

Example: Solve |x| ≤ 3

Everything in between and including −3 and 3

It can be rewritten as:

−3 ≤ x ≤ 3

As an interval it can be written as:

[−3, 3]

How about a bigger example?

Example: Solve |3x-6| ≤ 12

Rewrite it as:

−12 ≤ 3x−6 ≤ 12

Add 6:

−6 ≤ 3x ≤ 18

Last, multiply by (1/3). Because we are multiplying by a positive number, the inequalities won't change:

−2 ≤ x ≤ 6

Done!

As an interval it can be written as:

[−2, 6]

Greater Than, Greater Than or Equal To

This is different ... we get two separate intervals:

Example: Solve |x| > 3

It looks like this:

Number line showing two rays starting from -3 (going left) and 3 (going right) with open circles

less than −3 or from 3 onwards

It can be rewritten as

x < −3 or x > 3

As an interval it can be written as:

(−∞, −3) U (3, +∞)

Note: U means "Union" of the two intervals.

Careful! Don't write it as

no! −3 > x > 3 no!

Because x can't be less than −3 and greater than 3 at the same time

It is really:

x < −3 or x > 3 yes

x is less than −3 or greater than 3

The same thing works for "Greater Than or Equal To":

Example: Solve |x| ≥ 3

Can be rewritten as

x ≤ −3 or x ≥ 3

As an interval it can be written as:

(−∞, −3] U [3, +∞)

583, 584, 1232, 2226, 2227, 2228, 8024, 8025, 8026, 1233