秦九韶
Surviving calligraphy / manuscript (Qin Jiushao)
Image creditsQin Jiushao · Public domainImage source

Historical figure

Qin Jiushao (秦九韶)

秦九韶

Qin Jiushao (1208–1261), courtesy name Daogu, ancestral home in Lu Commandery (modern Qufu, Shandong), was born in Puzhou (modern Anyue, Sichuan). He was the preeminent mathematician, astronomer, and civil engineer of the Southern Song dynasty, representing the absolute zenith of medieval Chinese mathematical science. Following his father's flight to Lin'an during regional mutinies, Qin Jiushao acquired vast learning through…

Era not stated

PROFILE

Qin Jiushao (1208–1261), courtesy name Daogu, ancestral home in Lu Commandery (modern Qufu, Shandong), was born in Puzhou (modern Anyue, Sichuan). He was the preeminent mathematician, astronomer, and civil engineer of the Southern Song dynasty, representing the absolute zenith of medieval Chinese mathematical science. Following his father's flight to Lin'an during regional mutinies, Qin Jiushao acquired vast learning through the imperial Palace Library, the Astrological Bureau, and renowned master artisans, achieving mastery in astronomical calendars, architectural engineering, musical theory, martial arts, and mathematics. He later organized local militias in Sichuan against Mongol incursions and held administrative posts including Sheriff of Qi County, Vice Prefect of Qizhou and Jiankang, and Prefect of Hezhou, Suzhou, and Meizhou. In 1247, while observing mourning for his mother in Huzhou, Qin completed his monumental eighteen-volume treatise Shushu Jiuzhang (Mathematical Treatise in Nine Sections). In this masterwork, he formulated the Dayan Qiuyi Shu (Method of Great Extension for Finding Unity) to solve systems of linear congruences, anticipating Carl Friedrich Gauss by more than 550 years, a breakthrough celebrated worldwide as the Chinese Remainder Theorem. He also devised the Zhengfu Kaifang Shu (Positive-Negative Extraction Method) for solving polynomial equations of arbitrarily high degree, predating William George Horner by six centuries, and developed the three-oblique formula for triangle areas. George Sarton celebrated him as "one of the greatest mathematicians of his race, of his time, and indeed of all times."

Courtesy Name
Daogu
Native Place
Lu Commandery (modern Qufu, Shandong); born in Puzhou (modern Anyue, Sichuan)
Date of Birth
1208 (Jiading 1, Southern Song)
Date of Death
1261 (Jingding 2, Southern Song)
Age at Death
54
Highest Office
Prefect of Meizhou, Staff Consultant to the Coastal Military Commissioner
Primary Identity
Southern Song mathematician, astronomer, official

LIFE TIMELINE

Relationship graph

BIOGRAPHY

Chronological Biography

  • 1208 (Jiading 1) | Birth | Born in Anyue, Puzhou (modern Sichuan), to a scholar-official family originating from Shandong.
  • 1219 (Jiading 12) | Flight to Lin'an | Fled Bazhou with his father Qin Jiyou following the mutiny of Zhang Fu, relocating to the imperial capital Lin'an.
  • 1225 (Baoqing 1) | Militia Leadership | Followed his father to Tongchuan; at age eighteen, assumed command of five thousand civilian volunteer fighters.
  • 1229 (Shaoding 2) | Judicial Sheriff | Appointed Sheriff of Qi County, entering local civil and military administration.
  • 1231 (Shaoding 4) | Military Engineering | Assisted statesman Wei Liaoweng in suppressing tribal unrest in Luzhou, supervising the repair of fortifications and watchtowers.
  • 1236 (Duanping 3) | Wartime Wandering | Experienced the devastation of Mongol invasions in Sichuan; subsequently transferred eastward to Qizhou and Hezhou.
  • 1238 (Jiaxi 2) | Bridge Construction | Designed and oversaw construction of the Xixi Bridge (later renamed Daogu Bridge) during paternal mourning in Lin'an.
  • 1244 (Chunyou 4) | Jiankang Vice Prefect | Served as Vice Prefect of Jiankang; retired in winter upon his mother's death to observe mourning in Huzhou.
  • 1247 (Chunyou 7) | Treatise Completion | Finished the eighteen-volume mathematical masterpiece Shushu Jiuzhang in Huzhou.
  • 1250 (Chunyou 10) | Prefect of Suzhou | Appointed Prefect of Pingjiang (Suzhou), managing granary reserves and water transport.
  • 1258 (Baoyou 6) | Qiongzhou Appointment | Appointed Prefect of Qiongzhou (Hainan Island), departing after a short tenure due to factional shifts.
  • 1260 (Jingding 1) | Exile to Lingnan | Transferred to the remote southern post of Prefect of Meizhou (modern Guangdong).
  • 1261 (Jingding 2) | Death in Office | Died at the prefectural government office in Meizhou at the age of fifty-four.

Detailed Biography

Early Learning and Polymathic Formation

Qin Jiushao was born in 1208 in Anyue, Puzhou (modern Sichuan). His father, Qin Jiyou, earned the jinshi degree in 1193 and served as Prefect of Bazhou. In March 1219, mutinous troops led by Zhang Fu and Mo Jian staged a widespread uprising across northern Sichuan, capturing several strategic cities including Lizhou, Langzhou, and Puzhou. As the rebels stormed Bazhou, Qin Jiyou abandoned the city and fled eastward with his family, eventually arriving in the Southern Song capital of Lin'an (modern Hangzhou).

In Lin'an, Qin Jiyou was appointed Vice Director in the Ministry of Works (Gongbu Langzhong) and Vice Director in the Palace Library (Mishu Shaojian). The Ministry of Works directed major public building works throughout the empire, while the Palace Library housed imperial archives and supervised the Astrological Bureau (Taishi Ju). This privileged administrative environment afforded the young Qin Jiushao unprecedented access to rare mathematical, astronomical, and architectural treatises.

Qin studied astronomical calendars and instruments with royal astrologers, visited civil engineering sites to learn masonry, carpentry, and surveying from master craftsmen, and learned esoteric mathematical techniques from a reclusive scholar. Furthermore, he studied classical parallel prose (pianli) under the celebrated writer Li Liu. Endowed with extraordinary mental agility, Qin became proficient in star-mapping, musical acoustics, calculating art, architectural drafting, archery, swordsmanship, horsemanship, and football (cuju). Contemporaries praised him for his versatile genius across humanities, sciences, and physical arts.

Wartime Service and Regional Posts

In June 1225, Qin Jiyou was appointed Prefect of Tongchuan (modern Santai, Sichuan), and Qin Jiushao returned to Sichuan with his father. With Mongol armies expanding into Gansu and Shaanxi, northern Sichuan became a volatile frontier. The Southern Song government recruited five thousand local volunteers to form guerrilla defense units. At age eighteen, Qin Jiushao was chosen as the commander of these militia forces, coordinating local scouting and defensive positions to protect rural communities.

In October 1229, Qin Jiushao was appointed Sheriff of Qi County (Qixian Wei), formally entering the bureaucratic ranks. In August 1231, he assisted the prominent Neo-Confucian statesman Wei Liaoweng in pacifying tribal disturbances in Luzhou, personally directing the reconstruction of ruined ramparts, parapets, and arrow-slits. In 1233, when Wei Liaoweng and Wu Qian inspected the defense routes of Tongchuan and Chengdu, Qin met Wu Qian, initiating a lifelong political association.

In 1236, Mongol armies launched a massive invasion of Sichuan, ravaging the Jialing River basin. Qin Jiushao served on the frontlines amidst constant warfare, enduring a decade of intense turmoil and peril. Reflecting on this harrowing era in the preface to his Shushu Jiuzhang, he wrote: "Caught in the calamities of foreign aggression and wandering in distant frontiers, I scarcely expected to survive amidst flying stones and arrows; enduring peril and grief for ten years, my heart withered and my spirit sank."

Fleeing the collapsing Sichuan frontier, Qin moved his household eastward down the Yangtze, serving successively as Vice Prefect of Qizhou and Prefect of Hezhou, before establishing his family estate in Huzhou (modern Zhejiang). In local administration, he exhibited formidable executive vigor along with an inclination toward luxury, constructing a sprawling mansion equipped with musical ensembles.

Mourning, Scholarship, and Final Years

In 1238, while observing mourning for his father in Lin'an, Qin noted that local travelers frequently drowned while wading across the flooded Xixi stream. He surveyed the waterway and designed a sturdy multi-arch stone bridge named Xixi Bridge; subsequent mathematicians renamed it Daogu Bridge to honor his engineering contributions.

In August 1244, Qin was appointed Vice Prefect of Jiankang (modern Nanjing), but stepped down three months later upon the death of his mother, returning to Huzhou for the mandatory three-year mourning period. Disengaging entirely from official politics, Qin spent these three years methodically synthesizing decades of accumulated notes on astronomy, calendars, surveying, taxation, and engineering calculations. In September 1247, he completed his masterpiece Shushu Jiuzhang (Mathematical Treatise in Nine Sections, originally titled Shuxue Dalüe). When presented to the court, the work secured him an imperial audience with Emperor Lizong to expound calendar mathematics.

In 1249, the eminent bibliographer Chen Zhensun consulted Qin extensively on mathematical and astronomical treatises. In 1250, Qin was appointed Prefect of Suzhou, overseeing grain transport and tax reserves. His later career proved unstable: he served briefly as Staff Consultant to the Coastal Military Commissioner in 1254, and was named Prefect of Qiongzhou in 1258, being relieved after three months.

When Wu Qian regained the chancellorship in October 1259, he appointed Qin to his planning council and made him an agricultural commissioner in Pingjiang, but Qin was ousted shortly thereafter upon Wu Qian's political downfall. In 1260, Qin was exiled to the remote southern post of Prefect of Meizhou (modern Guangdong). He passed away in office in 1261 at the age of fifty-four.

Major Achievements

Masterpiece Shushu Jiuzhang

Qin Jiushao's crowning contribution to world science was the creation of Shushu Jiuzhang (Mathematical Treatise in Nine Sections). Comprising eighteen volumes and eighty-one applied problems grouped into nine categories, each section is introduced by concise verses explaining the practical application of mathematics to national welfare and governance:

  • *Indeterminate Analysis and Chinese Remainder Theorem (Dayan Lei): Qin formulated the Dayan Qiuyi Shu* (Method of Great Extension for Finding Unity), providing a rigorous, general algorithmic procedure for solving systems of simultaneous linear congruences with pairwise coprime or non-coprime moduli. This groundbreaking algorithm predated Carl Friedrich Gauss's 1801 formulation by more than five centuries and is universally celebrated as the Chinese Remainder Theorem.
  • *Numerical Solution of Higher-Degree Equations (Shiwu Lei): Building upon Jia Xian's additive-multiplicative root extraction, Qin devised the Zhengfu Kaifang Shu* (Positive-Negative Extraction Method), an algorithm capable of solving numerical algebraic equations of arbitrarily high degree (up to the tenth degree in his book). This method anticipates the nineteenth-century Horner-Ruffini method by over 500 years and is the earliest recorded mathematical text to use decimal notations for approximating irrational roots.
  • Polynomial Evaluation Algorithm: He formulated what modern computational algebra terms Horner's Rule or Qin Jiushao's Algorithm, nesting polynomial terms into successive linear operations to minimize computational operations and tabular errors.
  • *Geometry and Triangulation (Tianyu Lei): Qin independently derived the Sanxie Qiuji Shu* (Three-Oblique Area Method), computing the area of any scalene triangle directly from its three side lengths. Mathematically equivalent to Heron's formula from ancient Greece, it bridged a critical gap in traditional Chinese geometry.

Engineering, Hydrology, and Civil Administration

Qin was a dedicated practitioner of applied mathematics. In Shushu Jiuzhang, he established empirical conversion constants for earthworks, notably the ratio "firm earth 3, excavated earth 4, loose earth 5," providing standardized volumetric benchmarks for canal excavations, city rampart construction, and military logistics. His design and construction of the Daogu Bridge in Hangzhou demonstrated sophisticated structural understanding, while his water-control projects in Jiankang and Luzhou safeguarded civilian settlements.

Quantitative Meteorology and Calendar Reform

In the "Astronomical and Meteorological" category (Tianshi Lei) of Shushu Jiuzhang, Qin introduced the world's earliest systematic instruments and geometric methods for measuring precipitation and snowfall. He designed standardized bamboo rain gauges (tianchi ceyu) to compute spatial precipitation depths and developed snow-collecting cylinders (choutong yanxue) to determine snow water equivalence based on compression density. Furthermore, his application of indeterminate analysis to astronomical calendar intervals revolutionized calculations of planetary conjunctions and solstices.

Historical Relations

  • Father: Qin Jiyou, jinshi of 1193, Vice Director in the Ministry of Works and the Palace Library, Prefect of Tongchuan.
  • Patron and Political Ally: Wu Qian, Grand Chancellor of the Southern Song, who formed a close personal friendship with Qin during administrative tours in Sichuan and later appointed him to his secretariat.
  • Senior Statesman and Commander: Wei Liaoweng, prominent Neo-Confucian scholar and military commissioner, whom Qin assisted in pacifying tribal unrest and fortifying Luzhou.
  • Literary Master: Li Liu, master of classical parallel prose who instructed Qin in literary composition and recommended him to the National History Institute.

Historical Evaluations

  • George Sarton, Introduction to the History of Science: "Qin Jiushao was one of the greatest mathematicians of his race, of his time, and indeed of all times."
  • Moritz Cantor, German historian of mathematics: "The discovery of the Dayan method for solving congruences is a marvelous achievement, reflecting the extraordinary mathematical power of medieval China."
  • Lu Xinyuan, Qing dynasty scholar: "At a time when the whole world neglected calculating methods, Qin Jiushao alone investigated lost arts; he cannot but be regarded as a heroic genius."
  • Zhou Mi, Guixin Zashi (Miscellaneous Notes from Guixin): "Qin Daogu possessed unsurpassed ingenuity; in astrology, acoustics, calculation, and civil engineering, there was nothing he did not thoroughly master."

Related Entries

  • Wu Qian
  • Wei Liaoweng
  • Zhen Dexiu

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • Song Shi (History of Song), Volume 418, Biography 177
  • Siku Quanshu Zongmu Tiyao (Annotated Catalog of the Complete Library in Four Sections), Volume 107