Salick Academy

The Modulus Function

No calculator

∣x∣|x| is the distance of xx from zero, so it discards the sign. That single idea explains why every modulus equation splits into two cases and why every modulus inequality has two shapes.

Definition and graph

∣x∣={xif x≥0−xif x<0|x| = \begin{cases} x & \text{if } x \ge 0 \\ -x & \text{if } x < 0 \end{cases}

So ∣7∣=7|7| = 7 and ∣−7∣=7|-7| = 7. Equivalently,

∣x∣=x2|x| = \sqrt{x^2}

which is often the most useful form, because squaring is how you remove a modulus safely.

The graph of y=∣x∣y = |x| is a V with its vertex at the origin: the line y=xy = x for x≥0x \ge 0, and its reflection y=−xy = -x for x<0x < 0.

Graphs of modulus functions

y=∣f(x)∣y = |f(x)| — sketch y=f(x)y = f(x), then reflect every part below the xx-axis up above it. Nothing above the axis moves.

So y=∣x−2∣y = |x - 2| is the line y=x−2y = x - 2 with the part left of x=2x = 2 folded upwards, giving a V with vertex (2,0)(2, 0).

And y=∣x2−4∣y = |x^2 - 4| is the parabola with the section between x=−2x = -2 and x=2x = 2 flipped above the axis, producing a W-like shape with two sharp corners at (±2,0)(\pm2, 0).

y=f(∣x∣)y = f(|x|) is different: keep the part of the graph for x≥0x \ge 0 and reflect it in the yy-axis, discarding whatever was there before. The result is always symmetric about the yy-axis.

Solving modulus equations

∣A∣=k|A| = k (with k≥0k \ge 0) means A=kA = k or A=−kA = -k. Two cases, both to be solved.

Solve ∣2x−6∣=4|2x - 6| = 4.

2x−6=4⇒x=52x - 6 = 4 \quad \Rightarrow \quad x = 5 2x−6=−4⇒x=12x - 6 = -4 \quad \Rightarrow \quad x = 1

Check both: ∣2(5)−6∣=∣4∣=4|2(5) - 6| = |4| = 4 ✓ and ∣2(1)−6∣=∣−4∣=4|2(1) - 6| = |-4| = 4 ✓

Equations with two moduli

When both sides carry a modulus, squaring both sides is cleanest: it removes both at once, and it is valid because ∣A∣2=A2|A|^2 = A^2.

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

(x−3)2=(2x+1)2(x-3)^2 = (2x+1)^2 x2−6x+9=4x2+4x+1x^2 - 6x + 9 = 4x^2 + 4x + 1 0=3x2+10x−80 = 3x^2 + 10x - 8 (3x−2)(x+4)=0(3x - 2)(x + 4) = 0 x=23orx=−4x = \tfrac23 \quad \text{or} \quad x = -4

Check x=23x = \frac23: ∣23−3∣=73\left|\frac23 - 3\right| = \frac73 and ∣43+1∣=73\left|\frac43 + 1\right| = \frac73 ✓

Check x=−4x = -4: ∣−7∣=7|-7| = 7 and ∣−8+1∣=7|-8+1| = 7 ✓

Modulus inequalities

Two shapes, and they behave quite differently.

∣A∣<k|A| < k means −k<A<k-k < A < k — a single interval, "within kk of zero".

Solve ∣x−2∣<5|x - 2| < 5.

−5<x−2<5-5 < x - 2 < 5 −3<x<7-3 < x < 7

Read it as: xx is less than 5 away from 2.

∣A∣>k|A| > k means A>kA > k or A<−kA < -k — two separate intervals, "further than kk from zero".

Solve ∣x+1∣>3|x + 1| > 3.

x+1>3⇒x>2x + 1 > 3 \quad \Rightarrow \quad x > 2 x+1<−3⇒x<−4x + 1 < -3 \quad \Rightarrow \quad x < -4

The solution is x<−4x < -4 or x>2x > 2 — it cannot be written as one inequality, because the values in between are excluded.

Solve ∣2x−1∣≤7|2x - 1| \le 7.

−7≤2x−1≤7-7 \le 2x - 1 \le 7 −6≤2x≤8-6 \le 2x \le 8 −3≤x≤4-3 \le x \le 4

The triangle inequality

∣a+b∣≤∣a∣+∣b∣|a + b| \le |a| + |b|

The two sides are equal when aa and bb have the same sign, and the left is strictly smaller when they have opposite signs, because some cancellation occurs first.

∣3+5∣=8=∣3∣+∣5∣∣3+(−5)∣=2<∣3∣+∣−5∣=8|3 + 5| = 8 = |3| + |5| \qquad |3 + (-5)| = 2 < |3| + |-5| = 8

A companion result:

∣∣a∣−∣b∣∣≤∣a−b∣\big||a| - |b|\big| \le |a - b|