✖

Linear inequalities

Linear inequalities are solved using steps similar to those you use for an ordinary linear equation. A linear inequality usually has this form: ax + b>0 (or with less than, greater than or equal to, or less than or equal to). All that is left is to rearrange the inequality into the following form, and the answer is there: x>−b/a. We assume, of course, that a>0. For negative a the inequality sign would turn round when you divide, and you would get x<−b/a.

An ordinary linear inequality

A linear inequality can be solved using equivalent steps for inequalities.

  • A simple example might look like this:

    3x+9>3

    First we move all the terms without the unknown to the right-hand side. So we add the number −9 to the inequality, which gives us:

    3x+9−9>3−93x>−6

    Next we divide the whole inequality by three:

    3x/3>−6/3x>−2

    That is the solution of the whole inequality. It holds for all x > −2.

    We could also solve the inequality graphically. If we have the inequality 3x + 9 > 3, we draw the graphs of two functions – the left-hand and right-hand sides of the inequality. We get the functions f(x) = 3x + 9 and g(x) = 3. Their graphs look like this:

    Graphs of the functions f(x) = 3x + 9 and g(x) = 3

    We can see that the graphs meet at one point x1, whose x-coordinate is exactly −2. We can also see that for all x > x1, that is, for all x in the interval (−2, ∞), the red function 3x + 9 is “above” the blue function 3 (here “above” means “has a greater y-coordinate”). This agrees with the result we worked out a moment ago.

  • Sometimes, when there are a lot of minus signs, it helps to multiply the whole inequality by minus one. In that case, as well as changing the values in the inequality, you must also reverse the inequality sign – turn greater than into less than and vice versa:

    −x<−10/⋅(−1)x>10

    This applies, of course, whenever you multiply the whole inequality by any negative number. So here is one more quick example:

    −3x+8<2x−7−5x<−15/⋅(−15)x>3

    In the first step we add −2x to the inequality as usual, which moves all the terms with the variable to the left-hand side. At the same time we subtract 8, which moves the constants to the right-hand side. Then we just multiply the whole inequality by −15.

    To illustrate, have a look at the graphical solution of the inequality, where we plot the two functions f(x) = −3x + 8 and g(x) = 2x − 7.

    Graphs of the functions f(x)=-3x+8 and g(x)=2x-7

    We can see that the red graph of −3x + 8 lies below the blue graph of 2x − 7 whenever x > 3.

The variable in the denominator

A linear inequality that contains fractions with the variable in the denominator is solved in a slightly more complicated way. An example is the inequality:

2x+3>4

We cannot multiply the inequality by the unknown in the denominator, because we do not know its sign. If the value of the variable were negative, we would have to reverse the inequality sign. So we cannot simply multiply the inequality by the variable in the denominator. It would not be an equivalent step for inequalities.

We start by rearranging the inequality so that we get a single fraction on the left-hand side and zero on the right-hand side. First we add −4 to both sides, which gives:

2x+3>42x−1>0

Now we have to write the expression on the left-hand side as a single fraction. We multiply the number −1 by the fraction xx, which puts both terms over a common denominator, and then we just add the fractions:

2x−1>02x−xx>02−xx>0

Now we face the question: when is a fraction positive? A fraction is positive if the numerator and denominator are both positive, or if they are both negative. If one is positive and the other negative, the fraction is negative. For example, the fraction 43 is a positive number. The fraction −34 is a negative number. The fraction −3−4 is positive again, because the minus signs cancel. In general we can write:

positivepositive=positivepositivenegative=negativenegativepositive=negativenegativenegative=positive

So we have to solve two sets of inequalities. We start by finding when the numerator and denominator are both positive:

  1. For the numerator and denominator to be both positive, both of these inequalities must hold at the same time:

    2−x>0∧x>0

    For the first inequality we just move 2 to the other side and multiply by −1:

    2−x>0−x>−2x<2

    That is the solution of the first inequality. There is nothing more to solve in the second inequality, x > 0. Now we have to take the intersection of these solutions, because we are interested in the cases where both hold at once, that is, where the numerator is positive and the denominator is positive at the same time. We can write the first solution as the interval (−∞,2) and the second as the interval (0,∞). Now we take the intersection of these intervals:

    (−∞,2)∩(0,∞)=(0,2)

    That is one part of the solution of the inequality. If you substitute numbers from this interval, the inequality holds. For example, if we substitute x = 1, which is a number from the interval (0, 2), we get the inequality 21+3>4, which is equal to 5 > 4. It remains to look at the case where the numerator and denominator are both negative.

  2. When the numerator and denominator are both to be negative, we solve the inequalities:

    2−x<0∧x<0

    Again we quickly solve the inequality 2 − x < 0:

    2−x<0−x<−2x>2

    The second solution is simply x < 0. We write them as intervals: (2,∞) and (−∞, 0), and take the intersection:

    (2,∞)∩(−∞,0)=∅

    We got the empty set. What does that mean? It means that the fraction 2−xx can never have a negative numerator and a negative denominator at the same time.

Now we just take the union of the two results and get the final solution set S:

S=(0,2)∪∅=(0,2)

The inequality 2x+3>4 holds for all x in the interval (0, 2). We can draw a graph showing the functions f(x)=2x+3 and g(x) = 4:

Graph of the functions f(x)=\frac{2}{x}+3 and g(x)=4

We can see that the red graph of f(x)=2x+3 lies above the blue graph of g(x) = 4 exactly on the interval (0, 2).

Linear inequalities with a modulus

Inequalities that contain a modulus (absolute value) are a bit more fun. You have to work out separately when the expression inside the modulus is positive, so the sign does not change, and when it is negative, so the sign does change – in effect there are two inequalities in one. Here is a simple example:

|x+5|<12

First we have to find the critical value. This is the number that makes the whole expression inside the modulus equal to zero, and it is used to find the intervals where the sign changes and where it does not. So first we solve the equation

x+5=0

We can see that the result is x = −5. This splits the values of x into two intervals. In one, the function x + 5 takes positive values and in the other negative ones. So on the interval (−∞, −5) we get negative numbers and on the interval [−5, ∞) positive (or, strictly, non-negative) ones. To show this, the first line uses a number from the first interval and the second line a number from the second:

−8+5=−313+5=18

What does this tell us? If we substitute a value of x greater than minus five, the modulus does not change the result, because x + 5 will be a positive number. On the other hand, if x is less than minus five, then x + 5 is negative and the modulus turns it into a positive number. That is why we have to treat these two cases separately in the inequality.

First we work out the result when x is taken from the interval [−5, ∞). Here the sign does not change, because we simply remove the modulus.

x+5<12x<7x∈(−∞,7)

We almost have the first solution. We still have to take the intersection with the interval we are choosing x from. We are working in the interval [−5, ∞), so the solution of this linear inequality cannot be, for example, x = −15, because it does not lie in our interval. So we take the intersection:

[−5,∞)∩(−∞,7)=[−5,7)

That is the first result. Now we have to work out the result when we take x from the interval (−∞, −5). In this interval the modulus changes the sign. If we want to remove the modulus from the inequality, we have to change the sign ourselves, that is, multiply the expression inside the modulus by −1. So we rewrite it like this:

|x+5|<12−(x+5)<12−x−5<12

We add 5 to both sides:

−x<17

And multiply by −1:

x>−17

This gives the result:

x∈(−17,∞)

But as before, we are choosing x from the interval (−∞, −5), so we still have to take the intersection of this interval with our result:

(−17,∞)∩(−∞,−5)=(−17,−5)

Now we have both results, and we just take their union:

x∈[−5,7)∪(−17,−5)=(−17,7)

To check, we can look at the graphs of these functions:

Graphs of the functions

A few more words on when to use a closed and when an open interval. If we have a strict inequality, such as x>0, we use an open interval, because x cannot equal zero. If the inequality is not strict, x ≥ 0, we use a closed interval, because x can equal zero. For example, if you substitute x = 7, which only “just” misses being a solution of the inequality we have just solved, you get:

|x+5|<12(7+5)<1212<12

The inequality does not hold, because 12 is not less than 12.