# 7.2 Inequalities in One Variable

When learning about domain and range, you learned about inequalities and using set-builder and interval notation to represent them. In this section, we will explore how to solve linear and absolute value inequalities in one variable. The process is very similar to solve equations, but instead of the solution being a single value, the solution will be an inequality.

Notice that if an inequality is true, like 2 < 5, then these operations result in a true statement as well, just like with equations:

Adding a number to both sides:

\begin{align*} 2+4&<5+4&\\ 6&<9 & True\\ \end{align*}

Subtracting a number on both sides:

\begin{align*} 2 – 3 &< 5 – 3&\\ -1 &< 2 & True\\ \end{align*}

Multiplying a positive number on both sides:

\begin{align*} 2(3) &< 5(3)\\ 6&<15 & True\\ \end{align*}

Dividing by a positive number on both sides:

\begin{align*} \frac{2}{2}&<\frac{5}{2}\\ 1&<2.5 & True\\ \end{align*}

We can use these operations just like when solving equations.

#### Example 7.2A

Solve $3x + 7 \geq 1$

\begin{align*} 3x+7&\geq1 & {\textrm{Subtract 7 from both sides}}\\ 3x&\geq-6 & {\textrm{Divide both sides by 3}}\\ x&\geq-2 \end{align*}

This inequality represents the solution set. It tells us that all numbers greater than or equal to -2 will satisfy the original inequality. We could also write this solution in interval notation, as $[-2, \infty)$

To understand what is happening, we could also consider the problem graphically. If we were to graph the equation $y = 3x +7$, then solving $3x + 7 \geq 1$ would correspond with asking “for what values of $x$ is $y\geq 1$”.

Notice that the part of the graph where this is true corresponds to where $x\geq -2$.

While most operations in solving inequalities are the same as in solving equations, we run into a problem when multiplying or dividing both sides by a negative number. Notice, for example:

\begin{align*} 2(-3)&<5(-3)\\ -6&<-15 & {\textrm{Not True}}\\ \end{align*}

To account for this, when multiplying or dividing by a negative number, we must reverse the sign of the inequality.

### Rules for Solving Linear Inequalities

1. You may add or subtract a positive or negative number to both sides of the inequality.
2. You can multiply or divide both sides of the inequality by a positive number.
3. You can multiply or divide both sides of the inequality by a negative number, but you must reverse the direction of the inequality.

#### Example 7.2B

Solve $12 - 4x < 6$

\begin{align*} 12-4x&<6 &{\text{Subtract 12 from both sides}}\\ -4x &< -6 &{\text{Divide both sides by -4, and reverse the inequality symbol}}\\ x&>\frac{-6}{-4} &{\text{Simplify}}\\ x&=\frac{3}{2}\\ \end{align*}

#### Give It Some Thought

1. Solve: $6 + 2x\leq18 + 5x$

A company spends $1200 per day on overhead and labor, and each item they produce costs$5 for materials. If they sell the items for 15 each, how many items will they need to sell each day for their profits to be positive? Answer: We want the profit to be positive: $P>0$. Costs: $C(q) = 1200 + 5q$ Revenue: $R(q) = 10q$ Profit: $P(q) = 10q – (1200 + 5q) = 5q – 1200$ Solving $P(q) > 0$: \begin{align*} 5q&-1200>0\\ 5q&>1200\\ q&>240\\ \end{align*} The company will need to less at least 240 items a day to make a profit. ## Compound Inequalities Compound inequalities are inequalities that consist of more than one part. The most common type is called a tripartite inequality. The basic version looks like this: $-1 < 3x + 5 < 14$. When we write these it is important that both inequalities point in the same direction and that the “outside” inequality is also true – in this case $-1 < 14$ is true, so this is valid. Expressions like $10 < x < 2$ and $1 < x < 5$ are not valid notation. The most universal way to solve a tripartite inequality is to: 1. Break it into two separate inequalities 2. Solve each inequality separately 3. Combine the solutions if possible. #### Example 7.2D Solve $-1 < -3x + 5 < 14$. Answer: First we separate this into two inequalities: $-1 < -3x + 5$ and $-3x +5 < 14$ Now we solve each: \begin{align*} -6&<-3x\\ 2&>x\\ \end{align*} and \begin{align*} -3x&<9\\ x&>-3\\ \end{align*} Now we can combine these solution sets. The numbers where both $2 > x$ and $x > -3$ are true is the set: $2 > x > -3$ While this solution is valid and correct, it is more common to write the solution to tripartite inequalities with the smaller number on the left. We could rewrite the solution as: $-3 < x < 2$ This also has the advantage of corresponding better with the answer in interval notation: $(-3, 2)$. With this particular inequality, it would also be possible to skip the step of breaking it apart, and instead just subtract 5 from all three “parts” of the inequality. This works for simple problems like this, but may fail if the inequality has variables in more than one “part” of the inequality. #### Give It Some Thought 2. Solve: $4\leq2x + 6 < 16$ ## Absolute Value So far in this section we have been looking at inequalities that are linear. We will now turn to absolute value inequalities. The absolute value function is a piecewise-defined function made up of two linear functions. ### Absolute Value Function The absolute value function can be defined as \begin{align*} f(x) = | x | &=&\\ &&{x} &&{x \geq 0}\\ &&{- x} &&{x < 0}\\ \end{align*} The graph of the absolute value looks like a V: The absolute value function is commonly used to determine the distance between two numbers on the number line. Given two values $a$ and $b$, then $|a - b|$ will give the distance, a positive quantity, between these values, regardless of which value is larger. #### Example 7.2E Describe all values, $x$, within a distance of 4 from the number 5. Answer: We want the distance between $x$ and 5 to be less than or equal to 4. The distance can be represented using the absolute value, giving the expression $|x - 5|\leq4$ #### Example 7.2F A 2010 poll reported 78% of Americans believe that people who are gay should be able to serve in the US military, with a reported margin of error of 3%[1]. The margin of error tells us how far off the actual value could be from the survey value[2]. Express the set of possible values using absolute values. Answer: Since we want the size of the difference between the actual percentage, $p$, and the reported percentage to be less than 3%,$|p - 78|\leq3$ #### Give It Some Thought 3. Students who score within 20 points of 80 will pass the test. Write this as a distance from 80 using the absolute value notation. ## Solving Absolute Value Equations To solve an equation like $8 = |2x - 6|$, we can notice that the absolute value will be equal to 8 if the quantity inside the absolute value were 8 or -8. This leads to two different equations we can solve independently: \begin{align*} 2x-6&=8\\ 2x&=14\\ x&=7\\ \end{align*} or \begin{align*} 2x-6&=-8\\ 2x&=-2\\ x&=-1\\ \end{align*} ### Solutions to Absolute Value Equations An equation of the form $|A| = B$, with $B\geq 0$, will have solutions when $A = B$ or $A = -B$. #### Example 7.2G Solve: $0 = |4x + 1| - 7$ Answer: Isolate the absolute value on one side of the equation} \begin{align*} 0&=|4x+1|-7\\ 7&=|4x+1| \end{align*} Now we can break this into two separate equations: \begin{align*} 7 &= 4x + 1\\ 6 &= 4x\\ x &= \frac{6}{4}\\ &= \frac{3}{2} \end{align*} or \begin{align*} - 7 &= 4x + 1\\ - 8 &= 4x\\ x &= \frac{{ - 8}}{4}\\ &= - 2\\ \end{align*} There are two solutions: $x = \frac{3}{2}$ and $x = -2$ #### Example 7.2H Solve $1 = 4|x - 2| + 2$ Answer: Isolating the absolute value on one side the equation, \begin{align*} 1 &= 4|x - 2| + 2\\ -1 &= 4|x - 2|\\ -\frac{1}{4} &= |x - 2|\\ \end{align*} At this point, we notice that this equation has no solutions – the absolute value always returns a positive value, so it is impossible for the absolute value to equal a negative value. #### Give It Some Thought 4. Find the horizontal & vertical intercepts for the function $f(x) = -|x + 2| + 3$ ## Solving Absolute Value Inequalities When absolute value inequalities are written to describe a set of values, like the inequality $|x - 5|\leq4$ we wrote earlier, it is sometimes desirable to express this set of values without the absolute value, either using inequalities, or using interval notation. We will explore two approaches to solving absolute value inequalities: 1. Using a graph 2. Using test values #### Example 7.2I Solve $|x - 5|\leq4$ Answer: 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 nice friendly 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{align*} x - 5 &= 4\\ x &= 9 \end{align*} or \begin{align*} x - 5 &= - 4\\ x &= 1\\ \end{align*} To use a graph, we can sketch the function $f(x) = |x - 5|$. To help us see where the outputs are 4, the line $g(x) = 4$ could also be sketched. On the graph, we can see that indeed the output values of the absolute value are equal to 4 at $x = 1$ and $x = 9$. Based on the shape of the graph, we can determine the absolute value is less than or equal to 4 between these two points, when $1\leq x\leq 9$. In interval notation, this would be the interval $[1, 9]$. As an alternative to graphing, after determining that the absolute value is equal to 4 at $x = 1$ and $x = 9$, we know the graph can only change from being less than 4 to greater than 4 at these values. This divides the number line up into three intervals: $x < 1$, $1 < x < 9$, and $x > 9$. To determine when the function is less than 4, we could pick a value in each interval and see if the output is less than or greater than 4.  Interval Test $x$ $f(x)$ <4 or >4? $x < 1$ 0 $|0 - 5| = 5$ greater $1 < x < 9$ 6 $|6 - 5| = 1$ less $x > 9$ 11 $|11 - 5| = 6$ greater Since $1 < x < 9$ is the only interval in which the output at the test value is less than 4, we can conclude the solution to $|x - 5|\leq4$ is $1\leq x\leq 9$. #### Example 7.2J Given the function $f(x) = - \frac{1}{2}| {4x - 5} | + 3$, determine for what $x$ values the function values are negative. Answer: We are trying to determine where $f(x) < 0$, which is when $- \frac{1}{2}| {4x - 5} | + 3 < 0$. We begin by isolating the absolute value: \begin{align*} -\frac{1}{2}|4x-5|&<-3\\ \end{align*} when we multiply both sides by -2, it reverses the inequality \begin{align*} |4x-5| &> 6\\ \end{align*} Next we solve for the equality $|4x - 5| = 6$ \begin{align*} 4x - 5 &= 6\\ 4x &= 11\\ x &= \frac{{11}}{4}\\ \end{align*} or \begin{align*} 4x - 5 &= - 6\\ 4x &= - 1\\ x &= \frac{{ - 1}}{4}\\ \end{align*} We can now either pick test values or sketch a graph of the function to determine on which intervals the original function value are negative. Notice that it is not even really 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 flipped. From the graph of the function, we can see 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: \begin{align*} x<\frac{-1}{4}{\textrm{ or }} x>\frac{11}{4} \end{align*} In interval notation, this would be $( { - \infty ,\frac{{ - 1}}{4}} ) \cup ( {\frac{{11}}{4},\infty } )$ #### Give It Some Thought 6. Solve $-2|k - 4|\leq-6$ There is a third approach to solving absolute value inequalities that is formulaic. While it works, and you are welcome to use it, it is much more likely that you will remember the other approaches. ### Solutions to Absolute Value Inequalities \begin{align*} {\textrm{ To solve }}|A| < B{\textrm{, solve: }}-B < A < B\\ {\textrm{ To solve }}|A| > B {\textrm{, solve: }}A > B{\textrm{ or }}A < -B\\ \end{align*} #### Example 7.2 K Solve $3|x + 4| - 2\geq7$ Answer: We need to start by isolating the absolute value: \begin{align*} 3|x+4|-2&\geq7 &{\textrm{Add 2 to both sides}}\\ 3|x+4|&\geq9 &{\textrm{Divide both sides by 3}}\\ |x+4|&\geq3\\ \end{align*} Now we can break this apart and solve each piece separately: \begin{align*} x + 4&\geq 3\\ x&\geq-1\\ \end{align*} or \begin{align*} x + 4&\leq-3\\ x&\leq-7\\ \end{align*} In interval notation, this would be $( - \infty , - 7] \cup [ - 1,\infty )$ #### Give It Some Thought Answers 1. $x\geq-4$ 2. $4\leq wx+6<16$ 3. Using the variable $p$, for passing, $|p-80|\leq 20$ 4. $f(x)=-|x+2|+3$ 5. $f(0) = 1$, so the vertical intercept is at $(0, 1)$. $f(x)= 0$ when $x = -5$ and $x = 1$ so the horizontal intercepts are at $(-5, 0)$ and $(1, 0)$. 6. $k<1$ or $k>7$; in interval notation this would be $( { - \infty ,1}) \cup( {7,\infty })$ ## Exercises 1. Solve each inequality and write the solution set using interval form and graph it. 1. $2x+1<5$ 2. $-2-4x\geq 6$ 3. $\frac{1}{2}-x<\frac{x}{5}+\frac{1}{4}$ 4. $\frac{5+x}{3}≥-1$ 5. $\frac{3-5x}{3}≤0$ 2. Use graph solution notation to write the following using single interval, if possible. 1. $(-\infty,0)∪(-\infty,5)$ 2. $(4,7)∩(2,\infty)$ 3. $(-3,\infty)∩(2,\infty)$ 4. $(-\infty,4)∪[4,5]$ 5. $[3,6]∩(5,7]$ 6. $[-5,\infty)∪(9,\infty)$ 3. Solve the following inequalities and describe the solutions using set, interval and graph notation: 1. $2(t-5)>15-(4-2t)$ 2. $\frac{4}{3}(3x-2)+\frac{3}{5}(4x-3)\geq \frac{11}{60}+3x$ 4. Solve each compound inequality. Write the solution set using interval notation and graph it. 1. $5>7-x$ and $2+1.5x<4$ 2. $5-x<4$ and $0.2x-3<1$ 3. $\frac{2x-5}{-2}<2$ and $\frac{2x+1}{3}>0$ 4. $1-x<7+x$ or $4x+3>x$ 5. $5+x>3-x$ or $2x-3>x$ 6. $\frac{1}{2}(x+1)>3$ or $0<7-x$ 7. $1-\frac{3}{2}x<4$ and $\frac{1}{4}x-2≤-3$ 8. $\frac{3}{5}x-1>2$ and $5-\frac{2}{5}x≥3$ 9. $1\leq 3x-5<8$ 10. $-2<4x+9\leq 16$ 11. $-2\leq 3-6x<22$ 12. $-13<5-9x<41$ 5. Write an inequality to describe the following situation: Kate will buy the jacket provided the cost $C$ is at most117.
6. A company spends $1200 per day on overhead and labor, and each item they produce costs$5 for materials. If they sell the items for $15 each, how many items will they need to sell each day for their profits to be positive? 7. Consider the following rectangle. For what values of (measured in cm) will the rectangle have the perimeter of at least 242 cm? 8. For what values of $x$ is each of the following expressions a real number? 1. $\sqrt{6x-9}$ 2. $\frac{5}{x+1}$ 3. $\frac{6}{\sqrt{18 -3x}}$ 9. A student scored 67 points on his Psychology 101 midterm. If the average of his midterm and final must be between 79 and 90 inclusive for a​ B, then for what range of scores on the final exam would a student get a​ B? Both tests have a maximum of 100 points. Write your answer in interval​ 10. To receive a B in a math course, an average between 80 and 89, inclusive, is required. Leah has scores of 76, 82 and 90 on her first three math tests. After the fourth test, she states that she now has a B average. In what range was her score on the fourth test for this statement to be true? Write your answer in interval notation. 11. To mail an envelope, Canada Post charges 37 cents for the first gram, and 25 cents for each additional gram. What is the weight of the envelope that can be mailed for$8.35? Write your answer in interval notation.
12. A car rents for $45 per day plus 21 ¢ per kilometer. You are at a daily budget of$66. How many kilometers can you cover to stay within your budget?
13. Anna is considering writing and publishing her own book. She estimates her revenue to be $R=6.41x$ and her cost to be $C=10039+1.09x$ where $x$ is the number of books sold. Find the minimum number of books she must sell to make a profit.
14. Jan scored 65 points on the calculus midterm. If the final exam counts twice as much as the midterm exam, then what range of the final exam scores would result in the final average between 79 and 90? Both tests have a maximum of 100 points. Write your answer in interval form.
15. Canada post defines girth of a box as the sum of the twice the width and twice the height. The maximum length, height and width allowed are 2 m and length plus girth must be at most 3 m. If the box is 1 m long and 75 cm wide, in what range can the height be?

1. http://www.pollingreport.com/civil.htm, retrieved August 4, 2010
2. Technically, margin of error usually means that the surveyors are 95% confident that actual value falls within this range.