{"id":1223,"date":"2025-07-23T20:48:06","date_gmt":"2025-07-23T20:48:06","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/precalculus\/?post_type=chapter&#038;p=1223"},"modified":"2026-03-20T15:38:28","modified_gmt":"2026-03-20T15:38:28","slug":"systems-of-linear-equations-in-two-variables-learn-it-3","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/precalculus\/chapter\/systems-of-linear-equations-in-two-variables-learn-it-3\/","title":{"raw":"Systems of Linear Equations in Two Variables: Learn It 3","rendered":"Systems of Linear Equations in Two Variables: Learn It 3"},"content":{"raw":"<h2>Solving Systems of Equations by Substitution<\/h2>\r\nSolving a linear system in two variables by graphing works well when the solution consists of integer values, but if our solution contains decimals or fractions, it is not the most precise method. We will consider two more methods of solving a system of linear equations that are more precise than graphing.\r\n\r\nOne such method is solving a system of equations by the <strong>substitution method<\/strong>, in which we solve one of the equations for one variable and then substitute the result into the second equation to solve for the second variable. Recall that we can solve for only one variable at a time, which is the reason the substitution method is both valuable and practical.\r\n\r\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a system of two equations in two variables, solve using the substitution method.<\/strong>\r\n<ol>\r\n \t<li>Solve one of the two equations for one of the variables in terms of the other.<\/li>\r\n \t<li>Substitute the expression for this variable into the second equation, then solve for the remaining variable.<\/li>\r\n \t<li>Substitute that solution into either of the original equations to find the value of the first variable. If possible, write the solution as an ordered pair.<\/li>\r\n \t<li>Check the solution in both equations.<\/li>\r\n<\/ol>\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">Solve the following system of equations by substitution.\r\n<p style=\"text-align: center;\">[latex]\\begin{align}-x+y&amp;=-5 \\\\ 2x-5y&amp;=1 \\end{align}[\/latex]<\/p>\r\n[reveal-answer q=\"786744\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"786744\"]\r\n\r\nFirst, we will solve the first equation for [latex]y[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{align}-x+y&amp;=-5 \\\\ y&amp;=x - 5 \\end{align}[\/latex]<\/p>\r\nNow we can substitute the expression [latex]x - 5[\/latex] for [latex]y[\/latex] in the second equation.\r\n<p style=\"text-align: center;\">[latex]\\begin{align}2x - 5y&amp;=1 \\\\ 2x - 5\\left(x - 5\\right)&amp;=1 \\\\ 2x - 5x+25&amp;=1 \\\\ -3x&amp;=-24 \\\\ x&amp;=8 \\end{align}[\/latex]<\/p>\r\nNow, we substitute [latex]x=8[\/latex] into the first equation and solve for [latex]y[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{align}-\\left(8\\right)+y&amp;=-5 \\\\ y&amp;=3 \\end{align}[\/latex]<\/p>\r\nOur solution is [latex]\\left(8,3\\right)[\/latex].\r\n\r\nCheck the solution by substituting [latex]\\left(8,3\\right)[\/latex] into both equations.\r\n<p style=\"text-align: center;\">[latex]\\begin{align}-x+y&amp;=-5 \\\\ -\\left(8\\right)+\\left(3\\right)&amp;=-5 &amp;&amp; \\text{True} \\\\[3mm] 2x - 5y&amp;=1 \\\\ 2\\left(8\\right)-5\\left(3\\right)&amp;=1 &amp;&amp; \\text{True} \\end{align}[\/latex]<\/p>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">Solve the following system of equations.\r\n<p style=\"text-align: center;\">[latex]\\begin{gathered}&amp;x=9 - 2y \\\\ &amp;x+2y=13 \\end{gathered}[\/latex]<\/p>\r\n[reveal-answer q=\"888134\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"888134\"]\r\n\r\nBecause one equation is already solved for [latex]x[\/latex], we can substitute\u00a0 [latex]x=9 - 2y[\/latex] into the second equation:\r\n<p style=\"text-align: center;\">[latex]\\begin{align}x+2y&amp;=13 \\\\ \\left(9 - 2y\\right)+2y&amp;=13 \\\\ 9+0y&amp;=13 \\\\ 9&amp;=13 \\end{align}[\/latex]<\/p>\r\nClearly, this statement is a contradiction because [latex]9\\ne 13[\/latex]. Therefore, the system has <strong>no solution<\/strong>.\r\n\r\n<img class=\"alignright\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/11\/03183613\/CNX_Precalc_Figure_09_01_0072.jpg\" alt=\"A graph of two parallel lines. The first line's equation is y equals negative one-half x plus 13 over two. The second line's equation is y equals negative one-half x plus 9 over two.\" width=\"301\" height=\"183\" \/>\r\n\r\n<strong>Analysis of the Solution<\/strong>\r\n\r\nLet's graph the equations to confirm that the system has no solution. Writing the equations in slope-intercept form confirms that the system is <strong>inconsistent<\/strong> because all lines will intersect eventually unless they are parallel. Parallel lines will never intersect; thus, the two lines have no points in common.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]321588[\/ohm_question]<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]321589[\/ohm_question]<\/section>","rendered":"<h2>Solving Systems of Equations by Substitution<\/h2>\n<p>Solving a linear system in two variables by graphing works well when the solution consists of integer values, but if our solution contains decimals or fractions, it is not the most precise method. We will consider two more methods of solving a system of linear equations that are more precise than graphing.<\/p>\n<p>One such method is solving a system of equations by the <strong>substitution method<\/strong>, in which we solve one of the equations for one variable and then substitute the result into the second equation to solve for the second variable. Recall that we can solve for only one variable at a time, which is the reason the substitution method is both valuable and practical.<\/p>\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a system of two equations in two variables, solve using the substitution method.<\/strong><\/p>\n<ol>\n<li>Solve one of the two equations for one of the variables in terms of the other.<\/li>\n<li>Substitute the expression for this variable into the second equation, then solve for the remaining variable.<\/li>\n<li>Substitute that solution into either of the original equations to find the value of the first variable. If possible, write the solution as an ordered pair.<\/li>\n<li>Check the solution in both equations.<\/li>\n<\/ol>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">Solve the following system of equations by substitution.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}-x+y&=-5 \\\\ 2x-5y&=1 \\end{align}[\/latex]<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q786744\">Show Solution<\/button><\/p>\n<div id=\"q786744\" class=\"hidden-answer\" style=\"display: none\">\n<p>First, we will solve the first equation for [latex]y[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}-x+y&=-5 \\\\ y&=x - 5 \\end{align}[\/latex]<\/p>\n<p>Now we can substitute the expression [latex]x - 5[\/latex] for [latex]y[\/latex] in the second equation.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}2x - 5y&=1 \\\\ 2x - 5\\left(x - 5\\right)&=1 \\\\ 2x - 5x+25&=1 \\\\ -3x&=-24 \\\\ x&=8 \\end{align}[\/latex]<\/p>\n<p>Now, we substitute [latex]x=8[\/latex] into the first equation and solve for [latex]y[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}-\\left(8\\right)+y&=-5 \\\\ y&=3 \\end{align}[\/latex]<\/p>\n<p>Our solution is [latex]\\left(8,3\\right)[\/latex].<\/p>\n<p>Check the solution by substituting [latex]\\left(8,3\\right)[\/latex] into both equations.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}-x+y&=-5 \\\\ -\\left(8\\right)+\\left(3\\right)&=-5 && \\text{True} \\\\[3mm] 2x - 5y&=1 \\\\ 2\\left(8\\right)-5\\left(3\\right)&=1 && \\text{True} \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">Solve the following system of equations.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{gathered}&x=9 - 2y \\\\ &x+2y=13 \\end{gathered}[\/latex]<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q888134\">Show Solution<\/button><\/p>\n<div id=\"q888134\" class=\"hidden-answer\" style=\"display: none\">\n<p>Because one equation is already solved for [latex]x[\/latex], we can substitute\u00a0 [latex]x=9 - 2y[\/latex] into the second equation:<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}x+2y&=13 \\\\ \\left(9 - 2y\\right)+2y&=13 \\\\ 9+0y&=13 \\\\ 9&=13 \\end{align}[\/latex]<\/p>\n<p>Clearly, this statement is a contradiction because [latex]9\\ne 13[\/latex]. Therefore, the system has <strong>no solution<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/11\/03183613\/CNX_Precalc_Figure_09_01_0072.jpg\" alt=\"A graph of two parallel lines. The first line's equation is y equals negative one-half x plus 13 over two. The second line's equation is y equals negative one-half x plus 9 over two.\" width=\"301\" height=\"183\" \/><\/p>\n<p><strong>Analysis of the Solution<\/strong><\/p>\n<p>Let&#8217;s graph the equations to confirm that the system has no solution. Writing the equations in slope-intercept form confirms that the system is <strong>inconsistent<\/strong> because all lines will intersect eventually unless they are parallel. Parallel lines will never intersect; thus, the two lines have no points in common.<\/p>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm321588\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=321588&theme=lumen&iframe_resize_id=ohm321588&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm321589\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=321589&theme=lumen&iframe_resize_id=ohm321589&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":13,"menu_order":9,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":131,"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\/1223"}],"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":5,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/1223\/revisions"}],"predecessor-version":[{"id":5930,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/1223\/revisions\/5930"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/parts\/131"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/1223\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/media?parent=1223"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapter-type?post=1223"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/contributor?post=1223"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/license?post=1223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}