## Solve an absolute value inequality

Absolute value equations may not always involve equalities. Instead, we may need to solve an equation within a range of values. We would use an absolute value inequality to solve such an equation. An absolute value inequality is an equation of the form

$|{A}|<{ B },|{ A }|\le{ B },|{ A }|>{ B },\text{ or } |{ A }|\ge { B }$,

where an expression $A$ (and possibly but not usually $B$ ) depends on a variable $x$. Solving the inequality means finding the set of all $x$ that satisfy the inequality. Usually this set will be an interval or the union of two intervals.

There are two basic approaches to solving absolute value inequalities: graphical and algebraic. The advantage of the graphical approach is we can read the solution by interpreting the graphs of two functions. The advantage of the algebraic approach is it yields solutions that may be difficult to read from the graph.

For example, we know that all numbers within 200 units of 0 may be expressed as

$|x|<{ 200 }\text{ or }{ -200 }<{ x }<{ 200 }\text{ }$

Suppose we want to know all possible returns on an investment if we could earn some amount of money within $200 of$600. We can solve algebraically for the set of values $x$ such that the distance between $x$ and 600 is less than 200. We represent the distance between $x$ and 600 as $|{ x } - {600 }|$.

$|{ x } -{ 600 }|<{ 200 }$
OR
${ -200 }<{ x } - { 600 }<{ 200 }$
${-200 }+{ 600 }<{ x } - {600 }+{ 600 }<{ 200 }+{ 600 }$
${ 400 }<{ x }<{ 800 }$

This means our returns would be between $400 and$800.

Sometimes an absolute value inequality problem will be presented to us in terms of a shifted and/or stretched or compressed absolute value function, where we must determine for which values of the input the function’s output will be negative or positive.

### How To: Given an absolute value inequality of the form $|x-A|\le B$ for real numbers $a$ and $b$ where $b$ is positive, solve the absolute value inequality algebraically.

1. Find boundary points by solving $|x-A|=B$.
2. Test intervals created by the boundary points to determine where $|x-A|\le B$.
3. Write the interval or union of intervals satisfying the inequality in interval, inequality, or set-builder notation.

### Example 6: Solving an Absolute Value Inequality

Solve $|x - 5|\le 4$.

### Solution

With both approaches, we will need to know first where the corresponding equality is true. In this case we first will find where $|x - 5|=4$. We do this because the absolute value is a function with no breaks, so the only way the function values can switch from being less than 4 to being greater than 4 is by passing through where the values equal 4. Solve $|x - 5|=4$.

$\begin{cases}x - 5=4 \hfill & \text{or}\hfill & {x - 5 }={ -4 }\\ \hfill {x }= {9}&\text{or}\hfill & \hfill{ x }={ 1 }\hfill \end{cases}$

After determining that the absolute value is equal to 4 at $x=1$ and $x=9$, we know the graph can change only from being less than 4 to greater than 4 at these values. This divides the number line up into three intervals:

${ x }<{ 1 },\text{ }{ 1 }<{ x }<{ 9 },\text{ and }{ x }>{ 9 }$.

To determine when the function is less than 4, we could choose a value in each interval and see if the output is less than or greater than 4, as shown in the table below.

Interval test $x$ $f\left(x\right)$ $<4$ or $>4?$
${ x }<{ 1 }$ 0 $|0 - 5|=5$ Greater than
${ 1 }<{ x }<{ 9 }$ 6 $|6 - 5|=1$ Less than
${ x }>{ 9 }$ 11 $|11 - 5|=6$ Greater than

Because $1\le x\le 9$ is the only interval in which the output at the test value is less than 4, we can conclude that the solution to $|x - 5|\le 4$ is $1\le x\le 9$, or $\left[1,9\right]$.

To use a graph, we can sketch the function $f\left(x\right)=|x - 5|$. To help us see where the outputs are 4, the line $g\left(x\right)=4$ could also be sketched. Figure 11. Graph to find the points satisfying an absolute value inequality.

We can see the following:

• The output values of the absolute value are equal to 4 at $x=1$ and $x=9$.
• The graph of $f$ is below the graph of $g$ on $1<x<9$. This means the output values of $f\left(x\right)$ are less than the output values of $g\left(x\right)$.
• The absolute value is less than or equal to 4 between these two points, when $1\le x\le 9$. In interval notation, this would be the interval $\left[1,9\right]$.

### Analysis of the Solution

For absolute value inequalities,

$\begin{cases}{|x-A| }<{ C },\hfill & \hfill &{ |x-A| }>{ C },\hfill \\{ -C }<{ x-A }<{ C },\hfill & \hfill &{ x-A }<{ -C }\text{ or }{ x-A }>{ C }.\hfill \end{cases}$

The $<$ or $>$ symbol may be replaced by $\le \text{ or }\ge$.

So, for this example, we could use this alternative approach.

$\begin{cases}|x - 5|\le 4\hfill & \hfill & \hfill & \hfill \\ -4\le x - 5\le 4\hfill & \hfill & \hfill & \text{Rewrite by removing the absolute value bars}.\hfill \\ -4+5\le x - 5+5\le 4+5\hfill & \hfill & \hfill & \text{Isolate the }x.\hfill \\ 1\le x\le 9\hfill & \hfill & \hfill & \hfill \end{cases}$

### Try It 6

Solve $|x+2|\le 6$.

### How To: Given an absolute value function, solve for the set of inputs where the output is positive (or negative).

1. Set the function equal to zero, and solve for the boundary points of the solution set.
2. Use test points or a graph to determine where the function’s output is positive or negative.

### Example 7: Using a Graphical Approach to Solve Absolute Value Inequalities

Given the function $f\left(x\right)=-\frac{1}{2}|4x - 5|+3$, determine the $x\text{-}$ values for which the function values are negative.

### Solution

We are trying to determine where $f\left(x\right)<0$, which is when $-\frac{1}{2}\text{ }|4x - 5|+3<0$. We begin by isolating the absolute value.

$\begin{cases}-\frac{1}{2}|4x - 5|<-3 \hfill & \text{Multiply both sides by -2, and reverse the inequality}.\hfill \\ |4x - 5|>6\hfill & \hfill \end{cases}$

Next we solve for the equality $|4x - 5|=6$.

$\begin{cases}4x - 5=6\hfill & \hfill & 4x - 5=-6\hfill \\ 4x - 5=6\hfill & \text{ or }\hfill & 4x=-1\hfill \\ x=\frac{11}{4}\hfill & \hfill & x=-\frac{1}{4}\hfill \end{cases}$ Figure 12

Now, we can examine the graph of $f$ to observe where the output is negative. We will observe where the branches are below the x-axis. Notice that it is not even important exactly what the graph looks like, as long as we know that it crosses the horizontal axis at $x=-\frac{1}{4}$ and $x=\frac{11}{4}$ and that the graph has been reflected vertically.

We observe that the graph of the function is below the x-axis left of $x=-\frac{1}{4}$ and right of $x=\frac{11}{4}$. This means the function values are negative to the left of the first horizontal intercept at $x=-\frac{1}{4}$, and negative to the right of the second intercept at $x=\frac{11}{4}$. This gives us the solution to the inequality.

$x<-\frac{1}{4}\text{ }\text{or}\text{ }x>\frac{11}{4}$

In interval notation, this would be $\left(-\infty ,-0.25\right)\cup \left(2.75,\infty \right)$.

### Try It 7

Solve $-2|k - 4|\le -6$.