{"id":1372,"date":"2025-07-24T19:13:50","date_gmt":"2025-07-24T19:13:50","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/precalculus\/?post_type=chapter&#038;p=1372"},"modified":"2026-03-23T18:13:35","modified_gmt":"2026-03-23T18:13:35","slug":"matrices-and-matrix-operations-learn-it-2","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/precalculus\/chapter\/matrices-and-matrix-operations-learn-it-2\/","title":{"raw":"Matrices and Matrix Operations: Learn It 2","rendered":"Matrices and Matrix Operations: Learn It 2"},"content":{"raw":"<h2>Adding and Subtracting Matrices<\/h2>\r\nNow that we understand the basics of what a matrix is, let's move on to two important operations: adding and subtracting matrices.\r\n\r\nMatrices are made up of numbers arranged in rows and columns. Since these are numbers, we can add and subtract them just like we do with regular numbers. To add or subtract matrices, they must be of the <strong>same dimensions<\/strong>, meaning they must have the same number of rows and columns.\r\n\r\nWhen adding or subtracting matrices, we perform the operation on each corresponding element. For example, the number in row [latex]1[\/latex], column [latex]2[\/latex] of the first matrix must be added to or subtracted from the number in row [latex]1[\/latex], column [latex]2[\/latex] of the second matrix.\r\n\r\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\r\n<h3>adding and subtracting matrices<\/h3>\r\nGiven matrices [latex]A[\/latex] and [latex]B[\/latex] of like dimensions, addition and subtraction of [latex]A[\/latex] and [latex]B[\/latex] will produce matrix [latex]C[\/latex] or\u00a0matrix [latex]D[\/latex] of the same dimension.\r\n<p style=\"text-align: center;\">[latex]A+B=C\\text{ such that }{a}_{ij}+{b}_{ij}={c}_{ij}[\/latex]<\/p>\r\n<p style=\"text-align: center;\">[latex]A-B=D\\text{ such that }{a}_{ij}-{b}_{ij}={d}_{ij}[\/latex]<\/p>\r\nMatrix addition is commutative.\r\n<p style=\"text-align: center;\">[latex]A+B=B+A[\/latex]<\/p>\r\nIt is also associative.\r\n<p style=\"text-align: center;\">[latex]\\left(A+B\\right)+C=A+\\left(B+C\\right)[\/latex]<\/p>\r\n\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">Given [latex]A[\/latex] and [latex]B:[\/latex]\r\n<p style=\"text-align: center;\">[latex]A=\\left[\\begin{array}{rrr}\\hfill 2&amp; \\hfill -10&amp; \\hfill -2\\\\ \\hfill 14&amp; \\hfill 12&amp; \\hfill 10\\\\ \\hfill 4&amp; \\hfill -2&amp; \\hfill 2\\end{array}\\right]\\text{ and }B=\\left[\\begin{array}{rrr}\\hfill 6&amp; \\hfill 10&amp; \\hfill -2\\\\ \\hfill 0&amp; \\hfill -12&amp; \\hfill -4\\\\ \\hfill -5&amp; \\hfill 2&amp; \\hfill -2\\end{array}\\right][\/latex]<\/p>\r\n\r\n<ol>\r\n \t<li>Find the sum.<\/li>\r\n \t<li>Find the difference.<\/li>\r\n<\/ol>\r\n[reveal-answer q=\"286263\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"286263\"]\r\n<ol>\r\n \t<li>Add the corresponding entries.\r\n<div style=\"text-align: center;\">[latex]\\begin{array}{ll}\\hfill \\\\ A+B&amp; =\\left[\\begin{array}{rrr}\\hfill 2&amp; \\hfill -10&amp; \\hfill -2\\\\ \\hfill 14&amp; \\hfill 12&amp; \\hfill 10\\\\ \\hfill 4&amp; \\hfill -2&amp; \\hfill 2\\end{array}\\right]+\\left[\\begin{array}{rrr}\\hfill 6&amp; \\hfill 10&amp; \\hfill -2\\\\ \\hfill 0&amp; \\hfill -12&amp; \\hfill -4\\\\ \\hfill -5&amp; \\hfill 2&amp; \\hfill -2\\end{array}\\right]\\hfill \\\\ &amp; =\\left[\\begin{array}{rrr}\\hfill 2+6&amp; \\hfill -10+10&amp; \\hfill -2 - 2\\\\ \\hfill 14+0&amp; \\hfill 12 - 12&amp; \\hfill 10 - 4\\\\ \\hfill 4 - 5&amp; \\hfill -2+2&amp; \\hfill 2 - 2\\end{array}\\right]\\hfill \\\\ &amp; =\\left[\\begin{array}{rrr}\\hfill 8&amp; \\hfill 0&amp; \\hfill -4\\\\ \\hfill 14&amp; \\hfill 0&amp; \\hfill 6\\\\ \\hfill -1&amp; \\hfill 0&amp; \\hfill 0\\end{array}\\right]\\hfill \\end{array}[\/latex]<\/div><\/li>\r\n \t<li>Subtract the corresponding entries.\r\n<div style=\"text-align: center;\">[latex]\\begin{array}{ll}\\hfill \\\\ A-B &amp; =\\left[\\begin{array}{rrr}\\hfill 2&amp; \\hfill -10&amp; \\hfill -2\\\\ \\hfill 14&amp; \\hfill 12&amp; \\hfill 10\\\\ \\hfill 4&amp; \\hfill -2&amp; \\hfill 2\\end{array}\\right]-\\left[\\begin{array}{rrr}\\hfill 6&amp; \\hfill 10&amp; \\hfill -2\\\\ \\hfill 0&amp; \\hfill -12&amp; \\hfill -4\\\\ \\hfill -5&amp; \\hfill 2&amp; \\hfill -2\\end{array}\\right]\\hfill \\\\ &amp; =\\left[\\begin{array}{rrr}\\hfill 2 - 6&amp; \\hfill -10 - 10&amp; \\hfill -2+2\\\\ \\hfill 14 - 0&amp; \\hfill 12+12&amp; \\hfill 10+4\\\\ \\hfill 4+5&amp; \\hfill -2 - 2&amp; \\hfill 2+2\\end{array}\\right]\\hfill \\\\ &amp; =\\left[\\begin{array}{rrr}\\hfill -4&amp; \\hfill -20&amp; \\hfill 0\\\\ \\hfill 14&amp; \\hfill 24&amp; \\hfill 14\\\\ \\hfill 9&amp; \\hfill -4&amp; \\hfill 4\\end{array}\\right]\\hfill \\end{array}[\/latex]<\/div><\/li>\r\n<\/ol>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]321697[\/ohm_question]<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]321698[\/ohm_question]<\/section>","rendered":"<h2>Adding and Subtracting Matrices<\/h2>\n<p>Now that we understand the basics of what a matrix is, let&#8217;s move on to two important operations: adding and subtracting matrices.<\/p>\n<p>Matrices are made up of numbers arranged in rows and columns. Since these are numbers, we can add and subtract them just like we do with regular numbers. To add or subtract matrices, they must be of the <strong>same dimensions<\/strong>, meaning they must have the same number of rows and columns.<\/p>\n<p>When adding or subtracting matrices, we perform the operation on each corresponding element. For example, the number in row [latex]1[\/latex], column [latex]2[\/latex] of the first matrix must be added to or subtracted from the number in row [latex]1[\/latex], column [latex]2[\/latex] of the second matrix.<\/p>\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\n<h3>adding and subtracting matrices<\/h3>\n<p>Given matrices [latex]A[\/latex] and [latex]B[\/latex] of like dimensions, addition and subtraction of [latex]A[\/latex] and [latex]B[\/latex] will produce matrix [latex]C[\/latex] or\u00a0matrix [latex]D[\/latex] of the same dimension.<\/p>\n<p style=\"text-align: center;\">[latex]A+B=C\\text{ such that }{a}_{ij}+{b}_{ij}={c}_{ij}[\/latex]<\/p>\n<p style=\"text-align: center;\">[latex]A-B=D\\text{ such that }{a}_{ij}-{b}_{ij}={d}_{ij}[\/latex]<\/p>\n<p>Matrix addition is commutative.<\/p>\n<p style=\"text-align: center;\">[latex]A+B=B+A[\/latex]<\/p>\n<p>It is also associative.<\/p>\n<p style=\"text-align: center;\">[latex]\\left(A+B\\right)+C=A+\\left(B+C\\right)[\/latex]<\/p>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">Given [latex]A[\/latex] and [latex]B:[\/latex]<\/p>\n<p style=\"text-align: center;\">[latex]A=\\left[\\begin{array}{rrr}\\hfill 2& \\hfill -10& \\hfill -2\\\\ \\hfill 14& \\hfill 12& \\hfill 10\\\\ \\hfill 4& \\hfill -2& \\hfill 2\\end{array}\\right]\\text{ and }B=\\left[\\begin{array}{rrr}\\hfill 6& \\hfill 10& \\hfill -2\\\\ \\hfill 0& \\hfill -12& \\hfill -4\\\\ \\hfill -5& \\hfill 2& \\hfill -2\\end{array}\\right][\/latex]<\/p>\n<ol>\n<li>Find the sum.<\/li>\n<li>Find the difference.<\/li>\n<\/ol>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q286263\">Show Solution<\/button><\/p>\n<div id=\"q286263\" class=\"hidden-answer\" style=\"display: none\">\n<ol>\n<li>Add the corresponding entries.\n<div style=\"text-align: center;\">[latex]\\begin{array}{ll}\\hfill \\\\ A+B& =\\left[\\begin{array}{rrr}\\hfill 2& \\hfill -10& \\hfill -2\\\\ \\hfill 14& \\hfill 12& \\hfill 10\\\\ \\hfill 4& \\hfill -2& \\hfill 2\\end{array}\\right]+\\left[\\begin{array}{rrr}\\hfill 6& \\hfill 10& \\hfill -2\\\\ \\hfill 0& \\hfill -12& \\hfill -4\\\\ \\hfill -5& \\hfill 2& \\hfill -2\\end{array}\\right]\\hfill \\\\ & =\\left[\\begin{array}{rrr}\\hfill 2+6& \\hfill -10+10& \\hfill -2 - 2\\\\ \\hfill 14+0& \\hfill 12 - 12& \\hfill 10 - 4\\\\ \\hfill 4 - 5& \\hfill -2+2& \\hfill 2 - 2\\end{array}\\right]\\hfill \\\\ & =\\left[\\begin{array}{rrr}\\hfill 8& \\hfill 0& \\hfill -4\\\\ \\hfill 14& \\hfill 0& \\hfill 6\\\\ \\hfill -1& \\hfill 0& \\hfill 0\\end{array}\\right]\\hfill \\end{array}[\/latex]<\/div>\n<\/li>\n<li>Subtract the corresponding entries.\n<div style=\"text-align: center;\">[latex]\\begin{array}{ll}\\hfill \\\\ A-B & =\\left[\\begin{array}{rrr}\\hfill 2& \\hfill -10& \\hfill -2\\\\ \\hfill 14& \\hfill 12& \\hfill 10\\\\ \\hfill 4& \\hfill -2& \\hfill 2\\end{array}\\right]-\\left[\\begin{array}{rrr}\\hfill 6& \\hfill 10& \\hfill -2\\\\ \\hfill 0& \\hfill -12& \\hfill -4\\\\ \\hfill -5& \\hfill 2& \\hfill -2\\end{array}\\right]\\hfill \\\\ & =\\left[\\begin{array}{rrr}\\hfill 2 - 6& \\hfill -10 - 10& \\hfill -2+2\\\\ \\hfill 14 - 0& \\hfill 12+12& \\hfill 10+4\\\\ \\hfill 4+5& \\hfill -2 - 2& \\hfill 2+2\\end{array}\\right]\\hfill \\\\ & =\\left[\\begin{array}{rrr}\\hfill -4& \\hfill -20& \\hfill 0\\\\ \\hfill 14& \\hfill 24& \\hfill 14\\\\ \\hfill 9& \\hfill -4& \\hfill 4\\end{array}\\right]\\hfill \\end{array}[\/latex]<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm321697\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=321697&theme=lumen&iframe_resize_id=ohm321697&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm321698\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=321698&theme=lumen&iframe_resize_id=ohm321698&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":13,"menu_order":5,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":514,"module-header":"learn_it","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/1372"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/users\/13"}],"version-history":[{"count":6,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/1372\/revisions"}],"predecessor-version":[{"id":5965,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/1372\/revisions\/5965"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/parts\/514"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/1372\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/media?parent=1372"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapter-type?post=1372"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/contributor?post=1372"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/license?post=1372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}