This lesson gathers the harder modulus problems that competitive examinations like: equations solved in one stroke by a property of the modulus, equations with a modulus inside a modulus, inequalities with fractions, and questions that ask "how many integers satisfy...". Every one of them uses tools you already have: the properties of ∣ x ∣ |x| ∣ x ∣ , the critical point method, and the sign rules for quadratics. The skill is in choosing the right tool.
Using the equality case of the triangle inequality#
From the properties of the modulus:
∣ x + y ∣ = ∣ x ∣ + ∣ y ∣ exactly when x y ≥ 0 |x + y| = |x| + |y| \quad \text{exactly when } xy \geq 0 ∣ x + y ∣ = ∣ x ∣ + ∣ y ∣ exactly when x y ≥ 0
∣ x − y ∣ = ∣ x ∣ + ∣ y ∣ exactly when x y ≤ 0 |x - y| = |x| + |y| \quad \text{exactly when } xy \leq 0 ∣ x − y ∣ = ∣ x ∣ + ∣ y ∣ exactly when x y ≤ 0
The second follows from the first by replacing y y y with − y -y − y . When an equation has the shape ∣ A ∣ + ∣ B ∣ = ∣ A − B ∣ |A| + |B| = |A - B| ∣ A ∣ + ∣ B ∣ = ∣ A − B ∣ , it is true exactly when A B ≤ 0 AB \leq 0 A B ≤ 0 , and no cases are needed.
Example 1#
Solve ∣ x 2 − 2 x − 8 ∣ + ∣ x 2 + x − 2 ∣ = 3 ∣ x + 2 ∣ |x^2 - 2x - 8| + |x^2 + x - 2| = 3|x + 2| ∣ x 2 − 2 x − 8∣ + ∣ x 2 + x − 2∣ = 3∣ x + 2∣ .
Let A = x 2 − 2 x − 8 A = x^2 - 2x - 8 A = x 2 − 2 x − 8 and B = x 2 + x − 2 B = x^2 + x - 2 B = x 2 + x − 2 . Then
A − B = ( x 2 − 2 x − 8 ) − ( x 2 + x − 2 ) = − 3 x − 6 A - B = (x^2 - 2x - 8) - (x^2 + x - 2) = -3x - 6 A − B = ( x 2 − 2 x − 8 ) − ( x 2 + x − 2 ) = − 3 x − 6
so ∣ A − B ∣ = ∣ − 3 x − 6 ∣ = ∣ 3 x + 6 ∣ = 3 ∣ x + 2 ∣ |A - B| = |-3x - 6| = |3x + 6| = 3|x + 2| ∣ A − B ∣ = ∣ − 3 x − 6∣ = ∣3 x + 6∣ = 3∣ x + 2∣ , which is the right-hand side. The equation is ∣ A ∣ + ∣ B ∣ = ∣ A − B ∣ |A| + |B| = |A - B| ∣ A ∣ + ∣ B ∣ = ∣ A − B ∣ , which holds exactly when A B ≤ 0 AB \leq 0 A B ≤ 0 :
( x 2 − 2 x − 8 ) ( x 2 + x − 2 ) ≤ 0 (x^2 - 2x - 8)(x^2 + x - 2) \leq 0 ( x 2 − 2 x − 8 ) ( x 2 + x − 2 ) ≤ 0
( x − 4 ) ( x + 2 ) ( x + 2 ) ( x − 1 ) ≤ 0 (x - 4)(x + 2)(x + 2)(x - 1) \leq 0 ( x − 4 ) ( x + 2 ) ( x + 2 ) ( x − 1 ) ≤ 0
( x + 2 ) 2 ( x − 1 ) ( x − 4 ) ≤ 0 (x + 2)^2(x - 1)(x - 4) \leq 0 ( x + 2 ) 2 ( x − 1 ) ( x − 4 ) ≤ 0
The factor ( x + 2 ) 2 (x + 2)^2 ( x + 2 ) 2 is never negative, and it is zero at x = − 2 x = -2 x = − 2 . So the product is ≤ 0 \leq 0 ≤ 0 either when x = − 2 x = -2 x = − 2 , or when ( x − 1 ) ( x − 4 ) ≤ 0 (x - 1)(x - 4) \leq 0 ( x − 1 ) ( x − 4 ) ≤ 0 , that is, x ∈ [ 1 , 4 ] x \in [1, 4] x ∈ [ 1 , 4 ] . A sign chart across the critical points − 2 -2 − 2 , 1 1 1 , 4 4 4 reads + + + , + + + , − - − , + + + , with zeros at all three points.
Answer: x ∈ { − 2 } ∪ [ 1 , 4 ] x \in \{-2\} \cup [1, 4] x ∈ { − 2 } ∪ [ 1 , 4 ] .
Counting integer solutions#
Example 2#
Find the number of integers satisfying ∣ x ∣ + ∣ 4 − x 2 x ∣ = ∣ 4 x ∣ \displaystyle |x| + \left|\frac{4 - x^2}{x}\right| = \left|\frac{4}{x}\right| ∣ x ∣ + x 4 − x 2 = x 4 .
The expression contains 1 x \displaystyle \frac{1}{x} x 1 , so first note that x ≠ 0 x \neq 0 x = 0 . Using ∣ p q ∣ = ∣ p ∣ ∣ q ∣ \displaystyle \left|\frac{p}{q}\right| = \frac{|p|}{|q|} q p = ∣ q ∣ ∣ p ∣ ,
∣ x ∣ + ∣ 4 − x 2 ∣ ∣ x ∣ = 4 ∣ x ∣ \displaystyle |x| + \frac{|4 - x^2|}{|x|} = \frac{4}{|x|} ∣ x ∣ + ∣ x ∣ ∣4 − x 2 ∣ = ∣ x ∣ 4
Multiply through by ∣ x ∣ |x| ∣ x ∣ , which is positive, and use ∣ x ∣ 2 = x 2 |x|^2 = x^2 ∣ x ∣ 2 = x 2 and ∣ 4 − x 2 ∣ = ∣ x 2 − 4 ∣ |4 - x^2| = |x^2 - 4| ∣4 − x 2 ∣ = ∣ x 2 − 4∣ :
x 2 + ∣ ( x + 2 ) ( x − 2 ) ∣ = 4 ( 1 ) x^2 + |(x + 2)(x - 2)| = 4 \qquad (1) x 2 + ∣ ( x + 2 ) ( x − 2 ) ∣ = 4 ( 1 )
The critical points are − 2 -2 − 2 and 2 2 2 .
Case (i): x ∈ ( − ∞ , − 2 ] ∪ [ 2 , ∞ ) x \in (-\infty, -2] \cup [2, \infty) x ∈ ( − ∞ , − 2 ] ∪ [ 2 , ∞ ) . Here ( x + 2 ) ( x − 2 ) ≥ 0 (x + 2)(x - 2) \geq 0 ( x + 2 ) ( x − 2 ) ≥ 0 , so (1) becomes
x 2 + x 2 − 4 = 4 ⟹ 2 x 2 = 8 ⟹ x 2 = 4 ⟹ x = ± 2 x^2 + x^2 - 4 = 4 \implies 2x^2 = 8 \implies x^2 = 4 \implies x = \pm 2 x 2 + x 2 − 4 = 4 ⟹ 2 x 2 = 8 ⟹ x 2 = 4 ⟹ x = ± 2
Both lie in this case: { − 2 , 2 } \{-2, 2\} { − 2 , 2 } .
Case (ii): x ∈ ( − 2 , 2 ) x \in (-2, 2) x ∈ ( − 2 , 2 ) . Here ( x + 2 ) ( x − 2 ) < 0 (x + 2)(x - 2) < 0 ( x + 2 ) ( x − 2 ) < 0 , so (1) becomes
x 2 − ( x 2 − 4 ) = 4 ⟹ 4 = 4 x^2 - (x^2 - 4) = 4 \implies 4 = 4 x 2 − ( x 2 − 4 ) = 4 ⟹ 4 = 4
This is true for every x x x in the interval. So all of ( − 2 , 2 ) (-2, 2) ( − 2 , 2 ) satisfies (1).
Combining, (1) holds on [ − 2 , 2 ] [-2, 2] [ − 2 , 2 ] . But the original equation needs x ≠ 0 x \neq 0 x = 0 , so the solution set is [ − 2 , 2 ] − { 0 } [-2, 2] - \{0\} [ − 2 , 2 ] − { 0 } . The integers in it are − 2 , − 1 , 1 , 2 -2, -1, 1, 2 − 2 , − 1 , 1 , 2 .
Answer: 4 4 4 integers. (Leaving out the condition x ≠ 0 x \neq 0 x = 0 would wrongly give 5 5 5 .)
A modulus inside a modulus#
Example 3#
Find the integral values of x x x satisfying ∣ x − ∣ x − 4 ∣ ∣ = 4 |x - |x - 4|| = 4 ∣ x − ∣ x − 4∣∣ = 4 .
Work from the outside in. By ∣ T ∣ = k ⟹ T = ± k |T| = k \implies T = \pm k ∣ T ∣ = k ⟹ T = ± k :
x − ∣ x − 4 ∣ = 4 or x − ∣ x − 4 ∣ = − 4 x - |x - 4| = 4 \quad \text{or} \quad x - |x - 4| = -4 x − ∣ x − 4∣ = 4 or x − ∣ x − 4∣ = − 4
First: x − ∣ x − 4 ∣ = 4 x - |x - 4| = 4 x − ∣ x − 4∣ = 4 gives ∣ x − 4 ∣ = x − 4 |x - 4| = x - 4 ∣ x − 4∣ = x − 4 . A modulus equals the quantity itself exactly when the quantity is non-negative, so x − 4 ≥ 0 x - 4 \geq 0 x − 4 ≥ 0 , that is, x ∈ [ 4 , ∞ ) x \in [4, \infty) x ∈ [ 4 , ∞ ) .
Second: x − ∣ x − 4 ∣ = − 4 x - |x - 4| = -4 x − ∣ x − 4∣ = − 4 gives ∣ x − 4 ∣ = x + 4 |x - 4| = x + 4 ∣ x − 4∣ = x + 4 . Use the critical point 4 4 4 .
If x < 4 x < 4 x < 4 : 4 − x = x + 4 4 - x = x + 4 4 − x = x + 4 , so 2 x = 0 2x = 0 2 x = 0 and x = 0 x = 0 x = 0 . This is less than 4 4 4 , so it is valid.
If x ≥ 4 x \geq 4 x ≥ 4 : x − 4 = x + 4 x - 4 = x + 4 x − 4 = x + 4 , which would need − 4 -4 − 4 and 4 4 4 to be equal. Impossible, so no solution.
Answer: x ∈ { 0 } ∪ [ 4 , ∞ ) x \in \{0\} \cup [4, \infty) x ∈ { 0 } ∪ [ 4 , ∞ ) . This contains infinitely many integers (0 , 4 , 5 , 6 , … 0, 4, 5, 6, \ldots 0 , 4 , 5 , 6 , … ).
Inequalities with fractions#
When an inequality has x x x in a denominator, never multiply across by an expression whose sign you do not know. Instead, bring everything to one side, combine into a single fraction and study its sign. Remember that p q < 0 \displaystyle \frac{p}{q} < 0 q p < 0 has the same solution as p q < 0 pq < 0 pq < 0 (with q ≠ 0 q \neq 0 q = 0 ).
Example 4#
Solve ∣ x + 1 x ∣ > 2 \displaystyle \left|x + \frac{1}{x}\right| > 2 x + x 1 > 2 .
By ∣ T ∣ > a ⟺ T < − a |T| > a \iff T < -a ∣ T ∣ > a ⟺ T < − a or T > a T > a T > a :
First part: x + 1 x < − 2 \displaystyle x + \frac{1}{x} < -2 x + x 1 < − 2 .
x 2 + 1 x + 2 < 0 ⟹ x 2 + 2 x + 1 x < 0 ⟹ ( x + 1 ) 2 x < 0 \displaystyle \frac{x^2 + 1}{x} + 2 < 0 \implies \frac{x^2 + 2x + 1}{x} < 0 \implies \frac{(x + 1)^2}{x} < 0 x x 2 + 1 + 2 < 0 ⟹ x x 2 + 2 x + 1 < 0 ⟹ x ( x + 1 ) 2 < 0
The numerator is a square, so it is positive except at x = − 1 x = -1 x = − 1 , where the fraction is 0 0 0 (not less than 0 0 0 ). So we need x < 0 x < 0 x < 0 and x ≠ − 1 x \neq -1 x = − 1 .
Second part: x + 1 x > 2 \displaystyle x + \frac{1}{x} > 2 x + x 1 > 2 .
x 2 + 1 x − 2 > 0 ⟹ ( x − 1 ) 2 x > 0 \displaystyle \frac{x^2 + 1}{x} - 2 > 0 \implies \frac{(x - 1)^2}{x} > 0 x x 2 + 1 − 2 > 0 ⟹ x ( x − 1 ) 2 > 0
This needs x > 0 x > 0 x > 0 and x ≠ 1 x \neq 1 x = 1 .
Answer: x ∈ R − { − 1 , 0 , 1 } x \in \mathbb{R} - \{-1, 0, 1\} x ∈ R − { − 1 , 0 , 1 } . (At x = ± 1 x = \pm 1 x = ± 1 , ∣ x + 1 x ∣ \displaystyle \left|x + \frac{1}{x}\right| x + x 1 equals exactly 2 2 2 , not more than 2 2 2 .)
Example 5#
Find the number of integers satisfying ∣ x − 1 ∣ x + 2 > 1 \displaystyle \frac{|x - 1|}{x + 2} > 1 x + 2 ∣ x − 1∣ > 1 .
The critical point of the modulus is x = 1 x = 1 x = 1 . (Also x ≠ − 2 x \neq -2 x = − 2 .)
Case (i): x < 1 x < 1 x < 1 . Then ∣ x − 1 ∣ = 1 − x |x - 1| = 1 - x ∣ x − 1∣ = 1 − x :
1 − x x + 2 − 1 > 0 ⟹ 1 − x − x − 2 x + 2 > 0 ⟹ − 1 − 2 x x + 2 > 0 \displaystyle \frac{1 - x}{x + 2} - 1 > 0 \implies \frac{1 - x - x - 2}{x + 2} > 0 \implies \frac{-1 - 2x}{x + 2} > 0 x + 2 1 − x − 1 > 0 ⟹ x + 2 1 − x − x − 2 > 0 ⟹ x + 2 − 1 − 2 x > 0
Multiply by − 1 -1 − 1 and reverse: 2 x + 1 x + 2 < 0 \displaystyle \frac{2x + 1}{x + 2} < 0 x + 2 2 x + 1 < 0 , which is the same as ( 2 x + 1 ) ( x + 2 ) < 0 (2x + 1)(x + 2) < 0 ( 2 x + 1 ) ( x + 2 ) < 0 . So x ∈ ( − 2 , − 1 2 ) \displaystyle x \in \left(-2, -\frac{1}{2}\right) x ∈ ( − 2 , − 2 1 ) . All of these are less than 1 1 1 . The only integer is − 1 -1 − 1 .
Case (ii): x ≥ 1 x \geq 1 x ≥ 1 . Then ∣ x − 1 ∣ = x − 1 |x - 1| = x - 1 ∣ x − 1∣ = x − 1 :
x − 1 x + 2 − 1 > 0 ⟹ − 3 x + 2 > 0 ⟹ x + 2 < 0 ⟹ x < − 2 \displaystyle \frac{x - 1}{x + 2} - 1 > 0 \implies \frac{-3}{x + 2} > 0 \implies x + 2 < 0 \implies x < -2 x + 2 x − 1 − 1 > 0 ⟹ x + 2 − 3 > 0 ⟹ x + 2 < 0 ⟹ x < − 2
This has no common value with x ≥ 1 x \geq 1 x ≥ 1 .
Answer: the solution set is ( − 2 , − 1 2 ) \displaystyle \left(-2, -\frac{1}{2}\right) ( − 2 , − 2 1 ) , and the number of integers is 1 1 1 (namely x = − 1 x = -1 x = − 1 ).
Example 6#
Solve ∣ 12 x 4 x 2 + 9 ∣ ≤ 1 \displaystyle \left|\frac{12x}{4x^2 + 9}\right| \leq 1 4 x 2 + 9 12 x ≤ 1 .
The denominator 4 x 2 + 9 4x^2 + 9 4 x 2 + 9 is always positive, so the inequality is 12 ∣ x ∣ 4 x 2 + 9 ≤ 1 \displaystyle \frac{12|x|}{4x^2 + 9} \leq 1 4 x 2 + 9 12∣ x ∣ ≤ 1 , that is, 12 ∣ x ∣ ≤ 4 x 2 + 9 12|x| \leq 4x^2 + 9 12∣ x ∣ ≤ 4 x 2 + 9 .
Case (i): x < 0 x < 0 x < 0 . − 12 x ≤ 4 x 2 + 9 -12x \leq 4x^2 + 9 − 12 x ≤ 4 x 2 + 9 , so 4 x 2 + 12 x + 9 ≥ 0 4x^2 + 12x + 9 \geq 0 4 x 2 + 12 x + 9 ≥ 0 , that is, ( 2 x + 3 ) 2 ≥ 0 (2x + 3)^2 \geq 0 ( 2 x + 3 ) 2 ≥ 0 : true for all real x x x . Common values: ( − ∞ , 0 ) (-\infty, 0) ( − ∞ , 0 ) .
Case (ii): x ≥ 0 x \geq 0 x ≥ 0 . 12 x ≤ 4 x 2 + 9 12x \leq 4x^2 + 9 12 x ≤ 4 x 2 + 9 , so ( 2 x − 3 ) 2 ≥ 0 (2x - 3)^2 \geq 0 ( 2 x − 3 ) 2 ≥ 0 : always true. Common values: [ 0 , ∞ ) [0, \infty) [ 0 , ∞ ) .
Answer: x ∈ ( − ∞ , 0 ) ∪ [ 0 , ∞ ) = R x \in (-\infty, 0) \cup [0, \infty) = \mathbb{R} x ∈ ( − ∞ , 0 ) ∪ [ 0 , ∞ ) = R .
A sum of moduli equal to zero#
Example 7#
Solve ∣ x − 1 ∣ + ∣ x − 2 ∣ = 0 |x - 1| + |x - 2| = 0 ∣ x − 1∣ + ∣ x − 2∣ = 0 .
Each modulus is at least 0 0 0 , so their sum is 0 0 0 only if both are 0 0 0 : x = 1 x = 1 x = 1 and x = 2 x = 2 x = 2 at the same time. No number does both. No real x x x satisfies the equation.
Practice#
Solve ∣ x 2 − 3 x + 2 ∣ + ∣ x 2 − 5 x + 6 ∣ = 2 ∣ x − 2 ∣ |x^2 - 3x + 2| + |x^2 - 5x + 6| = 2|x - 2| ∣ x 2 − 3 x + 2∣ + ∣ x 2 − 5 x + 6∣ = 2∣ x − 2∣ .
Solve ∣ x + 1 x ∣ ≥ 2 \displaystyle \left|x + \frac{1}{x}\right| \geq 2 x + x 1 ≥ 2 .
Solve ∣ x − ∣ x − 2 ∣ ∣ = 2 |x - |x - 2|| = 2 ∣ x − ∣ x − 2∣∣ = 2 .
Solve ∣ x + 2 ∣ x − 1 > 1 \displaystyle \frac{|x + 2|}{x - 1} > 1 x − 1 ∣ x + 2∣ > 1 .
Solve ∣ x ∣ + ∣ x − 1 ∣ = 0 |x| + |x - 1| = 0 ∣ x ∣ + ∣ x − 1∣ = 0 .
Solve ∣ x − 3 ∣ + ∣ 2 x + 1 ∣ = 0 |x - 3| + |2x + 1| = 0 ∣ x − 3∣ + ∣2 x + 1∣ = 0 .
Solve ∣ 2 x x 2 + 1 ∣ ≤ 1 \displaystyle \left|\frac{2x}{x^2 + 1}\right| \leq 1 x 2 + 1 2 x ≤ 1 .
Find the number of integers satisfying ∣ x − 2 ∣ x + 1 > 1 \displaystyle \frac{|x - 2|}{x + 1} > 1 x + 1 ∣ x − 2∣ > 1 .
Find the number of integers satisfying ∣ x ∣ + ∣ 9 − x 2 x ∣ = ∣ 9 x ∣ \displaystyle |x| + \left|\frac{9 - x^2}{x}\right| = \left|\frac{9}{x}\right| ∣ x ∣ + x 9 − x 2 = x 9 .
Answers#
Show answers
Let A = ( x − 1 ) ( x − 2 ) A = (x - 1)(x - 2) A = ( x − 1 ) ( x − 2 ) and B = ( x − 2 ) ( x − 3 ) B = (x - 2)(x - 3) B = ( x − 2 ) ( x − 3 ) . Then A − B = 2 x − 4 A - B = 2x - 4 A − B = 2 x − 4 , so the right side is ∣ A − B ∣ |A - B| ∣ A − B ∣ . The equation holds when A B ≤ 0 AB \leq 0 A B ≤ 0 : ( x − 1 ) ( x − 2 ) 2 ( x − 3 ) ≤ 0 (x - 1)(x - 2)^2(x - 3) \leq 0 ( x − 1 ) ( x − 2 ) 2 ( x − 3 ) ≤ 0 , which gives x ∈ [ 1 , 3 ] x \in [1, 3] x ∈ [ 1 , 3 ] .
For x > 0 x > 0 x > 0 , x + 1 x − 2 = ( x − 1 ) 2 x ≥ 0 \displaystyle x + \frac{1}{x} - 2 = \frac{(x - 1)^2}{x} \geq 0 x + x 1 − 2 = x ( x − 1 ) 2 ≥ 0 ; for x < 0 x < 0 x < 0 , x + 1 x + 2 = ( x + 1 ) 2 x ≤ 0 \displaystyle x + \frac{1}{x} + 2 = \frac{(x + 1)^2}{x} \leq 0 x + x 1 + 2 = x ( x + 1 ) 2 ≤ 0 . So the inequality holds for every x ≠ 0 x \neq 0 x = 0 : x ∈ R − { 0 } x \in \mathbb{R} - \{0\} x ∈ R − { 0 } .
x − ∣ x − 2 ∣ = 2 x - |x - 2| = 2 x − ∣ x − 2∣ = 2 gives ∣ x − 2 ∣ = x − 2 |x - 2| = x - 2 ∣ x − 2∣ = x − 2 , so x ≥ 2 x \geq 2 x ≥ 2 . x − ∣ x − 2 ∣ = − 2 x - |x - 2| = -2 x − ∣ x − 2∣ = − 2 gives ∣ x − 2 ∣ = x + 2 |x - 2| = x + 2 ∣ x − 2∣ = x + 2 : for x < 2 x < 2 x < 2 , 2 − x = x + 2 2 - x = x + 2 2 − x = x + 2 gives x = 0 x = 0 x = 0 ; for x ≥ 2 x \geq 2 x ≥ 2 it is impossible. Answer { 0 } ∪ [ 2 , ∞ ) \{0\} \cup [2, \infty) { 0 } ∪ [ 2 , ∞ ) .
For x ≥ − 2 x \geq -2 x ≥ − 2 : x + 2 x − 1 − 1 = 3 x − 1 > 0 \displaystyle \frac{x + 2}{x - 1} - 1 = \frac{3}{x - 1} > 0 x − 1 x + 2 − 1 = x − 1 3 > 0 , so x > 1 x > 1 x > 1 . For x < − 2 x < -2 x < − 2 : − x − 2 x − 1 − 1 = − 2 x − 1 x − 1 > 0 \displaystyle \frac{-x - 2}{x - 1} - 1 = \frac{-2x - 1}{x - 1} > 0 x − 1 − x − 2 − 1 = x − 1 − 2 x − 1 > 0 , so 2 x + 1 x − 1 < 0 \displaystyle \frac{2x + 1}{x - 1} < 0 x − 1 2 x + 1 < 0 , giving ( − 1 2 , 1 ) \displaystyle \left(-\frac{1}{2}, 1\right) ( − 2 1 , 1 ) , which misses x < − 2 x < -2 x < − 2 . Answer ( 1 , ∞ ) (1, \infty) ( 1 , ∞ ) .
Both moduli would have to be 0 0 0 , so x = 0 x = 0 x = 0 and x = 1 x = 1 x = 1 together: no real x x x .
This needs x = 3 x = 3 x = 3 and x = − 1 2 \displaystyle x = -\frac{1}{2} x = − 2 1 together: no real x x x .
2 ∣ x ∣ ≤ x 2 + 1 2|x| \leq x^2 + 1 2∣ x ∣ ≤ x 2 + 1 is the same as ( ∣ x ∣ − 1 ) 2 ≥ 0 (|x| - 1)^2 \geq 0 ( ∣ x ∣ − 1 ) 2 ≥ 0 , which is always true. Answer x ∈ R x \in \mathbb{R} x ∈ R .
For x ≥ 2 x \geq 2 x ≥ 2 : x − 2 x + 1 − 1 = − 3 x + 1 > 0 \displaystyle \frac{x - 2}{x + 1} - 1 = \frac{-3}{x + 1} > 0 x + 1 x − 2 − 1 = x + 1 − 3 > 0 needs x < − 1 x < -1 x < − 1 , impossible. For x < 2 x < 2 x < 2 : 2 − x x + 1 − 1 = 1 − 2 x x + 1 > 0 \displaystyle \frac{2 - x}{x + 1} - 1 = \frac{1 - 2x}{x + 1} > 0 x + 1 2 − x − 1 = x + 1 1 − 2 x > 0 , so 2 x − 1 x + 1 < 0 \displaystyle \frac{2x - 1}{x + 1} < 0 x + 1 2 x − 1 < 0 , giving ( − 1 , 1 2 ) \displaystyle \left(-1, \frac{1}{2}\right) ( − 1 , 2 1 ) . The only integer is 0 0 0 , so the number of integers is 1 1 1 .
As in Example 2: x 2 + ∣ x 2 − 9 ∣ = 9 x^2 + |x^2 - 9| = 9 x 2 + ∣ x 2 − 9∣ = 9 , which holds for x ∈ [ − 3 , 3 ] x \in [-3, 3] x ∈ [ − 3 , 3 ] , with x ≠ 0 x \neq 0 x = 0 . The integers are − 3 , − 2 , − 1 , 1 , 2 , 3 -3, -2, -1, 1, 2, 3 − 3 , − 2 , − 1 , 1 , 2 , 3 : there are 6 6 6 .