Ask a child what is, and the first answer is often "you can't do that." For most of history, many mathematicians agreed. Negative numbers did not sit comfortably next to apples and coins. Yet two traditions, far apart and many centuries before European textbooks accepted them, found that a subtraction like was not an error but a number with a name, a colour and a set of rules.
The first is Chinese. Calculation there was done with counting rods, small sticks laid out in rows and columns on a board or table, so that a number could be seen, changed and moved around by hand. The classic textbook of this tradition is The Nine Chapters on the Mathematical Art, a collection of practical problems whose parts are usually dated between about 200 BC and 50 AD. The mathematician Liu Hui wrote a commentary on it that is traditionally dated to 263.
Chapter 8 of the book is where negative numbers become necessary. Its problems are about several unknown amounts at once. The first asks about three kinds of grain: three bundles of the top grade, two of the middle grade and one of the low grade give 39 measures of grain; two, three and one give 34; one, two and three give 26. The book lists the three conditions side by side, in an array of rods, and then reduces the array one step at a time, much as a student today eliminates variables from a system of equations. (The answers, for the curious, are , and measures per bundle, and you can check that each of the three conditions comes out right.)
Watch what happens when two of those conditions are combined. Take the second one, with a total of 34, and subtract two copies of the third, with a total of 26. In modern arithmetic that gives , , and . Somebody doing this with rods will run out of rods to take away. The book solves this with a rule for signed numbers, stated very briefly: numbers "of the same name" are subtracted, numbers "of different names" are added, and taking a positive number from nothing leaves a negative one, while taking a negative number from nothing leaves a positive one. Those rules cover addition and subtraction only. The book does not record rules for multiplying signed numbers.
To tell the two kinds of numbers apart on the table, the rods came in two colours. Chinese sources describe red rods for positive numbers and black rods for negative ones; the eleventh-century Dream Pool Essays says so in a passage about calculation, and a recent news report credits Liu Hui's commentary with the same convention. Painted rods have also been dug up in a Warring States tomb near Xi'an, some with black middles and red ends. The archaeologist who studied them thinks they were probably tallies for rewards and penalties, not calculating tools, so it is safest to call them an early sign of how people sorted "gains" from "losses," and not proof that anyone was doing algebra with them.
The second tradition is Indian. In 628, the astronomer Brahmagupta, who was about thirty years old, completed his Brahmasphutasiddhanta in Bhillamala, in what is now Rajasthan. He called positive numbers fortunes and negative numbers debts, and he treated zero as a number too, the result of subtracting a number from itself. In the translation quoted by MacTutor, his rules read:
"A debt subtracted from zero is a fortune. A fortune subtracted from zero is a debt." "The product or quotient of two debts is one fortune. The product or quotient of a debt and a fortune is a debt."
This goes further than the Chinese rules, because it includes multiplication and division. The rule people find hardest to believe, that two debts make a fortune, can be read as a bookkeeping rule: taking away a debt of 3 coins is a gain of 3, so , and, in the same spirit, while . Brahmagupta was not right about everything. He also tried to extend his rules to division by zero, and MacTutor notes that his claim that zero divided by zero is zero is wrong. Those rules had to wait for later mathematicians.
Europe took far longer to accept negative numbers, and that is a story for another day. For a parent or teacher, the useful part is closer to home. Children who stumble over are in good company, and the two old pictures still work: a debt that is taken away is a gain, and numbers of different names are added. Whether you use red and black counters, money owed and money earned, or a number line, the idea is the same. You can practise it on our integer worksheets, where addition, subtraction, multiplication and division with negative numbers are mixed in on every page.
Sources: J. J. O'Connor and E. F. Robertson, "Brahmagupta", "The Nine Chapters on the Mathematical Art" and "Liu Hui", MacTutor History of Mathematics, University of St Andrews; The Nine Chapters on the Mathematical Art, chapter 8 (Fangcheng), Wikipedia article citing Zhongguo wenming shi, vol. 3 (1992); Wikipedia, "Counting rods", citing Shen Kuo, Mengxi Bitan (Dream Pool Essays); Qin Feng and Chen Meiling, "Key concept of math may have emerged first in China", China Daily, 24 November 2023.