{"id":1902,"date":"2016-06-28T05:53:35","date_gmt":"2016-06-28T05:53:35","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/intermediatealgebra\/?post_type=chapter&#038;p=1902"},"modified":"2018-05-17T00:11:49","modified_gmt":"2018-05-17T00:11:49","slug":"outcome-methods-for-graphing-linear-functions","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/chapter\/outcome-methods-for-graphing-linear-functions\/","title":{"raw":"Linear Functions and their Graphs","rendered":"Linear Functions and their Graphs"},"content":{"raw":"<div>\r\n<div class=\"textbox learning-objectives\">\r\n<h3>Learning Objectives<\/h3>\r\n<ul>\r\n \t<li>Define slope for a linear function<\/li>\r\n \t<li>Calculate slope given two points<\/li>\r\n \t<li>Graph a linear function using the slope and <em>y<\/em>-intercept<\/li>\r\n<\/ul>\r\n<\/div>\r\n<div><\/div>\r\n<span id=\"fs-id2381652\"> <img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201012\/CNX_Precalc_02_00_012.jpg\" alt=\"An upward view of bamboo trees.\" \/><\/span>\r\n<p id=\"fs-id1165137705130\">Imagine placing a plant in the ground one day and finding that it has doubled its height just a few days later. Although it may seem incredible, this can happen with certain types of bamboo species. These members of the grass family are the fastest-growing plants in the world. One species of bamboo has been observed to grow nearly 1.5 inches every hour.\u00a0In a twenty-four hour period, this bamboo plant grows about 36 inches, or an incredible 3 feet! A constant rate of change, such as the growth cycle of this bamboo species, is a linear function.<\/p>\r\nOne well known\u00a0form for writing linear functions is known as the <strong>slope-intercept form<\/strong>, where [latex]x[\/latex] is the input value, [latex]m[\/latex] is the rate of change, and [latex]b[\/latex] is the initial value of the dependant\u00a0variable.\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{cc}\\text{Equation form}\\hfill &amp; y=mx+b\\hfill \\\\ \\text{Function notation}\\hfill &amp; f\\left(x\\right)=mx+b\\hfill \\end{array}[\/latex]<\/p>\r\nWe often need to calculate the <strong>slope<\/strong> given input and output values. Given two values for the input, [latex]{x}_{1}[\/latex] and [latex]{x}_{2}[\/latex], and two corresponding values for the output, [latex]{y}_{1}[\/latex]\u00a0and [latex]{y}_{2}[\/latex] \u2014which can be represented by a set of points, [latex]\\left({x}_{1}\\text{, }{y}_{1}\\right)[\/latex]\u00a0and [latex]\\left({x}_{2}\\text{, }{y}_{2}\\right)[\/latex]\u2014we can calculate the slope [latex]m[\/latex],\u00a0as follows\r\n<p style=\"text-align: center;\">[latex]m=\\frac{\\text{change in output (rise)}}{\\text{change in input (run)}}=\\frac{\\Delta y}{\\Delta x}=\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}[\/latex]<\/p>\r\nwhere [latex]\\Delta y[\/latex] is the vertical displacement and [latex]\\Delta x[\/latex] is the horizontal displacement. Note in function notation two corresponding values for the output [latex]{y}_{1}[\/latex] and [latex]{y}_{2}[\/latex] for the function [latex]f[\/latex], [latex]{y}_{1}=f\\left({x}_{1}\\right)[\/latex] and [latex]{y}_{2}=f\\left({x}_{2}\\right)[\/latex], so we could equivalently write\r\n<p style=\"text-align: center;\">[latex]m=\\frac{f\\left({x}_{2}\\right)-f\\left({x}_{1}\\right)}{{x}_{2}-{x}_{1}}[\/latex]<\/p>\r\nThe graph in Figure 5\u00a0indicates how the slope of the line between the points, [latex]\\left({x}_{1,}{y}_{1}\\right)[\/latex]\u00a0and [latex]\\left({x}_{2,}{y}_{2}\\right)[\/latex],\u00a0is calculated. Recall that the slope measures steepness. The greater the absolute value of the slope, the steeper the line is.\r\n\r\n<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201021\/CNX_Precalc_Figure_02_01_005n2.jpg\" alt=\"Graph depicting how to calculate the slope of a line\" width=\"487\" height=\"569\" \/>\r\n\r\nThe slope of a function is calculated by the change in [latex]y[\/latex] divided by the change in [latex]x[\/latex]. It does not matter which coordinate is used as the [latex]\\left({x}_{2,\\text{ }}{y}_{2}\\right)[\/latex] and which is the [latex]\\left({x}_{1},\\text{ }{y}_{1}\\right)[\/latex], as long as each calculation is started with the elements from the same coordinate pair.\r\n\r\nThe units for slope are always [latex]\\frac{\\text{units for the output}}{\\text{units for the input}}[\/latex] Think of the units as the change of output value for each unit of change in input value. An example of slope could be miles per hour or dollars per day. Notice the units appear as a ratio of units for the output per units for the input.\r\n<div class=\"textbox shaded\">\r\n<h3>Calculate Slope<\/h3>\r\nThe slope, or rate of change, of a function [latex]m[\/latex] can be calculated according to the following:\r\n\r\n[latex]m=\\frac{\\text{change in output (rise)}}{\\text{change in input (run)}}=\\frac{\\Delta y}{\\Delta x}=\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}[\/latex]\r\n\r\nwhere [latex]{x}_{1}[\/latex] and [latex]{x}_{2}[\/latex] are input values, [latex]{y}_{1}[\/latex] and [latex]{y}_{2}[\/latex] are output values.\r\n\r\n<\/div>\r\nWhen the slope of a linear function is positive, the line is moving in an uphill direction across the coordinate axes. This is also called an increasing linear function. Likewise, a decreasing linear function is one whose slope is negative. \u00a0The graph of a decreasing linear function is a line moving in a downhill direction across the coordinate axes.\r\n\r\nIn mathematical terms,\r\n\r\nFor a linear function [latex]f(x)=mx+b[\/latex] if [latex]m&gt;0[\/latex], then [latex]f(x)[\/latex] is an increasing function.\r\n\r\nFor a linear function\u00a0[latex]f(x)=mx+b[\/latex]\u00a0if [latex]m&lt;0[\/latex], then [latex]f(x)[\/latex] is a\u00a0decreasing\u00a0function.\r\n\r\nFor a linear function\u00a0[latex]f(x)=mx+b[\/latex]\u00a0if [latex]m=0[\/latex], then [latex]f(x)[\/latex] is a constant\u00a0function. \u00a0Sometimes we say this is neither increasing nor decreasing.\r\n\r\nIn the following example we will first find the slope of a linear function through two points, then determine whether the line is increasing, decreasing, or neither.\r\n<div class=\"textbox exercises\">\r\n<h3>Example<\/h3>\r\nIf [latex]f\\left(x\\right)[\/latex]\u00a0is a linear function, and [latex]\\left(3,-2\\right)[\/latex]\u00a0and [latex]\\left(8,1\\right)[\/latex]\u00a0are points on the line, find the slope. Is this function increasing or decreasing?\r\n\r\n[reveal-answer q=\"103343\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"103343\"]\r\n\r\nThe coordinate pairs are [latex]\\left(3,-2\\right)[\/latex]\u00a0and [latex]\\left(8,1\\right)[\/latex]. To find the rate of change, we divide the change in output by the change in input.\r\n<p style=\"text-align: center;\">[latex]m=\\frac{\\text{change in output}}{\\text{change in input}}=\\frac{1-\\left(-2\\right)}{8 - 3}=\\frac{3}{5}[\/latex]<\/p>\r\nWe could also write the slope as [latex]m=0.6[\/latex]. The function is increasing because [latex]m&gt;0[\/latex].\r\n\r\nAs noted earlier, the order in which we write the points does not matter when we compute the slope of the line as long as the first output value, or <em>y<\/em>-coordinate, used corresponds with the first input value, or <em>x<\/em>-coordinate, used.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nIn the following video we show examples of how to find the slope of a line passing between two points, then determine whether the line is increasing, decreasing or neither.\r\n\r\nhttps:\/\/youtu.be\/in3NTcx11I8\r\n<div class=\"textbox exercises\">\r\n<h3>Example<\/h3>\r\nThe population of a city increased from 23,400 to 27,800 between 2008 and 2012. Find the change of population per year if we assume the change was constant from 2008 to 2012.\r\n\r\n[reveal-answer q=\"246268\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"246268\"]\r\n\r\nThe rate of change relates the change in population to the change in time. The population increased by [latex]27,800-23,400=4400[\/latex] people over the four-year time interval. To find the rate of change, divide the change in the number of people by the number of years.\r\n<p style=\"text-align: center;\">[latex]\\frac{4,400\\text{ people}}{4\\text{ years}}=1,100\\text{ }\\frac{\\text{people}}{\\text{year}}[\/latex]<\/p>\r\nSo the population increased by 1,100 people per year.\r\n\r\nBecause we are told that the population increased, we would expect the slope to be positive. This positive slope we calculated is therefore reasonable.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nIn the next video we show an example where we determine the increase in cost for producing solar panels given two data points.\r\n\r\nhttps:\/\/youtu.be\/4RbniDgEGE4\r\n\r\nThe following video provides na example of how to write a function that will give the cost in dollars for a given number of credit hours taken, x.\r\n\r\nhttps:\/\/youtu.be\/X3Sx2TxH-J0\r\n\r\n<\/div>\r\n<h2 id=\"fs-id1165137697072\">\u00a0Graph Linear Functions Using Slope and y-Intercept<\/h2>\r\nAnother way to graph a linear function is by using its slope <em>m<\/em>, and y-intercept.\r\n\r\nLet\u2019s consider the following function.\r\n<p style=\"text-align: center;\">[latex]f\\left(x\\right)=\\frac{1}{2}x+1[\/latex]<\/p>\r\nThe slope is [latex]\\frac{1}{2}[\/latex]. Because the slope is positive, we know the graph will slant upward from left to right. The <em>y-<\/em>intercept is the point on the graph when <em>x\u00a0<\/em>= 0. The graph crosses the <em>y<\/em>-axis at (0, 1). Now we know the slope and the <em>y<\/em>-intercept. We can begin graphing by plotting the point (0, 1) We know that the slope is rise over run, [latex]m=\\frac{\\text{rise}}{\\text{run}}[\/latex]. From our example, we have [latex]m=\\frac{1}{2}[\/latex], which means that the rise is 1 and the run is 2. So starting from our <em>y<\/em>-intercept (0, 1), we can rise 1 and then run 2, or run 2 and then rise 1. We repeat until we have a few points, and then we draw a line through the points as shown in the graph below.\r\n\r\n<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201048\/CNX_Precalc_Figure_02_02_0032.jpg\" alt=\"graph of the line y = (1\/2)x +1 showing the &quot;rise&quot;, or change in the y direction as 1 and the &quot;run&quot;, or change in x direction as 2, and the y-intercept at (0,1)\" width=\"617\" height=\"340\" \/>\r\n<div class=\"textbox\">\r\n<h3>A General Note: Graphical Interpretation of a Linear Function<\/h3>\r\nIn the equation [latex]f\\left(x\\right)=mx+b[\/latex]\r\n<ul>\r\n \t<li><em>b<\/em>\u00a0is the <em>y<\/em>-intercept of the graph and indicates the point (0, <em>b<\/em>) at which the graph crosses the <em>y<\/em>-axis.<\/li>\r\n \t<li><em>m<\/em>\u00a0is the slope of the line and indicates the vertical displacement (rise) and horizontal displacement (run) between each successive pair of points. Recall the formula for the slope:<\/li>\r\n<\/ul>\r\n<p style=\"text-align: center;\">[latex]m=\\frac{\\text{change in output (rise)}}{\\text{change in input (run)}}=\\frac{\\Delta y}{\\Delta x}=\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}[\/latex]<\/p>\r\n\r\n<\/div>\r\nAll linear functions cross the y-axis and therefore have y-intercepts. (Note: <em>A vertical line parallel to the y-axis does not have a y-intercept, but it is not a function.<\/em>)\r\n<div class=\"textbox\">\r\n<h3>How To: Given the equation for a linear function, graph the function using the <em>y<\/em>-intercept and slope.<\/h3>\r\n<ol>\r\n \t<li>Evaluate the function at an input value of zero to find the <em>y-<\/em>intercept.<\/li>\r\n \t<li>Identify the slope as the rate of change of the input value.<\/li>\r\n \t<li>Plot the point represented by the <em>y-<\/em>intercept.<\/li>\r\n \t<li>Use [latex]\\frac{\\text{rise}}{\\text{run}}[\/latex] to determine at least two more points on the line.<\/li>\r\n \t<li>Sketch the line that passes through the points.<\/li>\r\n<\/ol>\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example<\/h3>\r\nGraph [latex]f\\left(x\\right)=-\\frac{2}{3}x+5[\/latex] using the <em>y-<\/em>intercept and slope.\r\n\r\n[reveal-answer q=\"421669\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"421669\"]\r\n\r\nEvaluate the function at [latex]x=0[\/latex]\u00a0to find the <em>y-<\/em>intercept. The output value when [latex]x=0[\/latex] is 5, so the graph will cross the <em>y<\/em>-axis at (0, 5).\r\n\r\nAccording to the equation for the function, the slope of the line is [latex]-\\frac{2}{3}[\/latex]. This tells us that for each vertical decrease in the \"rise\" of [latex]\u20132[\/latex] units, the \"run\" increases by 3 units in the horizontal direction. We can now graph the function by first plotting the <em>y<\/em>-intercept in the graph below. From the initial value (0, 5) we move down 2 units and to the right 3 units. We can extend the line to the left and right by repeating, and then draw a line through the points.\r\n\r\n<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201050\/CNX_Precalc_Figure_02_02_0042.jpg\" alt=\"graph of the line y = (-2\/3)x + 5 showing the change of -2 in y and change of 3 in x.\" width=\"487\" height=\"318\" \/>\r\n\r\nThe graph slants downward from left to right, which means it has a negative slope as expected.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nIn the following video we show another example of how to graph a linear function given the y-intercepts and the slope.\r\n\r\nhttps:\/\/youtu.be\/N6lEPh11gk8\r\n\r\nIn the last example we will show how to graph another linear function using the slope and y-intercept.\r\n<div class=\"textbox exercises\">\r\n<h3>Example<\/h3>\r\nGraph [latex]f\\left(x\\right)=-\\frac{3}{4}x+6[\/latex]\u00a0using the slope and y-intercept.\r\n[reveal-answer q=\"930515\"]Show Answer[\/reveal-answer]\r\n[hidden-answer a=\"930515\"]\r\n\r\nThe slope of this function is [latex]-\\frac{3}{4}[\/latex] and the y-intercept is [latex](0,6)[\/latex] We can start graphing by plotting the y-intercept and counting down three units and right 4 units. The first stop would be [latex](4,3)[\/latex], and the next stop would be\u00a0[latex](0,8)[\/latex].\r\n<h4>Answer<\/h4>\r\n<img class=\"alignnone size-medium wp-image-2482\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/121\/2016\/07\/13204212\/Screen-Shot-2016-07-13-at-1.35.32-PM-300x229.png\" alt=\"Screen Shot 2016-07-13 at 1.35.32 PM\" width=\"300\" height=\"229\" \/>\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<h3>Example<\/h3>\r\nThe following figure illustrates the graphs of lines going through the origin [latex](0,0)[\/latex]. Notice, the larger the absolute value of <em>m<\/em>, the steeper the slope.\r\n\r\n<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201051\/CNX_Precalc_Figure_02_02_0052.jpg\" alt=\"Graph with several linear functions including y = 3x, y = 2x, y = x, y = (1\/2)x, y = (1\/3)x, y = (-1\/2)x, y = -x, and y = -2x\" width=\"900\" height=\"759\" \/>\r\n\r\nIn the applet below, you can adjust the slope [latex]m[\/latex] and the y-intercept [latex]b[\/latex], and see how that changes the graph of the line [latex]y=mx+b[\/latex], given in slope-intercept form.\r\n\r\nhttps:\/\/www.desmos.com\/calculator\/r8ddrnhgwv\r\n\r\n&nbsp;","rendered":"<div>\n<div class=\"textbox learning-objectives\">\n<h3>Learning Objectives<\/h3>\n<ul>\n<li>Define slope for a linear function<\/li>\n<li>Calculate slope given two points<\/li>\n<li>Graph a linear function using the slope and <em>y<\/em>-intercept<\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<p><span id=\"fs-id2381652\"> <img decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201012\/CNX_Precalc_02_00_012.jpg\" alt=\"An upward view of bamboo trees.\" \/><\/span><\/p>\n<p id=\"fs-id1165137705130\">Imagine placing a plant in the ground one day and finding that it has doubled its height just a few days later. Although it may seem incredible, this can happen with certain types of bamboo species. These members of the grass family are the fastest-growing plants in the world. One species of bamboo has been observed to grow nearly 1.5 inches every hour.\u00a0In a twenty-four hour period, this bamboo plant grows about 36 inches, or an incredible 3 feet! A constant rate of change, such as the growth cycle of this bamboo species, is a linear function.<\/p>\n<p>One well known\u00a0form for writing linear functions is known as the <strong>slope-intercept form<\/strong>, where [latex]x[\/latex] is the input value, [latex]m[\/latex] is the rate of change, and [latex]b[\/latex] is the initial value of the dependant\u00a0variable.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{cc}\\text{Equation form}\\hfill & y=mx+b\\hfill \\\\ \\text{Function notation}\\hfill & f\\left(x\\right)=mx+b\\hfill \\end{array}[\/latex]<\/p>\n<p>We often need to calculate the <strong>slope<\/strong> given input and output values. Given two values for the input, [latex]{x}_{1}[\/latex] and [latex]{x}_{2}[\/latex], and two corresponding values for the output, [latex]{y}_{1}[\/latex]\u00a0and [latex]{y}_{2}[\/latex] \u2014which can be represented by a set of points, [latex]\\left({x}_{1}\\text{, }{y}_{1}\\right)[\/latex]\u00a0and [latex]\\left({x}_{2}\\text{, }{y}_{2}\\right)[\/latex]\u2014we can calculate the slope [latex]m[\/latex],\u00a0as follows<\/p>\n<p style=\"text-align: center;\">[latex]m=\\frac{\\text{change in output (rise)}}{\\text{change in input (run)}}=\\frac{\\Delta y}{\\Delta x}=\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}[\/latex]<\/p>\n<p>where [latex]\\Delta y[\/latex] is the vertical displacement and [latex]\\Delta x[\/latex] is the horizontal displacement. Note in function notation two corresponding values for the output [latex]{y}_{1}[\/latex] and [latex]{y}_{2}[\/latex] for the function [latex]f[\/latex], [latex]{y}_{1}=f\\left({x}_{1}\\right)[\/latex] and [latex]{y}_{2}=f\\left({x}_{2}\\right)[\/latex], so we could equivalently write<\/p>\n<p style=\"text-align: center;\">[latex]m=\\frac{f\\left({x}_{2}\\right)-f\\left({x}_{1}\\right)}{{x}_{2}-{x}_{1}}[\/latex]<\/p>\n<p>The graph in Figure 5\u00a0indicates how the slope of the line between the points, [latex]\\left({x}_{1,}{y}_{1}\\right)[\/latex]\u00a0and [latex]\\left({x}_{2,}{y}_{2}\\right)[\/latex],\u00a0is calculated. Recall that the slope measures steepness. The greater the absolute value of the slope, the steeper the line is.<\/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\/924\/2015\/11\/25201021\/CNX_Precalc_Figure_02_01_005n2.jpg\" alt=\"Graph depicting how to calculate the slope of a line\" width=\"487\" height=\"569\" \/><\/p>\n<p>The slope of a function is calculated by the change in [latex]y[\/latex] divided by the change in [latex]x[\/latex]. It does not matter which coordinate is used as the [latex]\\left({x}_{2,\\text{ }}{y}_{2}\\right)[\/latex] and which is the [latex]\\left({x}_{1},\\text{ }{y}_{1}\\right)[\/latex], as long as each calculation is started with the elements from the same coordinate pair.<\/p>\n<p>The units for slope are always [latex]\\frac{\\text{units for the output}}{\\text{units for the input}}[\/latex] Think of the units as the change of output value for each unit of change in input value. An example of slope could be miles per hour or dollars per day. Notice the units appear as a ratio of units for the output per units for the input.<\/p>\n<div class=\"textbox shaded\">\n<h3>Calculate Slope<\/h3>\n<p>The slope, or rate of change, of a function [latex]m[\/latex] can be calculated according to the following:<\/p>\n<p>[latex]m=\\frac{\\text{change in output (rise)}}{\\text{change in input (run)}}=\\frac{\\Delta y}{\\Delta x}=\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}[\/latex]<\/p>\n<p>where [latex]{x}_{1}[\/latex] and [latex]{x}_{2}[\/latex] are input values, [latex]{y}_{1}[\/latex] and [latex]{y}_{2}[\/latex] are output values.<\/p>\n<\/div>\n<p>When the slope of a linear function is positive, the line is moving in an uphill direction across the coordinate axes. This is also called an increasing linear function. Likewise, a decreasing linear function is one whose slope is negative. \u00a0The graph of a decreasing linear function is a line moving in a downhill direction across the coordinate axes.<\/p>\n<p>In mathematical terms,<\/p>\n<p>For a linear function [latex]f(x)=mx+b[\/latex] if [latex]m>0[\/latex], then [latex]f(x)[\/latex] is an increasing function.<\/p>\n<p>For a linear function\u00a0[latex]f(x)=mx+b[\/latex]\u00a0if [latex]m<0[\/latex], then [latex]f(x)[\/latex] is a\u00a0decreasing\u00a0function.\n\nFor a linear function\u00a0[latex]f(x)=mx+b[\/latex]\u00a0if [latex]m=0[\/latex], then [latex]f(x)[\/latex] is a constant\u00a0function. \u00a0Sometimes we say this is neither increasing nor decreasing.\n\nIn the following example we will first find the slope of a linear function through two points, then determine whether the line is increasing, decreasing, or neither.\n\n\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>If [latex]f\\left(x\\right)[\/latex]\u00a0is a linear function, and [latex]\\left(3,-2\\right)[\/latex]\u00a0and [latex]\\left(8,1\\right)[\/latex]\u00a0are points on the line, find the slope. Is this function increasing or decreasing?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q103343\">Show Solution<\/span><\/p>\n<div id=\"q103343\" class=\"hidden-answer\" style=\"display: none\">\n<p>The coordinate pairs are [latex]\\left(3,-2\\right)[\/latex]\u00a0and [latex]\\left(8,1\\right)[\/latex]. To find the rate of change, we divide the change in output by the change in input.<\/p>\n<p style=\"text-align: center;\">[latex]m=\\frac{\\text{change in output}}{\\text{change in input}}=\\frac{1-\\left(-2\\right)}{8 - 3}=\\frac{3}{5}[\/latex]<\/p>\n<p>We could also write the slope as [latex]m=0.6[\/latex]. The function is increasing because [latex]m>0[\/latex].<\/p>\n<p>As noted earlier, the order in which we write the points does not matter when we compute the slope of the line as long as the first output value, or <em>y<\/em>-coordinate, used corresponds with the first input value, or <em>x<\/em>-coordinate, used.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>In the following video we show examples of how to find the slope of a line passing between two points, then determine whether the line is increasing, decreasing or neither.<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-1\" title=\"Ex: Find the Slope Given Two Points and Describe the Line\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/in3NTcx11I8?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>The population of a city increased from 23,400 to 27,800 between 2008 and 2012. Find the change of population per year if we assume the change was constant from 2008 to 2012.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q246268\">Show Solution<\/span><\/p>\n<div id=\"q246268\" class=\"hidden-answer\" style=\"display: none\">\n<p>The rate of change relates the change in population to the change in time. The population increased by [latex]27,800-23,400=4400[\/latex] people over the four-year time interval. To find the rate of change, divide the change in the number of people by the number of years.<\/p>\n<p style=\"text-align: center;\">[latex]\\frac{4,400\\text{ people}}{4\\text{ years}}=1,100\\text{ }\\frac{\\text{people}}{\\text{year}}[\/latex]<\/p>\n<p>So the population increased by 1,100 people per year.<\/p>\n<p>Because we are told that the population increased, we would expect the slope to be positive. This positive slope we calculated is therefore reasonable.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>In the next video we show an example where we determine the increase in cost for producing solar panels given two data points.<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-2\" title=\"Ex:  Slope Application Involving Production Costs\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/4RbniDgEGE4?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>The following video provides na example of how to write a function that will give the cost in dollars for a given number of credit hours taken, x.<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-3\" title=\"Write and Graph a Linear Function by Making a Table of Values (Intro)\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/X3Sx2TxH-J0?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<\/div>\n<h2 id=\"fs-id1165137697072\">\u00a0Graph Linear Functions Using Slope and y-Intercept<\/h2>\n<p>Another way to graph a linear function is by using its slope <em>m<\/em>, and y-intercept.<\/p>\n<p>Let\u2019s consider the following function.<\/p>\n<p style=\"text-align: center;\">[latex]f\\left(x\\right)=\\frac{1}{2}x+1[\/latex]<\/p>\n<p>The slope is [latex]\\frac{1}{2}[\/latex]. Because the slope is positive, we know the graph will slant upward from left to right. The <em>y-<\/em>intercept is the point on the graph when <em>x\u00a0<\/em>= 0. The graph crosses the <em>y<\/em>-axis at (0, 1). Now we know the slope and the <em>y<\/em>-intercept. We can begin graphing by plotting the point (0, 1) We know that the slope is rise over run, [latex]m=\\frac{\\text{rise}}{\\text{run}}[\/latex]. From our example, we have [latex]m=\\frac{1}{2}[\/latex], which means that the rise is 1 and the run is 2. So starting from our <em>y<\/em>-intercept (0, 1), we can rise 1 and then run 2, or run 2 and then rise 1. We repeat until we have a few points, and then we draw a line through the points as shown in the graph below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25201048\/CNX_Precalc_Figure_02_02_0032.jpg\" alt=\"graph of the line y = (1\/2)x +1 showing the &quot;rise&quot;, or change in the y direction as 1 and the &quot;run&quot;, or change in x direction as 2, and the y-intercept at (0,1)\" width=\"617\" height=\"340\" \/><\/p>\n<div class=\"textbox\">\n<h3>A General Note: Graphical Interpretation of a Linear Function<\/h3>\n<p>In the equation [latex]f\\left(x\\right)=mx+b[\/latex]<\/p>\n<ul>\n<li><em>b<\/em>\u00a0is the <em>y<\/em>-intercept of the graph and indicates the point (0, <em>b<\/em>) at which the graph crosses the <em>y<\/em>-axis.<\/li>\n<li><em>m<\/em>\u00a0is the slope of the line and indicates the vertical displacement (rise) and horizontal displacement (run) between each successive pair of points. Recall the formula for the slope:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">[latex]m=\\frac{\\text{change in output (rise)}}{\\text{change in input (run)}}=\\frac{\\Delta y}{\\Delta x}=\\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}[\/latex]<\/p>\n<\/div>\n<p>All linear functions cross the y-axis and therefore have y-intercepts. (Note: <em>A vertical line parallel to the y-axis does not have a y-intercept, but it is not a function.<\/em>)<\/p>\n<div class=\"textbox\">\n<h3>How To: Given the equation for a linear function, graph the function using the <em>y<\/em>-intercept and slope.<\/h3>\n<ol>\n<li>Evaluate the function at an input value of zero to find the <em>y-<\/em>intercept.<\/li>\n<li>Identify the slope as the rate of change of the input value.<\/li>\n<li>Plot the point represented by the <em>y-<\/em>intercept.<\/li>\n<li>Use [latex]\\frac{\\text{rise}}{\\text{run}}[\/latex] to determine at least two more points on the line.<\/li>\n<li>Sketch the line that passes through the points.<\/li>\n<\/ol>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>Graph [latex]f\\left(x\\right)=-\\frac{2}{3}x+5[\/latex] using the <em>y-<\/em>intercept and slope.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q421669\">Show Solution<\/span><\/p>\n<div id=\"q421669\" class=\"hidden-answer\" style=\"display: none\">\n<p>Evaluate the function at [latex]x=0[\/latex]\u00a0to find the <em>y-<\/em>intercept. The output value when [latex]x=0[\/latex] is 5, so the graph will cross the <em>y<\/em>-axis at (0, 5).<\/p>\n<p>According to the equation for the function, the slope of the line is [latex]-\\frac{2}{3}[\/latex]. This tells us that for each vertical decrease in the &#8220;rise&#8221; of [latex]\u20132[\/latex] units, the &#8220;run&#8221; increases by 3 units in the horizontal direction. We can now graph the function by first plotting the <em>y<\/em>-intercept in the graph below. From the initial value (0, 5) we move down 2 units and to the right 3 units. We can extend the line to the left and right by repeating, and then draw a line through the points.<\/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\/924\/2015\/11\/25201050\/CNX_Precalc_Figure_02_02_0042.jpg\" alt=\"graph of the line y = (-2\/3)x + 5 showing the change of -2 in y and change of 3 in x.\" width=\"487\" height=\"318\" \/><\/p>\n<p>The graph slants downward from left to right, which means it has a negative slope as expected.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>In the following video we show another example of how to graph a linear function given the y-intercepts and the slope.<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-4\" title=\"Ex: Graph a Line and ID the Slope and Intercepts (Fraction Slope)\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/N6lEPh11gk8?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>In the last example we will show how to graph another linear function using the slope and y-intercept.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>Graph [latex]f\\left(x\\right)=-\\frac{3}{4}x+6[\/latex]\u00a0using the slope and y-intercept.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q930515\">Show Answer<\/span><\/p>\n<div id=\"q930515\" class=\"hidden-answer\" style=\"display: none\">\n<p>The slope of this function is [latex]-\\frac{3}{4}[\/latex] and the y-intercept is [latex](0,6)[\/latex] We can start graphing by plotting the y-intercept and counting down three units and right 4 units. The first stop would be [latex](4,3)[\/latex], and the next stop would be\u00a0[latex](0,8)[\/latex].<\/p>\n<h4>Answer<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2482\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/121\/2016\/07\/13204212\/Screen-Shot-2016-07-13-at-1.35.32-PM-300x229.png\" alt=\"Screen Shot 2016-07-13 at 1.35.32 PM\" width=\"300\" height=\"229\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3>Example<\/h3>\n<p>The following figure illustrates the graphs of lines going through the origin [latex](0,0)[\/latex]. Notice, the larger the absolute value of <em>m<\/em>, the steeper the slope.<\/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\/924\/2015\/11\/25201051\/CNX_Precalc_Figure_02_02_0052.jpg\" alt=\"Graph with several linear functions including y = 3x, y = 2x, y = x, y = (1\/2)x, y = (1\/3)x, y = (-1\/2)x, y = -x, and y = -2x\" width=\"900\" height=\"759\" \/><\/p>\n<p>In the applet below, you can adjust the slope [latex]m[\/latex] and the y-intercept [latex]b[\/latex], and see how that changes the graph of the line [latex]y=mx+b[\/latex], given in slope-intercept form.<\/p>\n<p>https:\/\/www.desmos.com\/calculator\/r8ddrnhgwv<\/p>\n<p>&nbsp;<\/p>\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-1902\">\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>Revision and Adaptation. <strong>Provided 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><li>Write and Graph a Linear Function by Making a Table of Values (Intro). <strong>Authored by<\/strong>: James Sousa (Mathispower4u.com) for Lumen Learning. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/X3Sx2TxH-J0\">https:\/\/youtu.be\/X3Sx2TxH-J0<\/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>Graph a Linear Function as a Transformation of f(x)=x. <strong>Authored by<\/strong>: James Sousa (Mathispower4u.com) for Lumen Learning. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/h9zn_ODlgbM\">https:\/\/youtu.be\/h9zn_ODlgbM<\/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>Interactive Linear Graphing. <strong>Authored by<\/strong>: Tatyana Khodorovskiy. <strong>Provided by<\/strong>: (with Desmos Graphing). <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/www.desmos.com\/calculator\/r8ddrnhgwv\">https:\/\/www.desmos.com\/calculator\/r8ddrnhgwv<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/about\/pdm\">Public Domain: No Known Copyright<\/a><\/em><\/li><\/ul><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Precalculus. <strong>Authored by<\/strong>: Jay Abramson, et al.. <strong>Provided by<\/strong>: OpenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175\">http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175<\/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 Slope Given Two Points and Describe the Line. <strong>Authored by<\/strong>: James Sousa (Mathispower4u.com) for Lumen Learning. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/in3NTcx11I8\">https:\/\/youtu.be\/in3NTcx11I8<\/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: Slope Application Involving Production Costs. <strong>Authored by<\/strong>: James Sousa (Mathispower4u.com) for Lumen Learning. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/4RbniDgEGE4\">https:\/\/youtu.be\/4RbniDgEGE4<\/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: Graph a Line and ID the Slope and Intercepts (Fraction Slope). <strong>Authored by<\/strong>: James Sousa (Mathispower4u.com) for Lumen Learning. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/N6lEPh11gk8\">https:\/\/youtu.be\/N6lEPh11gk8<\/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>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":21,"menu_order":6,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Precalculus\",\"author\":\"Jay Abramson, et al.\",\"organization\":\"OpenStax\",\"url\":\"http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"Ex: Find the Slope Given Two Points and Describe the Line\",\"author\":\"James Sousa (Mathispower4u.com) for Lumen Learning\",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/in3NTcx11I8\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"Ex: Slope Application Involving Production Costs\",\"author\":\"James Sousa (Mathispower4u.com) for Lumen Learning\",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/4RbniDgEGE4\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"Revision and Adaptation\",\"author\":\"\",\"organization\":\"Lumen Learning\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"Write and Graph a Linear Function by Making a Table of Values (Intro)\",\"author\":\"James Sousa (Mathispower4u.com) for Lumen Learning\",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/X3Sx2TxH-J0\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"Ex: Graph a Line and ID the Slope and Intercepts (Fraction Slope)\",\"author\":\"James Sousa (Mathispower4u.com) for Lumen Learning\",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/N6lEPh11gk8\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"Graph a Linear Function as a Transformation of f(x)=x\",\"author\":\"James Sousa (Mathispower4u.com) for Lumen Learning\",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/h9zn_ODlgbM\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"Interactive Linear Graphing\",\"author\":\"Tatyana Khodorovskiy\",\"organization\":\"(with Desmos Graphing)\",\"url\":\"https:\/\/www.desmos.com\/calculator\/r8ddrnhgwv\",\"project\":\"\",\"license\":\"pd\",\"license_terms\":\"\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1902","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/wp\/v2\/users\/21"}],"version-history":[{"count":31,"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1902\/revisions"}],"predecessor-version":[{"id":5270,"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1902\/revisions\/5270"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1902\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/wp\/v2\/media?parent=1902"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=1902"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/wp\/v2\/contributor?post=1902"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-coreq-collegealgebra\/wp-json\/wp\/v2\/license?post=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}