← Back to course

Math — Mechina

Absolute value

Summary

The absolute value of a number is its distance from zero on the number line, so it is never negative.

∣x∣={x,x≥0−x,x<0|x|=\begin{cases} x, & x\geq 0\\ -x, & x<0 \end{cases}

∣x−a∣|x-a| is the distance between xx and aa. For example, ∣x−3∣<2|x-3|<2 means: xx is less than 22 away from the number 33.

  • ∣x∣=a|x|=a with a>0a>0: x=ax=a or x=−ax=-a. With a<0a<0 — no solution.
  • ∣x∣<a|x|<a: −a<x<a-a<x<a (between the two numbers).
  • ∣x∣>a|x|>a: x<−ax<-a or x>ax>a (outside them).
-4-3-2-1123456-3-2-112345xyy=|x−1|−2(1, -2)(-1, 0)(3, 0)
The graph of ∣x−a∣+b|x-a|+b is a "V" with its vertex at (a,b)(a,b). Here the vertex is (1,−2)(1,-2).

With several absolute values, split the axis into intervals at the points where each expression vanishes, and on each interval open the absolute values without the ∣ ∣|\,| signs.

Question types

1

Simple equation

One absolute value, and a number on the other side.

Worked example

Solve: ∣2x−3∣=5|2x-3|=5.

Solution

  1. 2x−3=52x-3=5 or 2x−3=−52x-3=-5.
  2. x=4x=4 or x=−1x=-1.

Variants of this type · 3

1.1Absolute value equal to a negative number

Worked example

Solve: ∣x+2∣=−3|x+2|=-3.

Solution

IdeaAn absolute value is a distance — never negative.
  1. ∣x+2∣≥0|x+2|\geq 0 for every xx, so it cannot equal −3-3.
  2. No solution.
CheckEvery substitution gives a non-negative number ✓.
Common mistakeSolving "as usual" x+2=±3x+2=\pm 3 and getting false solutions.
1.2Quadratic expression inside the absolute value

Worked example

Solve: ∣x2−4∣=5|x^2-4|=5.

Solution

IdeaTwo cases: the expression equals 55 or −5-5.
  1. x2−4=5x^2-4=5: x2=9x^2=9, that is, x=±3x=\pm 3.
  2. x2−4=−5x^2-4=-5: x2=−1x^2=-1 — no solution.

    Why: A square is never negative.

  3. Answer: x=3x=3 or x=−3x=-3.
Check∣9−4∣=5|9-4|=5 ✓.
Common mistakeForgetting x=−3x=-3.
1.3Absolute value equal to absolute value

Worked example

Solve: ∣2x−1∣=∣x+4∣|2x-1|=|x+4|.

Solution

Idea∣A∣=∣B∣|A|=|B| ⇔ A=BA=B or A=−BA=-B.
  1. 2x−1=x+42x-1=x+4: x=5x=5.
  2. 2x−1=−(x+4)2x-1=-(x+4): 3x=−33x=-3, x=−1x=-1.
Checkx=−1x=-1: ∣−3∣=∣3∣|-3|=|3| ✓; x=5x=5: ∣9∣=∣9∣|9|=|9| ✓.
Common mistakeSplitting into four cases — possible, but the A=±BA=\pm B method is much shorter.
2

Inequality

<< gives one interval "between", and >> gives two intervals "outside".

Worked example

Solve: ∣x−1∣<3|x-1|<3.

Solution

  1. −3<x−1<3-3<x-1<3
  2. Add 11 to all sides: −2<x<4-2<x<4.
-24
All numbers at a distance less than 33 from the number 11.

Variants of this type · 3

2.1"Greater than" inequality

Worked example

Solve: ∣x−1∣>3|x-1|>3.

Solution

Idea∣A∣>k|A|>k (with k>0k>0) ⇔ A>kA>k or A<−kA<-k — "outside" the interval.
  1. x−1>3x-1>3: x>4x>4.
  2. x−1<−3x-1<-3: x<−2x<-2.
  3. Answer: x<−2x<-2 or x>4x>4.
Checkx=0x=0: ∣−1∣=1>3|-1|=1>3 ✗ ✓; x=5x=5: 4>34>3 ✓.
Common mistakeWriting −3<x−1<3-3<x-1<3 — that is the solution of <<.
2.2Absolute value less than or equal to zero

Worked example

Solve: ∣2x+1∣≤0|2x+1|\leq 0.

Solution

IdeaAn absolute value cannot be negative, so only equality is possible.
  1. ∣2x+1∣=0|2x+1|=0 ⇔ 2x+1=02x+1=0.
  2. x=−12x=-\frac{1}{2}.
Check∣2(−12)+1∣=0≤0|2(-\frac{1}{2})+1|=0\leq 0 ✓.
Common mistakeAnswering "no solution" — forgetting the equality case.
2.3Quadratic expression inside the absolute value

Worked example

Solve: ∣x2−5∣<4|x^2-5|<4.

Solution

Idea−4<x2−5<4-4<x^2-5<4 — a double inequality.
  1. x2−5>−4x^2-5>-4: x2>1x^2>1, that is, x<−1x<-1 or x>1x>1.
  2. x2−5<4x^2-5<4: x2<9x^2<9, that is, −3<x<3-3<x<3.
  3. Intersection: −3<x<−1-3<x<-1 or 1<x<31<x<3.
Checkx=2x=2: ∣4−5∣=1<4|4-5|=1<4 ✓; x=0x=0: 5<45<4 ✗ ✓.
Common mistakeSolving only x2<9x^2<9 and forgetting the second condition.
3

Two absolute values

Two expressions in absolute value: split into three intervals by the points where they vanish.

Worked example

Solve: ∣x−1∣+∣x+2∣=5|x-1|+|x+2|=5.

Solution

  1. Zero points: x=−2x=-2 and x=1x=1.
  2. x<−2x<-2: −(x−1)−(x+2)=−2x−1=5-(x-1)-(x+2)=-2x-1=5, so x=−3x=-3. In the interval — valid.
  3. −2≤x<1-2\leq x<1: −(x−1)+(x+2)=3-(x-1)+(x+2)=3, and 3≠53\neq 5 — no solution.
  4. x≥1x\geq 1: (x−1)+(x+2)=2x+1=5(x-1)+(x+2)=2x+1=5, so x=2x=2. In the interval — valid.
  5. Answer: x=−3x=-3 or x=2x=2.
-5-4-3-2-11234123456789xyy=5(-3, 5)(2, 5)

Variants of this type · 2

3.1Inequality with two absolute values

Worked example

Solve: ∣x−1∣+∣x+2∣≤5|x-1|+|x+2|\leq 5.

Solution

IdeaThe same split into intervals at −2-2 and 11, solving an inequality on each.
  1. x<−2x<-2: −(x−1)−(x+2)=−2x−1≤5-(x-1)-(x+2)=-2x-1\leq 5, that is, x≥−3x\geq -3. Within the interval: −3≤x<−2-3\leq x<-2.
  2. −2≤x≤1-2\leq x\leq 1: −(x−1)+(x+2)=3≤5-(x-1)+(x+2)=3\leq 5 — always true.

    Why: The whole interval is a solution.

  3. x>1x>1: 2x+1≤52x+1\leq 5, that is, x≤2x\leq 2. Within the interval: 1<x≤21<x\leq 2.
  4. Union: −3≤x≤2-3\leq x\leq 2.
Checkx=2x=2: 1+4=5≤51+4=5\leq 5 ✓; x=3x=3: 2+5=72+5=7 ✗ ✓.
Common mistakeNot intersecting each case's solution with its interval.
3.2Difference of absolute values

Worked example

Solve: ∣x∣−∣x−2∣=1|x|-|x-2|=1.

Solution

IdeaBreak points: 00 and 22.
  1. x<0x<0: −x−(2−x)=−2≠1-x-(2-x)=-2\neq 1 — no solution.
  2. 0≤x<20\leq x<2: x−(2−x)=2x−2=1x-(2-x)=2x-2=1, x=1.5x=1.5 — in the interval ✓.
  3. x≥2x\geq 2: x−(x−2)=2≠1x-(x-2)=2\neq 1 — no solution.
  4. Answer: x=1.5x=1.5.
Check∣1.5∣−∣−0.5∣=1.5−0.5=1|1.5|-|-0.5|=1.5-0.5=1 ✓.
Common mistakeSolving x−(x−2)=1x-(x-2)=1 without checking intervals and getting "no solution".
4

Variable on both sides

The other side is an expression with xx. It must be non-negative, otherwise the solution is rejected.

Worked example

Solve: ∣x−3∣=2x|x-3|=2x.

Solution

  1. Condition: 2x≥02x\geq 0, i.e. x≥0x\geq 0.
  2. x−3=2xx-3=2x gives x=−3x=-3 — rejected, since x<0x<0.
  3. x−3=−2xx-3=-2x gives x=1x=1 — valid.
  4. Check: ∣1−3∣=2=2⋅1|1-3|=2=2\cdot 1. Answer: x=1x=1.
-2-112345-1123456xy|x−3|2x(1, 2)

Variants of this type · 2

4.1Absolute value equal to the expression itself

Worked example

Solve: ∣x+1∣=x+1|x+1|=x+1.

Solution

Idea∣A∣=A|A|=A ⇔ A≥0A\geq 0.
  1. x+1≥0x+1\geq 0.
  2. Answer: x≥−1x\geq -1 — infinitely many solutions.
Checkx=5x=5: 6=66=6 ✓; x=−2x=-2: 1≠−11\neq -1 ✓.
Common mistakeLooking for "one solution" and missing that it is a whole ray.
What if…∣A∣=−A|A|=-A ⇔ A≤0A\leq 0.
4.2Inequality with the variable on both sides

Worked example

Solve: ∣x−3∣<2x|x-3|<2x.

Solution

Idea∣A∣<B|A|<B ⇔ −B<A<B-B<A<B (this already requires B>0B>0).
  1. x−3<2xx-3<2x: x>−3x>-3.
  2. x−3>−2xx-3>-2x: 3x>33x>3, x>1x>1.
  3. Intersection: x>1x>1.
Checkx=2x=2: 1<41<4 ✓; x=1x=1: 2<22<2 ✗ ✓.
Common mistakeSolving only one side of the double inequality.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice