{"id":921,"date":"2021-09-25T22:11:36","date_gmt":"2021-09-25T22:11:36","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/?post_type=chapter&#038;p=921"},"modified":"2024-02-09T20:09:49","modified_gmt":"2024-02-09T20:09:49","slug":"6-4-3-use-the-slope-formula","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/chapter\/6-4-3-use-the-slope-formula\/","title":{"raw":"6.4.3: The Slope Formula","rendered":"6.4.3: The Slope Formula"},"content":{"raw":"<div class=\"wrapper\">\r\n<div id=\"wrap\">\r\n<div id=\"content\" role=\"main\">\r\n<div id=\"post-383\" class=\"standard post-383 chapter type-chapter status-publish hentry\">\r\n<div class=\"entry-content\">\r\n<div class=\"textbox learning-objectives\">\r\n<h3>Learning Outcomes<\/h3>\r\n<ul>\r\n \t<li>Use the slope formula to find the slope of a line between two points<\/li>\r\n \t<li>Find the slope of horizontal and vertical lines<\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/div>\r\n<h2>The Slope Formula<\/h2>\r\nWe\u2019ve seen that we can find the slope of a line on a graph by measuring the rise and the run. We can also find the slope of a line without its graph if we know the coordinates of any two points on that line. Every point has a set of coordinates: an\u00a0[latex]x[\/latex]-value and a [latex]y[\/latex]-value, written as an ordered pair [latex](x, y)[\/latex]. The [latex]x[\/latex] value tells yus where a point is horizontally. The [latex]y[\/latex] value tells us where the point is vertically.\r\n\r\nConsider two points on a line\u2014Point 1 and Point 2. Point 1 has coordinates [latex]\\left(x_{1},y_{1}\\right)[\/latex]\u00a0and Point 2 has coordinates [latex]\\left(x_{2},y_{2}\\right)[\/latex].\r\n<div class=\"wp-nocaption aligncenter\"><img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1468\/2016\/02\/04064308\/image031.jpg\" alt=\"A line with its rise and run. The first point on the line is labeled Point 1, or (x1, y1). The second point on the line is labeled Point 2, or (x2,y2). The rise is (y2 minus y1). The run is (x2 minus X1).\" width=\"416\" height=\"401\" \/><\/div>\r\nThe <em><strong>rise<\/strong><\/em> is the vertical distance between the two points, which is the difference between their \u00a0[latex]y[\/latex]-coordinates. That makes the rise [latex]\\left(y_{2}-y_{1}\\right)[\/latex]. The <em><strong>run<\/strong><\/em> between these two points is the difference in the [latex]x[\/latex]-coordinates, or [latex]\\left(x_{2}-x_{1}\\right)[\/latex].\r\n\r\nSo, [latex] \\displaystyle \\text{Slope}=\\frac{\\text{rise}}{\\text{run}}[\/latex] or [latex] \\displaystyle m=\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}[\/latex].\r\n\r\nTo see how the rise and run relate to the coordinates of the two points, let\u2019s take a look at the slope of the line between the points [latex]\\left(2,3\\right)[\/latex] and [latex]\\left(7,6\\right)[\/latex].\r\n\r\n<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/277\/2017\/04\/25224620\/CNX_BMath_Figure_11_04_030.png\" alt=\"The graph shows the x y-coordinate plane. The x-axis runs from 0 to 7. The y-axis runs from 0 to 7. A line runs through the labeled points 2, 3 and 7, 6. A line segment runs from the point 2, 3 to the unlabeled point 2, 6. It is labeled y sub 2 minus y sub 1, 6 minus 3, 3. A line segment runs from the point 7, 6 to the unlabeled point 2, 6. It os labeled x sub 2 minus x sub 1, 7 minus 2, 5. \" \/>\r\n\r\nSince we have two points, we will use subscript notation.\r\n<p style=\"text-align: center;\">[latex]\\stackrel{{x}_{1},{y}_{1}}{\\left(2,3\\right)}\\stackrel{{x}_{2},{y}_{2}}{\\left(7,6\\right)}[\/latex]<\/p>\r\nOn the graph, we can count the rise of [latex]3[\/latex]. The rise can also be found by subtracting the [latex]y\\text{-coordinates}[\/latex] of the points.\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{c}{y}_{2}-{y}_{1}\\\\ 6 - 3\\\\ 3\\end{array}[\/latex]<\/p>\r\nWe can count a run of [latex]5[\/latex] from the graph. The run can also be found by subtracting the [latex]x\\text{-coordinates}[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{c}{x}_{2}-{x}_{1}\\\\ 7 - 2\\\\ 5\\end{array}[\/latex]<\/p>\r\n\r\n<table id=\"eip-id1168468520883\" class=\"unnumbered unstyled\" summary=\".\">\r\n<tbody>\r\n<tr>\r\n<td>We know<\/td>\r\n<td>[latex]m={\\frac{\\text{rise}}{\\text{run}}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>So<\/td>\r\n<td>[latex]m={\\frac{3}{5}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>We rewrite the rise and run by putting in the coordinates.<\/td>\r\n<td>[latex]m={\\frac{6 - 3}{7 - 2}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>But [latex]6[\/latex] is the [latex]y[\/latex] -coordinate of the second point, [latex]{y}_{2}[\/latex]and [latex]3[\/latex] is the [latex]y[\/latex] -coordinate of the first point [latex]{y}_{1}[\/latex] .\r\n\r\nSo we can rewrite the rise using subscript notation.<\/td>\r\n<td>[latex]m={\\frac{{y}_{2}-{y}_{1}}{7 - 2}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Also [latex]7[\/latex] is the [latex]x[\/latex] -coordinate of the second point, [latex]{x}_{2}[\/latex]and [latex]2[\/latex] is the [latex]x[\/latex] -coordinate of the first point [latex]{x}_{2}[\/latex] .\r\n\r\nSo we rewrite the run using subscript notation.<\/td>\r\n<td>[latex]m={\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nWe\u2019ve shown that [latex]m={\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex] is another version of [latex]m={\\frac{\\text{rise}}{\\text{run}}}[\/latex]. We can use this formula to find the slope of a line when we kmow two points on the line.\r\n<div class=\"textbox shaded\">\r\n<h3>Slope Formula<\/h3>\r\nThe slope of the line between two points [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex] and [latex]\\left({x}_{2},{y}_{2}\\right)[\/latex] is\r\n<p style=\"text-align: center;\">[latex]m={\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex]<\/p>\r\n\r\n<\/div>\r\n&nbsp;\r\n<div class=\"textbox exercises\">\r\n<h3>example<\/h3>\r\nFind the slope of the line between the points [latex]\\left(1,2\\right)[\/latex] and [latex]\\left(4,5\\right)[\/latex].\r\n\r\nSolution\r\n<table id=\"eip-id1168468461864\" class=\"unnumbered unstyled\" summary=\".\">\r\n<tbody>\r\n<tr>\r\n<td>We\u2019ll call [latex]\\left(1,2\\right)[\/latex] point #1 and [latex]\\left(4,5\\right)[\/latex] point #2.<\/td>\r\n<td>[latex]\\stackrel{{x}_{1},{y}_{1}}{\\left(1,2\\right)}\\text{and}\\stackrel{{x}_{2},{y}_{2}}{\\left(4,5\\right)}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Use the slope formula.<\/td>\r\n<td>[latex]m={\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Substitute the values in the slope formula:<\/td>\r\n<td><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]y[\/latex] of the second point minus [latex]y[\/latex] of the first point<\/td>\r\n<td>[latex]m={\\frac{5 - 2}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]x[\/latex] of the second point minus [latex]x[\/latex] of the first point<\/td>\r\n<td>[latex]m={\\frac{5 - 2}{4 - 1}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Simplify the numerator and the denominator.<\/td>\r\n<td>[latex]m={\\frac{3}{3}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><\/td>\r\n<td>[latex]m=1[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nLet\u2019s confirm this by counting out the slope on the graph.\r\n\r\n<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/277\/2017\/04\/25224621\/CNX_BMath_Figure_11_04_031.png\" alt=\"The graph shows the x y-coordinate plane. The x-axis runs from -1 to 7. The y-axis runs from -1 to 7. Two labeled points are drawn at \" \/>\r\n\r\nThe rise is [latex]3[\/latex] and the run is [latex]3[\/latex], so\r\n\r\n[latex]\\begin{array}{}\\\\ m=\\frac{\\text{rise}}{\\text{run}}\\hfill \\\\ m={\\Large\\frac{3}{3}}\\hfill \\\\ m=1\\hfill \\end{array}[\/latex]\r\n\r\n<\/div>\r\nIt is important to remember that the slope is the same no matter which order we select the points.\u00a0 Previously, whenever we found the slope by looking at the graph, we always selected our points from left to right so that our run was always a positive value.\u00a0 Now, let\u2019s take a look at an example in which we select our points from right to left.\r\n\r\nThe point [latex](0,2)[\/latex] is indicated as Point 1, and [latex](\u22122,6)[\/latex] as Point 2. So you are going to move from Point 1 to Point 2. A triangle is drawn in above the line to help illustrate the rise and run.\r\n<div class=\"wp-nocaption aligncenter\"><img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1468\/2016\/02\/04064310\/image032.jpg\" alt=\"A line going through Point 1, or (0,2), and Point 2, or (-2,6). The rise is 4 and the run is -2.\" width=\"410\" height=\"396\" \/><\/div>\r\nWe can see from the graph that the rise going from Point 1 to Point 2 is [latex]4[\/latex], because we are moving [latex]4[\/latex] units in a positive direction (up). The run is [latex]\u22122[\/latex], because we are moving in a negative direction (left) [latex]2[\/latex] units. Using the slope formula,\r\n<p style=\"text-align: center;\">[latex] \\displaystyle \\text{Slope}=\\frac{\\text{rise}}{\\text{run}}=\\frac{4}{-2}=-2[\/latex].<\/p>\r\nWe do not need the graph to find the slope. We can just use the coordinates, keeping careful track of which is Point 1 and which is Point 2. Let\u2019s organize the information about the two points:\r\n<table>\r\n<thead>\r\n<tr>\r\n<th>Name<\/th>\r\n<th>Ordered Pair<\/th>\r\n<th>Coordinates<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td>Point 1<\/td>\r\n<td>[latex](0,2)[\/latex]<\/td>\r\n<td>[latex]\\begin{array}{l}x_{1}=0\\\\y_{1}=2\\end{array}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Point 2<\/td>\r\n<td>[latex](\u22122,6)[\/latex]<\/td>\r\n<td>[latex]\\begin{array}{l}x_{2}=-2\\\\y_{2}=6\\end{array}[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nThe slope, [latex]m=\\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\\frac{6-2}{-2-0}=\\frac{4}{-2}=-2[\/latex]. The slope of the line,\u00a0<i>m<\/i>, is [latex]\u22122[\/latex].\r\n\r\nRemember, it doesn\u2019t matter which point is designated as Point 1 and which is Point 2. We could have called [latex](\u22122,6)[\/latex] Point 1, and [latex](0,2)[\/latex] Point 2. In that\u00a0case, putting the coordinates into the slope formula produces the equation [latex]m=\\frac{2-6}{0-\\left(-2\\right)}=\\frac{-4}{2}=-2[\/latex]. Once again, the slope is [latex]m=-2[\/latex]. That\u2019s the same slope as before. The important thing is to be consistent when we subtract: we must always subtract in the same order [latex]\\left(y_{2}-y_{1}\\right)[\/latex]\u00a0and [latex]\\left(x_{2}-x_{1}\\right)[\/latex].\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\n<iframe id=\"ohm147021\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=147021&amp;theme=oea&amp;iframe_resize_id=ohm147021&amp;show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe>\r\n\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>example<\/h3>\r\nFind the slope of the line through the points [latex]\\left(-2,-3\\right)[\/latex] and [latex]\\left(-7,4\\right)[\/latex].\r\n<h4>Solution<\/h4>\r\n<table id=\"eip-id1168469701671\" class=\"unnumbered unstyled\" summary=\".\">\r\n<tbody>\r\n<tr>\r\n<td>We\u2019ll call [latex]\\left(-2,-3\\right)[\/latex] point #1 and [latex]\\left(-7,4\\right)[\/latex] point #2.<\/td>\r\n<td>[latex]\\stackrel{{x}_{1},{y}_{1}}{\\left(-2,-3\\right)}\\text{and}\\stackrel{{x}_{2},{y}_{2}}{\\left(-7,4\\right)}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Use the slope formula.<\/td>\r\n<td>[latex]m={\\Large\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Substitute the values<\/td>\r\n<td><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]y[\/latex] of the second point minus [latex]y[\/latex] of the first point<\/td>\r\n<td>[latex]m={\\Large\\frac{4-\\left(-3\\right)}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]x[\/latex] of the second point minus [latex]x[\/latex] of the first point<\/td>\r\n<td>[latex]m={\\Large\\frac{4-\\left(-3\\right)}{-7-\\left(-2\\right)}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Simplify.<\/td>\r\n<td>[latex]m={\\Large\\frac{7}{-5}}[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><\/td>\r\n<td>[latex]m=-{\\Large\\frac{7}{5}}[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nLet\u2019s confirm this on the graph shown.\r\n\r\n<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/277\/2017\/04\/25224622\/CNX_BMath_Figure_11_04_032.png\" alt=\"The graph shows the x y-coordinate plane. The x-axis runs from -8 to 2. The y-axis runs from -6 to 5. Two unlabeled points are drawn at \" \/>\r\n\r\n[latex]\\begin{array}{}\\\\ \\\\ \\\\ m=\\frac{\\text{rise}}{\\text{run}}\\\\ m={\\Large\\frac{-7}{5}}\\\\ m=-{\\Large\\frac{7}{5}}\\end{array}[\/latex]\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\n<iframe id=\"ohm147022\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=147022&amp;theme=oea&amp;iframe_resize_id=ohm147022&amp;show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe>\r\n\r\n<\/div>\r\n&nbsp;\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example<\/h3>\r\nWhat is the slope of the line that contains the points [latex](4,2)[\/latex] and [latex](5,5)[\/latex]?\r\n<h4>Solution<\/h4>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>[latex]\\begin{array}{l}x_{1}=4\\\\y_{1}=2\\end{array}[\/latex]<\/td>\r\n<td>[latex]\\left(4,2\\right)=\\text{Point }1,\\left(x_{1},y_{1}\\right)[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]\\begin{array}{l}x_{2}=5\\\\y_{2}=5\\end{array}[\/latex]<\/td>\r\n<td>[latex]\\left(5,5\\right)=\\text{Point }2,\\left(x_{2},y_{2}\\right)[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]\\begin{array}{l}m=\\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\\frac{5-2}{5-4}=\\frac{3}{1}\\\\\\\\m=3\\end{array}[\/latex]<\/td>\r\n<td>Substitute the values into the slope formula and simplify.<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h4>Answer<\/h4>\r\nThe slope is [latex]3[\/latex].\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\nThe example below shows the solution when we reverse the order of the points, calling [latex](5,5)[\/latex] Point 1 and [latex](4,2)[\/latex] Point 2.\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example<\/h3>\r\nWhat is the slope of the line that contains the points [latex](5,5)[\/latex] and [latex](4,2)[\/latex]?\r\n<h4>Solution<\/h4>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>[latex]\\begin{array}{l}x_{1}=5\\\\y_{1}=5\\end{array}[\/latex]<\/td>\r\n<td>[latex](5,5)=\\text{Point }1[\/latex], [latex]\\left(x_{1},y_{1}\\right)[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]\\begin{array}{l}x_{2}=4\\\\y_{2}=2\\end{array}[\/latex]<\/td>\r\n<td>[latex](4,2)=\\text{Point }2[\/latex], [latex]\\left(x_{2},y_{2}\\right)[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]\\begin{array}{l}m=\\frac{y_{2}-y_{1}}{{x_2}-x_{1}}\\\\\\\\m=\\frac{2-5}{4-5}=\\frac{-3}{-1}=3\\\\\\\\m=3\\end{array}[\/latex]<\/td>\r\n<td>Substitute the values into the slope formula and simplify.<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h4>Answer<\/h4>\r\nThe slope is [latex]3[\/latex].\r\n\r\n<\/div>\r\nNotice that regardless of which ordered pair is named Point 1 and which is named Point 2, the slope is still [latex]3[\/latex].\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example<\/h3>\r\nWhat is the slope of the line that contains the points [latex](3,-6.25)[\/latex] and [latex](-1,8.5)[\/latex]?\r\n<h4>Solution<\/h4>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>[latex]\\begin{array}{l}x_{1}=3\\\\y_{1}=-6.25\\end{array}[\/latex]<\/td>\r\n<td>[latex](3,-6.25)=\\text{Point }1[\/latex], [latex] \\displaystyle ({{x}_{1}},{{y}_{1}})[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex] \\displaystyle \\begin{array}{l}{{x}_{2}}=-1\\\\{{y}_{2}}=8.5\\end{array}[\/latex]<\/td>\r\n<td>[latex](-1,8.5)=\\text{Point }2[\/latex], [latex] \\displaystyle ({{x}_{2}},{{y}_{2}})[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex] \\displaystyle \\begin{array}{l}m=\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\\\\\\\\m=\\frac{8.5-(-6.25)}{-1-3}\\\\\\\\m=\\frac{14.75}{-4}\\\\\\\\m=-3.6875\\end{array}[\/latex]<\/td>\r\n<td>Substitute the values into the slope formula and simplify.<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h4>Answer<\/h4>\r\nThe slope is [latex]-3.6875[\/latex]\r\n\r\n<\/div>\r\n<div class=\"textbox tryit\">\r\n<h3>Try It<\/h3>\r\nWhat is the slope of the line that contains the points [latex](0,-\\frac{2}{3})[\/latex] and [latex](-1,\\frac{5}{2})[\/latex]?\r\n\r\n[reveal-answer q=\"hjm052\"]Show Answer[\/reveal-answer]\r\n[hidden-answer a=\"hjm052\"]\r\n\r\n[latex]m=-\\frac{11}{6}[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\nWatch these videos to see more examples of how to determine slope given two points on a line.\r\n\r\n<iframe src=\"https:\/\/www.youtube.com\/embed\/ZW7rQa8SJSU?feature=oembed&amp;rel=0\" width=\"500\" height=\"281\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe>\r\n\r\n<iframe src=\"https:\/\/www.youtube.com\/embed\/6qONExlVGgc?feature=oembed&amp;rel=0\" width=\"500\" height=\"281\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe>\r\n<h2 id=\"Finding Slopes of Horizontal and Vertical Lines\">Horizontal and Vertical Lines<\/h2>\r\nNow, let\u2019s revisit horizontal and vertical lines.\u00a0 So far in this section, we have considered lines that run \u201cuphill\u201d or \u201cdownhill.\u201d Their slopes are always positive or negative numbers. But what about horizontal and vertical lines? Can we still use the slope formula to calculate their slopes?\r\n<div class=\"wp-nocaption aligncenter\"><img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1468\/2016\/02\/04064316\/image040.jpg\" alt=\"The line y=3 crosses through the point (-3,3); the point (0,3); the point (2,3); and the point (5,3).\" width=\"335\" height=\"324\" \/><\/div>\r\nConsider the line above.\u00a0 We learned in the previous section that because it is horizontal, its slope is [latex]0[\/latex]. We can also use the slope formula with two points on this horizontal line to calculate the slope of this horizontal line. Using [latex](\u22123,3)[\/latex] as Point 1 and (2, 3) as Point 2, we get:\r\n<p style=\"text-align: center;\">[latex] \\displaystyle \\begin{array}{l}m=\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\\\\\\\\m=\\frac{3-3}{2-\\left(-3\\right)}=\\frac{0}{5}=0\\end{array}[\/latex]<\/p>\r\nThe slope of this horizontal line is [latex]0[\/latex].\r\n\r\nLet\u2019s consider any horizontal line. No matter which two points we choose on the line, they will always have the same [latex]y[\/latex]-coordinate. So, when we apply the slope formula, the numerator will always be [latex]0[\/latex]. Zero divided by any non-zero number is [latex]0[\/latex], so the slope of any horizontal line is always [latex]0[\/latex].\r\n\r\nThe equation for the horizontal line [latex]y=3[\/latex]\u00a0is telling you that no matter which two points you choose on this line, the\u00a0<i>y-<\/i>coordinate will always be [latex]3[\/latex].\r\n\r\nHow about vertical lines? In their case, no matter which two points we choose, they will always have the same [latex]x[\/latex]-coordinate. The equation for this line is [latex]x=2[\/latex].\r\n<div class=\"wp-nocaption aligncenter\"><img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1468\/2016\/02\/04064317\/image041.jpg\" alt=\"The line x=2 runs through the point (2,-2), the point (2,1), the point (2,3), and the point (2,4).\" width=\"387\" height=\"374\" \/><\/div>\r\nSo, what happens when we use the slope formula with two points on this vertical line to calculate the slope? Using [latex](2,1)[\/latex] as Point 1 and [latex](2,3)[\/latex] as Point 2, we get:\r\n<p style=\"text-align: center;\">[latex] \\displaystyle \\begin{array}{l}m=\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\\\\\\\\m=\\frac{3-1}{2-2}=\\frac{2}{0}\\end{array}[\/latex]<\/p>\r\nBut division by zero has no meaning for the set of real numbers. Because of this fact, it is said that the slope of this vertical line is undefined. This is true for all vertical lines\u2014they all have a slope that is undefined.\r\n<div class=\"bcc-box bcc-info\">\r\n<h3>Example<\/h3>\r\nWhat is the slope of the line that contains the points [latex](3,2)[\/latex] and [latex](\u22128,2)[\/latex]?\r\n<h4>Solution<\/h4>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>[latex] \\displaystyle \\begin{array}{l}{{x}_{1}}=3\\\\{{y}_{1}}=2\\end{array}[\/latex]<\/td>\r\n<td>[latex](3,2)=\\text{Point }1[\/latex], [latex] \\displaystyle \\left(x_{1},x_{2}\\right)[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex] \\displaystyle \\begin{array}{l}{{x}_{2}}=-8\\\\\\\\{{y}_{2}}=2\\end{array}[\/latex]<\/td>\r\n<td>[latex](\u22128,2)=\\text{Point }2[\/latex], [latex] \\displaystyle ({{x}_{2}},{{y}_{2}})[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex] \\displaystyle \\begin{array}{l}\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\\\\\\\\\\frac{(2)-(2)}{(-8)-(3)}=\\frac{0}{-11}=0\\\\\\\\m=0\\end{array}[\/latex]<\/td>\r\n<td>Substitute the values into the slope formula and simplify.<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h4>Answer<\/h4>\r\nThe slope is [latex]0[\/latex], so the line is horizontal.\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Try It<\/h3>\r\n<iframe id=\"ohm76720\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=76720&amp;theme=oea&amp;iframe_resize_id=ohm76720&amp;show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe>\r\n\r\n<iframe id=\"ohm195555\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=195555&amp;theme=oea&amp;iframe_resize_id=ohm195555&amp;show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe>\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<iframe src=\"https:\/\/www.youtube.com\/embed\/zoLM3rxzndo?feature=oembed&amp;rel=0\" width=\"500\" height=\"281\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe>\r\n<h2><\/h2>","rendered":"<div class=\"wrapper\">\n<div id=\"wrap\">\n<div id=\"content\" role=\"main\">\n<div id=\"post-383\" class=\"standard post-383 chapter type-chapter status-publish hentry\">\n<div class=\"entry-content\">\n<div class=\"textbox learning-objectives\">\n<h3>Learning Outcomes<\/h3>\n<ul>\n<li>Use the slope formula to find the slope of a line between two points<\/li>\n<li>Find the slope of horizontal and vertical lines<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h2>The Slope Formula<\/h2>\n<p>We\u2019ve seen that we can find the slope of a line on a graph by measuring the rise and the run. We can also find the slope of a line without its graph if we know the coordinates of any two points on that line. Every point has a set of coordinates: an\u00a0[latex]x[\/latex]-value and a [latex]y[\/latex]-value, written as an ordered pair [latex](x, y)[\/latex]. The [latex]x[\/latex] value tells yus where a point is horizontally. The [latex]y[\/latex] value tells us where the point is vertically.<\/p>\n<p>Consider two points on a line\u2014Point 1 and Point 2. Point 1 has coordinates [latex]\\left(x_{1},y_{1}\\right)[\/latex]\u00a0and Point 2 has coordinates [latex]\\left(x_{2},y_{2}\\right)[\/latex].<\/p>\n<div class=\"wp-nocaption aligncenter\"><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\/04064308\/image031.jpg\" alt=\"A line with its rise and run. The first point on the line is labeled Point 1, or (x1, y1). The second point on the line is labeled Point 2, or (x2,y2). The rise is (y2 minus y1). The run is (x2 minus X1).\" width=\"416\" height=\"401\" \/><\/div>\n<p>The <em><strong>rise<\/strong><\/em> is the vertical distance between the two points, which is the difference between their \u00a0[latex]y[\/latex]-coordinates. That makes the rise [latex]\\left(y_{2}-y_{1}\\right)[\/latex]. The <em><strong>run<\/strong><\/em> between these two points is the difference in the [latex]x[\/latex]-coordinates, or [latex]\\left(x_{2}-x_{1}\\right)[\/latex].<\/p>\n<p>So, [latex]\\displaystyle \\text{Slope}=\\frac{\\text{rise}}{\\text{run}}[\/latex] or [latex]\\displaystyle m=\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}[\/latex].<\/p>\n<p>To see how the rise and run relate to the coordinates of the two points, let\u2019s take a look at the slope of the line between the points [latex]\\left(2,3\\right)[\/latex] and [latex]\\left(7,6\\right)[\/latex].<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/277\/2017\/04\/25224620\/CNX_BMath_Figure_11_04_030.png\" alt=\"The graph shows the x y-coordinate plane. The x-axis runs from 0 to 7. The y-axis runs from 0 to 7. A line runs through the labeled points 2, 3 and 7, 6. A line segment runs from the point 2, 3 to the unlabeled point 2, 6. It is labeled y sub 2 minus y sub 1, 6 minus 3, 3. A line segment runs from the point 7, 6 to the unlabeled point 2, 6. It os labeled x sub 2 minus x sub 1, 7 minus 2, 5.\" \/><\/p>\n<p>Since we have two points, we will use subscript notation.<\/p>\n<p style=\"text-align: center;\">[latex]\\stackrel{{x}_{1},{y}_{1}}{\\left(2,3\\right)}\\stackrel{{x}_{2},{y}_{2}}{\\left(7,6\\right)}[\/latex]<\/p>\n<p>On the graph, we can count the rise of [latex]3[\/latex]. The rise can also be found by subtracting the [latex]y\\text{-coordinates}[\/latex] of the points.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{c}{y}_{2}-{y}_{1}\\\\ 6 - 3\\\\ 3\\end{array}[\/latex]<\/p>\n<p>We can count a run of [latex]5[\/latex] from the graph. The run can also be found by subtracting the [latex]x\\text{-coordinates}[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{c}{x}_{2}-{x}_{1}\\\\ 7 - 2\\\\ 5\\end{array}[\/latex]<\/p>\n<table id=\"eip-id1168468520883\" class=\"unnumbered unstyled\" summary=\".\">\n<tbody>\n<tr>\n<td>We know<\/td>\n<td>[latex]m={\\frac{\\text{rise}}{\\text{run}}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>So<\/td>\n<td>[latex]m={\\frac{3}{5}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>We rewrite the rise and run by putting in the coordinates.<\/td>\n<td>[latex]m={\\frac{6 - 3}{7 - 2}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>But [latex]6[\/latex] is the [latex]y[\/latex] -coordinate of the second point, [latex]{y}_{2}[\/latex]and [latex]3[\/latex] is the [latex]y[\/latex] -coordinate of the first point [latex]{y}_{1}[\/latex] .<\/p>\n<p>So we can rewrite the rise using subscript notation.<\/td>\n<td>[latex]m={\\frac{{y}_{2}-{y}_{1}}{7 - 2}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>Also [latex]7[\/latex] is the [latex]x[\/latex] -coordinate of the second point, [latex]{x}_{2}[\/latex]and [latex]2[\/latex] is the [latex]x[\/latex] -coordinate of the first point [latex]{x}_{2}[\/latex] .<\/p>\n<p>So we rewrite the run using subscript notation.<\/td>\n<td>[latex]m={\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>We\u2019ve shown that [latex]m={\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex] is another version of [latex]m={\\frac{\\text{rise}}{\\text{run}}}[\/latex]. We can use this formula to find the slope of a line when we kmow two points on the line.<\/p>\n<div class=\"textbox shaded\">\n<h3>Slope Formula<\/h3>\n<p>The slope of the line between two points [latex]\\left({x}_{1},{y}_{1}\\right)[\/latex] and [latex]\\left({x}_{2},{y}_{2}\\right)[\/latex] is<\/p>\n<p style=\"text-align: center;\">[latex]m={\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex]<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"textbox exercises\">\n<h3>example<\/h3>\n<p>Find the slope of the line between the points [latex]\\left(1,2\\right)[\/latex] and [latex]\\left(4,5\\right)[\/latex].<\/p>\n<p>Solution<\/p>\n<table id=\"eip-id1168468461864\" class=\"unnumbered unstyled\" summary=\".\">\n<tbody>\n<tr>\n<td>We\u2019ll call [latex]\\left(1,2\\right)[\/latex] point #1 and [latex]\\left(4,5\\right)[\/latex] point #2.<\/td>\n<td>[latex]\\stackrel{{x}_{1},{y}_{1}}{\\left(1,2\\right)}\\text{and}\\stackrel{{x}_{2},{y}_{2}}{\\left(4,5\\right)}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>Use the slope formula.<\/td>\n<td>[latex]m={\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>Substitute the values in the slope formula:<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[latex]y[\/latex] of the second point minus [latex]y[\/latex] of the first point<\/td>\n<td>[latex]m={\\frac{5 - 2}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]x[\/latex] of the second point minus [latex]x[\/latex] of the first point<\/td>\n<td>[latex]m={\\frac{5 - 2}{4 - 1}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>Simplify the numerator and the denominator.<\/td>\n<td>[latex]m={\\frac{3}{3}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>[latex]m=1[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Let\u2019s confirm this by counting out the slope on the graph.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/277\/2017\/04\/25224621\/CNX_BMath_Figure_11_04_031.png\" alt=\"The graph shows the x y-coordinate plane. The x-axis runs from -1 to 7. The y-axis runs from -1 to 7. Two labeled points are drawn at\" \/><\/p>\n<p>The rise is [latex]3[\/latex] and the run is [latex]3[\/latex], so<\/p>\n<p>[latex]\\begin{array}{}\\\\ m=\\frac{\\text{rise}}{\\text{run}}\\hfill \\\\ m={\\Large\\frac{3}{3}}\\hfill \\\\ m=1\\hfill \\end{array}[\/latex]<\/p>\n<\/div>\n<p>It is important to remember that the slope is the same no matter which order we select the points.\u00a0 Previously, whenever we found the slope by looking at the graph, we always selected our points from left to right so that our run was always a positive value.\u00a0 Now, let\u2019s take a look at an example in which we select our points from right to left.<\/p>\n<p>The point [latex](0,2)[\/latex] is indicated as Point 1, and [latex](\u22122,6)[\/latex] as Point 2. So you are going to move from Point 1 to Point 2. A triangle is drawn in above the line to help illustrate the rise and run.<\/p>\n<div class=\"wp-nocaption aligncenter\"><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\/04064310\/image032.jpg\" alt=\"A line going through Point 1, or (0,2), and Point 2, or (-2,6). The rise is 4 and the run is -2.\" width=\"410\" height=\"396\" \/><\/div>\n<p>We can see from the graph that the rise going from Point 1 to Point 2 is [latex]4[\/latex], because we are moving [latex]4[\/latex] units in a positive direction (up). The run is [latex]\u22122[\/latex], because we are moving in a negative direction (left) [latex]2[\/latex] units. Using the slope formula,<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle \\text{Slope}=\\frac{\\text{rise}}{\\text{run}}=\\frac{4}{-2}=-2[\/latex].<\/p>\n<p>We do not need the graph to find the slope. We can just use the coordinates, keeping careful track of which is Point 1 and which is Point 2. Let\u2019s organize the information about the two points:<\/p>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Ordered Pair<\/th>\n<th>Coordinates<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Point 1<\/td>\n<td>[latex](0,2)[\/latex]<\/td>\n<td>[latex]\\begin{array}{l}x_{1}=0\\\\y_{1}=2\\end{array}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>Point 2<\/td>\n<td>[latex](\u22122,6)[\/latex]<\/td>\n<td>[latex]\\begin{array}{l}x_{2}=-2\\\\y_{2}=6\\end{array}[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The slope, [latex]m=\\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\\frac{6-2}{-2-0}=\\frac{4}{-2}=-2[\/latex]. The slope of the line,\u00a0<i>m<\/i>, is [latex]\u22122[\/latex].<\/p>\n<p>Remember, it doesn\u2019t matter which point is designated as Point 1 and which is Point 2. We could have called [latex](\u22122,6)[\/latex] Point 1, and [latex](0,2)[\/latex] Point 2. In that\u00a0case, putting the coordinates into the slope formula produces the equation [latex]m=\\frac{2-6}{0-\\left(-2\\right)}=\\frac{-4}{2}=-2[\/latex]. Once again, the slope is [latex]m=-2[\/latex]. That\u2019s the same slope as before. The important thing is to be consistent when we subtract: we must always subtract in the same order [latex]\\left(y_{2}-y_{1}\\right)[\/latex]\u00a0and [latex]\\left(x_{2}-x_{1}\\right)[\/latex].<\/p>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p><iframe loading=\"lazy\" id=\"ohm147021\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=147021&amp;theme=oea&amp;iframe_resize_id=ohm147021&amp;show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe><\/p>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>example<\/h3>\n<p>Find the slope of the line through the points [latex]\\left(-2,-3\\right)[\/latex] and [latex]\\left(-7,4\\right)[\/latex].<\/p>\n<h4>Solution<\/h4>\n<table id=\"eip-id1168469701671\" class=\"unnumbered unstyled\" summary=\".\">\n<tbody>\n<tr>\n<td>We\u2019ll call [latex]\\left(-2,-3\\right)[\/latex] point #1 and [latex]\\left(-7,4\\right)[\/latex] point #2.<\/td>\n<td>[latex]\\stackrel{{x}_{1},{y}_{1}}{\\left(-2,-3\\right)}\\text{and}\\stackrel{{x}_{2},{y}_{2}}{\\left(-7,4\\right)}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>Use the slope formula.<\/td>\n<td>[latex]m={\\Large\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>Substitute the values<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[latex]y[\/latex] of the second point minus [latex]y[\/latex] of the first point<\/td>\n<td>[latex]m={\\Large\\frac{4-\\left(-3\\right)}{{x}_{2}-{x}_{1}}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]x[\/latex] of the second point minus [latex]x[\/latex] of the first point<\/td>\n<td>[latex]m={\\Large\\frac{4-\\left(-3\\right)}{-7-\\left(-2\\right)}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>Simplify.<\/td>\n<td>[latex]m={\\Large\\frac{7}{-5}}[\/latex]<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>[latex]m=-{\\Large\\frac{7}{5}}[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Let\u2019s confirm this on the graph shown.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/277\/2017\/04\/25224622\/CNX_BMath_Figure_11_04_032.png\" alt=\"The graph shows the x y-coordinate plane. The x-axis runs from -8 to 2. The y-axis runs from -6 to 5. Two unlabeled points are drawn at\" \/><\/p>\n<p>[latex]\\begin{array}{}\\\\ \\\\ \\\\ m=\\frac{\\text{rise}}{\\text{run}}\\\\ m={\\Large\\frac{-7}{5}}\\\\ m=-{\\Large\\frac{7}{5}}\\end{array}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p><iframe loading=\"lazy\" id=\"ohm147022\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=147022&amp;theme=oea&amp;iframe_resize_id=ohm147022&amp;show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example<\/h3>\n<p>What is the slope of the line that contains the points [latex](4,2)[\/latex] and [latex](5,5)[\/latex]?<\/p>\n<h4>Solution<\/h4>\n<table>\n<tbody>\n<tr>\n<td>[latex]\\begin{array}{l}x_{1}=4\\\\y_{1}=2\\end{array}[\/latex]<\/td>\n<td>[latex]\\left(4,2\\right)=\\text{Point }1,\\left(x_{1},y_{1}\\right)[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]\\begin{array}{l}x_{2}=5\\\\y_{2}=5\\end{array}[\/latex]<\/td>\n<td>[latex]\\left(5,5\\right)=\\text{Point }2,\\left(x_{2},y_{2}\\right)[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]\\begin{array}{l}m=\\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\\frac{5-2}{5-4}=\\frac{3}{1}\\\\\\\\m=3\\end{array}[\/latex]<\/td>\n<td>Substitute the values into the slope formula and simplify.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Answer<\/h4>\n<p>The slope is [latex]3[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>The example below shows the solution when we reverse the order of the points, calling [latex](5,5)[\/latex] Point 1 and [latex](4,2)[\/latex] Point 2.<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example<\/h3>\n<p>What is the slope of the line that contains the points [latex](5,5)[\/latex] and [latex](4,2)[\/latex]?<\/p>\n<h4>Solution<\/h4>\n<table>\n<tbody>\n<tr>\n<td>[latex]\\begin{array}{l}x_{1}=5\\\\y_{1}=5\\end{array}[\/latex]<\/td>\n<td>[latex](5,5)=\\text{Point }1[\/latex], [latex]\\left(x_{1},y_{1}\\right)[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]\\begin{array}{l}x_{2}=4\\\\y_{2}=2\\end{array}[\/latex]<\/td>\n<td>[latex](4,2)=\\text{Point }2[\/latex], [latex]\\left(x_{2},y_{2}\\right)[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]\\begin{array}{l}m=\\frac{y_{2}-y_{1}}{{x_2}-x_{1}}\\\\\\\\m=\\frac{2-5}{4-5}=\\frac{-3}{-1}=3\\\\\\\\m=3\\end{array}[\/latex]<\/td>\n<td>Substitute the values into the slope formula and simplify.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Answer<\/h4>\n<p>The slope is [latex]3[\/latex].<\/p>\n<\/div>\n<p>Notice that regardless of which ordered pair is named Point 1 and which is named Point 2, the slope is still [latex]3[\/latex].<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example<\/h3>\n<p>What is the slope of the line that contains the points [latex](3,-6.25)[\/latex] and [latex](-1,8.5)[\/latex]?<\/p>\n<h4>Solution<\/h4>\n<table>\n<tbody>\n<tr>\n<td>[latex]\\begin{array}{l}x_{1}=3\\\\y_{1}=-6.25\\end{array}[\/latex]<\/td>\n<td>[latex](3,-6.25)=\\text{Point }1[\/latex], [latex]\\displaystyle ({{x}_{1}},{{y}_{1}})[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]\\displaystyle \\begin{array}{l}{{x}_{2}}=-1\\\\{{y}_{2}}=8.5\\end{array}[\/latex]<\/td>\n<td>[latex](-1,8.5)=\\text{Point }2[\/latex], [latex]\\displaystyle ({{x}_{2}},{{y}_{2}})[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]\\displaystyle \\begin{array}{l}m=\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\\\\\\\\m=\\frac{8.5-(-6.25)}{-1-3}\\\\\\\\m=\\frac{14.75}{-4}\\\\\\\\m=-3.6875\\end{array}[\/latex]<\/td>\n<td>Substitute the values into the slope formula and simplify.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Answer<\/h4>\n<p>The slope is [latex]-3.6875[\/latex]<\/p>\n<\/div>\n<div class=\"textbox tryit\">\n<h3>Try It<\/h3>\n<p>What is the slope of the line that contains the points [latex](0,-\\frac{2}{3})[\/latex] and [latex](-1,\\frac{5}{2})[\/latex]?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"qhjm052\">Show Answer<\/span><\/p>\n<div id=\"qhjm052\" class=\"hidden-answer\" style=\"display: none\">\n<p>[latex]m=-\\frac{11}{6}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Watch these videos to see more examples of how to determine slope given two points on a line.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ZW7rQa8SJSU?feature=oembed&amp;rel=0\" width=\"500\" height=\"281\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/6qONExlVGgc?feature=oembed&amp;rel=0\" width=\"500\" height=\"281\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2 id=\"Finding Slopes of Horizontal and Vertical Lines\">Horizontal and Vertical Lines<\/h2>\n<p>Now, let\u2019s revisit horizontal and vertical lines.\u00a0 So far in this section, we have considered lines that run \u201cuphill\u201d or \u201cdownhill.\u201d Their slopes are always positive or negative numbers. But what about horizontal and vertical lines? Can we still use the slope formula to calculate their slopes?<\/p>\n<div class=\"wp-nocaption aligncenter\"><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\/04064316\/image040.jpg\" alt=\"The line y=3 crosses through the point (-3,3); the point (0,3); the point (2,3); and the point (5,3).\" width=\"335\" height=\"324\" \/><\/div>\n<p>Consider the line above.\u00a0 We learned in the previous section that because it is horizontal, its slope is [latex]0[\/latex]. We can also use the slope formula with two points on this horizontal line to calculate the slope of this horizontal line. Using [latex](\u22123,3)[\/latex] as Point 1 and (2, 3) as Point 2, we get:<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle \\begin{array}{l}m=\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\\\\\\\\m=\\frac{3-3}{2-\\left(-3\\right)}=\\frac{0}{5}=0\\end{array}[\/latex]<\/p>\n<p>The slope of this horizontal line is [latex]0[\/latex].<\/p>\n<p>Let\u2019s consider any horizontal line. No matter which two points we choose on the line, they will always have the same [latex]y[\/latex]-coordinate. So, when we apply the slope formula, the numerator will always be [latex]0[\/latex]. Zero divided by any non-zero number is [latex]0[\/latex], so the slope of any horizontal line is always [latex]0[\/latex].<\/p>\n<p>The equation for the horizontal line [latex]y=3[\/latex]\u00a0is telling you that no matter which two points you choose on this line, the\u00a0<i>y-<\/i>coordinate will always be [latex]3[\/latex].<\/p>\n<p>How about vertical lines? In their case, no matter which two points we choose, they will always have the same [latex]x[\/latex]-coordinate. The equation for this line is [latex]x=2[\/latex].<\/p>\n<div class=\"wp-nocaption aligncenter\"><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\/04064317\/image041.jpg\" alt=\"The line x=2 runs through the point (2,-2), the point (2,1), the point (2,3), and the point (2,4).\" width=\"387\" height=\"374\" \/><\/div>\n<p>So, what happens when we use the slope formula with two points on this vertical line to calculate the slope? Using [latex](2,1)[\/latex] as Point 1 and [latex](2,3)[\/latex] as Point 2, we get:<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle \\begin{array}{l}m=\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\\\\\\\\m=\\frac{3-1}{2-2}=\\frac{2}{0}\\end{array}[\/latex]<\/p>\n<p>But division by zero has no meaning for the set of real numbers. Because of this fact, it is said that the slope of this vertical line is undefined. This is true for all vertical lines\u2014they all have a slope that is undefined.<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example<\/h3>\n<p>What is the slope of the line that contains the points [latex](3,2)[\/latex] and [latex](\u22128,2)[\/latex]?<\/p>\n<h4>Solution<\/h4>\n<table>\n<tbody>\n<tr>\n<td>[latex]\\displaystyle \\begin{array}{l}{{x}_{1}}=3\\\\{{y}_{1}}=2\\end{array}[\/latex]<\/td>\n<td>[latex](3,2)=\\text{Point }1[\/latex], [latex]\\displaystyle \\left(x_{1},x_{2}\\right)[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]\\displaystyle \\begin{array}{l}{{x}_{2}}=-8\\\\\\\\{{y}_{2}}=2\\end{array}[\/latex]<\/td>\n<td>[latex](\u22128,2)=\\text{Point }2[\/latex], [latex]\\displaystyle ({{x}_{2}},{{y}_{2}})[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]\\displaystyle \\begin{array}{l}\\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\\\\\\\\\\frac{(2)-(2)}{(-8)-(3)}=\\frac{0}{-11}=0\\\\\\\\m=0\\end{array}[\/latex]<\/td>\n<td>Substitute the values into the slope formula and simplify.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Answer<\/h4>\n<p>The slope is [latex]0[\/latex], so the line is horizontal.<\/p>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Try It<\/h3>\n<p><iframe loading=\"lazy\" id=\"ohm76720\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=76720&amp;theme=oea&amp;iframe_resize_id=ohm76720&amp;show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe><\/p>\n<p><iframe loading=\"lazy\" id=\"ohm195555\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=195555&amp;theme=oea&amp;iframe_resize_id=ohm195555&amp;show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/zoLM3rxzndo?feature=oembed&amp;rel=0\" width=\"500\" height=\"281\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/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-921\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Original<\/div><ul class=\"citation-list\"><li>Question ID 147022, 147021, 147020. <strong>Authored by<\/strong>: Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><\/ul><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Ex 2: Determine the Slope a Line Given Two Points on a Line. <strong>Authored by<\/strong>: James Sousa (mathispower4u.com). <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/6qONExlVGgc\">https:\/\/youtu.be\/6qONExlVGgc<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><\/ul><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Specific attribution<\/div><ul class=\"citation-list\"><li>Prealgebra. <strong>Provided by<\/strong>: OpenStax. <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 at http:\/\/cnx.org\/contents\/caa57dab-41c7-455e-bd6f-f443cda5519c@9.757<\/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":422608,"menu_order":9,"template":"","meta":{"_candela_citation":"[{\"type\":\"original\",\"description\":\"Question ID 147022, 147021, 147020\",\"author\":\"Lumen Learning\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"Ex 2: Determine the Slope a Line Given Two Points on a Line\",\"author\":\"James Sousa (mathispower4u.com)\",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/6qONExlVGgc\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc-attribution\",\"description\":\"Prealgebra\",\"author\":\"\",\"organization\":\"OpenStax\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"Download for free at http:\/\/cnx.org\/contents\/caa57dab-41c7-455e-bd6f-f443cda5519c@9.757\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-921","chapter","type-chapter","status-publish","hentry"],"part":659,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/pressbooks\/v2\/chapters\/921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/wp\/v2\/users\/422608"}],"version-history":[{"count":11,"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/pressbooks\/v2\/chapters\/921\/revisions"}],"predecessor-version":[{"id":2894,"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/pressbooks\/v2\/chapters\/921\/revisions\/2894"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/pressbooks\/v2\/parts\/659"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/pressbooks\/v2\/chapters\/921\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/wp\/v2\/media?parent=921"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=921"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/wp\/v2\/contributor?post=921"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/uvu-introductoryalgebra\/wp-json\/wp\/v2\/license?post=921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}