Absolute value
The absolute value of a number is its distance from zero — never negative, because a distance has no direction. Learn the case-by-case definition, the distance between two numbers written as |a − b|, the properties of the modulus and equations with absolute value.
Before you start
This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:
Where this is used
Real situations where you count exactly the way this lesson teaches:
- Shopping and complaintsA bag of flour should hold 1000 g; the shop scale reads 977 g. The deviation is |977 − 1000| = 23 g — and that is what decides the complaint, because against an allowance of 15 g it makes no difference whether the bag is lighter or heavier.
- Weather forecastingA forecast said 18 °C and the thermometer read 21 °C; the next day it said 15 °C and the reading was 12 °C. Both forecasts were equally wrong: |18 − 21| = 3 and |15 − 12| = 3. Without the modulus the first error would come out as −3 and cancel the second to zero on averaging.
- Quality control and metrologyA shaft must measure 25.00 mm within a tolerance of 0.05 mm. The caliper reads 24.97 mm, so |24.97 − 25.00| = 0.03 mm and the part passes. At a reading of 25.08 mm the modulus gives 0.08 mm and the part is scrapped.
- Software developmentFloating-point numbers are never tested for equality with an equals sign, because 0.1 + 0.2 comes out as 0.30000000000000004. The test used instead is |a − b| < 0.000001 — one number rather than two separate comparisons.
All formulas
Definition
a non-negative number is left alone, a negative one has its sign flipped
Non-negativity
a distance is never negative
Symmetry
opposite numbers sit equally far from zero
Distance between two numbers
the order of subtraction does not change the distance
Products and quotients
the modulus distributes over multiplication and division
Root of a square
not a, because a square root is always non-negative
Triangle inequality
the modulus of a sum never exceeds the sum of the moduli
The lesson on negative numbers said that the distance between two numbers on the line is always positive — but we computed it in words back then: subtract the number further left from the one further right. Mathematics has one sign that replaces that instruction: the absolute value, also called the modulus.
Definition
The absolute value of a number is written with two vertical bars and defined case by case:
In words: a non-negative number is left alone, and a negative one has its sign flipped. The minus in front of on the second line does not make the result negative — it flips the sign of a number that was already negative, so .
Distance from zero
The same formula has a simpler description: is the distance of from zero on the number line.
Two properties follow, and neither has to be memorised separately — the picture shows both:
A distance is never negative, and opposite numbers sit on either side of zero at the same distance from it. The only number whose modulus is zero is zero itself.
The distance between two numbers
If is the distance from zero, then the distance between any two numbers comes from subtracting them and taking the modulus:
The order of subtraction makes no difference precisely because the modulus removes the sign — and the sign is the only thing that would have changed.
Properties of the modulus
The modulus distributes over multiplication and division:
Over addition it does not — and that is the point of the triangle inequality:
For and the left side gives while the right gives . Equality holds only when both numbers share a sign (or one of them is zero): going once left and once right takes you less far from zero than going twice the same way.
The most-used property ties the modulus to the square root:
Not — because a square root is non-negative by definition. For we get , which is and not .
Equations with absolute value
The equation reads as a question: which numbers lie at distance from zero? The answer depends on :
- — two solutions: and ,
- — one solution: ,
- — no solutions, so the solution set is , since a modulus is never negative.
The equation reads the same way: the numbers at distance from , that is and .
Practice
Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.
Common mistakes
- Taking as a general rule — it holds only for . For a negative number the modulus flips the sign.
- Reading as a negative number — if , then . A minus in front of a letter settles nothing about the sign.
- Shortening to — the correct result is ; for the two differ by a sign.
- Distributing the modulus over addition — generally does not equal ; only an inequality holds here.
- Forgetting the second solution — the equation has two solutions, and , not one.
Formula card
Topic: Absolute value
Definition
a non-negative number is left alone, a negative one has its sign flipped
Non-negativity
a distance is never negative
Symmetry
opposite numbers sit equally far from zero
Distance between two numbers
the order of subtraction does not change the distance
Products and quotients
the modulus distributes over multiplication and division
Root of a square
not a, because a square root is always non-negative
Triangle inequality
the modulus of a sum never exceeds the sum of the moduli
