
Han China · Knowledge, Writing and Science
The Nine Chapters and the Yellow Emperor
Photograph by Gary Todd, CC0, via Wikimedia Commons.
The Archives/Han China/Knowledge, Writing and Science
Problem: a town wall is to be built, trapezoidal in section, so many feet at the base, so many at the top, so long. How many labourers for how many days, and how much earth? The answer is given. There is no proof and no theorem, and the method is completely general.
Two Han books are the foundations of two Chinese sciences. The Nine Chapters on the Mathematical Art, Jiuzhang Suanshu, reached its standard form in the first century AD, compiled from older material. It contains 246 problems with answers and methods, arranged by type.
The Yellow Emperor’s Inner Classic, Huangdi Neijing, is a medical work in two parts, compiled over a similar period, presented as a dialogue in which the legendary Yellow Emperor questions his physician Qi Bo. Both are the starting point of a continuous tradition that ran for two thousand years, generating commentaries, refinements and applications. Both are also structurally unlike their Greek counterparts, and the difference is the most interesting thing about them. There is no Chinese Euclid, with definitions, axioms and proofs, and no Chinese Hippocratic corpus of case histories.
What there is instead is a body of methods that work, organised by the problems they solve.
❦On this page
What is in the Nine Chapters

The contents deserve listing, because the range is wider than the reputation. Chapter one, field measurement: areas of rectangles, triangles, trapezoids, circles and segments, with rules for handling fractions including addition, reduction and division. Chapter two, millet and rice: proportional exchange between commodities at fixed rates, which is a tax and market problem.
Chapter three, proportional distribution: dividing quantities in given ratios, for tax assessment and for distributing obligations. Chapter four, what width: finding a side given an area or volume, including square roots and cube roots by an algorithm that extracts digits successively. Chapter five, construction consultations: volumes of prisms, pyramids, wedges, cylinders and cones, applied to earthworks, walls, dykes and canals, with labour and materials calculated.
Chapter six, equitable taxation: distributing tax burdens between districts according to population and distance from the collection point, which produces genuinely complicated proportional problems. Chapter seven, excess and deficit: the method of false position, solving a problem by making two guesses and interpolating. Chapter eight, rectangular arrays: systems of simultaneous linear equations, solved by arranging the coefficients in a square array on the counting board and eliminating systematically. That is Gaussian elimination, in the first century AD, roughly eighteen hundred years before Gauss.
This chapter also introduces negative numbers, with rules for adding and subtracting them, represented on the board by rods of a different colour. That is the earliest known systematic use of negative quantities anywhere. Chapter nine, base and height: right-angled triangles, including the relation between the sides that Europe calls Pythagoras, and a series of surveying problems using similar triangles to measure inaccessible distances.
What the mathematics was for

The problems tell you who the book was written for, and the answer is administrators. A Han official had to assess land areas for tax, calculate grain equivalences between commodities, distribute levies fairly between districts of different size and distance, estimate the labour and earth required for a dyke, check a granary’s capacity, and audit accounts. Every one of those appears in the Nine Chapters as a problem type with a general method.
Chapter six is the clearest case. Its problems distribute tax burdens between districts with different populations at different distances from the collection point, so that the cost of transport is shared equitably. That is not an abstract exercise; it is the daily work of a commandery office.
The excavated administrative documents confirm the connection. Accounts on wooden slips from frontier posts and county offices show exactly these calculations being done, with the same terminology. An older text found in a tomb at Zhangjiashan, the Book of Numbers and Computation, sealed around 186 BC, is a mathematical collection of similar type and earlier date, which shows the tradition already established before the Nine Chapters was compiled.
The consequence is a mathematics whose prestige came from its usefulness. Calculation was one of the six arts a gentleman was supposed to know, alongside ritual, music, archery, charioteering and writing, and it sat among the practical skills rather than the contemplative ones. That is the reverse of the Greek position, where Plato valued geometry precisely because it was useless, and it is probably the single most important difference between the two traditions.
How it is written
The form is what separates this tradition from the Greek one and it needs describing carefully. Each entry gives a problem with specific numbers, states the answer, and then gives the rule, the shu, which is a general procedure expressed in words. There is no proof in the text itself. There is no statement of a theorem apart from its application.
That absence has been used to argue that Chinese mathematics was merely practical, a collection of recipes without theory. The argument does not survive contact with the commentaries. Liu Hui, writing in 263 AD, produced a commentary on the Nine Chapters that supplies exactly what the base text lacks: demonstrations.
He argues by dissection, showing that a figure can be cut up and reassembled into another of known area. He handles the volume of a pyramid with a limiting argument that decomposes it into ever smaller pieces. He calculates pi by inscribing polygons in a circle, doubling the number of sides repeatedly, reaching a value of 3.1416 and explaining the method rather than asserting the result.
Zu Chongzhi, in the fifth century, pushed the same method to give pi between 3.1415926 and 3.1415927, which nobody improved on for nearly a thousand years. So the demonstrations exist. They sit in the commentary layer rather than the canonical text, which is a difference of literary convention rather than of intellectual capacity, and reading only the base text gives a badly misleading impression.
Doing the arithmetic

The physical method matters, because it shaped what was easy and what was hard. Han calculation was done with counting rods on a flat surface, not with a written notation. The rods are small sticks of bamboo, bone or metal. Numbers are represented positionally: units in the rightmost column, tens in the next, and so on, with the digits one to nine formed by arrangements of rods, alternating between vertical and horizontal orientation column by column so that adjacent numbers can be told apart.
An empty column is an empty space, which is a place-value system with a positional zero represented by absence. That layout makes certain operations very natural. Solving simultaneous equations by arranging coefficients in a grid and manipulating columns is obvious on a counting board and awkward in prose.
It also makes algebra develop differently. Chinese mathematicians worked with arrays of numbers and procedures on them, rather than with symbolic expressions, and got a long way with it: by the thirteenth century they were solving polynomial equations of high degree numerically. The abacus, which most people picture, is later. It replaces rods with beads on rods in a frame and becomes standard from about the fourteenth century.
The Inner Classic

The medical foundation is a different kind of book and the same kind of tradition. The Huangdi Neijing is in two parts, the Basic Questions and the Divine Pivot, and it is presented as dialogue: the Yellow Emperor asks, Qi Bo explains. Its framework is the correlative cosmology described elsewhere in this set. The body is a small version of the world, governed by qi, yin and yang and the five phases.
Health is balance and free circulation. Illness is imbalance, blockage, depletion or repletion, and it can be caused by external factors, by emotions, by diet, by overwork and by sexual excess. Diagnosis works by looking, listening and smelling, questioning, and palpating, above all the pulse, which is read at several positions on each wrist at three depths, giving a large number of distinguishable qualities.
Treatment restores balance: needling at points on the channels, moxibustion, drugs, diet, massage and regulated conduct. Two things are worth emphasising. The text explicitly rejects demonic causation of illness, which was the standard popular explanation, and argues for natural causes, which is a considerable claim for the period.
And it is preventive in orientation. The often-quoted line has it that treating an illness after it has developed is like digging a well after becoming thirsty, and the superior physician treats what has not yet arisen.
Where the two meet

The Mawangdui manuscripts connect the strands and they changed the field. The medical texts from Mawangdui tomb 3, sealed in 168 BC, are earlier than the Inner Classic and they show the tradition at an earlier stage. They describe eleven channels rather than the later twelve, and they prescribe cauterisation along them rather than needling. Acupuncture proper is not there.

That finding reordered the history of the practice. The theory of channels came first; the fine metal needles came later, and the earliest needles found archaeologically are from the Mancheng tomb of 113 BC, a set of nine in gold and silver. The Mawangdui texts also include a pharmacological work listing some two hundred and fifty substances with their preparations, recipes for particular complaints, a text on exercise with the illustrated chart of forty-four figures, works on sexual practice framed as health regimen, and a treatise on childbirth.
Much of it is recipe literature with magical elements alongside pharmacological ones, and the mixture is itself informative: the sharp distinction between medicine and magic that the Inner Classic asserts was a programme, not a description. Later Han medicine produced two more foundational works. The Divine Farmer’s Classic of Materia Medica, the first Chinese pharmacopoeia, classifying substances by grade. And Zhang Zhongjing’s Treatise on Cold Damage, written around 200 AD after, he says, two thirds of his own clan died in an epidemic, which is a clinical work organising treatment by the pattern of symptoms and which is still used.
What kind of knowledge
A closing assessment, because the comparison with Greece is usually made badly. Greek mathematics is deductive, axiomatic and concerned with proof of general propositions about idealised objects. Chinese mathematics is algorithmic, concerned with methods that solve classes of problem, with the justification in the commentaries.
Greek medicine produced case histories, theories of the humours, and anatomical dissection. Chinese medicine produced a systematic physiology of circulation, an elaborate diagnostic technique, and almost no anatomy, because the body was not routinely opened. Neither pair is straightforwardly better. The Chinese algebraic tradition solved problems the Greeks could not touch, and the Greek geometrical tradition proved things the Chinese did not attempt.
In medicine the comparison is harder to make, because both traditions had theories that are wrong and practices some of which worked. Chinese pulse diagnosis is a genuine skill acquired over years; Chinese pharmacology produced a very large body of empirical results, one of which, artemisinin from sweet wormwood, was extracted in the 1970s from a fourth-century recipe and won a Nobel Prize in 2015. What both Chinese traditions had that the Greek ones did not is continuity. The Nine Chapters and the Inner Classic were still being commented on, taught and applied in the nineteenth century, an unbroken line from the Han.
That is partly a consequence of the examination system, of printing, and of a literate bureaucracy that preserved texts. It is also why Chinese science looks cumulative rather than revolutionary: each generation added commentary to a canon rather than replacing it, which is very good at preserving knowledge and less good at discarding it.
Sources
Ancient
- Jiuzhang Suanshu, the Nine Chapters, with Liu Hui’s commentary of 263 AD
- Huangdi Neijing, the Basic Questions and the Divine Pivot
- The Mawangdui medical manuscripts; Zhang Zhongjing, Shanghan Lun
Modern
- Karine Chemla and Guo Shuchun, Les neuf chapitres, 2004
- Joseph Needham, Science and Civilisation in China, volume 3
- Donald Harper, Early Chinese Medical Literature, 1998
- Paul Unschuld, Huang Di Nei Jing Su Wen, 2003
New civilisations are announced by email as they are written.
Passages may be quoted with my name and a link to the page, and copies may be handed out in a classroom, lecture or study group as long as the site’s name stays on them. Please ask first before republishing a whole essay or Archives page, translating one, or using the writing in anything that is sold. Use for training machine-learning systems is not permitted. The details are on Using this site.
Images are credited individually; rights remain with their holders.