Chapter X
Absolute value
How a debt became a distance
MDCCCXLI
“Ich bezeichne den absoluten Betrag einer complexen Grösse x mit |x|.”
“I denote the absolute value of a complex quantity x by |x|.”
Karl Weierstrass, footnote, 1876
Question
How far? And in which direction?
In the morning the thermometer reads −12 °C, in the afternoon −3 °C. Did it get warmer or colder? And by how much? Your bank account shows −5,000 CZK, your friend’s shows −300 CZK. Who has more money? And who has the bigger problem?
Both questions can be answered quickly, but notice that each of them asks about two different things. Once we care about which direction (warm or cold; savings or debt). The other time we only care about how much.
Before you read on, try to answer. Nobody is grading you; puzzling things out is part of the process.
Yes or no?
we will remember your answers- Is −5 less than 3?
- Is a debt of 5,000 CZK less than a debt of 300 CZK?
- Is a frost of −20 °C “more” than a frost of −10 °C?
- Is the walk from zero to −5 longer than the walk from zero to +5?
- Is a distance ever negative?
Your answers are being recorded. You will see them, dear reader, further down in IV. Formula, right next to the explanations.
If some of the answers feel debatable, that is fine. The number −5 carries two pieces of information at once: the sign tells the direction, the digit 5 tells the size. This whole chapter is about how mathematicians learned to separate those two pieces of information. It took them more than two thousand years.
People
Two thousand years of arguing about negative numbers
Absolute value has no single inventor. It is more like a relay race: geometers knew what a length was; reckoners learned to work with debts; algebraists argued whether a negative result could count as a solution; and only the analysts of the 19th century needed to measure “the size of a deviation” so often that they gave it a symbol. Imagine they could all write to each other in a group chat.
Negative numbers ❦ group
300 BC – 1876- Euclidc. 300 BCA line segment has a length. A length can be greater or smaller, but negative? That is not mathematics, that is nonsense.
- Liu Hui263In China we calculate with rods. Red ones are gain, black ones are loss. How many rods lie on the table is the size; the colour is the direction.
- Diophantus3rd c.I got the equation 4 = 4x + 20. It would give x = −4. That is absurd. I must have set the problem badly.
- Brahmagupta628Why absurd? Fortune and debt. A debt subtracted from zero is a fortune. A debt times a debt is a fortune. You can calculate with them perfectly well.
- Brahmagupta628By the way, zero divided by zero is zero.
- Bhāskara IIc. 1150I am not sure what to do with division by zero either: for me a number divided by zero is infinite. But I agree about negative numbers. Just not always: in the problem about the monkeys I got 50 and 5. I did not take the 5, because with it the fifth of the troop minus three would be negative. People do not approve of negative quantities.
- Argand1806I draw numbers in the plane. I call the length of the arrow from the origin its module. And by the word “absolute” I mean distance regardless of direction.
- Cauchy1821With limits I constantly need to know how far a number is from its target. I call it valeur numérique, the numerical value. I write it out in words.
- Weierstrass1841In words? That takes forever. I just put two vertical bars around the expression.
- Weierstrass1876And so that nobody is left guessing, I say it in a footnote: I denote the absolute value of the quantity x by |x|.
The lines are free paraphrases, not literal quotations. The dates follow the sources at the end of the chapter.
§Character cards
Click a name and the card opens.
Euclid c. 300 BC, Alexandria
Author of the Elements, the most influential textbook in history. He works with line segments, lengths and their ratios. For him the length of a segment is always positive; a negative number has no place to live in his world. That is the oldest root of our idea: a distance cannot be negative. Euclid did not, however, know absolute value as an operation.
Liu Hui and The Nine Chapters on the Mathematical Art China, before 263
The Chinese textbook Nine Chapters grew over generations; in 263 Liu Hui wrote a commentary on it. Officials and merchants calculated with rods on a counting board: red rods stood for positive numbers, black ones for negative numbers. The colour of the rod is the sign, the number of rods is the size, which is what we now call the absolute value.
Diophantus of Alexandria 3rd century
Author of the Arithmetica, one of the first books in which equations are written with abbreviations. Negative results, however, he rejected. When the equation 4 = 4x + 20 gave him x = −4, he called it absurd. He then framed his problems so that no negative result would come out.
Brahmagupta 598–670, India
Indian astronomer and mathematician. In the Brāhmasphuṭasiddhānta (628) he set out rules for calculating with positive and negative numbers and with zero. He called positive numbers fortunes and negative numbers debts. For him a negative number is no longer an awkward result of subtraction, but a quantity in its own right. And even the great make mistakes: he claimed that 0 : 0 = 0.
Bhāskara II 1114–1185, India
In the Bījagaṇita (Algebra, around 1150) he calculates with negative numbers with complete confidence and knows that a positive number has two square roots. Yet in the problem about a troop of monkeys, which gave two roots, 50 and 5, he rejects the second: for 5 monkeys “the fifth of the troop minus three” would be negative, and that does not fit the problem. Remember him, we will need him in the Workshop. When you solve equations with absolute values, you will do exactly the same thing.
Jean-Robert Argand 1768–1822, Geneva and Paris
An amateur mathematician from Geneva who worked in Paris as a bookkeeper. In 1806 he published, without his name, a slim book in which he drew complex numbers as points in the plane. He called the length of the arrow from the origin its module and used the word “absolute” for distance considered apart from direction. So the word existed before the symbol.
Augustin-Louis Cauchy 1789–1857, Paris
In his famous Cours d’analyse (1821) he explained the limit in the way it was then taught throughout the 19th century: the values approach the target so that they differ from it by as little as we like. For that he needed to measure the size of a difference. He called it valeur numérique, the numerical value, and wrote it out in words; he did not yet use vertical bars.
Karl Weierstrass 1815–1897, Berlin
For many years he taught at a grammar school and only became a famous Berlin professor in his forties. The vertical bars appear in his paper dated 1841 and again in a work from 1859. Both, however, were printed only in 1894 in his collected works. Then in 1876 he explicitly wrote in a footnote what the symbol |x| means.
So who invented absolute value?
Nobody on their own. The idea of a non-negative length was already Euclid’s. Separating the sign from the size was something Chinese reckoners and Brahmagupta could do. Argand uses the word “absolute” for distance without direction. The symbol |x| first appears, according to the traditional account, with Weierstrass.
But note that there is the “oldest known manuscript” (1841), the “first printing” (1894) and the “first explicit explanation” (1876). Historians carefully keep them apart. And recent research adds two complications. Weierstrass apparently revised the 1841 text substantially before printing it in 1894, so the date is uncertain. And the Berlin mathematician August Leopold Crelle had already used vertical bars in 1823, but nobody took them up at the time.
Idea
Absolute value is distance
The whole chapter can be summed up in one sentence: absolute value is the algebraic notation for the geometric idea of distance. Let us get a feel for it step by step.
§Fortune and debt
Brahmagupta’s ledger
move the slidersAnna’s account
Ben’s account
Set one account to −5,000 CZK and the other to −300 CZK. Who has more money? The one with −300 CZK, because −300 > −5,000. Who has the bigger problem? The one with −5,000 CZK, because their debt is larger.
Both answers are correct; they just answer different questions. The first compares the numbers including their sign. The second compares only their size, that is, their absolute value: |−300| = 300, |−5,000| = 5,000.
§Lift and thermometer
Thermometer or lift
drag the markersA building with underground garages has floors −3 to 10. The lift goes from the garage on floor −2 up to the fifth floor. How many floors did it travel? Seven. And when it goes back down from the fifth floor to −2? Seven again. The change of floor is +7 one time and −7 the other, but the distance travelled is 7 each time.
The same holds for the thermometer: from −12 °C to −3 °C it got 9 degrees warmer, because |−3 − (−12)| = 9. In general, the distance between two numbers a and b on the number line is
|a − b|, and always |a − b| = |b − a|.
The order does not matter, just as it does not matter whether you ride the lift up or down.
§The walker on the number line
The walker and the treasure map
level 1 of 4Level 1 – Where is the treasure? The walker stands on zero. The map says: The treasure lies five steps from here. Try going both left and right. A chest appears on −5 and on +5. The positions are different, but the number of steps is 5 each time. The position is x, the number of steps is |x|. That is why the equation |x| = 5 has two solutions: x = 5 and x = −5.
Level 2 – A different start. Now the walker starts at the tree on number 3 and the treasure is five steps from the tree. The chests are on 8 and on −2. The number of steps from the tree is the distance from 3, that is |x − 3|. The equation |x − 3| = 5 can be read in plain words: “Which numbers are exactly 5 away from three?”
Level 3 – How far can he go? The walker has the strength for at most 5 steps from the tree. Every place he reaches gets coloured. The result is the segment from −2 to 8. That is exactly the solution of the inequality |x − 3| ≤ 5.
Level 4 – Two trees. The trees stand on −2 and on 1. The walker counts how many steps it is to the first tree and how many to the second, and adds the two numbers. We are looking for the places where this gives exactly 3, that is, where the equation |x + 2| + |x − 1| = 3 holds. Try different places. Outside the trees you always get more than 3. But anywhere between the trees you get exactly 3, because the distance between the trees is 3. So the equation |x + 2| + |x − 1| = 3 has neither one nor two solutions, but the whole interval [−2, 1].
How to read absolute value
| |x| | the distance of the number x from zero |
| |x − a| | the distance of the number x from the number a |
| |x + a| = |x − (−a)| | the distance of the number x from the number −a |
Formula
What absolute value is
The distance from zero can be written down without a picture. If a number is positive or zero, it already is its own distance. If it is negative, it is enough to flip its sign.
|x| =x,if x ≥ 0−x,if x < 0
Beware of a common mistake: the “−x” in the second line is not a negative number. When x is negative, say x = −7, then −x = −(−7) = 7. The second line is Brahmagupta’s rule: a debt subtracted from zero is a fortune.
§Handy properties
- |x| ≥ 0a distance is never negative (Euclid)
- |x| = |−x|−5 and +5 are equally far from zero (the walker)
- |a − b| = |b − a|up or down in the lift, it is the same number of floors
- |a · b| = |a| · |b|the size of a product is the product of the sizes
- |a + b| ≤ |a| + |b|a detour is never shorter (the triangle inequality)
§And your answers from the beginning?
- Is −5 less than 3?
Yes. On the number line −5 lies to the left of 3. In size, however, 5 is larger: |−5| > |3|. - Is a debt of 5,000 CZK less than a debt of 300 CZK?
It depends on what you are asking. The balance is smaller (−5,000 < −300), but the debt itself is larger (|−5,000| > |−300|). - Is −20 °C more frost?
Yes: the temperature is lower, but “frost” is a size, and that size is larger. - Is the walk from zero to −5 longer than to +5?
No. Both walks are five steps; they differ only in direction. That is |−5| = |5|. - Is a distance ever negative?
No. That is why absolute value is never negative either.
❦A treat to finish
Cauchy’s “numerical value”, once written out in words, lives on today in a formula every student of analysis learns. A sequence an has the limit L if for every ε > 0 there is an N such that for all n > N
|an − L| < ε.
In plain words: the terms of the sequence eventually come arbitrarily close to L. And Argand’s module? For a complex number z = a + bi,
|z| = √(a2 + b2),
which is again a distance, this time from the origin in the plane.
Workshop
Equations with absolute values
Now you know what absolute value means. In the Workshop we will use it on the kind of equations you meet at school. We will start by substituting numbers and finish with a method that always works.
1Try substituting: |x + 1| = 5
Try some numbers, for example 0, 2, 4, −3… For each, work out x + 1, then |x + 1|, and compare it with five.
The substitution machine
enter any x| x | x + 1 | |x + 1| | = 5? |
|---|
Did you find x = 4? Well done. Is it the only solution?
Keep trying. A second green dot appears on the number line: x = −6, because |−6 + 1| = |−5| = 5. Notice where they lie: both are exactly 5 away from −1. The equation |x + 1| = 5 asks: “Which numbers are 5 away from −1?” That is the walker from level 2.
Why substituting is not enough
Here we were lucky: the solutions were whole numbers close to zero. But what about the equation |x − 2| + |x + 2| = 2x + 2? We cannot try infinitely many numbers. We need a method that examines all x at once.
2Step by step: |x − 2| + |x + 2| = 2x + 2
Step-by-step solver
step 0 of 8Step 0Try substituting
Move x and watch both sides of the equation.
Why?
At x = 1 the left side is |−1| + |3| = 4 and the right side is 2 · 1 + 2 = 4. A match! You have found one solution. But how do you know there is no other? There are infinitely many numbers between −5 and 5, and more beyond them. That is why we need a method.
Step 1What is actually in our way?
Absolute value is a machine with two outputs: if the inside is positive or zero, it returns it unchanged; if it is negative, it flips its sign. Try putting 5 into |x − 2|: the inside is 3, the result 3. Then put in −1: the inside is −3, the result 3.
Why?
You cannot calculate with absolute value as if it were a bracket. But if we knew the sign of the inside, we could replace the bars either with an ordinary bracket or with a bracket with a minus in front. The whole method is just about finding out those signs.
A common mistake: “I’ll just delete the bars”
Then you get x − 2 + x + 2 = 2x + 2, that is 2x = 2x + 2, and so 0 = 2. That would mean the equation has no solution. But we have just checked x = 1. The bars cannot simply be deleted.
Step 2Critical points: where the sign switches
Move x and watch two indicator lights: the sign of x + 2 and the sign of x − 2. Where does a light switch?
The expression x − 2 can change sign only where it passes through zero: x − 2 = 0, that is x = 2. The expression x + 2 switches at x + 2 = 0, that is x = −2.
Why?
A critical point is a switch. For expressions like x − 2 the expression is negative to its left and positive to its right. And for the walker: |x − 2| is the distance from the tree on number 2. The critical point is the tree itself.
Step 3Intervals: cutting the number line
The critical points −2 and 2 cut the number line into three pieces: I. (−∞, −2), II. [−2, 2), III. [2, ∞). Move x inside one piece: the lights do not change.
Why?
Inside each piece, each expression stays positive or stays negative. So instead of one hard equation we solve three easy ones, each on its own piece of the line.
And where does the point −2 itself belong? It does not matter, as long as you do not leave it out. At a critical point the inside equals zero, and both outputs of the machine (A and −A) give the same thing. Choose one convention and stick to it.
Step 4The table: bookkeeping for signs
Take one test number in each interval and substitute it. The sign that comes out holds for the whole interval.
| (−∞, −2) | [−2, 2) | [2, ∞) | |
|---|---|---|---|
| test number | −3 | 0 | 3 |
| x + 2 | − | + | + |
| x − 2 | − | − | + |
| |x + 2| = | −x − 2 | x + 2 | x + 2 |
| |x − 2| = | −x + 2 | −x + 2 | x − 2 |
| left side | −2x | 4 | 2x |
Why a table?
It is not compulsory for your teacher’s sake, but for yours. It guards two things: that you have not forgotten any interval and that you have not got any sign wrong. With two absolute values that makes three intervals and six decisions. It is easy to slip up doing it in your head.
Step 5Three small equations
| interval | equation without absolute values | result |
|---|---|---|
| I. (−∞, −2) | −2x = 2x + 2 | x = −1/2 |
| II. [−2, 2) | 4 = 2x + 2 | x = 1 |
| III. [2, ∞) | 2x = 2x + 2 | 0 = 2, contradiction |
In interval III we got 0 = 2. That holds for no x, so there is no solution here.
Why?
Each row of the table says: if x lies in this interval, then this equation holds. The word if is important. We will come back to it in the next step.
And what if we got, say, 3 = 3?
Then the equality would hold for every x in that interval, and the whole interval would be the solution. That is exactly what happens with the equation |x + 2| + |x − 1| = 3. Remember the walker with two trees.
Step 6Does the result belong to its interval?
This is the step people skip most often. And yet it is the most important one.
The result x = −1/2 came from interval I, that is, on the assumption that x < −2. But −1/2 is not less than −2. It lands outside its interval. We throw it away.
The result x = 1 came from the interval [−2, 2) and really belongs to it. We keep it.
Why?
We set up the equation −2x = 2x + 2 on the assumption that x < −2. Only then is |x + 2| = −x − 2. For x = −1/2 that is not true, so for it we solved a completely different equation from the real one. It is like a key that fits the lock, but on a different door.
Don’t believe it? Put −1/2 into the original equation: on the left |−2.5| + |1.5| = 4, on the right 2 · (−1/2) + 2 = 1. Four is not equal to one.
Bhāskara would agree
Almost nine hundred years ago, the problem about the monkeys gave Bhāskara two roots, 50 and 5, and he threw away the 5. It did satisfy the equation, but it did not belong to the problem. You are doing the same. Only instead of the condition “the fifth of the troop minus three must not be negative” you check the condition “x must lie in the interval”.
Step 7The result and the graph
The equation has a single solution: S = {1}.
y = |x − 2| + |x + 2| y = 2x + 2 ghosts
The left side of the equation is a broken line: on the left it falls (y = −2x), in the middle it is horizontal (y = 4), on the right it rises (y = 2x). The right side is the line y = 2x + 2. They intersect only at the point (1, 4). The graph explains all three rows of the table:
- Interval I: the line only meets the dashed extension of the left piece (the ghost), at x = −1/2. That piece does not really exist, which is why we threw the root away.
- Interval II: a real intersection at x = 1.
- Interval III: the right piece y = 2x and the line y = 2x + 2 are parallel. They never meet, which is why we got 0 = 2.
Step 8The method on one card
- Find the critical points. Only there can an expression change sign.
- Split the number line into intervals. Inside an interval the signs do not change.
- Fill in the table. So that you leave nothing out and get nothing wrong.
- In each interval, solve the equation without absolute values.
- Check that the result lies in its interval. Otherwise you solved an equation that does not hold for it.
- Combine the results and, to be safe, check them.
3Your turn
Three equations, three different kinds of result. Try to solve them and only then open the solution.
|x + 2| + |x − 1| = 3 – hint: two trees
Critical points −2 and 1. On the left we get −2x − 1 = 3, so x = −2, which does not belong to (−∞, −2). In the middle we get 3 = 3 for every x. On the right we get 2x + 1 = 3, so x = 1, which belongs to [1, ∞).
Solution: the whole interval [−2, 1].
|x| − |x − 1| = 2 – hint: by how much can the distances from 0 and from 1 differ?
The points 0 and 1 are 1 apart. The distances of any number from them therefore differ by at most 1. So the left side never exceeds 1.
Solution: none, S = ∅.
|x − 3| + 3|x − 1| = 2x + 1 – watch out for the 3 in front of the absolute value
Critical points 1 and 3. For x < 1: 6 − 4x = 2x + 1, so x = 5/6, which belongs to the interval. For 1 ≤ x < 3: 2x = 2x + 1, a contradiction. For x ≥ 3: 4x − 6 = 2x + 1, so x = 7/2, which belongs to the interval.
Solution: x = 5/6 and x = 7/2.
ABSOLUTE VALUE
|a − b| = distance from a to b
|x| ≥ 0 |x| = |−x|
The sign says where, the absolute value says how far.
Sources. CAJORI, Florian. A History of Mathematical Notations, vol. 2. Chicago, 1929; A History of Mathematics. New York, 1893. · MILLER, Jeff. Earliest Uses of Function Symbols. MacTutor, University of St Andrews. · VIERTEL, Klaus. The development of the concept of uniform convergence in Karl Weierstrass’s lectures and publications between 1861 and 1886. Archive for History of Exact Sciences 75 (2021), pp. 455–490. · WEIERSTRASS, Karl. Mathematische Werke, vol. I (1894) and II (1895). · HEATH, Thomas L. A History of Greek Mathematics, vol. 2. Oxford, 1921. · COLEBROOKE, Henry T. Algebra, with Arithmetic and Mensuration, from the Sanscrit of Brahmegupta and Bháscara. London, 1817. · STRICK, Heinz Klaus. Bhaskara. MacTutor, 2020. · MacTutor: biographies of Brahmagupta, Bhāskara II and Weierstrass; JONES, Phillip S. Argand, Jean Robert. Dictionary of Scientific Biography. · CAUCHY, Augustin-Louis. Cours d’analyse de l’École Royale Polytechnique. Paris, 1821. · MUMFORD, David. What’s so Baffling About Negative Numbers? In: Studies in the History of Indian Mathematics, 2010.
END OF CHAPTER TEN
Cauchy and Weierstrass return in chapter VI.Functions How mathematicians argued for a hundred years over a single word Back to contents