<<

Mathematics in Ancient China

Chapter 7 Timeline

Archaic Old Kingdom Int Middle Kingdom Int New Kingdom EGYPT

3000 BCE 2500 BCE 2000 BCE 1500 BCE 1000 BCE

Sumaria Akkadia Int Old Babylon Assyria MESOPOTAM IA

3000 BCE 2500 BCE 2000 BCE 1500 BCE 1000 BCE 500 BCE 0 CE 500 CE

Classical Minoan Mycenaean Dark Archaic Hellenistic Roman Christian GREECE

3000 BCE 2500 BCE 2000 BCE 1500 BCE 1000 BCE 500 BCE 0 CE 500 CE 1000 CE 1500 CE

Warring CHINA Shang Zhou Han Warring States Tang Yuan / Ming States Song

Gnomon, Nine Chapters Zu Chongzhi Li Zhi Hui Early Timeline

• Shang Dynasty: Excavations near Huang River, dating to 1600 BC, showed “oracle bones” –tortoise shells with inscriptions used for divination. This is the source of what we know about early Chinese systems. Early Timeline Han Dynasty ( 206 BC –220 AD)

• System of Education especially for civil servants, i.e. scribes. • Two important books*: • Zhou Bi Suan Jing (Arithmetical Classic of the Gnomon and the Circular Paths of Heaven) • Jiu Zhang Suan Shu (Nine Chapters on the Mathematical Art) *unless of course we’re off by a millennium or so. Nine Chapters

• This second book, Nine Chapters, became central to mathematical work in China for centuries. It is by far the most important mathematical work of ancient China. Later scholars wrote commentaries on it in the same way that commentaries were written on The Elements. Chapters in … uh, the Nine Chapters

1. measurements, areas, fractions 2. Percentages and proportions 3. Distributions and proportions; arithmetic and geometric progressions 4. Land Measure; square and cube roots 5. Volumes of shapes useful for builders. 6. Fair distribution (taxes, grain, conscripts) 7. Excess and deficit problems 8. Matrix solutions to simultaneous equations 9. Gou Gu: ; astronomy, surveying Linear Equations

• There are three classes of grain, of which three bundles of the first class, two of the second, and one of the third, make 39 measures. Two of the first, three of the second, and one of the third make 34 measures. And one of the first, two of the second and three of the third make 26 measures. How many measures of grain are contained in one bundle of each class? Linear Equations

• Solution: “Arrange the 3, 2, and 1 bundles of the 3 classes and the 39 measures of their grains at the right. Arrange other conditions at the middle and the left:”

123 232 311 26 34 39 Linear Equations

• “With the first class on the right multiply currently the middle column and directly leave out.” (That is, multiply the middle column by 3, and then subtract some multiple of the right column, to get 0). 103 252 311 26 24 39 Linear Equations

• Do the same with the left column:

003 452 811 39 24 39 Linear Equations

• “Then with what remains of the second class in the middle column, directly leave out.” In other words, repeat the procedure with the middle column and left column:

003 003 452 052 811 36 1 1 39 24 39 99 24 39 Linear Equations

• This was equivalent to a downward Gaussian reduction. The author then described how to “back substitute” to get the correct answer. Method of Double False Position

• Or, “Excess and Deficit.” • A tub of capacity 10 dou contains a certain quantity of husked rice. Grains (unhusked rice) are added to fill up the tub. When the grains are husked, it is found that the tub contains 7 dou of husked rice altogether. Find the original amount of husked rice. Assume 1 dou of unhusked rice yields 6 sheng of husked rice, with 1 dou = 10 sheng. Our Method, Maybe

Let x be amount of husked rice, y be amount of unhusked rice. Then and . So , and substituting we have . Simplifying, we get , and , or 2 dou, 5 sheng. Method of Double False Position

• If the original amount is 2 dou, a shortage of 2 sheng occurs. If the original amount if 3 dou, there is an excess of 2 sheng. Cross multiply 2 dou by the surplus 2 sheng, and then 3 dou by the deficiency of 2 sheng, and add the two products to give 10 dou. Divide this sum by the sum of the surplus and deficiency to obtain the answer 2 dou and 5 sheng. Double False Position

∙∙ • Why does this work? • We want to solve In general, we’ll examine a method for solving . Double False Position

• So suppose we want to solve . We’ll do it by making two guesses and , with the respective errors

, and . Then subtracting these equations gives . Next, multiplying equation 1 by and equation 2 by we get: Double False Position

, and . Subtracting these equations gives:

. Finally, dividing this equation by gives us: . Finally, if is a surplus and is a deficit, we can say . Gou Gu in Zhou Bi Liu Hui’s Proof of Gou Gu (900 – 1279)

• Two Books by Zhu Shijie had topics such as: – Pascal’s triangle (350 years before Pascal) – Solution of simultaneous equations using matrix methods – “Celestial element method” of solving equations of higher degree. (Horner’s method) • European wouldn’t catch up to this level until the 1700’s. Numeration

• Numerals on the Oracle Stones: Numeration Numeration

Hindu ‐ 0 1 2 3 4 5 6 7 8 9 10 100 1000 Arabic

Chinese 〇 一二三四 五 六七八九十 百 千

Financial 零壹贰叁肆伍陆 柒捌玖拾 佰 仟 Counting Rod System

• Counting rods allowed for a number of very quick calculations, including the basic four arithmetic operations, and extraction of roots. • Some examples: Multiplication with Counting Rods

1. Set up the two factors, 𝍥𝍰 in this case 68 and 47, such that the ones digit 𝍬𝍦 of the bottom is aligned with the tens digit of the top. Leave room in middle for calculations. 2. Multiply tens digit of top 𝍥𝍰 by tens digit of bottom, 𝍡𝍬 place in middle with 𝍬𝍦 ones over the bottom’s tens digit. Multiplication with Counting Rods

3. Multiply one’s digit on 𝍥𝍰 top by tens digit on 𝍡𝍬𝍬𝍡 𝍬𝍦 bottom, and add to middle.

𝍰 4. Since you’ve used the 𝍡𝍰𝍡 tens digit on top, erase 𝍬𝍦 it. Multiplication with Counting Rods

5. Move bottom digits to 𝍰 the right one space. 𝍡𝍰𝍡 𝍣𝍯

6. Multiply tens digit on 𝍰 bottom by ones digit 𝍡𝍰𝍫𝍡𝍡 of top; place ones digit 𝍣𝍯 of answer above tens on bottom, and 𝍰 7. Combine. 𝍢𝍩 𝍣 𝍣𝍯 Multiplication with Counting Rods

8. Erase the tens digit on 𝍰 bottom because you’re 𝍢𝍩 𝍣 done with it. 𝍯

9. Finally, multiply the 𝍰 two units digits, and 𝍢 𝍩 𝍣𝍤 𝍮 add them to the 𝍯 middle. 10. Combine, and erase the units digits on top 𝍢𝍩 𝍨𝍮 and bottom. Division with Counting Rods

1. Place the dividend, 407, in the middle row 𝍬𝍯 𝍱 and the divisor, 9, in the bottom row. Leave space for the top row.

2. 7 doesn’t go into 4, so 𝍬𝍯 shift the 7 to the right 𝍨 Division with Counting Rods

3. Nine goes forty 4 𝍣 times with a 𝍣𝍯 𝍨 remainder of 4; write the quotient in the top row, the remainder in the middle. 4. Shift the 9 to the right 𝍣 𝍣𝍯 one digit. 𝍱 Division with Counting Rods

5. Nine goes into 47 five 𝍣𝍭 times, with a 𝍪 𝍱 remainder of 2. Put 5 on top, remainder in the middle. 6. The answer is, 45, remainder 2. 𝍣𝍭 𝍪 Fractions

• From Nine Chapters: • “If the denominator and numerator can be halved, halve them. If not, lay down the denominator and numerator, subtract the smaller number from the greater. Repeat the process to obtain the greatest common divisor (teng). Simplify the original fraction by dividing both by the teng. Fractions

• Addition and subtraction were done as we do them but without necessarily finding least common denominators –the common denominator is just the product of the two denominators. The fraction is simplified after adding or subtracting. Fractions

• Multiplication was done as we do it. • Division was done by first getting common denominators, then inverting and multiplying so that the common denominators cancel. Then the fraction was simplified. Negative numbers?

• Red and black rods, or rods laid diagonally over others. • “For subtractions –with the same signs, take away one from the other; with different signs, add one to the other; positive taken from nothing makes negative, negative from nothing makes positive.” • “For addition –with different signs subtract one from the other; with the same signs add one to the other; positive and nothing makes positive; negative and nothing makes negative.” Approximations of π

• Liu Hui, 260 AD: 3.1416 (by inscribing hexagon in circle, using the Pythagorean Theorem to approximate successively polygons of sides 12, 24, ….,96). • Zu Chongzhi, 480 AD: between 3.1415926 and 3.1415927 (by similar method, but moving past 96 to oh, say 24,576). Solving Polynomials

• Precious Mirror of the Four Elements by Shu Shi‐jie, 1303 CE. • Method known as Fan Fa, today known as Horner’s Method, and using what you may know as synthetic division. Fan Fa:

11‐7 ‐321 • Starting with a guess of 1 ‐6 ‐9 1, we do synthetic 1 ‐6 ‐912 division to get 11‐6 ‐9 remainder 12. Then 1 ‐5 ignoring the remainder, 1 ‐5 ‐14

we do another synthetic 11‐5 division on the 1 quotient, and repeat 1 ‐4

until we get down to a 11 constant. 1 Fan Fa:

11‐7 ‐321 • The remainders on the 1 ‐6 ‐9 first and second lines 1 ‐6 ‐9 12 are divided and 11‐6 ‐9 multiplied by ‐1 to 1 ‐5 obtain the next 1 ‐5 ‐14

“adjustment” to the 11‐5 guess for a root. 1 1 ‐4

• Also, 11

1 GUESS: 0.857143 Fan Fa:

11‐7 ‐321 • The remainders give 1 ‐6 ‐9 you the polynomial for 1 ‐6 ‐9 12 the next round of 11‐6 ‐9 synthetic division. 1 ‐5 1 ‐5 ‐14

11‐5 1 1 ‐4

11

1 Fan Fa:

0.8 1 ‐4 ‐14 12 • Our “suggested” next 0.8 ‐2.56 ‐13.248 guess was 0.857143. 1 ‐3.2 ‐16.56 ‐1.248

We try 0.8, but the 0.8 1 ‐3.2 ‐16.56 negative sign on the 0.8 ‐1.92 1 ‐2.4 ‐18.48 next guess ( ‐0.06753) tells us our 0.8 was too 0.8 1 ‐2.4 0.8 large. We go back to 1 ‐1.6 0.7. 0.8 1

1 GUESS: ‐0.06753 Fan Fa:

0.7 1 ‐4 ‐14 12 • This time, we get a 0.7 ‐2.31 ‐11.417 positive next guess of 1 ‐3.3 ‐16.31 0.583

0.03217. So we take 0.7 1 ‐3.3 ‐16.31 0.03 as our guess for 0.7 ‐1.82 1 ‐2.6 ‐18.13 the next digit, and go again. 0.7 1 ‐2.6 0.7 • And, again, we take the 1 ‐1.9 end digits from each 0.7 1 “result” line to populate our next top line. 1 GUESS: 0.032157 Fan Fa:

0.03 1 ‐1.9 ‐18.13 0.583 • Running the algorithm 0.03 ‐0.0561 ‐0.54558 again, we get a next 1 ‐1.87 ‐18.1861 0.037417

guess of .002. 0.03 1 ‐1.87 ‐18.1861 0.03 ‐0.0552 1 ‐1.84 ‐18.2413 • So far then, our 0.03 1 ‐1.84 approximate root is 0.03 1.73 and is heading for 1 ‐1.81

about 1.732… 0.03 1

1 GUESS: 0.002051 Fan Fa:

0.002 1 ‐1.81 ‐18.2413 0.037417 • Our next guess is 0.002 ‐0.00362 ‐0.03649 positive and very small, 1 ‐1.808 ‐18.2449 0.000927

so the error in our 0.002 1 ‐1.808 ‐18.2449 current approximation 0.002 ‐0.00361 1 ‐1.806 ‐18.2485 is small. Best guess: 0.002 1 ‐1.806 • 1.732 (+0.00005 ish?) 0.002 • 2050808 1 ‐1.804

0.002 1

1 GUESS: 5.08E‐05 Fan Fa:

0.00005 1 ‐1.804 ‐18.2485 0.000927 • Aw, heck. Just for fun, 0.00005 ‐9E‐05 ‐0.00091 let’s go one more: 1 ‐1.80395 ‐18.2486 1.47E‐05

0.00005 1 ‐1.80395 ‐18.2486 0.00005 ‐9E‐05 1 ‐1.8039 ‐18.2487 • As you can see, we’re 0.00005 1 ‐1.8039 getting very close to our 0.00005 1 ‐1.80385 calculator‐provided approximation. 0.00005 1

1 GUESS: 8.08E‐07 Fan Fa and Horner

• This general method was rediscovered by William Horner (1786 – 1837) and published in a paper in 1830. • Except it was pretty much identical to a method published in 1820 by Theopholis Holdred, a London watchmaker. • Of course, Paolo Ruffini (1765 – 1822), who we will discuss later in another context, already won a prize for outlining this method in . • And, of course, there’s Shu Shi‐jie, more than four centuries earlier. Magic Squares Lo Shu

• The semi‐mythical Emperor Yu, (circa 2197 BC) walking along the banks of the Luo River, looked down to see the Divine Turtle. On the back of his shell was a strange design. Lo Shu

• When the design on the back was translated into numbers, it gave the 3x3 magic square. • Saying “the” 3x3 magic square is appropriate because it is unique up to rotations and reflections. He Tu

• According to legend, the He Tu is said to have appeared to Emperor Yu on the back of (or from the hoof‐prints of) a Dragon‐Horse springing out of the Huang (Yellow) River. He Tu

• When it was translated into numbers, it gave a 7 cross‐shaped array. 2 • To understand its meaning is to understand 83549 the structure of the universe, apparently. 1 • Or, at least to understand that, disregarding the 6 central 5, the odds and evens both add to 20. Magic Squares

, “Continuation of Ancient Mathematical Methods for Elucidating the Strange Properties of Numbers”, 1275. Order 3

• Arrange 1‐9 in three 1 rows slanting downward to the right. 42 753 86 9 Order 3

• Arrange 1‐9 in three 9 rows slanting downward to the right. 42 • Exchange the head (1) 753 and the shoe (9). 86 1 Order 3

• Arrange 1‐9 in three 9 rows slanting downward to the right. 42 • Exchange the head (1) 357 and the shoe (9). • Exchange the 7 and 3. 86 1 Order 3

• Arrange 1‐9 in three rows slanting downward to the right. 492 • Exchange the head (1) 357 and the shoe (9). • Exchange the 7 and 3. 816 • Lower 9, and raise 1. Order 3

• Arrange 1‐9 in three rows slanting downward to the right. 492 • Exchange the head (1) 357 and the shoe (9). • Exchange the 7 and 3. 816 • Lower 9, and raise 1. • Skootch* in the 3 and 7 *technical term Order 3 –The Lo Shu Order 4

• Write 1 –16 in four rows. 1234 5678 9 101112 13 14 15 16 Order 4

• Write 1 –16 in four rows. • Exchange corners of 16 2 3 13 outer square 5678 9 101112 414151 Order 4

• Write 1 –16 in four rows. • Exchange corners of 16 2 3 13 outer square 511108 • Exchange the corners of 97612 inner square. 414151 Order 4

• Write 1 –16 in four rows. • Exchange corners of 16 2 3 13 outer square 511108 • Exchange the corners of 97612 inner square. 414151 Order 4

• Write 1 –16 in four rows. • Exchange corners of 16 2 3 13 outer square 511108 • Exchange the corners of 97612 inner square. 414151 • Voila! Sum is 34. Order 4

• Other magic squares of order 4 are possible for different initial arrangements of the numbers 1 – 16.

13951 49516 14 10 6 2 14 7 11 2 15 11 7 3 15 6 10 3 16 12 8 4 112813 Order 5, 6, 7, ….

• Yang Hui constructed magic squares of orders up through 10, although some were incomplete. A Little About Magic Squares

• Normal magic squares of • . For the first order n are n x n arrays containing each number few n’s this is 15, 34, 65. from 1 through They 111, 175 . . . exist for all . • For n odd, the number in the central cell is • The sum of each row, column, and diagonal is the magic number M which for normal magic squares depends only on n.