Qin Jiushao, also known as Ch'in Chiu-Shao, was born at the time of the Nan (Southern) Sung dynasty. His ancestors came from Lu-chun in Shantung province and some biographies quote this incorrectly as his birthplace. His father, Qin Jiuyu (or Ch'in Chiu-yu), was a graduate who worked as an official in local administration. In around 1219, when Qin was about seventeen years old, his father was working as a prefect of Bazhou. At this time Qin volunteered for the army, which was putting down a rebellion, and served for a while. Qin's father moved to Hang-chou, the capital of the Nan Sung, in around 1224 and Qin went with his father. He wrote in the preface to his famous work Shushu Jiuzhang (see for example ):-
In my youth I was living in the capital, so that I was able to study in the Board of Astronomy; subsequently, I was instructed in mathematics by a recluse scholar.
We know that Qin was a rebellious youth, famous for his many love affairs, who disliked authority :-
During a banquet given by his father, a commotion was created when a stone suddenly landed among the guests; investigations disclosed that the missile had come from the direction of Qin, who was showing a young girl how to use a bow as a sling to hurl projectiles.
In fact Qin did not live in the capital Hang-chou for long since his father was posted to Tongchuan (now Santai) in Szechwan province in 1226 and Qin went there with him. Sadly, we do not know which recluse scholar taught Qin mathematics, but we do know that he studied the Nine Chapters on the Mathematical Art. By 1233 Qin was himself the sheriff of a subprefecture in Szechwan province and at this time he was instructed in writing poetry by an official from Chengdu, in central Szechwan province. It is worth noting at this point that as well as being a genius in mathematics and accomplished in poetry, Qin was expert at fencing, archery, riding, music and architecture. However, there was another side to his character. He was described by a contemporary in a letter to the Emperor as :-
... as violent as a tiger, or a wolf, and as poisonous as a viper or a scorpion.
His aggressive nature no doubt suited army life and he became a commander defender while serving in Szechwan province. Genghis Khan, the Mongol leader, died in 1227 but the Mongols resumed their attacks on the Han Sung in 1230. Their armies invaded Szechwan province in 1234 and Qin was forced to leave. He wrote in the preface of Shushu Jiuzhang (see for example ):-
At the time of the troubles with the barbarians, I spent several years on the remote frontier, without care for my safety among the arrows and stone missiles, I endured danger and unhappiness for ten years.
We need not feel too sorry for Qin, however, for he was a dishonest rogue who was quite prepared to poison those whom he disliked. He served as an administrator in Qizhou (now Qichun) in Hupeh province, but his behaviour there was so bad that it cause a military revolt. Then he was appointed governor of Hui-chou (now She-hsien) in Anhwei province but here he undertook illegal dealings in salt which made him rich. He then moved to Wu-hsing in Chekiang province where he settled down to spend his illegally acquired riches. In the middle of 1244 he was posted as a senior administrator to Nanking. After holding this post for three months, his mother died in the September 1244 and Qin left his post in Nanking for the mourning period and returned to Hui-chou in Anhwei province where his mother had been living. During his period of mourning in Hui-chou, Qin wrote his famous mathematical treatise Shushu Jiuzhang (Mathematical Treatise in Nine Sections) which appeared in 1247. This is a remarkable work which led to George Sarton writing that Qin was (see  or  where this is quoted):-
... one of the greatest mathematicians of his race, of his time, and indeed of all times.
Before we look at the contents of the Shushu Jiuzhang we continue our description of Qin's life. He took up his work in the civil service again in 1254 in the capital Hang-chou but resigned after a few months. Appointed governor of Qiongzhou in Hainan in 1259 he was dismissed for corruption and exploitation after a hundred days in office and returned home having again acquired immense wealth illegally. One might expect that by this time Qin would be unemployable, given his record of criminal dealings, but he next managed to gain an appointment as an assistant in the district of Yin (near Ningpo) in Zhekiang where his friend Wu Qian had been appointed as a naval officer. Perhaps Wu Qian was as corrupt as his friend Qin, for he was dismissed from Yin and, in 1260, Qin was also sent away to Meizhou (now Meixian), in Guangtong province where he died.
We have seen that Qin was a highly unprincipled character but he was also a mathematical genius with few equals. Before looking at his mathematical achievements, let us recount further stories of his character. It is recorded that Qin cheated his friend Wu Qian so that he became the owner of some of his land, and also that Qin punished a female member of his household by confining her without food.
The Shushu Jiuzhang (Mathematical Treatise in Nine Sections) is to some extent modelled on the Nine Chapters on the Mathematical Art although Qin's treatise is far more sophisticated. Chapter 1 is on indeterminate analysis; it contains remarkable work on the Chinese remainder theorem which occurs right at the beginning of the text. We discuss it below. Chapter 2 is called Heavenly phenomena and it deals with questions on the calendar and also questions about rain or snow. For example one problem asks for the height that rainwater would collect on level ground given that it reaches a certain height h in a vessel with a circular top of diameter a and circular base of diameter b where a > b. Chapter 3 is called Boundaries of fields and looks at surveying. There is a remarkable formula given in this Chapter which expresses the area of a figure as the root of an equation of degree 4. The novelty here is that the coefficients are not numbers but are functions of lengths in the figure which are left as unspecified. Another novelty in this chapter is a formula for the area of a triangle given in terms of its sides, essentially Heron's formula.
Chapter 4, called Telemetry, looks at problems involving measuring the distance to inaccessible points. Again equations of high degree appear, one problem involving the solution of the equation of degree 10. The problem is:-
Given a circular walled city of unknown diameter with four gates, one at each of the four cardinal points. A tree lies three li north of the northern gate. If one turns and walks eastwards for nine li immediately on leaving the southern gate, the tree just comes into view. Find the circumference and the diameter of the city wall.
Qin obtains the equation (really an equation of degree 5 in x2, where x2 is the diameter of the city):-
x10 + 15x8 + 72x6 - 864x4 - 11664x2 - 34992 = 0
[Solution: x = 3, so diameter of city is x2= 9 li]
In Chapters 5 to 9 named Taxes, Money and grain, Fortifications and buildings, Military affairs, and Commercial affairs the problems require more standard mathematical methods and Qin does not introduce further innovations. Throughout the text, in addition to the tenth degree equation above, Qin also reduces the solution of certain problems to a cubic or quartic equation which he solves by the standard Chinese method (namely that which today is called the Ruffini-Horner method). For example the following two equations
4608x3 - 3000000000×30×800 = 0
[Answer: x = 2500]
-x4 + 1534464x2 - 526727577600 = 0
[Answer: x = 720. Note the solution x = 1008 is not given]
Qin also solves linear simultaneous equations, in particular the system
140x + 88y + 15z = 58800
792x + 566y + 815z = 392000
64x + 30y + 75z = 29400
[Answer: x = 300, y = 180, z = 64]
One further remarkable feature of the text is that Qin uses 0 for zero, so not only does he use a symbol for zero, but that symbol is a little circle. He writes about previous uses of zero:-
... in all old books we find empty places.
As we have mentioned, the most remarkable method in the text is the method for solving simultaneous integer congruences, the Chinese Remainder Theorem. Qin considers problems of the type
x rk(mod mk), k = 1, 2, ..., n.
Today we start such problems assuming that the mk are integers. However, Qin is happy to look at problems where the numbers concerned are rational. His first step is therefore to convert to a situation where the m are integers.
Although there is no evidence of progress on such problems in China since the work of Sun Zi which was 800 years earlier, Qin now shows how to handle the case where the mk are not pairwise coprime. His next move, therefore, is to make various passes through the mk making replacements in such a way that eventually the new moduli are pairwise coprime but the solution to the original problem remains unchanged by the replacements. He then solves each congruence and finally reassembles the answers to give the solution to the system of simultaneous congruences. Shen discusses Qin's method of solution fully in ; see also  and . Libbrecht writes :-
We should not underestimate [Qin's] revolutionary advance, because from [Sun Zi's] single remainder problem, we come at once to the general procedure for solving the remainder problem, even more advanced than Gauss's method, and there is not the slightest indication of gradual evolution.
This is such a brilliant piece of work that we are left with asking how Qin could have achieved it. We certainly know that Qin was a rogue who was happy to steal, so could he have stolen his mathematics? Of course if he stole it then who did he steal it from? This does not seem likely, for it raises more questions than it solves. Some historians have wondered whether Qin could have really solved such a deep problem, suggesting that perhaps he worked back from the answer. There seems little that is convincing in that suggestion since these problems are not readily worked in reverse and, anyway, Qin really does appear to know what he is doing. Perhaps he learnt of the method through Indian approaches to such problems. Although Qin's use of the symbol 0 suggests possible Indian knowledge, the Indian approach to such congruence problems is sufficiently different to make this highly unlikely. One is left with no conclusion other than accepting that Qin was one of the great mathematical geniuses of all time.
Interestingly, despite Qin's character, he does not claim this brilliant method as his own. He says that he learn it from the calendar experts when he was studying at the Board of Astronomy in Hang-chou. He states, however, that these calendar experts used the rule without understanding it. There must be something in this for, without a doubt, calculating calendars was an important motivation for studying the theory of first-order congruences. It would appear though that Qin must have taken these ideas much further and be showing a modesty in his mathematical work which was certainly lacking in other aspects of his life.
How impressive is this work? Well suffice to say that Euler failed to provide a satisfactory solution to these problems and it was left to Gauss, Lebesgue and Stieltjes to rediscovered this method of solving systems of congruences.
Article by: J J O'Connor and E F Robertson