The Zhoubi Suanjing is one of the oldest Chinese mathematical texts. "Zhou" refers to the ancient Zhou dynasty ; "Bi" means thigh and according to the book, it refers to the gnomon of the sundial. The book is dedicated to astronomical observation and calculation. "Suan Jing" or "classic of arithmetics" were appended in later time to honor the achievement of the book in mathematics. This book dates from the period of the Zhou dynasty, yet its compilation and addition of materials continued into the Han dynasty. It is an anonymous collection of 246 problems encountered by the Duke of Zhou and his astronomer and mathematician, Shang Gao. Each question has stated their numerical answer and corresponding arithmetic algorithm. This book also contains one of the first recorded proofs of the Pythagorean Theorem. Commentators such as Liu Hui, Zu Gengzhi, Li Chunfeng and Yang Hui have expanded on this text.
Background behind Pythagorean derivation
At this early point in Chinese history the model of the ancient Chinese equivalent of Heaven, 天 Tian, was symbolized as a circle and the earth was symbolized as a square. In order to make this concept easily understood the adopted symbol of the heavens was the ancient Chinese chariot. The charioteer would stand in the square body of the vehicle and a "canopy", the equivalent of an umbrella, stood next to them. The world was thus likened to the chariot in that the earth, the square, was where the charioteer stood, and heaven, the circle, was suspended above them. The concept has thus been termed "Canopy Heaven", 蓋天. Eventually the populace began to turn away from the "Canopy Heaven" concept in favor of the concept termed "Spherical Heaven", 渾天. This was partly due to the fact that the people were having trouble accepting heaven's encompassment of the earth in the fashion of a chariot canopy because the corners of the chariot were themselves relatively uncovered. In contrast, "Spherical Heaven", Huntian, has Heaven, Tian, completely surrounding and containing the Earth and was therefore more appealing. Despite this switch in popularity, supporters of the Gaitian "Canopy Heaven" model continued to delve into the planar relationship between the circle and square as they were significant in symbology. In their investigation of the geometric relationship between circles circumscribed by squares and squares circumscribed by circles the author of the Zhoubi Suanjing deduced one instance of what today is known as the Pythagorean Theorem.