# Yang Hui

### Born: about 1238 in Qiantang (now Hangzhou), Chekiang province, China

Died: about 1298 in China

Click the picture above

to see a larger version

to see a larger version

Main Index | Biographies index |

Little is known about

**Yang Hui**other than that he wrote several outstanding mathematical texts. He was a contemporary of both Qin Jiushao and Li Zhi, which we know from the dates on which his texts appeared, showing that he lived towards the end of the Nan (Southern) Sung dynasty. However, both Qin and Li's major works appeared about fifteen years before the first work of Yang. Zhu Shijie was only born about the time Yang Hui's first texts were appearing so his life also overlapped that of Yang.

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:-

If there areNow1cubic cun of jade weighs7liang, and1cubic cun of rock weighs6liang. Now there is a cube of side3cun consisting of a mixture of jade and rock which weighs11jin. Tell: what are the weights of jade and rock in the cube.[Note1jin =16liang]

*x*cubic cun of jade and

*y*cubic cun of rock in the cube then

*x*+

*y*= 27

7

*x*+ 6

*y*= 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

*m*

^{2}to (

*m*+

*n*)

^{2}and showed that

1 + 3 + 6 + ... +

See [14] for a discussion of the geometrical ideas which lie behind Yang's approach to summing series.
*n*(*n*+ 1)/2 =*n*(*n*+ 1)(*n*+ 2)/6.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:-

In [19] some of the quotes which allow a partial reconstruction of this work are translated into English. In his text Yang explained:-... to assist the reader with the numerous matters of daily use and also to instruct the young in observation and practice.

Over the next years Yang must have continued to produce material for mathematics texts but he published nothing more until 1274 when... the additive method of multiplication and the subtractive method of division[relative to the]ten problems and their solutions.

*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 [3]. 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 [10], writes that the syllabus:-

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.... 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!

Here is a problem taken from Chapter 2 of

*Continuation of ancient mathematical methods for elucidating strange properties of numbers*.

100Yang's solution is quoted in [8]:-coins buy Wenzhou oranges, green oranges, and golden oranges,100in total. If a Wenzhou orange costs7coins, a green orange3coins, and3golden oranges cost1coin, how many oranges of the three kinds will be bought?

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 areFrom3times100coins subtract100coins; from3times the cost of a Wenzhou orange i.e.21, subtract1; the remainder is20. From3times the cost of a green orange, i.e.9, subtract1; the remainder is8. The sum of the remainder is28. Divide200by28, we have the integer6. These are the numbers to be found;6Wenzhou oranges and6green 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 is16, whereas the number of gold oranges to be found is84.

*x*Wenzhou oranges,

*y*green oranges and

*z*golden oranges. Then a modern solution would set up equations

*x*+

*y*+

*z*= 100

7

*x*+ 3

*y*+

*z*/3 = 100

21

Now look at Yang's explanation. He is subtracting the second equation from the first: 300 - 100 coins, 21 - 1 Wenzhou oranges, 9 - 1 green oranges. He gets*x*+ 9*y*+*z*= 300*x*+*y*+*z*= 100
20

Then let *x*+ 8*y*= 200*d*, say, be the difference of the number of Wenzhou oranges and green oranges, so

*y*=

*x*-

*d*. Look at Yang's explanation. This is exactly what he is doing! Replace

*y*in the above equation so that

20

so *x*+ 8(*x*-*d*) = 200
28

giving*x*= 200 - 8*d**x*= 6 + (32 - 8

*d*)/28.

*d*= 4,

*x*= 6,

*y*= 10 and 100 - (6 + 10) = 84 which is the number of golden oranges.

If you want to try one of Yang's problems, here is another of the same type, being the first problem in Chapter 2:-

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.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.

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

One of Yangs 7 × 7 squares is at THIS LINK.

One of Yangs 8 × 8 squares is at THIS LINK.

Yangs 9 × 9 square is at THIS LINK.

Yangs 10 × 10 square is at THIS LINK.

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*

**Click on this link to see a list of the Glossary entries for this page**

**List of References** (23 books/articles)

**A Poster of Yang Hui**
**See this mathematician on a timeline**
**Mathematicians born in the same country**

**Additional Material in MacTutor**

**Cross-references in MacTutor**

- History Topics: Overview of Chinese mathematics
- History Topics: Chinese problems
- Index of Chinese mathematics
- Chronology: 1100 to 1300

**Other Web sites**