Born: about 1238 in Qiantang (now Hangzhou), Chekiang province, China
Died: about 1298 in China
There is a small amount of information about Yang Hui which he relates in his books. He tells us that he was taught mathematics by Liu I who was a native of Chung-shan, in Kwangtung province, which is south of Chekiang province where Yang Hui was born. Nothing at all is known of Liu I, so this information is less helpful in giving us details of Yang Hui than it might be. Again we know the names of four of Yang's friends who were also interested in mathematics, but again as these men are unknown except for Yang's reference to them. The best guess that historians make is that Yang was a minor Chinese official. Most Chinese scholars of the period were officials, for there were no professional mathematicians, but he could not have held an important post since were he a major official he would appear in records of the dynasty. I [EFR] am less certain about this standard view.
I base my argument on the style and content of Yang's books, for it is clear from these that he was an experienced teacher. More than this, he is writing as a teacher trying to find the most interesting and helpful explanation. Any teacher of mathematics today can identify with what Yang is trying to do here. Of course, this in no way proves that the view of Yang as a minor official is false, indeed he could be an official with responsibility for teaching mathematics, but I suggest that it is more likely that he was an active teacher of mathematics who would have had a group of young students around him.
In 1261 Yang wrote the Xiangjie jiuzhang suanfa (Detailed analysis of the mathematical rules in the Nine Chapters and their reclassifications). He tells us that he had obtained a fine edition of the Nine Chapters on the Mathematical Art which contained notes by Jia Xian on the edition commented on by Liu Hui and later by Li Chunfeng. The notes by Jia Xian have not survived so we know of them only through the references from Yang. What Yang produced was not intended to be a further commentary on the ancient classic but instead he selected 80 of the 246 problems for his discussion. He chose these 80 since he felt that they were representatives of the different techniques which were presented in the Nine Chapters.
Yang's Detailed analysis contained twelve chapters. Nine of the twelve correspond to those of the Nine Chapters but there are three further chapters: one containing geometrical figures, one containing the fundamental methods, and one in which Yang presents a new classification of the problems. Each problem is studied by Yang for three different aspects. Firstly he explains the logic behind the problem, secondly he gives a numerical solution to the problem, and thirdly he shows how the method he has presented can be modified to solve similar problems. For example, if the problem reduced to the solution of a quadratic equation, then Yang would solve it numerically, then show how to solve a general quadratic equation numerically.
Problem 16 in Chapter 7 of the Nine Chapters is as follows:-
Now 1 cubic cun of jade weighs 7 liang, and 1 cubic cun of rock weighs 6 liang. Now there is a cube of side 3 cun consisting of a mixture of jade and rock which weighs 11 jin. Tell: what are the weights of jade and rock in the cube. [Note 1 jin = 16 liang]If there are x cubic cun of jade and y cubic cun of rock in the cube then
7x + 6y = 176
There is other work in Yang's Detailed analysis that we should single out for a mention. He gives what today is called Pascal's triangle, up to the sixth row, saying that he learnt it from Jia Xian's treatise. Yang also gave formulae for the sum of certain series, for example he found the sum of the squares of the natural numbers from m2 to (m+n)2 and showed that
A year after producing Detailed analysis Yang wrote Riyong suanfa (Mathematics for everyday use). Although the text of this has been lost, we know enough about it from quotes in other works to know that it was an elementary text. Yang says that he wrote it:-
... to assist the reader with the numerous matters of daily use and also to instruct the young in observation and practice.In  some of the quotes which allow a partial reconstruction of this work are translated into English. In his text Yang explained:-
... the additive method of multiplication and the subtractive method of division [relative to the] ten problems and their solutions.Over the next years Yang must have continued to produce material for mathematics texts but he published nothing more until 1274 when Cheng Chu Tong Bian Ben Mo which means Alpha and omega of variations on multiplication and division appeared. This was a three chapter work, each chapter having its own title. The first chapter is Fundamental changes in calculation, the second is Computational treasure for variations in multiplications and divisions, and the third, written in collaboration with Shih Chung-yung who was one of his friends, is Fundamentals of the applications of mathematics.
In 1275 two further works by Yang appeared; the Practical mathematical rules for surveying and Continuation of ancient mathematical methods for elucidating strange properties of numbers, both being works of two chapters. All Yang's volumes of 1274 and 1275 were assembled into what were essentially his collected works called Yang Hui suanfa (Yang Hui's methods of computation). An English translation of the Yang Hui suanfa appears in . The topics covered by Yang include multiplication, division, root-extraction, quadratic and simultaneous equations, series, computations of areas of a rectangle, a trapezium, a circle, and other figures. He also gives a wonderful account of magic squares and magic circles which we give more information about below.
One of the more remarkable aspects of this work is the document on mathematics education Xi Suan Gang Mu (A syllabus of mathematics) which prefaced the first chapter of Cheng Chu Tong Bian Ben Mo. Man Keung Siu, reviewing , writes that the syllabus:-
... is an important and unusual extant document in mathematics education in ancient China. Not only does it specify the content and the time-table of a comprehensive study program in mathematics, it also explains the rationale behind the design of such a curriculum. It emphasizes a systematic and coherent program that is based on real understanding rather than on rote learning. This program is a marked improvement on the traditional way of learning mathematics by which a student is assigned certain classical texts, to be studied one followed by the other, each for a period of one to two years!The syllabus is a fascinating document for it shows Yang's concern that mathematics is properly taught to those meeting the subject for the first time. This was not the first time Yang had shown such concerns, for his elementary text of 1262 was also clearly designed to help beginners.
Here is a problem taken from Chapter 2 of Continuation of ancient mathematical methods for elucidating strange properties of numbers.
100 coins buy Wenzhou oranges, green oranges, and golden oranges, 100 in total. If a Wenzhou orange costs 7 coins, a green orange 3 coins, and 3 golden oranges cost 1 coin, how many oranges of the three kinds will be bought?Yang's solution is quoted in :-
From 3 times 100 coins subtract 100 coins; from 3 times the cost of a Wenzhou orange i.e. 21, subtract 1; the remainder is 20. From 3 times the cost of a green orange, i.e. 9, subtract 1; the remainder is 8. The sum of the remainder is 28. Divide 200 by 28, we have the integer 6. These are the numbers to be found; 6 Wenzhou oranges and 6 green oranges respectively. And then (200 - 6 × 28) ÷ 8 = 4, this is the difference of the number of Wenzhou oranges and green oranges. Hence the sum of them is 16, whereas the number of gold oranges to be found is 84.What is Yang doing? At first sight it seems to make no sense, so let us look at how we might approach such a problem. Suppose there are x Wenzhou oranges, y green oranges and z golden oranges. Then a modern solution would set up equations
7x + 3y + z/3 = 100
x + y + z = 100
If you want to try one of Yang's problems, here is another of the same type, being the first problem in Chapter 2:-
A number of pheasants and rabbits are placed together in the same cage. Thirty-five heads and ninety-four feet are counted. Find the number of pheasants and rabbits.Finally let us note Yang's remarkable contribution to magic squares. Firstly it is important to realise that he presents them as a good way to interest people in numbers, and he does not claim any magic properties. We have used the standard term magic square, but Yang does not use the word magic, simply calling them number diagrams. He gives a magic square of order 3, two squares of order 4, two squares of order 5, two squares of order six, two squares of order 7, two of order 8, one of order nine, and one of order 10.
Yang's 3 × 3 square One of Yang's 4 × 4 squares
One of Yang's 5 × 5 squares One of Yang's 6 × 6 squares
Again Yang does not claim any originality here, and writes as if he is presenting well known facts. This said, no record of the higher order magic squares now exist in the writings of earlier Chinese mathematicians.
As a final arithmetical treat we give Yang's simplest magic circle.
The property to note here is that there are seven intersecting circles in the diagram. Each circle has a central number and four other numbers, in the north, south, east and west positions, on its circumference. Adding the central number and the four numbers on the circumference gives 65 for each of the seven circles.
Article by: J J O'Connor and E F Robertson
MacTutor History of Mathematics