{"id":6656,"date":"2020-10-03T16:30:11","date_gmt":"2020-10-03T16:30:11","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/slcc-beginalgebra\/?post_type=chapter&#038;p=6656"},"modified":"2026-01-17T23:09:56","modified_gmt":"2026-01-17T23:09:56","slug":"3-7-writing-linear-equations","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/chapter\/3-7-writing-linear-equations\/","title":{"raw":"3.7: Writing Linear Equations","rendered":"3.7: Writing Linear Equations"},"content":{"raw":"<div class=\"textbox learning-objectives\">\r\n<h3>section 3.7 Learning Objectives<\/h3>\r\n<strong>3.7: Writing Linear Equations<\/strong>\r\n<ul>\r\n \t<li>Write the equation of the line given the slope and the y-intercept using the slope-intercept form<\/li>\r\n \t<li>Write the equation of the line given the slope and a point on the line using the point-slope form<\/li>\r\n \t<li>Write the equation of the line given two points on the line<\/li>\r\n \t<li>Write the equation of a horizontal or vertical line when given the graph<\/li>\r\n \t<li>Write the equation of a line given a point and a parallel or perpendicular line<\/li>\r\n<\/ul>\r\n<\/div>\r\n&nbsp;\r\n\r\nIn this section, we will write the equation of a line given some information about the line.\u00a0 We will use two forms of a line to help us do this.\r\n<p style=\"text-align: center;\">The Slope-Intercept Form:\u00a0 [latex]y = mx + b[\/latex]<\/p>\r\n<p style=\"text-align: center;\">The Point-Slope Form:\u00a0\u00a0[latex]y-{y}_{1}=m\\left(x-{x}_{1}\\right)[\/latex]<\/p>\r\n\r\n<h2>Write the equation of a line given the slope and y-intercept<\/h2>\r\nIn a previous section, we were introduced to the Slope-Intercept Form of a line.\u00a0 We learned that if an equation is written in this form, it is easy to identify the slope of the line and its y-intercept.\u00a0 In this section, we are being asked to write the equation of the line.\u00a0 If we know the slope and the y-intercept of a line, we can use the Slope-Intercept Form to help us do that.\r\n<p style=\"text-align: center;\">[latex]y = mx + b[\/latex]<\/p>\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}\\,\\,\\,\\,\\,m\\,\\,\\,\\,=\\,\\,\\,\\text{slope}\\\\(x,y)=\\,\\,\\,\\text{a point on the line}\\\\\\,\\,\\,\\,\\,\\,\\,b\\,\\,\\,\\,=\\,\\,\\,\\text{the y value of the y-intercept}\\end{array}[\/latex]<\/p>\r\n\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example 1<\/h3>\r\nWrite the equation of the line that has a slope of [latex] \\displaystyle \\frac{1}{2}[\/latex] and a <i>y<\/i>-intercept of [latex](0,-5)[\/latex].\r\n\r\n[reveal-answer q=\"624715\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"624715\"]Substitute the slope (<i>m<\/i>) into [latex]y=mx+b[\/latex].\r\n<p style=\"text-align: center;\">[latex] \\displaystyle y=\\frac{1}{2}x+b[\/latex]<\/p>\r\nSubstitute the <i>y<\/i>-intercept (<i>b<\/i>) into the equation.\r\n<p style=\"text-align: center;\">[latex] \\displaystyle y=\\frac{1}{2}x-5[\/latex]<\/p>\r\n\r\n<h4>Answer<\/h4>\r\n[latex]y=\\frac{1}{2}x-5[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nWe can also find the equation by looking at a graph and finding the slope and <em>y<\/em>-intercept.\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example 2<\/h3>\r\nWrite the equation of the line in the graph by identifying the slope and <em>y<\/em>-intercept.\r\n<img class=\"wp-image-9629 size-full aligncenter\" src=\"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-content\/uploads\/sites\/5465\/2020\/10\/SVG_Grapher-300x297-2.png\" alt=\"A decreasing linear graph with vertical and horizontal segments from (0,3) to (3,1) forming a right triangle with the line.\" width=\"300\" height=\"289\" \/>\r\n[reveal-answer q=\"96446\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"96446\"]Identify the point where the graph crosses the y-axis [latex](0,3)[\/latex]. This means the <em>y<\/em>-intercept is (0,3).\r\n\r\nIdentify one other point and draw a slope triangle to find the slope.\r\n\r\nThe slope is [latex]\\frac{-2}{3}[\/latex]\r\n\r\nSubstitute the slope and <em>y<\/em> value of the intercept into the slope-intercept equation.\r\n<p style=\"text-align: center;\">[latex]y=mx+b\\\\y=\\frac{-2}{3}x+b\\\\y=\\frac{-2}{3}x+3[\/latex]<\/p>\r\n\r\n<h4>Answer<\/h4>\r\n[latex]y=\\frac{-2}{3}x+3[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\nhttps:\/\/youtu.be\/GIn7vbB5AYo\r\n\r\n&nbsp;\r\n<h2 id=\"Find the Equation of a Line Given the Slope and a Point on the Line\">Write the equation of a line given the slope and a point on the line<\/h2>\r\nUsing the slope-intercept form of a line is easy when you know both the slope (<i>m<\/i>) and the <i>y<\/i>-intercept (<i>b<\/i>), but what if you know the slope and just any point on the line, not specifically the <i>y<\/i>-intercept? Can you still write the equation? The answer is <i>yes<\/i>, but you will need to put in a little more thought and work than you did previously.\r\n<h3>Point-Slope Form<\/h3>\r\n<p style=\"text-align: center;\">[latex]y-{y}_{1}=m\\left(x-{x}_{1}\\right)[\/latex]<\/p>\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}\\,\\,\\,\\,\\,m\\,\\,\\,\\,=\\,\\,\\,\\text{slope}\\\\\\left({x}_{1},{y}_{1}\\right)=\\,\\,\\,\\text{a point on the line}\\end{array}[\/latex]<\/p>\r\nThis is an important formula, as it will be used in other algebra courses and often in calculus to find the equation of a tangent line. We need only one point and the slope of the line to use the formula. After substituting the slope and the coordinates of one point into the formula, we simplify it and write it in slope-intercept form.\r\n<div class=\"textbox shaded\">\r\n<h3>Point-Slope Form<\/h3>\r\nGiven a point [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex] and slope <em>m<\/em>, point-slope form will give the following equation of a line:\r\n<p style=\"text-align: center;\">[latex]y-{y}_{1}=m\\left(x-{x}_{1}\\right)[\/latex]<\/p>\r\n\r\n<\/div>\r\nIn our first example, we are given the slope and a point on a line.\u00a0 We will use the Point-Slope Form to write the equation of the line.\r\n<div class=\"textbox exercises\">\r\n<h3>Example 3<\/h3>\r\nWrite the equation of the line with slope [latex]m=-3[\/latex] that passes through the point [latex]\\left(4,8\\right)[\/latex]. Write the final equation in slope-intercept form.\r\n\r\n[reveal-answer q=\"524449\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"524449\"]\r\n\r\nUsing point-slope form, substitute [latex]-3[\/latex] for <em>m <\/em>and the point [latex]\\left(4,8\\right)[\/latex] for [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y-{y}_{1}=m\\left(x-{x}_{1}\\right)\\hfill \\\\ y - 8=-3\\left(x - 4\\right)\\hfill \\\\ y - 8=-3x+12\\hfill \\\\ y=-3x+20\\hfill \\end{array}[\/latex]<\/p>\r\nNote that any point on the line can be used to find the equation. If done correctly, the same final equation will be obtained.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nThe following video shows how to write the equation for a line given its slope and a point on the line.\r\n\r\nhttps:\/\/youtu.be\/vut5b2fRQQ0\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Think about it<\/h3>\r\nThere is an alternate method to finding the equation of a line given a point and a slope. See the example below.\r\n\r\n<strong>Write the equation of the line that has a slope of 3 and contains the point [latex](1,4)[\/latex].<\/strong>\r\n\r\n[reveal-answer q=\"161353\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"161353\"]\r\n\r\nRecall that a point is an (<i>x<\/i>, <i>y<\/i>) coordinate pair and that all points on the line will satisfy the linear equation. So, if you have a point on the line, it must be a solution to the equation. Although you don\u2019t know the exact equation yet, you know that you can express the line in slope-intercept form, [latex]y=mx+b[\/latex].\r\n\r\nYou do know the slope (<i>m<\/i>), but you just don\u2019t know the value of the <i>y<\/i>-intercept (<i>b<\/i>). Since point (<i>x<\/i>, <i>y<\/i>) is a solution to the equation, you can substitute its coordinates for <i>x<\/i> and <i>y<\/i> in [latex]y=mx+b[\/latex]\u00a0and solve to find <i>b<\/i>!\r\n\r\n&nbsp;\r\n\r\nSubstitute the slope (<i>m<\/i>) into\u00a0[latex]y=mx+b[\/latex].\r\n<p style=\"text-align: center;\">[latex]y=3x+b[\/latex]<\/p>\r\nSubstitute the point [latex](1,4)[\/latex] for <i>x <\/i>and <i>y.<\/i>\r\n<p style=\"text-align: center;\">[latex]4=3\\left(1\\right)+b[\/latex]<\/p>\r\nSolve for <i>b.<\/i>\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}4=3+b\\\\1=b\\end{array}[\/latex]<\/p>\r\nRewrite [latex]y=mx+b[\/latex]\u00a0with [latex]m=3[\/latex]\u00a0and [latex]b=1[\/latex].\r\n<h4>Answer<\/h4>\r\n[latex]y=3x+1[\/latex]\r\n\r\nTo confirm our algebra, you can check by graphing the equation [latex]y=3x+1[\/latex]. The equation checks because when graphed it passes through the point [latex](1,4)[\/latex].\r\n\r\n<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1468\/2016\/02\/04064327\/image045.jpg\" alt=\"An uphill line passes through the y-intercept of (0,1) and the point (1,4). The rise is 3 and the run is 1.\" width=\"348\" height=\"349\" \/>\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nThe following video gives an example of this alternate method.\r\n\r\nhttps:\/\/youtu.be\/URYnKqEctgc\r\n<h2 id=\"Find the Equation of a Line Given Two Points on the Line\">Write the equation of a line given two points on the line<\/h2>\r\nLet\u2019s suppose you don\u2019t know either the slope or the <i>y<\/i>-intercept, but you do know the location of two points on the line. It is more challenging, but you can find the equation of the line that would pass through those two points.\u00a0 We will begin by using the two points to find the slope of the line.\u00a0 Once you know the slope of the line, you can use the slope and one of the points in the Point-Slope Form to write the equation of the line.\r\n<div class=\"textbox exercises\">\r\n<h3>Example 4<\/h3>\r\nFind the equation of the line that passes through the points [latex]\\left(3,4\\right)[\/latex] and [latex]\\left(0,-3\\right)[\/latex]. Write the final equation in slope-intercept form.\r\n\r\n[reveal-answer q=\"249539\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"249539\"]\r\n\r\nFirst, we calculate the slope using the slope formula and two points.\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}m\\hfill &amp; =\\dfrac{-3 - 4}{0 - 3}\\hfill \\\\ \\hfill &amp; =\\dfrac{-7}{-3}\\hfill \\\\ \\hfill &amp; =\\dfrac{7}{3}\\hfill \\end{array}[\/latex]<\/p>\r\nThe easiest way to solve this problem is to recognize that the second point given, [latex](0,-3)[\/latex], is in fact the [latex]y[\/latex]-intercept. This means we know that [latex]b=-3[\/latex] in the slope-intercept form, [latex]y=mx+b[\/latex]. Plugging this value in along with the slope gives the desired equation.\r\n<p style=\"text-align: center;\">[latex]y=mx+b[\/latex]<\/p>\r\n<p style=\"text-align: center;\">[latex]y=\\dfrac{7}{3}x-3[\/latex]<\/p>\r\n\r\n<h4><span style=\"color: #666699;\">Exploring Further<\/span><\/h4>\r\nAlthough we have now answered the question, we now use point-slope form to verify that this will produce the same answer. With the slope of [latex]\\dfrac{7}{3}[\/latex], we can use either point. Let us pick the point [latex]\\left(3,4\\right)[\/latex] for [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y - 4=\\dfrac{7}{3}\\left(x - 3\\right)\\hfill \\\\ y - 4=\\dfrac{7}{3}x - 7\\hfill&amp;\\text{Distribute the }\\dfrac{7}{3}.\\hfill \\\\ y=\\dfrac{7}{3}x - 3\\hfill \\end{array}[\/latex]<\/p>\r\nIn slope-intercept form, the equation is written as [latex]y=\\dfrac{7}{3}x - 3[\/latex].\r\n\r\nThis matches the result we arrived at earlier.\r\n<h4><span style=\"color: #666699;\">Answer<\/span><\/h4>\r\n[latex]y=\\dfrac{7}{3}x-3[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<p id=\"Find the Equation of a Line Given Two Points on the Line\">In the next example, we again look for the equation of a line given two points. However, this time we are not given the [latex]y[\/latex]-intercept.<\/p>\r\n\r\n<div class=\"textbox exercises\">\r\n<h3>Example 5<\/h3>\r\nWrite the equation of the line that passes through the points [latex](2,1)[\/latex] and [latex](\u22121,\u22125)[\/latex]. Write the equation in slope-intercept form.\r\n\r\n[reveal-answer q=\"977598\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"977598\"]\r\n\r\nFirst, find the slope using the given points.\r\n<p style=\"text-align: center;\">[latex] \\displaystyle \\frac{1-(-5)}{2-(-1)}=\\frac{6}{3}=2[\/latex]<\/p>\r\nNext, we plug this into point-slope form along with either point. Let us use the point [latex](2,1)[\/latex] for [latex](x_1,y_1)[\/latex]. Then, we solve for [latex]y[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y-1=2(x-2)\\\\y-1=2x-4\\\\y=2x-3\\end{array}[\/latex]<\/p>\r\n\r\n<h4><span style=\"color: #666699;\">Exploring Further<\/span><\/h4>\r\nLet us take this opportunity to confirm our claim that we can use either point in the point-slope form. With the slope we found earlier, this time we use the point [latex](-1,-5)[\/latex] for [latex](x_1,y_1)[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y-(-5)=2(x-(-1))\\\\y+5=2(x+1)\\\\y+5=2x+2\\\\y=2x-3\\end{array}[\/latex]<\/p>\r\nBy converting to slope-intercept form, this verifies that either point (and in fact, any point on the line) will produce the same result.\r\n<h4><span style=\"color: #666699;\">Answer<\/span><\/h4>\r\n[latex]y=2x-3[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nTo further support that all the ideas we have presented will yield the same result, we now redo the same problem from Example 5 using the \"alternate method\" presented earlier in this section.\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example 6<\/h3>\r\nWrite the equation of the line that passes through the points [latex](2,1)[\/latex] and [latex](\u22121,\u22125)[\/latex].\u00a0Write the equation in slope-intercept form.\r\n\r\n[reveal-answer q=\"333536\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"333536\"]\r\n\r\nFirst, find the slope using the given points.\r\n<p style=\"text-align: center;\">[latex] \\displaystyle \\frac{1-(-5)}{2-(-1)}=\\frac{6}{3}=2[\/latex]<\/p>\r\nSubstitute the slope, [latex]m[\/latex], into [latex]y=mx+b[\/latex].\r\n<p style=\"text-align: center;\">[latex]y=2x+b[\/latex]<\/p>\r\nSubstitute the coordinates of either point for [latex]x[\/latex]<i>\u00a0<\/i>and\u00a0[latex]y[\/latex] \u2013 this example uses [latex](2, 1)[\/latex].\r\n<p style=\"text-align: center;\">[latex]1=2(2)+b[\/latex]<\/p>\r\nSolve for\u00a0[latex]b[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}\\,\\,\\,\\,1=4+b\\\\\u22123=b\\end{array}[\/latex]<\/p>\r\nRewrite [latex]y=mx+b[\/latex]\u00a0with [latex]m=2[\/latex] and [latex]b=-3[\/latex].\r\n<p style=\"text-align: center;\">[latex]y=2x-3[\/latex]<\/p>\r\nNote that this matches the answer we obtained using point-slope form in Example 5.\r\n<h4>Answer<\/h4>\r\n[latex]y=2x-3[\/latex][\/hidden-answer]\r\n\r\n<\/div>\r\nNotice that is doesn\u2019t matter which point you use when you substitute and solve for <i>b<\/i>\u2014you get the same result for <i>b<\/i> either way. In the example above, you substituted the coordinates of the point (2, 1) in the equation [latex]y=2x+b[\/latex]. Let\u2019s start with the same equation, [latex]y=2x+b[\/latex], but substitute in [latex](\u22121,\u22125)[\/latex]:\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}\\,\\,\\,\\,\\,y=2x+b\\\\-5=2\\left(-1\\right)+b\\\\-5=-2+b\\\\-3=b\\end{array}[\/latex]<\/p>\r\nThe final equation is the same: [latex]y=2x\u20133[\/latex].\r\n<h3>Video: Write the equation of a line given two points on the line (Alternate Method)<\/h3>\r\nhttps:\/\/youtu.be\/P1ex_a6iYDo\r\n\r\n&nbsp;\r\n<h2 id=\"Write the equations of parallel and perpendicular lines\">Write the equation of a line given a point and a parallel or perpendicular line<\/h2>\r\nThe relationships between slopes of parallel and perpendicular lines can be used to write equations of parallel and perpendicular lines.\r\n\r\nLet\u2019s start with an example involving parallel lines.\r\n<h3>Write the equation of a line given a point and a parallel line<\/h3>\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example 7<\/h3>\r\nWrite the equation of a line that is parallel to the line [latex]x\u2013y=5[\/latex] and goes through the point [latex](\u22122,1)[\/latex].\r\n\r\n[reveal-answer q=\"763534\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"763534\"]\r\n\r\nRewrite the line you want to be parallel to into the\u00a0[latex]y=mx+b[\/latex] form, if needed.\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{r}x\u2013y=5\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\\\\u2212y=\u2212x+5\\\\y=x\u20135\\,\\,\\,\\,\\,\\,\\,\\end{array}[\/latex]<\/p>\r\nIdentify the slope of the given line.\r\n\r\nIn the equation above, [latex]m=1[\/latex].\u00a0 Therefore, the slope is 1.\r\n\r\nTo find the slope of a parallel line, use the same slope.\r\n\r\nThe slope of the parallel line is 1.\r\n\r\nUse the method for writing an equation from the slope and a point on the line. We will use the Point-Slope Form and substitute 1 for <i>m<\/i>, and the point [latex](\u22122,1)[\/latex] for [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex] .\r\n\r\n&nbsp;\r\n<p style=\"text-align: center;\"><span style=\"font-size: 1rem; text-align: center;\">[latex]\\begin{array}{l}y-{y}_{1}=m\\left(x-{x}_{1}\\right)\\hfill \\\\y - 1=1\\left(x - (-2)\\right)\\hfill \\\\y - 1=1\\left(x + 2\\right)\\hfill \\\\ y - 1=x + 2 \\\\ y=x + 3\\hfill \\end{array}[\/latex]<\/span><\/p>\r\n&nbsp;\r\n\r\n<span style=\"color: #6c64ad; font-size: 0.9em; font-weight: 600;\">Answer<\/span>\r\n\r\n<span style=\"font-size: 1rem; text-align: initial;\">[latex]y=x+3[\/latex][\/hidden-answer]<\/span>\r\n\r\n<\/div>\r\n<h2 class=\"yt watch-title-container\"><\/h2>\r\nhttps:\/\/youtu.be\/TQKz2XHI09E\r\n<h3>Write the equation of a line given a point and a perpendicular line<\/h3>\r\nWhen you are working with perpendicular lines, you will usually be given one of the lines and an additional point. Remember that two non-vertical lines are perpendicular if the slope of one is the negative reciprocal of the slope of the other.\u00a0To find the slope of a perpendicular line, find the reciprocal, and then find the opposite of this reciprocal. \u00a0In other words, flip it and change the sign.\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example 8<\/h3>\r\nWrite the equation of a line that contains the point [latex](1,5)[\/latex] and is perpendicular to the line [latex]y=2x\u2013 6[\/latex].\r\n\r\n[reveal-answer q=\"604282\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"604282\"]\r\n\r\nIdentify the slope of the line you want to be perpendicular to.\r\n\r\nThe given line is written in [latex]y=mx+b[\/latex] form, with [latex]m=2[\/latex] and [latex]b=-6[\/latex]. The slope is 2.\r\n\r\nTo find the slope of a perpendicular line, find the reciprocal, [latex] \\displaystyle \\frac{1}{2}[\/latex], then the opposite, [latex] \\displaystyle -\\frac{1}{2}[\/latex].\r\n\r\nThe slope of the perpendicular line is [latex] \\displaystyle -\\frac{1}{2}[\/latex].\r\n\r\nFor practice, this time, we will use the alternate method for finding the equation of a line. Substitute [latex] \\displaystyle -\\frac{1}{2}[\/latex] for [latex]m[\/latex], and the point [latex](1,5)[\/latex] for [latex]x[\/latex] and [latex]y[\/latex] into slope-intercept form.\r\n<p style=\"text-align: center;\">[latex] \\displaystyle \\begin{array}{l}y=mx+b\\\\5=-\\frac{1}{2}(1)+b\\end{array}[\/latex]<\/p>\r\nSolve for [latex]b[\/latex].\r\n<p style=\"text-align: center;\">[latex] \\displaystyle \\begin{array}{l}\\,\\,\\,5=-\\frac{1}{2}+b\\\\\\frac{11}{2}=b\\end{array}[\/latex]<\/p>\r\nWrite the equation using the new slope for [latex]m[\/latex] and the [latex]b[\/latex] you just found.\r\n<p style=\"text-align: center;\">[latex]y=mx+b[\/latex]<\/p>\r\n<p style=\"text-align: center;\">[latex]y=-\\dfrac{1}{2}x+\\frac{11}{2}[\/latex]<\/p>\r\nNote, we could have used point-slope form to produce this same result as well. You are encouraged to verify this.\r\n<h4><span style=\"color: #666699;\">Answer<\/span><\/h4>\r\n[latex]y=-\\frac{1}{2}x+\\frac{11}{2}[\/latex][\/hidden-answer]\r\n\r\n<\/div>\r\n<h3>Video: Write the equation of a line given a point and a perpendicular line (Alternate Method)<\/h3>\r\nhttps:\/\/youtu.be\/QtvtzKjtowA\r\n<h2 class=\"yt watch-title-container\"><span id=\"eow-title\" class=\"watch-title\" dir=\"ltr\" title=\"Ex: Find the Equation of a Perpendicular and Horizontal Line to a Horizontal Line\">Write the equations of lines parallel and perpendicular to horizontal and vertical lines<\/span><\/h2>\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example 9<\/h3>\r\nWrite the equation of a line that is parallel to the line [latex]y=4[\/latex] through the point [latex](0,10)[\/latex].\r\n\r\n[reveal-answer q=\"426450\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"426450\"]\r\n\r\nRewrite the line into [latex]y=mx+b[\/latex]\u00a0form, if needed.\r\n\r\nYou may notice without doing this that [latex]y=4[\/latex]\u00a0is a horizontal line 4 units above the <i>x<\/i>-axis. Because it is horizontal, you know its slope is zero.\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y=4\\\\y=0x+4\\end{array}[\/latex]<\/p>\r\nIdentify the slope of the given line.\r\n\r\nIn the equation above, [latex]m=0[\/latex] and [latex]b=4[\/latex].\r\n\r\nSince [latex]m=0[\/latex], the slope is 0. This is a horizontal line.\r\n\r\nTo find the slope of a parallel line, use the same slope.\r\n\r\nThe slope of the parallel line is also 0.\r\n\r\nSince the parallel line will be a horizontal line, its form is\r\n<p style=\"text-align: center;\">[latex]y=\\text{a constant}[\/latex]<\/p>\r\nSince we want this new line to pass through the point [latex](0,10)[\/latex], we will need to write the equation of the new line as:\r\n<p style=\"text-align: center;\">[latex]y=10[\/latex]<\/p>\r\nThis line is parallel to [latex]y=4[\/latex]\u00a0and passes through [latex](0,10)[\/latex].\r\n<h4>Answer<\/h4>\r\n[latex]y=10[\/latex][\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example 10<\/h3>\r\nWrite the equation of a line that is perpendicular to the line [latex]y=-3[\/latex] through the point [latex](-2,5)[\/latex].\r\n\r\n[reveal-answer q=\"426550\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"426550\"]\r\n\r\nIn the equation above, [latex]m=0[\/latex] and [latex]b=-3[\/latex].\r\n\r\nA perpendicular line will have a slope that is the negative reciprocal of the slope of\u00a0[latex]y=-3[\/latex], but\u00a0what does that mean in this case?\r\n\r\nThe reciprocal of 0 is [latex]\\frac{1}{0}[\/latex], but we know that dividing by 0 is undefined.\r\n\r\nThis means that we are looking for a line whose slope is undefined, and we also know that vertical lines have slopes that are undefined. This makes sense since we started with a horizontal line.\r\n\r\nThe form of a vertical line is [latex]x=\\text{a constant}[\/latex], where every <em>x<\/em>-value on the line is equal to some constant. \u00a0Since we are looking for a line that goes through the point [latex](-2,5)[\/latex], all of the <em>x<\/em>-values on this line must be [latex]-2[\/latex].\r\n\r\nThe equation of a line passing through [latex](-2,5)[\/latex] that is perpendicular to the horizontal line\u00a0[latex]y=-3[\/latex] is therefore,\r\n<p style=\"text-align: center;\">[latex]x=-2[\/latex]<\/p>\r\n\r\n<h4>Answer<\/h4>\r\n[latex]x=-2[\/latex][\/hidden-answer]\r\n\r\n<\/div>\r\n<h2 class=\"yt watch-title-container\"><\/h2>\r\nhttps:\/\/youtu.be\/Qpn3f3wMeIs\r\n<h2 class=\"yt watch-title-container\"><span id=\"eow-title\" class=\"watch-title\" dir=\"ltr\" title=\"Ex: Find the Equation of a Perpendicular and Horizontal Line to a Horizontal Line\">Summary<\/span><\/h2>\r\nThe slope-intercept form of a linear equation is written as [latex]y=mx+b[\/latex], where <i>m<\/i> is the slope and <i>b<\/i> is the value of <i>y<\/i> at the <i>y<\/i>-intercept, which can be written as [latex](0,b)[\/latex]. When you know the slope and the <i>y<\/i>-intercept of a line you can use the slope-intercept form to immediately write the equation of that line. The point-slope form,\u00a0\u00a0[latex]y-{y}_{1}=m\\left(x-{x}_{1}\\right)[\/latex], can be used to write the equation of a line when you know the slope and a point on the line or when you know two points on the line.\r\n\r\nWhen lines in a plane are parallel (that is, they never cross), they have the same slope. When lines are perpendicular (that is, they cross at a 90\u00b0 angle), their slopes are opposite reciprocals of each other. The product of their slopes will be [latex]-1[\/latex], except in the case where one of the lines is vertical causing its slope to be undefined. You can use these relationships to find an equation of a line that goes through a particular point and is parallel or perpendicular to another line.\r\n<h2><\/h2>","rendered":"<div class=\"textbox learning-objectives\">\n<h3>section 3.7 Learning Objectives<\/h3>\n<p><strong>3.7: Writing Linear Equations<\/strong><\/p>\n<ul>\n<li>Write the equation of the line given the slope and the y-intercept using the slope-intercept form<\/li>\n<li>Write the equation of the line given the slope and a point on the line using the point-slope form<\/li>\n<li>Write the equation of the line given two points on the line<\/li>\n<li>Write the equation of a horizontal or vertical line when given the graph<\/li>\n<li>Write the equation of a line given a point and a parallel or perpendicular line<\/li>\n<\/ul>\n<\/div>\n<p>&nbsp;<\/p>\n<p>In this section, we will write the equation of a line given some information about the line.\u00a0 We will use two forms of a line to help us do this.<\/p>\n<p style=\"text-align: center;\">The Slope-Intercept Form:\u00a0 [latex]y = mx + b[\/latex]<\/p>\n<p style=\"text-align: center;\">The Point-Slope Form:\u00a0\u00a0[latex]y-{y}_{1}=m\\left(x-{x}_{1}\\right)[\/latex]<\/p>\n<h2>Write the equation of a line given the slope and y-intercept<\/h2>\n<p>In a previous section, we were introduced to the Slope-Intercept Form of a line.\u00a0 We learned that if an equation is written in this form, it is easy to identify the slope of the line and its y-intercept.\u00a0 In this section, we are being asked to write the equation of the line.\u00a0 If we know the slope and the y-intercept of a line, we can use the Slope-Intercept Form to help us do that.<\/p>\n<p style=\"text-align: center;\">[latex]y = mx + b[\/latex]<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}\\,\\,\\,\\,\\,m\\,\\,\\,\\,=\\,\\,\\,\\text{slope}\\\\(x,y)=\\,\\,\\,\\text{a point on the line}\\\\\\,\\,\\,\\,\\,\\,\\,b\\,\\,\\,\\,=\\,\\,\\,\\text{the y value of the y-intercept}\\end{array}[\/latex]<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example 1<\/h3>\n<p>Write the equation of the line that has a slope of [latex]\\displaystyle \\frac{1}{2}[\/latex] and a <i>y<\/i>-intercept of [latex](0,-5)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q624715\">Show Solution<\/span><\/p>\n<div id=\"q624715\" class=\"hidden-answer\" style=\"display: none\">Substitute the slope (<i>m<\/i>) into [latex]y=mx+b[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle y=\\frac{1}{2}x+b[\/latex]<\/p>\n<p>Substitute the <i>y<\/i>-intercept (<i>b<\/i>) into the equation.<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle y=\\frac{1}{2}x-5[\/latex]<\/p>\n<h4>Answer<\/h4>\n<p>[latex]y=\\frac{1}{2}x-5[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>We can also find the equation by looking at a graph and finding the slope and <em>y<\/em>-intercept.<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example 2<\/h3>\n<p>Write the equation of the line in the graph by identifying the slope and <em>y<\/em>-intercept.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9629 size-full aligncenter\" src=\"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-content\/uploads\/sites\/5465\/2020\/10\/SVG_Grapher-300x297-2.png\" alt=\"A decreasing linear graph with vertical and horizontal segments from (0,3) to (3,1) forming a right triangle with the line.\" width=\"300\" height=\"289\" srcset=\"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-content\/uploads\/sites\/5465\/2020\/10\/SVG_Grapher-300x297-2.png 300w, https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-content\/uploads\/sites\/5465\/2020\/10\/SVG_Grapher-300x297-2-65x63.png 65w, https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-content\/uploads\/sites\/5465\/2020\/10\/SVG_Grapher-300x297-2-225x217.png 225w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q96446\">Show Solution<\/span><\/p>\n<div id=\"q96446\" class=\"hidden-answer\" style=\"display: none\">Identify the point where the graph crosses the y-axis [latex](0,3)[\/latex]. This means the <em>y<\/em>-intercept is (0,3).<\/p>\n<p>Identify one other point and draw a slope triangle to find the slope.<\/p>\n<p>The slope is [latex]\\frac{-2}{3}[\/latex]<\/p>\n<p>Substitute the slope and <em>y<\/em> value of the intercept into the slope-intercept equation.<\/p>\n<p style=\"text-align: center;\">[latex]y=mx+b\\\\y=\\frac{-2}{3}x+b\\\\y=\\frac{-2}{3}x+3[\/latex]<\/p>\n<h4>Answer<\/h4>\n<p>[latex]y=\\frac{-2}{3}x+3[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-1\" title=\"Find the Equation of a Line in Slope-Intercept Form of a Line (Basic)\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/GIn7vbB5AYo?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"Find the Equation of a Line Given the Slope and a Point on the Line\">Write the equation of a line given the slope and a point on the line<\/h2>\n<p>Using the slope-intercept form of a line is easy when you know both the slope (<i>m<\/i>) and the <i>y<\/i>-intercept (<i>b<\/i>), but what if you know the slope and just any point on the line, not specifically the <i>y<\/i>-intercept? Can you still write the equation? The answer is <i>yes<\/i>, but you will need to put in a little more thought and work than you did previously.<\/p>\n<h3>Point-Slope Form<\/h3>\n<p style=\"text-align: center;\">[latex]y-{y}_{1}=m\\left(x-{x}_{1}\\right)[\/latex]<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}\\,\\,\\,\\,\\,m\\,\\,\\,\\,=\\,\\,\\,\\text{slope}\\\\\\left({x}_{1},{y}_{1}\\right)=\\,\\,\\,\\text{a point on the line}\\end{array}[\/latex]<\/p>\n<p>This is an important formula, as it will be used in other algebra courses and often in calculus to find the equation of a tangent line. We need only one point and the slope of the line to use the formula. After substituting the slope and the coordinates of one point into the formula, we simplify it and write it in slope-intercept form.<\/p>\n<div class=\"textbox shaded\">\n<h3>Point-Slope Form<\/h3>\n<p>Given a point [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex] and slope <em>m<\/em>, point-slope form will give the following equation of a line:<\/p>\n<p style=\"text-align: center;\">[latex]y-{y}_{1}=m\\left(x-{x}_{1}\\right)[\/latex]<\/p>\n<\/div>\n<p>In our first example, we are given the slope and a point on a line.\u00a0 We will use the Point-Slope Form to write the equation of the line.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example 3<\/h3>\n<p>Write the equation of the line with slope [latex]m=-3[\/latex] that passes through the point [latex]\\left(4,8\\right)[\/latex]. Write the final equation in slope-intercept form.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q524449\">Show Solution<\/span><\/p>\n<div id=\"q524449\" class=\"hidden-answer\" style=\"display: none\">\n<p>Using point-slope form, substitute [latex]-3[\/latex] for <em>m <\/em>and the point [latex]\\left(4,8\\right)[\/latex] for [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y-{y}_{1}=m\\left(x-{x}_{1}\\right)\\hfill \\\\ y - 8=-3\\left(x - 4\\right)\\hfill \\\\ y - 8=-3x+12\\hfill \\\\ y=-3x+20\\hfill \\end{array}[\/latex]<\/p>\n<p>Note that any point on the line can be used to find the equation. If done correctly, the same final equation will be obtained.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>The following video shows how to write the equation for a line given its slope and a point on the line.<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-2\" title=\"Ex: Find the Equation of a Line in Point Slope and Slope Intercept Form Given the Slope and a Point\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/vut5b2fRQQ0?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<div class=\"textbox key-takeaways\">\n<h3>Think about it<\/h3>\n<p>There is an alternate method to finding the equation of a line given a point and a slope. See the example below.<\/p>\n<p><strong>Write the equation of the line that has a slope of 3 and contains the point [latex](1,4)[\/latex].<\/strong><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q161353\">Show Solution<\/span><\/p>\n<div id=\"q161353\" class=\"hidden-answer\" style=\"display: none\">\n<p>Recall that a point is an (<i>x<\/i>, <i>y<\/i>) coordinate pair and that all points on the line will satisfy the linear equation. So, if you have a point on the line, it must be a solution to the equation. Although you don\u2019t know the exact equation yet, you know that you can express the line in slope-intercept form, [latex]y=mx+b[\/latex].<\/p>\n<p>You do know the slope (<i>m<\/i>), but you just don\u2019t know the value of the <i>y<\/i>-intercept (<i>b<\/i>). Since point (<i>x<\/i>, <i>y<\/i>) is a solution to the equation, you can substitute its coordinates for <i>x<\/i> and <i>y<\/i> in [latex]y=mx+b[\/latex]\u00a0and solve to find <i>b<\/i>!<\/p>\n<p>&nbsp;<\/p>\n<p>Substitute the slope (<i>m<\/i>) into\u00a0[latex]y=mx+b[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]y=3x+b[\/latex]<\/p>\n<p>Substitute the point [latex](1,4)[\/latex] for <i>x <\/i>and <i>y.<\/i><\/p>\n<p style=\"text-align: center;\">[latex]4=3\\left(1\\right)+b[\/latex]<\/p>\n<p>Solve for <i>b.<\/i><\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}4=3+b\\\\1=b\\end{array}[\/latex]<\/p>\n<p>Rewrite [latex]y=mx+b[\/latex]\u00a0with [latex]m=3[\/latex]\u00a0and [latex]b=1[\/latex].<\/p>\n<h4>Answer<\/h4>\n<p>[latex]y=3x+1[\/latex]<\/p>\n<p>To confirm our algebra, you can check by graphing the equation [latex]y=3x+1[\/latex]. The equation checks because when graphed it passes through the point [latex](1,4)[\/latex].<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1468\/2016\/02\/04064327\/image045.jpg\" alt=\"An uphill line passes through the y-intercept of (0,1) and the point (1,4). The rise is 3 and the run is 1.\" width=\"348\" height=\"349\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>The following video gives an example of this alternate method.<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-3\" title=\"Ex: Determine a Linear Equation Given Slope and a Point (Slope-Intercept Form) (09x-32)\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/URYnKqEctgc?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2 id=\"Find the Equation of a Line Given Two Points on the Line\">Write the equation of a line given two points on the line<\/h2>\n<p>Let\u2019s suppose you don\u2019t know either the slope or the <i>y<\/i>-intercept, but you do know the location of two points on the line. It is more challenging, but you can find the equation of the line that would pass through those two points.\u00a0 We will begin by using the two points to find the slope of the line.\u00a0 Once you know the slope of the line, you can use the slope and one of the points in the Point-Slope Form to write the equation of the line.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example 4<\/h3>\n<p>Find the equation of the line that passes through the points [latex]\\left(3,4\\right)[\/latex] and [latex]\\left(0,-3\\right)[\/latex]. Write the final equation in slope-intercept form.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q249539\">Show Solution<\/span><\/p>\n<div id=\"q249539\" class=\"hidden-answer\" style=\"display: none\">\n<p>First, we calculate the slope using the slope formula and two points.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}m\\hfill & =\\dfrac{-3 - 4}{0 - 3}\\hfill \\\\ \\hfill & =\\dfrac{-7}{-3}\\hfill \\\\ \\hfill & =\\dfrac{7}{3}\\hfill \\end{array}[\/latex]<\/p>\n<p>The easiest way to solve this problem is to recognize that the second point given, [latex](0,-3)[\/latex], is in fact the [latex]y[\/latex]-intercept. This means we know that [latex]b=-3[\/latex] in the slope-intercept form, [latex]y=mx+b[\/latex]. Plugging this value in along with the slope gives the desired equation.<\/p>\n<p style=\"text-align: center;\">[latex]y=mx+b[\/latex]<\/p>\n<p style=\"text-align: center;\">[latex]y=\\dfrac{7}{3}x-3[\/latex]<\/p>\n<h4><span style=\"color: #666699;\">Exploring Further<\/span><\/h4>\n<p>Although we have now answered the question, we now use point-slope form to verify that this will produce the same answer. With the slope of [latex]\\dfrac{7}{3}[\/latex], we can use either point. Let us pick the point [latex]\\left(3,4\\right)[\/latex] for [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y - 4=\\dfrac{7}{3}\\left(x - 3\\right)\\hfill \\\\ y - 4=\\dfrac{7}{3}x - 7\\hfill&\\text{Distribute the }\\dfrac{7}{3}.\\hfill \\\\ y=\\dfrac{7}{3}x - 3\\hfill \\end{array}[\/latex]<\/p>\n<p>In slope-intercept form, the equation is written as [latex]y=\\dfrac{7}{3}x - 3[\/latex].<\/p>\n<p>This matches the result we arrived at earlier.<\/p>\n<h4><span style=\"color: #666699;\">Answer<\/span><\/h4>\n<p>[latex]y=\\dfrac{7}{3}x-3[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p id=\"Find the Equation of a Line Given Two Points on the Line\">In the next example, we again look for the equation of a line given two points. However, this time we are not given the [latex]y[\/latex]-intercept.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example 5<\/h3>\n<p>Write the equation of the line that passes through the points [latex](2,1)[\/latex] and [latex](\u22121,\u22125)[\/latex]. Write the equation in slope-intercept form.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q977598\">Show Solution<\/span><\/p>\n<div id=\"q977598\" class=\"hidden-answer\" style=\"display: none\">\n<p>First, find the slope using the given points.<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle \\frac{1-(-5)}{2-(-1)}=\\frac{6}{3}=2[\/latex]<\/p>\n<p>Next, we plug this into point-slope form along with either point. Let us use the point [latex](2,1)[\/latex] for [latex](x_1,y_1)[\/latex]. Then, we solve for [latex]y[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y-1=2(x-2)\\\\y-1=2x-4\\\\y=2x-3\\end{array}[\/latex]<\/p>\n<h4><span style=\"color: #666699;\">Exploring Further<\/span><\/h4>\n<p>Let us take this opportunity to confirm our claim that we can use either point in the point-slope form. With the slope we found earlier, this time we use the point [latex](-1,-5)[\/latex] for [latex](x_1,y_1)[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y-(-5)=2(x-(-1))\\\\y+5=2(x+1)\\\\y+5=2x+2\\\\y=2x-3\\end{array}[\/latex]<\/p>\n<p>By converting to slope-intercept form, this verifies that either point (and in fact, any point on the line) will produce the same result.<\/p>\n<h4><span style=\"color: #666699;\">Answer<\/span><\/h4>\n<p>[latex]y=2x-3[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>To further support that all the ideas we have presented will yield the same result, we now redo the same problem from Example 5 using the &#8220;alternate method&#8221; presented earlier in this section.<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example 6<\/h3>\n<p>Write the equation of the line that passes through the points [latex](2,1)[\/latex] and [latex](\u22121,\u22125)[\/latex].\u00a0Write the equation in slope-intercept form.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q333536\">Show Solution<\/span><\/p>\n<div id=\"q333536\" class=\"hidden-answer\" style=\"display: none\">\n<p>First, find the slope using the given points.<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle \\frac{1-(-5)}{2-(-1)}=\\frac{6}{3}=2[\/latex]<\/p>\n<p>Substitute the slope, [latex]m[\/latex], into [latex]y=mx+b[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]y=2x+b[\/latex]<\/p>\n<p>Substitute the coordinates of either point for [latex]x[\/latex]<i>\u00a0<\/i>and\u00a0[latex]y[\/latex] \u2013 this example uses [latex](2, 1)[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]1=2(2)+b[\/latex]<\/p>\n<p>Solve for\u00a0[latex]b[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}\\,\\,\\,\\,1=4+b\\\\\u22123=b\\end{array}[\/latex]<\/p>\n<p>Rewrite [latex]y=mx+b[\/latex]\u00a0with [latex]m=2[\/latex] and [latex]b=-3[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]y=2x-3[\/latex]<\/p>\n<p>Note that this matches the answer we obtained using point-slope form in Example 5.<\/p>\n<h4>Answer<\/h4>\n<p>[latex]y=2x-3[\/latex]<\/p><\/div>\n<\/div>\n<\/div>\n<p>Notice that is doesn\u2019t matter which point you use when you substitute and solve for <i>b<\/i>\u2014you get the same result for <i>b<\/i> either way. In the example above, you substituted the coordinates of the point (2, 1) in the equation [latex]y=2x+b[\/latex]. Let\u2019s start with the same equation, [latex]y=2x+b[\/latex], but substitute in [latex](\u22121,\u22125)[\/latex]:<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}\\,\\,\\,\\,\\,y=2x+b\\\\-5=2\\left(-1\\right)+b\\\\-5=-2+b\\\\-3=b\\end{array}[\/latex]<\/p>\n<p>The final equation is the same: [latex]y=2x\u20133[\/latex].<\/p>\n<h3>Video: Write the equation of a line given two points on the line (Alternate Method)<\/h3>\n<p><iframe loading=\"lazy\" id=\"oembed-4\" title=\"Ex 1:  Find the Equation of a Line in Slope Intercept Form Given Two Points\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/P1ex_a6iYDo?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"Write the equations of parallel and perpendicular lines\">Write the equation of a line given a point and a parallel or perpendicular line<\/h2>\n<p>The relationships between slopes of parallel and perpendicular lines can be used to write equations of parallel and perpendicular lines.<\/p>\n<p>Let\u2019s start with an example involving parallel lines.<\/p>\n<h3>Write the equation of a line given a point and a parallel line<\/h3>\n<div class=\"bcc-box bcc-info\">\n<h3>Example 7<\/h3>\n<p>Write the equation of a line that is parallel to the line [latex]x\u2013y=5[\/latex] and goes through the point [latex](\u22122,1)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q763534\">Show Solution<\/span><\/p>\n<div id=\"q763534\" class=\"hidden-answer\" style=\"display: none\">\n<p>Rewrite the line you want to be parallel to into the\u00a0[latex]y=mx+b[\/latex] form, if needed.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{r}x\u2013y=5\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\\\\u2212y=\u2212x+5\\\\y=x\u20135\\,\\,\\,\\,\\,\\,\\,\\end{array}[\/latex]<\/p>\n<p>Identify the slope of the given line.<\/p>\n<p>In the equation above, [latex]m=1[\/latex].\u00a0 Therefore, the slope is 1.<\/p>\n<p>To find the slope of a parallel line, use the same slope.<\/p>\n<p>The slope of the parallel line is 1.<\/p>\n<p>Use the method for writing an equation from the slope and a point on the line. We will use the Point-Slope Form and substitute 1 for <i>m<\/i>, and the point [latex](\u22122,1)[\/latex] for [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex] .<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 1rem; text-align: center;\">[latex]\\begin{array}{l}y-{y}_{1}=m\\left(x-{x}_{1}\\right)\\hfill \\\\y - 1=1\\left(x - (-2)\\right)\\hfill \\\\y - 1=1\\left(x + 2\\right)\\hfill \\\\ y - 1=x + 2 \\\\ y=x + 3\\hfill \\end{array}[\/latex]<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #6c64ad; font-size: 0.9em; font-weight: 600;\">Answer<\/span><\/p>\n<p><span style=\"font-size: 1rem; text-align: initial;\">[latex]y=x+3[\/latex]<\/div>\n<\/div>\n<p><\/span><\/p>\n<\/div>\n<h2 class=\"yt watch-title-container\"><\/h2>\n<p><iframe loading=\"lazy\" id=\"oembed-5\" title=\"Determine the Equation of a Line Parallel to a Line in General Form\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/TQKz2XHI09E?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h3>Write the equation of a line given a point and a perpendicular line<\/h3>\n<p>When you are working with perpendicular lines, you will usually be given one of the lines and an additional point. Remember that two non-vertical lines are perpendicular if the slope of one is the negative reciprocal of the slope of the other.\u00a0To find the slope of a perpendicular line, find the reciprocal, and then find the opposite of this reciprocal. \u00a0In other words, flip it and change the sign.<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example 8<\/h3>\n<p>Write the equation of a line that contains the point [latex](1,5)[\/latex] and is perpendicular to the line [latex]y=2x\u2013 6[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q604282\">Show Solution<\/span><\/p>\n<div id=\"q604282\" class=\"hidden-answer\" style=\"display: none\">\n<p>Identify the slope of the line you want to be perpendicular to.<\/p>\n<p>The given line is written in [latex]y=mx+b[\/latex] form, with [latex]m=2[\/latex] and [latex]b=-6[\/latex]. The slope is 2.<\/p>\n<p>To find the slope of a perpendicular line, find the reciprocal, [latex]\\displaystyle \\frac{1}{2}[\/latex], then the opposite, [latex]\\displaystyle -\\frac{1}{2}[\/latex].<\/p>\n<p>The slope of the perpendicular line is [latex]\\displaystyle -\\frac{1}{2}[\/latex].<\/p>\n<p>For practice, this time, we will use the alternate method for finding the equation of a line. Substitute [latex]\\displaystyle -\\frac{1}{2}[\/latex] for [latex]m[\/latex], and the point [latex](1,5)[\/latex] for [latex]x[\/latex] and [latex]y[\/latex] into slope-intercept form.<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle \\begin{array}{l}y=mx+b\\\\5=-\\frac{1}{2}(1)+b\\end{array}[\/latex]<\/p>\n<p>Solve for [latex]b[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle \\begin{array}{l}\\,\\,\\,5=-\\frac{1}{2}+b\\\\\\frac{11}{2}=b\\end{array}[\/latex]<\/p>\n<p>Write the equation using the new slope for [latex]m[\/latex] and the [latex]b[\/latex] you just found.<\/p>\n<p style=\"text-align: center;\">[latex]y=mx+b[\/latex]<\/p>\n<p style=\"text-align: center;\">[latex]y=-\\dfrac{1}{2}x+\\frac{11}{2}[\/latex]<\/p>\n<p>Note, we could have used point-slope form to produce this same result as well. You are encouraged to verify this.<\/p>\n<h4><span style=\"color: #666699;\">Answer<\/span><\/h4>\n<p>[latex]y=-\\frac{1}{2}x+\\frac{11}{2}[\/latex]<\/p><\/div>\n<\/div>\n<\/div>\n<h3>Video: Write the equation of a line given a point and a perpendicular line (Alternate Method)<\/h3>\n<p><iframe loading=\"lazy\" id=\"oembed-6\" title=\"Determine the Equation of a Line Perpendicular to a Line in Slope-Intercept Form\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/QtvtzKjtowA?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2 class=\"yt watch-title-container\"><span id=\"eow-title\" class=\"watch-title\" dir=\"ltr\" title=\"Ex: Find the Equation of a Perpendicular and Horizontal Line to a Horizontal Line\">Write the equations of lines parallel and perpendicular to horizontal and vertical lines<\/span><\/h2>\n<div class=\"bcc-box bcc-info\">\n<h3>Example 9<\/h3>\n<p>Write the equation of a line that is parallel to the line [latex]y=4[\/latex] through the point [latex](0,10)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q426450\">Show Solution<\/span><\/p>\n<div id=\"q426450\" class=\"hidden-answer\" style=\"display: none\">\n<p>Rewrite the line into [latex]y=mx+b[\/latex]\u00a0form, if needed.<\/p>\n<p>You may notice without doing this that [latex]y=4[\/latex]\u00a0is a horizontal line 4 units above the <i>x<\/i>-axis. Because it is horizontal, you know its slope is zero.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{l}y=4\\\\y=0x+4\\end{array}[\/latex]<\/p>\n<p>Identify the slope of the given line.<\/p>\n<p>In the equation above, [latex]m=0[\/latex] and [latex]b=4[\/latex].<\/p>\n<p>Since [latex]m=0[\/latex], the slope is 0. This is a horizontal line.<\/p>\n<p>To find the slope of a parallel line, use the same slope.<\/p>\n<p>The slope of the parallel line is also 0.<\/p>\n<p>Since the parallel line will be a horizontal line, its form is<\/p>\n<p style=\"text-align: center;\">[latex]y=\\text{a constant}[\/latex]<\/p>\n<p>Since we want this new line to pass through the point [latex](0,10)[\/latex], we will need to write the equation of the new line as:<\/p>\n<p style=\"text-align: center;\">[latex]y=10[\/latex]<\/p>\n<p>This line is parallel to [latex]y=4[\/latex]\u00a0and passes through [latex](0,10)[\/latex].<\/p>\n<h4>Answer<\/h4>\n<p>[latex]y=10[\/latex]<\/p><\/div>\n<\/div>\n<\/div>\n<div class=\"bcc-box bcc-info\">\n<h3>Example 10<\/h3>\n<p>Write the equation of a line that is perpendicular to the line [latex]y=-3[\/latex] through the point [latex](-2,5)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q426550\">Show Solution<\/span><\/p>\n<div id=\"q426550\" class=\"hidden-answer\" style=\"display: none\">\n<p>In the equation above, [latex]m=0[\/latex] and [latex]b=-3[\/latex].<\/p>\n<p>A perpendicular line will have a slope that is the negative reciprocal of the slope of\u00a0[latex]y=-3[\/latex], but\u00a0what does that mean in this case?<\/p>\n<p>The reciprocal of 0 is [latex]\\frac{1}{0}[\/latex], but we know that dividing by 0 is undefined.<\/p>\n<p>This means that we are looking for a line whose slope is undefined, and we also know that vertical lines have slopes that are undefined. This makes sense since we started with a horizontal line.<\/p>\n<p>The form of a vertical line is [latex]x=\\text{a constant}[\/latex], where every <em>x<\/em>-value on the line is equal to some constant. \u00a0Since we are looking for a line that goes through the point [latex](-2,5)[\/latex], all of the <em>x<\/em>-values on this line must be [latex]-2[\/latex].<\/p>\n<p>The equation of a line passing through [latex](-2,5)[\/latex] that is perpendicular to the horizontal line\u00a0[latex]y=-3[\/latex] is therefore,<\/p>\n<p style=\"text-align: center;\">[latex]x=-2[\/latex]<\/p>\n<h4>Answer<\/h4>\n<p>[latex]x=-2[\/latex]<\/p><\/div>\n<\/div>\n<\/div>\n<h2 class=\"yt watch-title-container\"><\/h2>\n<p><iframe loading=\"lazy\" id=\"oembed-7\" title=\"Ex: Find the Equation of a Perpendicular and Horizontal Line to a Horizontal Line\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/Qpn3f3wMeIs?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2 class=\"yt watch-title-container\"><span id=\"eow-title\" class=\"watch-title\" dir=\"ltr\" title=\"Ex: Find the Equation of a Perpendicular and Horizontal Line to a Horizontal Line\">Summary<\/span><\/h2>\n<p>The slope-intercept form of a linear equation is written as [latex]y=mx+b[\/latex], where <i>m<\/i> is the slope and <i>b<\/i> is the value of <i>y<\/i> at the <i>y<\/i>-intercept, which can be written as [latex](0,b)[\/latex]. When you know the slope and the <i>y<\/i>-intercept of a line you can use the slope-intercept form to immediately write the equation of that line. The point-slope form,\u00a0\u00a0[latex]y-{y}_{1}=m\\left(x-{x}_{1}\\right)[\/latex], can be used to write the equation of a line when you know the slope and a point on the line or when you know two points on the line.<\/p>\n<p>When lines in a plane are parallel (that is, they never cross), they have the same slope. When lines are perpendicular (that is, they cross at a 90\u00b0 angle), their slopes are opposite reciprocals of each other. The product of their slopes will be [latex]-1[\/latex], except in the case where one of the lines is vertical causing its slope to be undefined. You can use these relationships to find an equation of a line that goes through a particular point and is parallel or perpendicular to another line.<\/p>\n<h2><\/h2>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-6656\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Ex: Find the Equation of a Line in Point Slope and Slope Intercept Form Given the Slope and a Point. <strong>Authored by<\/strong>: James Sousa (Mathispower4u.com) . <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/vut5b2fRQQ0\">https:\/\/youtu.be\/vut5b2fRQQ0<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>Ex: Find The Equation of the Line in Point-Slope and Slope Intercept Form Given Two Points. <strong>Authored by<\/strong>: James Sousa (Mathispower4u.com) . <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/ndRpJxdmZJI\">https:\/\/youtu.be\/ndRpJxdmZJI<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>College Algebra. <strong>Provided by<\/strong>: OpenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1\/Preface\">http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1\/Preface<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em>. <strong>License Terms<\/strong>: Download for free:  http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1\/Preface<\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":348856,"menu_order":8,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Ex: Find the Equation of a Line in Point Slope and Slope Intercept Form Given the Slope and a Point\",\"author\":\"James Sousa (Mathispower4u.com) \",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/vut5b2fRQQ0\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"Ex: Find The Equation of the Line in Point-Slope and Slope Intercept Form Given Two Points\",\"author\":\"James Sousa (Mathispower4u.com) \",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/ndRpJxdmZJI\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"College Algebra\",\"author\":\"\",\"organization\":\"OpenStax\",\"url\":\" http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1\/Preface\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"Download for free:  http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1\/Preface\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-6656","chapter","type-chapter","status-publish","hentry"],"part":2528,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/pressbooks\/v2\/chapters\/6656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/wp\/v2\/users\/348856"}],"version-history":[{"count":34,"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/pressbooks\/v2\/chapters\/6656\/revisions"}],"predecessor-version":[{"id":9630,"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/pressbooks\/v2\/chapters\/6656\/revisions\/9630"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/pressbooks\/v2\/parts\/2528"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/pressbooks\/v2\/chapters\/6656\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/wp\/v2\/media?parent=6656"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=6656"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/wp\/v2\/contributor?post=6656"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/slcc-elementaryalgebra\/wp-json\/wp\/v2\/license?post=6656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}