Skip to content

Chapter 1 — Fundamental Concepts

1.7 — Inequalities

An equation asks where two expressions coincide; an inequality, where one exceeds the other.


An equation looks for the values at which two expressions are equal. An inequality looks for the values at which one is greater or less than the other. It is written with one of the signs <<, >>, ≤\le or ≥\ge between two expressions, and its solution set is, as in §1.5, the set of values of the variable that make it true. The difference lies in the shape of the answer: the solution set of an inequality is usually not a handful of points but an interval or a union of intervals, and the interval notation of §1.1 is the natural way to write it.

The question that guided §1.5 returns here: which steps preserve the solution set. The answer is similar, with one important difference that is worth proving and not merely remembering.

The order axioms of §1.1 say that if a<ba < b, then a+c<b+ca + c < b + c for every real cc, and ac<bcac < bc for every c>0c > 0. Adding the same number to both sides, or multiplying them by the same positive number, preserves the direction of the inequality. Both steps can be undone, by adding −c-c or multiplying by c−1c^{-1}, which is also positive, as we will see shortly. They therefore yield equivalent inequalities, in the same sense as in §1.5. With a negative number, on the other hand, the direction is reversed.

Proposition. If a<ba < b and c<0c < 0, then ac>bcac > bc.

Proof. Since a<ba < b, adding −a-a to both sides gives b−a>0b - a > 0. Since c<0c < 0, also −c>0-c > 0. The product of two positive numbers is positive, so (b−a)(−c)>0(b - a)(-c) > 0, that is, ac−bc>0ac - bc > 0. Adding bcbc to both sides, ac>bcac > bc. ■\blacksquare

Dividing by cc is multiplying by c−1c^{-1}, and c−1c^{-1} has the same sign as cc: since c⋅c−1=1>0c \cdot c^{-1} = 1 > 0, and the product of two numbers of opposite sign is negative, cc and c−1c^{-1} cannot have opposite signs. That is why dividing by a positive number preserves the direction and dividing by a negative one reverses it. The reversal is not a typographical convention: it is a consequence of how the negative reals are ordered, and it will reappear in the rest of the section whenever the sign of a factor is unknown.

Example. Let us solve 3−2x≤73 - 2x \le 7. Adding −3-3 leaves −2x≤4-2x \le 4. Multiplying by −12-\frac{1}{2}, which is negative, reverses the direction: x≥−2x \ge -2. The solution set is [−2,∞)[-2, \infty). Let us check with one value: for x=0x = 0, 3≤73 \le 7 is true, and indeed 0≥−20 \ge -2.


An inequality such as x2−x−6>0x^2 - x - 6 > 0 is not solved by isolating xx, because there is no step that leaves xx alone on one side. It is solved by a sign analysis, which rests on the factoring of §1.3. The idea is that the sign of a product depends only on the signs of its factors: by the order axioms of §1.1, a product of nonzero reals is positive if the number of negative factors is even, and negative if it is odd; and by the zero product property of §1.5, it is zero if and only if some factor is.

The procedure is as follows. We bring the inequality to the form P(x)>0P(x) > 0, or P(x)<0P(x) < 0, or with ≥\ge or ≤\le, leaving zero on one side. We factor PP completely over R\mathbb{R}. Each factor has a sign that is easy to know. A linear factor x−rx - r is positive if x>rx > r and negative if x<rx < r. An irreducible quadratic factor ax2+bx+cax^2 + bx + c, with Δ<0\Delta < 0, always has the sign of aa: in the proof in §1.3 we wrote it as aa times a positive quantity. The roots of the linear factors divide the line into intervals, and within each interval no factor changes sign, so neither does the product. It suffices to determine the sign of the product on each interval and choose those that satisfy the inequality, adding the roots when the inequality is ≥\ge or ≤\le.

Example. Let us solve x2−x−6>0x^2 - x - 6 > 0. Factoring, (x−3)(x+2)>0(x - 3)(x + 2) > 0. The roots −2-2 and 33 divide the line into three intervals: (−∞,−2)(-\infty, -2), (−2,3)(-2, 3) and (3,∞)(3, \infty). On the first, both factors are negative and the product is positive. On the second, x+2x + 2 is positive and x−3x - 3 negative, and the product is negative. On the third, both are positive and the product is positive. Since the inequality is strict, the roots are not included. The solution set is (−∞,−2)∪(3,∞)(-\infty, -2) \cup (3, \infty), where ∪\cup is the union of sets from §1.1.

Number line with roots at -2 and 3 (open circles), signs +,-,+ on the three intervals, and the solution regions highlighted

Figure 1.2 — Sign analysis of (x−3)(x+2)>0(x-3)(x+2)>0: the highlighted regions are the solution set.

A repeated factor deserves attention. In (x−1)2(x+3)<0(x - 1)^2(x + 3) < 0, the factor (x−1)2(x - 1)^2 is a square, positive except at x=1x = 1, where it is zero; it does not change sign when passing through 11. The sign of the product is therefore that of x+3x + 3, except at x=1x = 1, and the solution set is (−∞,−3)(-\infty, -3). The rule that the sign “alternates” from one interval to the next holds only when each root appears once.


These inequalities are solved by translating them into inequalities without absolute value. The translation rests on a lemma that follows from the definition of absolute value in §1.1 and has a geometric reading: ∣x−a∣|x - a| is the distance between xx and aa.

Lemma. Let u∈Ru \in \mathbb{R} and ϵ>0\epsilon > 0. Then:

(i) ∣u∣<ϵ|u| < \epsilon if and only if −ϵ<u<ϵ-\epsilon < u < \epsilon;

(ii) ∣u∣>ϵ|u| > \epsilon if and only if u>ϵu > \epsilon or u<−ϵu < -\epsilon.

Proof. We separate two cases according to the sign of uu. If u≥0u \ge 0, then ∣u∣=u|u| = u, and moreover −ϵ<0≤u-\epsilon < 0 \le u; therefore ∣u∣<ϵ|u| < \epsilon is equivalent to u<ϵu < \epsilon, which is equivalent to −ϵ<u<ϵ-\epsilon < u < \epsilon, and ∣u∣>ϵ|u| > \epsilon is equivalent to u>ϵu > \epsilon, because u<−ϵu < -\epsilon is impossible. If u<0u < 0, then ∣u∣=−u|u| = -u, and moreover u<0<ϵu < 0 < \epsilon; by the proposition of §1, −u<ϵ-u < \epsilon is equivalent to u>−ϵu > -\epsilon, and −u>ϵ-u > \epsilon is equivalent to u<−ϵu < -\epsilon. In both cases we obtain (i) and (ii). ■\blacksquare

With ≤\le and ≥\ge in place of << and >>, the same proof gives the non-strict versions. The hypothesis ϵ>0\epsilon > 0 matters: if ϵ≤0\epsilon \le 0, the inequality ∣u∣<ϵ|u| < \epsilon has no solution, because an absolute value is never negative.

Applying the lemma to u=x−au = x - a, the inequality ∣x−a∣<ϵ|x - a| < \epsilon says that xx is less than ϵ\epsilon away from aa:

∣x−a∣<ϵ  ⟺  −ϵ<x−a<ϵ  ⟺  a−ϵ<x<a+ϵ|x - a| < \epsilon \iff -\epsilon < x - a < \epsilon \iff a - \epsilon < x < a + \epsilon

that is, x∈(a−ϵ,a+ϵ)x \in (a - \epsilon, a + \epsilon), which is the neighborhood of aa of radius ϵ\epsilon from §1.1. The opposite inequality, ∣x−a∣>ϵ|x - a| > \epsilon, says that xx is more than ϵ\epsilon away from aa, which happens on both sides of the point:

∣x−a∣>ϵ  ⟺  x−a>ϵ or x−a<−ϵ  ⟺  x∈(−∞,a−ϵ)∪(a+ϵ,∞)|x - a| > \epsilon \iff x - a > \epsilon \text{ or } x - a < -\epsilon \iff x \in (-\infty, a - \epsilon) \cup (a + \epsilon, \infty)

The difference in shape between the two cases, a bounded interval for "<<" and a union of two unbounded intervals for ">>", is no accident. It is the difference between being near a point, which happens only in a limited region around it, and being far from it, which happens everywhere outside.

Example. Let us solve ∣2x−3∣≤5|2x - 3| \le 5. By the non-strict version of the lemma, it is equivalent to −5≤2x−3≤5-5 \le 2x - 3 \le 5. Adding 33, −2≤2x≤8-2 \le 2x \le 8, and multiplying by 12\frac{1}{2}, which is positive, −1≤x≤4-1 \le x \le 4. The solution set is [−1,4][-1, 4].


A rational inequality, such as x−1x+2≤0\dfrac{x - 1}{x + 2} \le 0, is solved with the same sign analysis as in §2, applied to the numerator and the denominator. The justification is that ND=N⋅D−1\dfrac{N}{D} = N \cdot D^{-1} and, as we saw in §1, D−1D^{-1} has the same sign as DD; the sign of the quotient is therefore the one the product N⋅DN \cdot D would have.

What must not be done is to multiply both sides by the denominator. Its sign depends on xx, and the proposition of §1 says that, according as it is positive or negative, the direction is preserved or reversed. Multiplying without knowing which of the two cases occurs produces wrong results. For example, from 1x<1\frac{1}{x} < 1 one might “deduce”, multiplying by xx, that 1<x1 < x; but x=−1x = -1 satisfies the original inequality, because −1<1-1 < 1, and does not satisfy 1<x1 < x. The correct course is to leave zero on one side: 1x−1=1−xx<0\frac{1}{x} - 1 = \frac{1 - x}{x} < 0, whose sign analysis gives the solution set (−∞,0)∪(1,∞)(-\infty, 0) \cup (1, \infty).

The procedure, then, brings everything to one side and leaves zero on the other, factors numerator and denominator, and analyzes the sign of the quotient on each interval determined by all the roots, those of the numerator and those of the denominator. The roots of the denominator are always excluded, whatever the sign of the inequality, because by §1.4 they do not belong to the domain of the expression.

Example. Let us solve x−1x+2≤0\dfrac{x - 1}{x + 2} \le 0. The roots that matter are x=1x = 1, from the numerator, and x=−2x = -2, from the denominator, which is excluded. On (−∞,−2)(-\infty, -2) the numerator and the denominator are negative, and the quotient is positive. On (−2,1)(-2, 1) the numerator is negative and the denominator positive, and the quotient is negative. On (1,∞)(1, \infty) both are positive, and the quotient is positive. The inequality asks for negative values or zero: we take the interval (−2,1)(-2, 1) and the point x=1x = 1, where the quotient is zero and which does belong to the domain, but never x=−2x = -2. The solution set is (−2,1](-2, 1].

Number line with excluded root at -2 (open red circle) and included root at 1 (filled blue circle), signs +,-,+ on the three intervals, solution region highlighted between -2 and 1

Figure 1.3 — Sign analysis of x−1x+2≤0\dfrac{x-1}{x+2}\le0: x=−2x=-2 is excluded from the domain (red circle) even though the inequality is "≤\le"; x=1x=1 is included (filled blue circle).


With equations and inequalities solved on the real line, the chapter moves to the plane: the analytic geometry of the next section translates these same algebraic ideas into the language of points, distances and curves.