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
  1. Is −5 less than 3?
  2. Is a debt of 5,000 CZK less than a debt of 300 CZK?
  3. Is a frost of −20 °C “more” than a frost of −10 °C?
  4. Is the walk from zero to −5 longer than the walk from zero to +5?
  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
  1. Euclidc. 300 BCA line segment has a length. A length can be greater or smaller, but negative? That is not mathematics, that is nonsense.
  2. 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.
  3. Diophantus3rd c.I got the equation 4 = 4x + 20. It would give x = −4. That is absurd. I must have set the problem badly.
  4. 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.
  5. Brahmagupta628By the way, zero divided by zero is zero.
  6. 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.
  7. 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.
  8. 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.
  9. Weierstrass1841In words? That takes forever. I just put two vertical bars around the expression.
  10. 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 sliders
Anna’s account
balance
size of the amount
Ben’s account
balance
size of the amount

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 markers
change with sign
distance travelled

A 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 4

0position (can be negative)
0steps walked (only grows)
0distance from zero

Level 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?

  1. 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|.
  2. 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|).
  3. Is −20 °C more frost?
    Yes: the temperature is lower, but “frost” is a size, and that size is larger.
  4. 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|.
  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

xx + 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 8
Step 0Try substituting

Move x and watch both sides of the equation.

left side |x − 2| + |x + 2|
right side 2x + 2

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.

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

Back to contents