Skip to main content

Section 1.8 Solving inequalities

Subsection Elementary inequality rules

As we have seen over the last few sections, in order to determine when a function is positive and negative, find the domain of a function involving an even root, and rewrite an absolute value, we will need to be able to work with inequalities. We will need to solve inequalities in order to explore functions in general and answer many interesting questions, and so we summarize the relevant rules and develop the necessary techniques for solving inequalities. Let’s begin by defining what we mean by an "inequality."
An inequality consists of two mathematical expressions related by a greater-than \(>\text{,}\) less-than \(<\text{,}\) greater-than-or-equal-to \(\geq\text{,}\) or less-than-or-equal-to \(\leq\) sign. The solution set of an inequality is the set of all values that make the inequality true. Wheres the solution set of an equation often consists of a finite number of points, the solution set of an inequality is often an interval of real numbers, or unions of intervals.
For example, whereas the solution to \(x-1=0\) is the single number \(x=1\text{,}\) the solution to \(x-1> 0\) is the set
\begin{equation*} \{x\in \R\mid x> 0\}\text{,} \end{equation*}
which we recognize as the interval \((1,\infty)\text{.}\)
The inequality in the last example was solved in much the same way the corresponding equality is solved:
\begin{align*} x-1 \amp > 0\\ x-1+1 \amp > 0+1 \\ x \amp > 1\text{.} \end{align*}
That is we isolated the \(x\) term by adding \(1\) to both sides of the inequality. The reason why this step is valid is that if \(x< y\text{,}\) then \(x+a< y+a\) for any \(a\in \R\text{:}\) i.e., adding a constant to two numbers preserves the inequality relation between them.
What about multiplying both sides of an equality by a nonzero constant? Is it true that if \(x < y\text{,}\) then \(ax< ay\) for any nonzero \(a\text{?}\) No! Consider the following example: \(1< 2\text{,}\) but \((-2)1=-2\not < -4=(-2)2\text{.}\) We have (re)discovered the first nuance about solving inequalities: multiplying numbers by nonzero constants doesn’t necessarily preserve their inequality relation: in fact, if the constant is negative, the relation is reversed! Below we make official this observation, along with some other elementary inequality rules.

Remark 1.8.2. Elementary inequality rules.

The statements in TheoremΒ 1.8.1 remain true if we place \(<\) with \(\leq\text{.}\) Why? The relation \(\leq\) means less than or equal to. Since the statements above are true with respect to the relation \(<\) (the content of the theorem) and to the relation \(=\text{,}\) it follows logically that they are true with respect to the relation \(\leq\text{.}\)

Remark 1.8.3. Visualizing inequalities.

The English phrases β€œless than” and β€œgreater than” unfortunately obscure somewhat the meaning of the relations \(<\) and \(>\text{.}\) For example, we are tempted to translate the statement \(x< y\) as β€œ\(x\) is smaller than \(y\)”. But this is not what the \(x< y\) means. Indeed, we have \(-100< 1\text{,}\) and yet \(-100\) is not smaller than \(1\text{.}\) The correct way of understanding \(x< y\) is as a statement about the relative position of \(x\) and \(y\) on the number line. That is, we have
\begin{align*} x< y \amp \iff x \text{ is to the left of } y \text{ on the number line}\\ x> y \amp \iff x \text{ is to the right of } y \text{ on the number line}\text{.} \end{align*}
Equipped with the inequality rules of TheoremΒ 1.8.1, we are able to solve elementary inequalities in much the same way we do equalities, but taking due care when multiplying by negative constants or taking reciprocals.

Example 1.8.4. Solving elementary inequalities.

Solve the given inequality. Express your answer using interval notation or set builder notation.
  1. \(\displaystyle 3-2x> 7\)
  2. \(\displaystyle \frac{5}{x+1}\leq 8\)
Solution.
  1. We solve
    \begin{align*} 3-2x \amp > 7\\ -2x \amp > 4 \amp (\text{add } -3)\\ x \amp < -2 \amp (\text{multiply by } -1/2)\text{.} \end{align*}
    Thus the set of solutions is the interval \((-\infty,-2)\text{.}\)
  2. Clearly, we want to use the reciprocal rule here, but we need to be careful since to do so, the signs of both sides of the inequality have to agree! We handle this by separately treating the cases where \(5/(x+1)\) is negative and positive.
    Note that \(5/(x+1)< 0\) if and only if \(x+1< 0\) if and only if \(x< -1\text{.}\) In this case we certainly have \(5/(x+1)\leq 8\text{.}\) Thus the interval \((-\infty, -1)\) is part of our solution.
    Now assume \(x> -1\text{.}\) In this case \(5/(x+1)\) is positive, allowing us to use the reciprocal rule. We solve:
    \begin{align*} \frac{5}{x+1}\amp\leq 8 \\ \frac{1}{8} \amp \leq \frac{x+1}{5} \amp (\text{reciprocal rule})\\ \frac{5}{8} \amp \leq x+1 \\ -\frac{3}{8} \amp \leq x\text{.} \end{align*}
    Thus \([-3/8,\infty)\) is the set of all \(x\) satisfying the inequality with \(x\geq -1\text{.}\)
    Combining our two cases, we conclude that the set of solutions to the inequality is
    \begin{equation*} (-\infty, -1)\cup [-3/8,\infty)\text{.} \end{equation*}

Remark 1.8.5. Checking the answer graphically.

You can check our solution to \(3-2x> 7\) by graphing \(y=3-2x\) (in red) and \(y=7\) (in green), as shown in FigureΒ 1.8.6. The values of \(x\) for which the line described by \(3-2x\) has \(y\)-coordinate greater than \(7\) are those to the left of \(x=-2\text{.}\)
Figure 1.8.6. \(y=3-2x\) is above \(y=7\) for \(x\lt -2\text{.}\)

Remark 1.8.7. Paying attention to sign.

Our solution to the second inequality of ExampleΒ 1.8.4 illustrates how careful consideration of the signs (positive/negative) involved in an inequality can make the solution even to an elementary looking inequality somewhat involved. The β€œsign diagram” technique developed later in this section will make these issues much easier to deal with.

Subsection Sign diagram technique

TheoremΒ 1.8.1 allows us to solve a linear inequality \(ax+b< c\) almost exactly as we would the corresponding linear equality \(ax+b=c\text{;}\) we just need to be careful about the sign when multiplying both sides by \(1/a\text{.}\) With anything more complicated, however, solving inequalities becomes much more subtle.
Consider the quadratic inequality \(x^2-x< 0\text{.}\) Since adding any constant to both sides preserves the inequality, we can add \(x\) to both sides to conclude
\begin{equation*} x^2< x\text{.} \end{equation*}
We might be tempted to multiply both sides of the equation by \(1/x\) (we can exclude \(x=0\text{,}\) since the inequality clearly doesn’t hold for this choice), however we need to remember that depending on whether \(x\) is negative or positive, the inequality might flip. This leads to two separate cases.
A slightly more streamlined approach would be to use factoring:
\begin{align*} x^2-x \amp < 0\\ x(x-1) \amp < 0\text{.} \end{align*}
Now use the fact that a product of two numbers is negative if and only if the two numbers have different signs:
\begin{align*} x(x-1) \amp < 0\\ (x< 0 \text{ and } x-1> 0) \amp \text{ or } (x> 0 \text{ and } x-1< 0) \\ (x< 0 \text{ and } x> 1) \amp \text{ or } (x> 0 \text{ and } x< 1) \\ 0 \amp < x < 1\text{.} \end{align*}
Note that the left side of our β€œor” statement was eventually discarded since there is no number \(x\) satisfying \(x< 0\) and \(x> 1\text{.}\) In all we conclude that the set of solutions to the inequality is the interval \((0,1)\text{.}\)
We should make official at this point our observation about the sign of a product of numbers.
A similar approach can be used for a more general quadratic inequality \(ax^2+bx+c< d\text{:}\) namely, first make the right side of the inequality 0 (\(ax^2+bx+(c-d)< 0\)); then try to factor the left side (\(a(x-c_1)(x-c_2)< 0\)); then treat the different cases coming from TheoremΒ 1.8.8. However, we are interested in one technique that works not only for quadratic inequalities, but also inequalities involving any algebraic function. This leads us to what we call a sign diagram technique.
Consider again the inequality \(x^2-x< 0\text{.}\) We can interpret this as a statement about the function \(f(x)=x^2-x\text{:}\) namely, the set of solutions to the inequality is precisely the set of \(x\) where \(f\) is negative. This set is easily visualized by a graph of \(f\text{.}\)
Figure 1.8.9. \(f(x)=x^2-x\)
The graph confirms that \(f(x)=x^2-x < 0\) if and only if \(0< x< 1\text{,}\) just as we had deduced above. It also brings to light another property that will be useful for solving inequalities: the sign of the function does not change until we reach a zero. In the example above, we have \(f> 0\) on the entire interval \((-\infty, 0)\text{,}\) \(f< 0\) on \((0,1)\text{,}\) and \(f> 0\) on \((1,\infty)\text{.}\) This is elegantly summarized by the sign diagram of \(f\) below.
Figure 1.8.10. Sign diagram of \(f(x)=x^2-x\text{.}\)
As it turns out, this constancy of sign exhibited by \(f(x)=x^2-x\) is enjoyed not just by all quadratic functions, but indeed by all algebraic functions. The property seems intuitively true: a function shouldn’t be able to switch from positive to negative, or vice versa, without crossing the \(x\)-axis. However, to prove this property rigorously, we need some help from calculus: namely, the notion of a continuous function, as well as the intermediate value property that continuous functions enjoy. We will get to these in due time, at which point we will re-visit the discussion here. For now, we will take on faith this property of sign, that we articulate in the theorem below.
TheoremΒ 1.8.11 is the theoretical underpinning of the following procedure for solving inequalities. Although the procedure is stated for inequalities of the form \(f(x)< 0\text{,}\)

Example 1.8.13. Sign diagram: rational function.

Use ProcedureΒ 1.8.12 to provide another solution to the inequality
\begin{equation} \frac{5}{x+1}\leq 8\text{.}\tag{1.57} \end{equation}
Solution.
We first bring the inequality into a standard form:
\begin{align*} \frac{5}{x+1}\amp \leq 8\amp \\ \frac{5}{x+1}-8 \amp \leq 0\\ \frac{5-8(x+1)}{x+1} \amp\leq 0 \\ \frac{-8x-3}{x+1} \amp\leq 0 \text{.} \end{align*}
The rational function \(f(x)=(-8x-3)/(x+1)=-(8x+3)/(x+1)\) is undefined at \(x=-1\) and has a zero at \(x=-3/8\text{.}\) Thus we begin with the number line diagram
Sign diagram of rational function
Next we identify the sign of \(f\) on the three intervals \((-\infty, -1)\text{,}\) \((-1,-3/8)\text{,}\) \((-3.8,\infty)\text{.}\) We can do this by using the following test points:
\begin{align*} f(-2) \amp = -\frac{-13}{-1}=-13< 0\\ f(-1/2) \amp =-\frac{-1}{1/2}=2> 0\\ f(0) \amp = -\frac{3}{1}=-3< 0\text{.} \end{align*}
From the constancy of sign theorem, we conclude that \(f< 0\) on \((-\infty, -1)\) and \((-3/8, \infty)\) and \(f> 0\) on \((-1, -3/8)\text{.}\) This is summarized in the following sign diagram for \(f\text{.}\)
Sign diagram of rational function
Since furthermore, \(f(x)=0\) at \(x=-3/8\text{,}\) we conclude that the set of solutions to \(f(x)\leq 0\text{,}\) and hence to our original inequality (1.57) is \((-\infty, -1)\cup [-3/8, \infty)\text{.}\)

Example 1.8.14. Solving \(x^2> a\).

Fix a positive constant \(a\in \R\text{.}\) Use ProcedureΒ 1.8.12 to solve the inequality
\begin{equation*} x^2> a\text{.} \end{equation*}
Solution.
We put the inequality in standard form and factor to find roots:
\begin{align*} x^2 \amp > a\\ x^2-a \amp > 0\\ (x-\sqrt{a})(x+\sqrt{a}) \amp > 0\text{.} \end{align*}
It is now easy to see that \(f(x)=x^2-a=(x-\sqrt{a})(x+\sqrt{a})\) has zeros at \(\pm \sqrt{a}\) and has the following sign diagram.
Sign diagram of quadratic
We conclude that the set of solutions to \(f(x)> 0\text{,}\) and hence also \(x^2> a\text{,}\) is \((-\infty, \sqrt{a})\cup (\sqrt{a},\infty)\text{.}\)
Inequalities of the form \(x^2< a\) or \(x^2> a\) arise frequently enough to merit a corresponding inequality rule.

Example 1.8.16. Sign diagram: quartic.

Use ProcedureΒ 1.8.12 to solve the inequality
\begin{equation} x^4+x^2> 2\text{.}\tag{1.58} \end{equation}
Solution.
First bring the inequality into the standard form
\begin{equation*} f(x)=x^4+x^2-2> 0\text{.} \end{equation*}
The quartic polynomial \(f\) has no points where it is undefined. We factor \(f\) to find its roots. We have
\begin{align*} f(x) \amp =x^4+x^2-2\\ \amp =u^2+u-2 \amp (u=x^2)\\ \amp =(u+2)(u-1)\\ \amp =(x^2+2)(x^2-1)\\ \amp =(x^2+2)(x-1)(x+1)\text{.} \end{align*}
Since \(x^2+2\) is never equal to zero, we see that the roots of \(f\) are \(x=-1, 1\text{.}\) Using the test points
\begin{align*} f(-2) \amp = 18> 0\\ f(0) \amp = -2< 0 \\ f(2) \amp = 18> 0 \text{,} \end{align*}
we produce the following sign diagram.
Sign diagram of quartic polynomial
We conclude that the set of solutions to \(f(x)> 0\text{,}\) and hence to the original inequality (1.58) is \((-\infty, -1)\cup (1,\infty)\text{.}\)