{"id":1054,"date":"2008-04-08T08:05:29","date_gmt":"2008-04-08T00:05:29","guid":{"rendered":"http:\/\/www.intmath.com\/blog\/?p=1054"},"modified":"2019-08-15T14:54:38","modified_gmt":"2019-08-15T06:54:38","slug":"where-did-matrices-and-determinants-come-from","status":"publish","type":"post","link":"https:\/\/www.intmath.com\/blog\/mathematics\/where-did-matrices-and-determinants-come-from-1054","title":{"rendered":"Where did matrices and determinants come from?"},"content":{"rendered":"<p>A reader of the <a href=\"https:\/\/www.intmath.com\/matrices-determinants\/matrix-determinant-intro.php\">Matrices and Determinants<\/a> chapter in Interactive Mathematics recently wrote and asked where matrices and determinants come from and why do they work?<\/p>\n<p><strong>Matrices<\/strong> are essential for solving large sets of simultaneous equations using a computer. We certainly don't want to use a different letter for each variable in our problem (or lots of subscripts, like a<sub>34<\/sub>) because it would slow down the solution process and would be horrible to code. With matrices, we don't have to include any variables - just the numbers in front of those variables.<\/p>\n<p>So for example, suppose we are trying to solve this 4x4 system of equations:<\/p>\n<p class=\"intmath\">3<em>x<\/em> + 4<em>y<\/em> + 2<em>z<\/em> &minus;6<em>w<\/em> = 5<br \/>\n<em>x<\/em> &minus; 5<em>y<\/em> + 7<em>z<\/em> + 10<em>w<\/em> = &minus;8<br \/>\n8<em>x<\/em> + 5<em>y<\/em> &minus; <em>z<\/em> + 7<em>w<\/em> = 8<br \/>\n6<em>x<\/em> &minus; 4<em>y<\/em> + 12<em>z<\/em> + 15<em>w<\/em> = 4<\/p>\n<p>We only need to give the computer the <strong>coefficients<\/strong>, like this:<\/p>\n<pre>3   4   2  &minus;6  |  5\r\n1  &minus;5   7  10  | &minus;8\r\n8   5  &minus;1   7  |  8\r\n6  &minus;4  12  15  |  4<\/pre>\n<p>The computer just works on the numbers &minus; it doesn't need the letters.<\/p>\n<h2>The Han Chinese and Simultaneous Equations<\/h2>\n<p>Here's a problem from a Chinese mathematics book written in 200BC. (<a href=\"http:\/\/www-groups.dcs.st-and.ac.uk\/~history\/HistTopics\/Matrices_and_determinants.html\">Source<\/a>)<\/p>\n<blockquote>\n<p>There are three types of corn, of which three bundles of the first, 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 corn are contained of one bundle of each type?<\/p>\n<\/blockquote>\n<p>It looks a lot like the kind of problems in textbooks today, doesn't it?<\/p>\n<p>The remarkable thing about this problem is the way that the Chinese writer solved it. First, they set up the numbers involved as follows:<\/p>\n<pre> 1   2   3\r\n 2   3   2\r\n 3   1   1\r\n26  34  39<\/pre>\n<p>(They are using rows where we would use columns. It doesn't matter.)<\/p>\n<p>The instruction is to...<\/p>\n<blockquote>\n<p>...multiply the middle column by 3 and subtract the right column <strong>as many times as possible<\/strong>, the same is then done subtracting the right column <strong>as many times as possible<\/strong> from 3 times the first column. This gives<\/p>\n<\/blockquote>\n<pre> 0   0   3\r\n 4   5   2\r\n 8   1   1\r\n39  24  39<\/pre>\n<p>A similar process occurs to eliminate the 4 in the second row.<\/p>\n<pre> 0   0   3\r\n 0   5   2\r\n36   1   1\r\n99  24  39<\/pre>\n<p>From this, we can read off the answer for the amount of the 3rd type (99\/36 = 11\/4) and then substitute to find the second type (17\/4) and first type of corn (37\/4).<\/p>\n<p>We now call this process <strong>Gaussian Elimination<\/strong> after the German mathematician Gauss (1777-1855).<\/p>\n<p>Maybe it should be called <strong>Han Elimination<\/strong>.<\/p>\n<p>You can read more interesting <a href=\"http:\/\/www-groups.dcs.st-and.ac.uk\/~history\/HistTopics\/Matrices_and_determinants.html\">history about matrices and determinants<\/a> from The MacTutor History of Mathematics archive.<\/p>\n<style>\n.tbls div{display:inline-block;width:150px;margin-bottom:1.5em}\n.tbls td{padding:0.3em;text-align:right}\ntd[colspan=\"3\"]{text-align:left}\n.col1grn tr td:not([colspan=\"3\"]):nth-child(1){background:lightgreen}\n.col2grn tr:not(first-child) td:nth-child(2){background:lightgreen}\n.col2 tr:not(first-child) td:nth-child(2){background:pink}\n.intmath{}\n<\/style>\n<p class=\"alt\">See the <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/where-did-matrices-and-determinants-come-from-1054#comments\" id=\"comms\">12 Comments<\/a> below.<\/p>\n","protected":false},"excerpt":{"rendered":"<div style=\"font-size:48pt;width:128px;text-align:center;\">M<sup>-1<\/sup><\/div>\n<p>Why do we have matrices and where do we use them? We learn the Chinese developed them long before the West.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":""},"categories":[4],"tags":[127],"_links":{"self":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/1054"}],"collection":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/comments?post=1054"}],"version-history":[{"count":4,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/1054\/revisions"}],"predecessor-version":[{"id":12089,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/1054\/revisions\/12089"}],"wp:attachment":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/media?parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/categories?post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/tags?post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}