{"id":26390,"date":"2015-10-19T10:02:07","date_gmt":"2015-10-19T15:02:07","guid":{"rendered":"http:\/\/blogs.ams.org\/mathgradblog\/?p=26390"},"modified":"2015-11-01T22:41:45","modified_gmt":"2015-11-02T03:41:45","slug":"matrix-multiplication-easy","status":"publish","type":"post","link":"https:\/\/blogs.ams.org\/mathgradblog\/2015\/10\/19\/matrix-multiplication-easy\/","title":{"rendered":"Matrix Multiplication Made Easy"},"content":{"rendered":"<p>(or How I Learned to Stop Worrying and Love the Matrix, part I)<\/p>\n<p>For those of you charged with teaching a linear algebra course or still struggling to picture the complicated dance of mass arithmetic known as matrix multiplication, here\u2019s a neat visualization tip:<\/p>\n<p>Draw your matrices like this:<\/p>\n<p><a href=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Noname.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-26393 aligncenter\" src=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Noname.gif\" alt=\"Noname\" width=\"251\" height=\"185\" \/><\/a><\/p>\n<p><!--more-->Once you\u2019ve drawn them it should be immediately obvious how each entry in the new matrix gets filled: take the dot product of its row and column.<\/p>\n<p><a href=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Mtx-Mult.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-26391 aligncenter\" src=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Mtx-Mult-300x215.gif\" alt=\"Mtx Mult\" width=\"478\" height=\"343\" srcset=\"https:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Mtx-Mult-300x215.gif 300w, https:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Mtx-Mult-1024x735.gif 1024w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/a><\/p>\n<p>You immediately can visualize what size the new matrix will be:<\/p>\n<p><a href=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Size.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-26394 aligncenter\" src=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Size-300x200.gif\" alt=\"Size\" width=\"387\" height=\"258\" srcset=\"https:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Size-300x200.gif 300w, https:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Size-1024x683.gif 1024w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<p>And whether multiplication will be impossible because the sizes are incompatible:<\/p>\n<p><a href=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Incompatable.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-26395 aligncenter\" src=\"http:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Incompatable-300x200.gif\" alt=\"Incompatable\" width=\"363\" height=\"241\" srcset=\"https:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Incompatable-300x200.gif 300w, https:\/\/blogs.ams.org\/mathgradblog\/files\/2015\/10\/Incompatable-1024x683.gif 1024w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/a><\/p>\n<p>Once you\u2019ve multiplied matrices this way by hand a few times, it will start to feel natural to picture them this way.\u00a0 Then the next time you encounter matrix multiplication in an application or proof, even if no one\u2019s asking you to compute the answer, you can lay matrices out this way in your mind\u2019s eye to picture what exactly the multiplication does.<\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>(or How I Learned to Stop Worrying and Love the Matrix, part I) For those of you charged with teaching a linear algebra course or still struggling to picture the complicated dance of mass arithmetic known as matrix multiplication, here\u2019s &hellip; <a href=\"https:\/\/blogs.ams.org\/mathgradblog\/2015\/10\/19\/matrix-multiplication-easy\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" data-url=https:\/\/blogs.ams.org\/mathgradblog\/2015\/10\/19\/matrix-multiplication-easy\/><\/div>\n","protected":false},"author":93,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,3,12,20,1],"tags":[],"class_list":["post-26390","post","type-post","status-publish","format-standard","hentry","category-advice","category-ams","category-math","category-teaching","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3gbww-6RE","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts\/26390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/users\/93"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/comments?post=26390"}],"version-history":[{"count":4,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts\/26390\/revisions"}],"predecessor-version":[{"id":26405,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts\/26390\/revisions\/26405"}],"wp:attachment":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/media?parent=26390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/categories?post=26390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/tags?post=26390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}