{"id":931,"date":"2015-11-12T18:37:58","date_gmt":"2015-11-12T18:37:58","guid":{"rendered":"https:\/\/courses.candelalearning.com\/collegealgebra1xmaster\/?post_type=chapter&#038;p=931"},"modified":"2017-03-31T20:25:46","modified_gmt":"2017-03-31T20:25:46","slug":"graph-functions-using-vertical-and-horizontal-shifts","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/chapter\/graph-functions-using-vertical-and-horizontal-shifts\/","title":{"raw":"Graph functions using vertical and horizontal shifts","rendered":"Graph functions using vertical and horizontal shifts"},"content":{"raw":"<p id=\"fs-id1165137654715\">Often when given a problem, we try to model the scenario using mathematics in the form of words, tables, graphs, and equations. One method we can employ is to adapt the basic graphs of the toolkit functions to build new models for a given scenario. There are systematic ways to alter functions to construct appropriate models for the problems we are trying to solve.<\/p>\r\n\r\n<section id=\"fs-id1165137535664\" data-depth=\"2\"><h2 style=\"text-align: center;\" data-type=\"title\"\/>\r\n<h2 style=\"text-align: center;\" data-type=\"title\"\/>\r\n<h2 style=\"text-align: center;\" data-type=\"title\"><span style=\"text-decoration: underline;\">Identifying Vertical Shifts<\/span><\/h2>\r\nOne simple kind of <strong>transformation<\/strong> involves shifting the entire graph of a function up, down, right, or left. The simplest shift is a <strong>vertical shift<\/strong>, moving the graph up or down, because this transformation involves adding a positive or negative constant to the function. In other words, we add the same constant to the output value of the function regardless of the input. For a function [latex]g\\left(x\\right)=f\\left(x\\right)+k[\/latex], the function [latex]f\\left(x\\right)[\/latex] is shifted vertically [latex]k[\/latex] units.\r\n\r\n<span id=\"fs-id1165137464872\" data-type=\"media\" data-alt=\"Figure_01_05_001\"> <img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25200757\/CNX_Precalc_Figure_01_05_0012.jpg\" alt=\"Graph of f of x equals the cubed root of x shifted upward one unit, the resulting graph passes through the point (0,1) instead of (0,0), (1, 2) instead of (1,1) and (-1, 0) instead of (-1, -1)\" width=\"487\" height=\"292\" data-media-type=\"image\/jpg\"\/><\/span>\r\n<p style=\"text-align: center;\"><strong>Figure 2.<\/strong> Vertical shift by [latex]k=1[\/latex] of the cube root function [latex]f\\left(x\\right)=\\sqrt[3]{x}[\/latex].<\/p>\r\n<p id=\"fs-id1165137439125\">To help you visualize the concept of a vertical shift, consider that [latex]y=f\\left(x\\right)[\/latex]. Therefore, [latex]f\\left(x\\right)+k[\/latex] is equivalent to [latex]y+k[\/latex]. Every unit of [latex]y[\/latex] is replaced by [latex]y+k[\/latex], so the [latex]y\\text{-}[\/latex] value increases or decreases depending on the value of [latex]k[\/latex]. The result is a shift upward or downward.<\/p>\r\n\r\n<div id=\"fs-id1165137737394\" class=\"note textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"A General Note\">\r\n<h3 class=\"title\" data-type=\"title\">A General Note: Vertical Shift<\/h3>\r\n<p id=\"fs-id1165137627718\">Given a function [latex]f\\left(x\\right)[\/latex], a new function [latex]g\\left(x\\right)=f\\left(x\\right)+k[\/latex], where [latex]k[\/latex] is a constant, is a <strong>vertical shift<\/strong> of the function [latex]f\\left(x\\right)[\/latex]. All the output values change by [latex]k[\/latex] units. If [latex]k[\/latex] is positive, the graph will shift up. If [latex]k[\/latex] is negative, the graph will shift down.<\/p>\r\n\r\n<\/div>\r\n<div id=\"Example_01_05_01\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165137701104\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165135547346\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 1: Adding a Constant to a Function<\/h3>\r\nTo regulate temperature in a green building, airflow vents near the roof open and close throughout the day. Figure 2\u00a0shows the area of open vents [latex]V[\/latex] (in square feet) throughout the day in hours after midnight, [latex]t[\/latex]. During the summer, the facilities manager decides to try to better regulate temperature by increasing the amount of open vents by 20 square feet throughout the day and night. Sketch a graph of this new function.\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25200758\/CNX_Precalc_Figure_01_05_0022.jpg\" alt=\"\" width=\"487\" height=\"326\" data-media-type=\"image\/jpg\"\/><b>Figure 3<\/b>[\/caption]\r\n\r\n<\/div>\r\n<div id=\"fs-id1165135504997\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\nWe can sketch a graph of this new function by adding 20 to each of the output values of the original function. This will have the effect of shifting the graph vertically up, as shown in Figure 4.\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25200759\/CNX_Precalc_Figure_01_05_003a2.jpg\" alt=\"\" width=\"487\" height=\"329\" data-media-type=\"image\/jpg\"\/><b>Figure 4<\/b>[\/caption]\r\n<p id=\"fs-id1165137662763\">Notice that\u00a0for each input value, the output value has increased by 20, so if we call the new function [latex]S\\left(t\\right)[\/latex], we could write<\/p>\r\n\r\n<div id=\"fs-id1165137772392\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]S\\left(t\\right)=V\\left(t\\right)+20[\/latex]<\/div>\r\n<p id=\"fs-id1165134164955\">This notation tells us that, for any value of [latex]t,S\\left(t\\right)[\/latex] can be found by evaluating the function [latex]V[\/latex] at the same input and then adding 20 to the result. This defines [latex]S[\/latex] as a transformation of the function [latex]V[\/latex], in this case a vertical shift up 20 units. Notice that, with a vertical shift, the input values stay the same and only the output values change.<\/p>\r\n\r\n<table id=\"Table_01_05_018\" summary=\"Three rows and seven columns. The first row is labeled,\"><colgroup><col\/><col data-width=\"60\" data-align=\"center\"\/><col data-width=\"60\" data-align=\"center\"\/><col data-width=\"60\" data-align=\"center\"\/><col data-width=\"60\" data-align=\"center\"\/><col data-width=\"60\" data-align=\"center\"\/><col data-width=\"60\" data-align=\"center\"\/><\/colgroup><tbody><tr><td data-align=\"center\"><strong>[latex]t[\/latex]<\/strong><\/td>\r\n<td>0<\/td>\r\n<td>8<\/td>\r\n<td>10<\/td>\r\n<td>17<\/td>\r\n<td>19<\/td>\r\n<td>24<\/td>\r\n<\/tr><tr><td data-align=\"center\"><strong>[latex]V\\left(t\\right)[\/latex] <\/strong><\/td>\r\n<td>0<\/td>\r\n<td>0<\/td>\r\n<td>220<\/td>\r\n<td>220<\/td>\r\n<td>0<\/td>\r\n<td>0<\/td>\r\n<\/tr><tr><td data-align=\"center\"><strong>[latex]S\\left(t\\right)[\/latex] <\/strong><\/td>\r\n<td>20<\/td>\r\n<td>20<\/td>\r\n<td>240<\/td>\r\n<td>240<\/td>\r\n<td>20<\/td>\r\n<td>20<\/td>\r\n<\/tr><\/tbody><\/table><\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165135369225\" class=\"note precalculus howto textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"How To\">\r\n<h3 id=\"fs-id1165134371214\">How To: Given a tabular function, create a new row to represent a vertical shift.<\/h3>\r\n<ol id=\"fs-id1165135530387\" data-number-style=\"arabic\"><li>Identify the output row or column.<\/li>\r\n\t<li>Determine the <strong>magnitude<\/strong> of the shift.<\/li>\r\n\t<li>Add the shift to the value in each output cell. Add a positive value for up or a negative value for down.<\/li>\r\n<\/ol><\/div>\r\n<div id=\"Example_01_05_02\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165135581153\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165135443766\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 2: Shifting a Tabular Function Vertically<\/h3>\r\n<p id=\"fs-id1165137692074\">A function [latex]f\\left(x\\right)[\/latex] is given below. Create a table for the function [latex]g\\left(x\\right)=f\\left(x\\right)-3[\/latex].<\/p>\r\n\r\n<table id=\"Table_01_05_01\" summary=\"Two rows and five columns. The first row is labeled,\"><colgroup><col\/><col data-width=\"40\" data-align=\"left\"\/><col data-width=\"40\" data-align=\"left\"\/><col data-width=\"40\" data-align=\"left\"\/><col data-width=\"40\" data-align=\"left\"\/><\/colgroup><tbody><tr><td data-align=\"center\"><strong>[latex]x[\/latex]<\/strong><\/td>\r\n<td>2<\/td>\r\n<td>4<\/td>\r\n<td>6<\/td>\r\n<td>8<\/td>\r\n<\/tr><tr><td data-align=\"center\"><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td>1<\/td>\r\n<td>3<\/td>\r\n<td>7<\/td>\r\n<td>11<\/td>\r\n<\/tr><\/tbody><\/table><\/div>\r\n<div id=\"fs-id1165137574326\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\n<p id=\"fs-id1165135241392\">The formula [latex]g\\left(x\\right)=f\\left(x\\right)-3[\/latex] tells us that we can find the output values of [latex]g[\/latex] by subtracting 3 from the output values of [latex]f[\/latex]. For example:<\/p>\r\n\r\n<div id=\"fs-id1165137662784\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}f\\left(2\\right)=1\\hfill &amp; \\text{Given}\\hfill \\\\ g\\left(x\\right)=f\\left(x\\right)-3\\hfill &amp; \\text{Given transformation}\\hfill \\\\ g\\left(2\\right)=f\\left(2\\right)-3\\hfill &amp; \\hfill \\\\ =1 - 3\\hfill &amp; \\hfill \\\\ =-2\\hfill &amp; \\hfill \\end{cases}[\/latex]<\/div>\r\n<p id=\"fs-id1165135318984\">Subtracting 3 from each [latex]f\\left(x\\right)[\/latex] value, we can complete a table of values for [latex]g\\left(x\\right)[\/latex].<\/p>\r\n\r\n<table id=\"Table_01_05_02\" summary=\"Three rows and five columns. The first row is labeled,\"><colgroup><col data-width=\"40\"\/><col data-width=\"40\"\/><col data-width=\"40\"\/><col data-width=\"40\"\/><col data-width=\"40\"\/><\/colgroup><tbody><tr><td data-align=\"center\"><strong>[latex]x[\/latex]<\/strong><\/td>\r\n<td data-align=\"center\">2<\/td>\r\n<td data-align=\"center\">4<\/td>\r\n<td data-align=\"center\">6<\/td>\r\n<td data-align=\"center\">8<\/td>\r\n<\/tr><tr><td data-align=\"center\"><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td data-align=\"center\">1<\/td>\r\n<td data-align=\"center\">3<\/td>\r\n<td data-align=\"center\">7<\/td>\r\n<td data-align=\"center\">11<\/td>\r\n<\/tr><tr><td data-align=\"center\"><strong>[latex]g\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td data-align=\"center\">\u22122<\/td>\r\n<td data-align=\"center\">0<\/td>\r\n<td data-align=\"center\">4<\/td>\r\n<td data-align=\"center\">8<\/td>\r\n<\/tr><\/tbody><\/table><\/div>\r\n<div id=\"fs-id1165137737963\" class=\"commentary\" data-type=\"commentary\">\r\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\r\n<p id=\"fs-id1165135175018\">As with the earlier vertical shift, notice the input values stay the same and only the output values change.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165137692134\" class=\"note precalculus try\" data-type=\"note\" data-has-label=\"true\" data-label=\"Try It\">\r\n<div id=\"ti_01_05_01\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165137834794\" class=\"problem\" data-type=\"problem\">\r\n<p id=\"fs-id1165137767439\">The function [latex]h\\left(t\\right)=-4.9{t}^{2}+30t[\/latex] gives the height [latex]h[\/latex] of a ball (in meters) thrown upward from the ground after [latex]t[\/latex] seconds. Suppose the ball was instead thrown from the top of a 10-m building. Relate this new height function [latex]b\\left(t\\right)[\/latex] to [latex]h\\left(t\\right)[\/latex], and then find a formula for [latex]b\\left(t\\right)[\/latex].<\/p>\r\n\r\n<\/div>\r\n<div id=\"fs-id1165137481965\" class=\"solution\" data-type=\"solution\">\r\n<div id=\"fs-id1165137680332\" class=\"equation\" style=\"text-align: center;\" data-type=\"equation\">[latex]b\\left(t\\right)=h\\left(t\\right)+10=-4.9{t}^{2}+30t+10[\/latex]<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/section><section id=\"fs-id1165137597159\" data-depth=\"2\"><h2 style=\"text-align: center;\" data-type=\"title\"\/>\r\n<h2 style=\"text-align: center;\" data-type=\"title\"\/>\r\n<h2 style=\"text-align: center;\" data-type=\"title\"><span style=\"text-decoration: underline;\">Identifying Horizontal Shifts<\/span><\/h2>\r\nWe just saw that the vertical shift is a change to the output, or outside, of the function. We will now look at how changes to input, on the inside of the function, change its graph and meaning. A shift to the input results in a movement of the graph of the function left or right in what is known as a <strong>horizontal shift<\/strong>.\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\/25200801\/CNX_Precalc_Figure_01_05_0042.jpg\" alt=\"Graph of f of x equals the cubed root of x shifted left one unit, the resulting graph passes through the point (0,-1) instead of (0,0), (0, 1) instead of (1,1) and (-2, -1) instead of (-1, -1)\" width=\"487\" height=\"288\" data-media-type=\"image\/jpg\"\/><p style=\"text-align: center;\"><strong>Figure 5.<\/strong> Horizontal shift of the function [latex]f\\left(x\\right)=\\sqrt[3]{x}[\/latex]. Note that [latex]h=+1[\/latex] shifts the graph to the left, that is, towards <em data-effect=\"italics\">negative<\/em> values of [latex]x[\/latex].<\/p>\r\n\r\n<\/section><section data-depth=\"2\"><p id=\"eip-884\">For example, if [latex]f\\left(x\\right)={x}^{2}[\/latex], then [latex]g\\left(x\\right)={\\left(x - 2\\right)}^{2}[\/latex] is a new function. Each input is reduced by 2 prior to squaring the function. The result is that the graph is shifted 2 units to the right, because we would need to increase the prior input by 2 units to yield the same output value as given in [latex]f[\/latex].<\/p>\r\n\r\n<div id=\"fs-id1165137436470\" class=\"note textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"A General Note\">\r\n<h3 class=\"title\" data-type=\"title\">A General Note: Horizontal Shift<\/h3>\r\n<p id=\"fs-id1165135188470\">Given a function [latex]f[\/latex], a new function [latex]g\\left(x\\right)=f\\left(x-h\\right)[\/latex], where [latex]h[\/latex] is a constant, is a <strong>horizontal shift<\/strong> of the function [latex]f[\/latex]. If [latex]h[\/latex] is positive, the graph will shift right. If [latex]h[\/latex] is negative, the graph will shift left.<\/p>\r\n\r\n<\/div>\r\n<div id=\"Example_01_05_03\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165135241148\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165134148356\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 3: Adding a Constant to an Input<\/h3>\r\n<p id=\"fs-id1165137658363\">Returning to our building airflow example from Example 2, suppose that in autumn the facilities manager decides that the original venting plan starts too late, and wants to begin the entire venting program 2 hours earlier. Sketch a graph of the new function.<\/p>\r\n\r\n<\/div>\r\n<div id=\"fs-id1165137423751\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\n<p id=\"fs-id1165137423753\">We can set [latex]V\\left(t\\right)[\/latex] to be the original program and [latex]F\\left(t\\right)[\/latex] to be the revised program.<\/p>\r\n\r\n<div id=\"fs-id1165135195278\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}{c}V\\left(t\\right)=\\text{ the original venting plan}\\\\ \\text{F}\\left(t\\right)=\\text{starting 2 hrs sooner}\\end{cases}[\/latex]<\/div>\r\n<p id=\"fs-id1165137714274\">In the new graph, at each time, the airflow is the same as the original function [latex]V[\/latex] was 2 hours later. For example, in the original function [latex]V[\/latex], the airflow starts to change at 8 a.m., whereas for the function [latex]F[\/latex], the airflow starts to change at 6 a.m. The comparable function values are [latex]V\\left(8\\right)=F\\left(6\\right)[\/latex].\u00a0Notice also that the vents first opened to [latex]220{\\text{ ft}}^{2}[\/latex] at 10 a.m. under the original plan, while under the new plan the vents reach [latex]220{\\text{ ft}}^{\\text{2}}[\/latex] at 8 a.m., so [latex]V\\left(10\\right)=F\\left(8\\right)[\/latex].<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25200802\/CNX_Precalc_Figure_01_05_005a2.jpg\" alt=\"Figure_01_05_005a\" width=\"487\" height=\"329\" data-media-type=\"image\/jpg\"\/><b>Figure 6<\/b>[\/caption]\r\n<p id=\"fs-id1165137411313\">In both cases, we see that, because [latex]F\\left(t\\right)[\/latex] starts 2 hours sooner, [latex]h=-2[\/latex]. That means that the same output values are reached when [latex]F\\left(t\\right)=V\\left(t-\\left(-2\\right)\\right)=V\\left(t+2\\right)[\/latex].<span id=\"fs-id1165137640758\" data-type=\"media\" data-alt=\"Figure_01_05_005a\">\r\n<\/span><\/p>\r\n\r\n<\/div>\r\n<div id=\"fs-id1165137714144\" class=\"commentary\" data-type=\"commentary\">\r\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\r\n<p id=\"fs-id1165137757835\">Note that [latex]V\\left(t+2\\right)[\/latex] has the effect of shifting the graph to the <em data-effect=\"italics\">left<\/em>.<\/p>\r\n<p id=\"fs-id1165137473462\">Horizontal changes or \"inside changes\" affect the domain of a function (the input) instead of the range and often seem counterintuitive. The new function [latex]F\\left(t\\right)[\/latex] uses the same outputs as [latex]V\\left(t\\right)[\/latex], but matches those outputs to inputs 2 hours earlier than those of [latex]V\\left(t\\right)[\/latex]. Said another way, we must add 2 hours to the input of [latex]V[\/latex] to find the corresponding output for [latex]F:F\\left(t\\right)=V\\left(t+2\\right)[\/latex].<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165137644724\" class=\"note precalculus howto textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"How To\">\r\n<h3 id=\"fs-id1165137667199\">How To: Given a tabular function, create a new row to represent a horizontal shift.<\/h3>\r\n<ol id=\"fs-id1165137652957\" data-number-style=\"arabic\"><li>Identify the input row or column.<\/li>\r\n\t<li>Determine the magnitude of the shift.<\/li>\r\n\t<li>Add the shift to the value in each input cell.<\/li>\r\n<\/ol><\/div>\r\n<div id=\"Example_01_05_04\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165137831912\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165137831914\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 4: Shifting a Tabular Function Horizontally<\/h3>\r\n<p id=\"fs-id1165137761563\">A function [latex]f\\left(x\\right)[\/latex] is given below. Create a table for the function [latex]g\\left(x\\right)=f\\left(x - 3\\right)[\/latex].<\/p>\r\n\r\n<table id=\"Table_01_05_03\" summary=\"Two rows and five columns. The first row is labeled,\"><colgroup\/><tbody><tr><td data-align=\"center\"><strong>[latex]x[\/latex]<\/strong><\/td>\r\n<td data-align=\"center\">2<\/td>\r\n<td data-align=\"center\">4<\/td>\r\n<td data-align=\"center\">6<\/td>\r\n<td data-align=\"center\">8<\/td>\r\n<\/tr><tr><td data-align=\"center\"><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td data-align=\"center\">1<\/td>\r\n<td data-align=\"center\">3<\/td>\r\n<td data-align=\"center\">7<\/td>\r\n<td data-align=\"center\">11<\/td>\r\n<\/tr><\/tbody><\/table><\/div>\r\n<div id=\"fs-id1165134401703\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\n<p id=\"fs-id1165137735632\">The formula [latex]g\\left(x\\right)=f\\left(x - 3\\right)[\/latex] tells us that the output values of [latex]g[\/latex] are the same as the output value of [latex]f[\/latex] when the input value is 3 less than the original value. For example, we know that [latex]f\\left(2\\right)=1[\/latex]. To get the same output from the function [latex]g[\/latex], we will need an input value that is 3 <em data-effect=\"italics\">larger<\/em>. We input a value that is 3 larger for [latex]g\\left(x\\right)[\/latex] because the function takes 3 away before evaluating the function [latex]f[\/latex].<\/p>\r\n\r\n<div id=\"fs-id1165137645517\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}g\\left(5\\right)=f\\left(5 - 3\\right)\\hfill \\\\ =f\\left(2\\right)\\hfill \\\\ =1\\hfill \\end{cases}[\/latex]<\/div>\r\n<p id=\"fs-id1165135531624\">We continue with the other values to create this table.<\/p>\r\n\r\n<table id=\"Table_01_05_04\" summary=\"Three rows and five columns. The first row is labeled,\"><colgroup\/><tbody><tr><td data-align=\"left\"><strong>[latex]x[\/latex]<\/strong><\/td>\r\n<td data-align=\"left\">5<\/td>\r\n<td data-align=\"left\">7<\/td>\r\n<td data-align=\"left\">9<\/td>\r\n<td data-align=\"left\">11<\/td>\r\n<\/tr><tr><td data-align=\"left\"><strong>[latex]x - 3[\/latex]<\/strong><\/td>\r\n<td data-align=\"left\">2<\/td>\r\n<td data-align=\"left\">4<\/td>\r\n<td data-align=\"left\">6<\/td>\r\n<td data-align=\"left\">8<\/td>\r\n<\/tr><tr><td data-align=\"left\"><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td data-align=\"left\">1<\/td>\r\n<td data-align=\"left\">3<\/td>\r\n<td data-align=\"left\">7<\/td>\r\n<td data-align=\"left\">11<\/td>\r\n<\/tr><tr><td><strong>[latex]g\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td data-align=\"left\">1<\/td>\r\n<td data-align=\"left\">3<\/td>\r\n<td data-align=\"left\">7<\/td>\r\n<td data-align=\"left\">11<\/td>\r\n<\/tr><\/tbody><\/table><p id=\"fs-id1165137678273\">The result is that the function [latex]g\\left(x\\right)[\/latex] has been shifted to the right by 3. Notice the output values for [latex]g\\left(x\\right)[\/latex] remain the same as the output values for [latex]f\\left(x\\right)[\/latex], but the corresponding input values, [latex]x[\/latex], have shifted to the right by 3. Specifically, 2 shifted to 5, 4 shifted to 7, 6 shifted to 9, and 8 shifted to 11.<\/p>\r\n\r\n<\/div>\r\n<div id=\"fs-id1165135196829\" class=\"commentary\" data-type=\"commentary\">\r\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\r\nThe graph in Figure 7 represents both of the functions. We can see the horizontal shift in each point.\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25200803\/CNX_Precalc_Figure_01_05_0062.jpg\" alt=\"Graph of the points from the previous table for f(x) and g(x)=f(x-3).\" width=\"487\" height=\"549\" data-media-type=\"image\/jpg\"\/><b>Figure 7<\/b>[\/caption]\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"Example_01_05_05\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165135528978\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165135528980\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 5: Identifying a Horizontal Shift of a Toolkit Function<\/h3>\r\nThis graph represents a transformation of the toolkit function [latex]f\\left(x\\right)={x}^{2}[\/latex]. Relate this new function [latex]g\\left(x\\right)[\/latex] to [latex]f\\left(x\\right)[\/latex], and then find a formula for [latex]g\\left(x\\right)[\/latex].\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/924\/2015\/11\/25200805\/CNX_Precalc_Figure_01_05_0072.jpg\" alt=\"Graph of a parabola.\" width=\"487\" height=\"328\" data-media-type=\"image\/jpg\"\/><b>Figure 8<\/b>[\/caption]\r\n\r\n<\/div>\r\n<div id=\"fs-id1165135173899\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\n<p id=\"fs-id1165135173902\">Notice that the graph is identical in shape to the [latex]f\\left(x\\right)={x}^{2}[\/latex] function, but the <em data-effect=\"italics\">x-<\/em>values are shifted to the right 2 units. The vertex used to be at (0,0), but now the vertex is at (2,0). The graph is the basic quadratic function shifted 2 units to the right, so<\/p>\r\n\r\n<div id=\"fs-id1165133349274\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]g\\left(x\\right)=f\\left(x - 2\\right)[\/latex]<\/div>\r\n<p id=\"fs-id1165137561935\">Notice how we must input the value [latex]x=2[\/latex] to get the output value [latex]y=0[\/latex]; the<em data-effect=\"italics\"> x<\/em>-values must be 2 units larger because of the shift to the right by 2 units. We can then use the definition of the [latex]f\\left(x\\right)[\/latex] function to write a formula for [latex]g\\left(x\\right)[\/latex] by evaluating [latex]f\\left(x - 2\\right)[\/latex].<\/p>\r\n\r\n<div id=\"fs-id1165137444147\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}f\\left(x\\right)={x}^{2}\\hfill \\\\ g\\left(x\\right)=f\\left(x - 2\\right)\\hfill \\\\ g\\left(x\\right)=f\\left(x - 2\\right)={\\left(x - 2\\right)}^{2}\\hfill \\end{cases}[\/latex]<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165137415967\" class=\"commentary\" data-type=\"commentary\">\r\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\r\n<p id=\"fs-id1165137939874\">To determine whether the shift is [latex]+2[\/latex] or [latex]-2[\/latex] , consider a single reference point on the graph. For a quadratic, looking at the vertex point is convenient. In the original function, [latex]f\\left(0\\right)=0[\/latex]. In our shifted function, [latex]g\\left(2\\right)=0[\/latex]. To obtain the output value of 0 from the function [latex]f[\/latex], we need to decide whether a plus or a minus sign will work to satisfy [latex]g\\left(2\\right)=f\\left(x - 2\\right)=f\\left(0\\right)=0[\/latex]. For this to work, we will need to <em data-effect=\"italics\">subtract<\/em> 2 units from our input values.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"Example_01_05_06\" class=\"example\" data-type=\"example\">\r\n<div id=\"fs-id1165137437869\" class=\"exercise\" data-type=\"exercise\">\r\n<div id=\"fs-id1165137786325\" class=\"problem textbox shaded\" data-type=\"problem\">\r\n<h3 data-type=\"title\">Example 6: Interpreting Horizontal versus Vertical Shifts<\/h3>\r\n<p id=\"fs-id1165137574172\">The function [latex]G\\left(m\\right)[\/latex] gives the number of gallons of gas required to drive [latex]m[\/latex] miles. Interpret [latex]G\\left(m\\right)+10[\/latex] and [latex]G\\left(m+10\\right)[\/latex].<\/p>\r\n\r\n<\/div>\r\n<div id=\"fs-id1165135690669\" class=\"solution textbox shaded\" data-type=\"solution\">\r\n<h3>Solution<\/h3>\r\n<p id=\"fs-id1165137921579\">[latex]G\\left(m\\right)+10[\/latex] can be interpreted as adding 10 to the output, gallons. This is the gas required to drive [latex]m[\/latex] miles, plus another 10 gallons of gas. The graph would indicate a vertical shift.<\/p>\r\n<p id=\"fs-id1165137434382\">[latex]G\\left(m+10\\right)[\/latex] can be interpreted as adding 10 to the input, miles. So this is the number of gallons of gas required to drive 10 miles more than [latex]m[\/latex] miles. The graph would indicate a horizontal shift.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"bcc-box bcc-success\">\r\n<h3>Try It 1<\/h3>\r\n<p id=\"fs-id1165137557596\">Given the function [latex]f\\left(x\\right)=\\sqrt{x}[\/latex], graph the original function [latex]f\\left(x\\right)[\/latex] and the transformation [latex]g\\left(x\\right)=f\\left(x+2\\right)[\/latex] on the same axes. Is this a horizontal or a vertical shift? Which way is the graph shifted and by how many units?<\/p>\r\n<a href=\"https:\/\/courses.candelalearning.com\/osprecalc\/chapter\/solutions-5\/\" target=\"_blank\">Solution<\/a>\r\n\r\n<\/div>\r\n<\/section><section id=\"fs-id1165135250592\" data-depth=\"2\"\/>","rendered":"<p id=\"fs-id1165137654715\">Often when given a problem, we try to model the scenario using mathematics in the form of words, tables, graphs, and equations. One method we can employ is to adapt the basic graphs of the toolkit functions to build new models for a given scenario. There are systematic ways to alter functions to construct appropriate models for the problems we are trying to solve.<\/p>\n<section id=\"fs-id1165137535664\" data-depth=\"2\">\n<h2 style=\"text-align: center;\" data-type=\"title\">\n<p><span style=\"text-decoration: underline;\">Identifying Vertical Shifts<\/span><\/h2>\n<p>One simple kind of <strong>transformation<\/strong> involves shifting the entire graph of a function up, down, right, or left. The simplest shift is a <strong>vertical shift<\/strong>, moving the graph up or down, because this transformation involves adding a positive or negative constant to the function. In other words, we add the same constant to the output value of the function regardless of the input. For a function [latex]g\\left(x\\right)=f\\left(x\\right)+k[\/latex], the function [latex]f\\left(x\\right)[\/latex] is shifted vertically [latex]k[\/latex] units.<\/p>\n<p><span id=\"fs-id1165137464872\" data-type=\"media\" data-alt=\"Figure_01_05_001\"> <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\/25200757\/CNX_Precalc_Figure_01_05_0012.jpg\" alt=\"Graph of f of x equals the cubed root of x shifted upward one unit, the resulting graph passes through the point (0,1) instead of (0,0), (1, 2) instead of (1,1) and (-1, 0) instead of (-1, -1)\" width=\"487\" height=\"292\" data-media-type=\"image\/jpg\" \/><\/span><\/p>\n<p style=\"text-align: center;\"><strong>Figure 2.<\/strong> Vertical shift by [latex]k=1[\/latex] of the cube root function [latex]f\\left(x\\right)=\\sqrt[3]{x}[\/latex].<\/p>\n<p id=\"fs-id1165137439125\">To help you visualize the concept of a vertical shift, consider that [latex]y=f\\left(x\\right)[\/latex]. Therefore, [latex]f\\left(x\\right)+k[\/latex] is equivalent to [latex]y+k[\/latex]. Every unit of [latex]y[\/latex] is replaced by [latex]y+k[\/latex], so the [latex]y\\text{-}[\/latex] value increases or decreases depending on the value of [latex]k[\/latex]. The result is a shift upward or downward.<\/p>\n<div id=\"fs-id1165137737394\" class=\"note textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"A General Note\">\n<h3 class=\"title\" data-type=\"title\">A General Note: Vertical Shift<\/h3>\n<p id=\"fs-id1165137627718\">Given a function [latex]f\\left(x\\right)[\/latex], a new function [latex]g\\left(x\\right)=f\\left(x\\right)+k[\/latex], where [latex]k[\/latex] is a constant, is a <strong>vertical shift<\/strong> of the function [latex]f\\left(x\\right)[\/latex]. All the output values change by [latex]k[\/latex] units. If [latex]k[\/latex] is positive, the graph will shift up. If [latex]k[\/latex] is negative, the graph will shift down.<\/p>\n<\/div>\n<div id=\"Example_01_05_01\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165137701104\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165135547346\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 1: Adding a Constant to a Function<\/h3>\n<p>To regulate temperature in a green building, airflow vents near the roof open and close throughout the day. Figure 2\u00a0shows the area of open vents [latex]V[\/latex] (in square feet) throughout the day in hours after midnight, [latex]t[\/latex]. During the summer, the facilities manager decides to try to better regulate temperature by increasing the amount of open vents by 20 square feet throughout the day and night. Sketch a graph of this new function.<\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><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\/25200758\/CNX_Precalc_Figure_01_05_0022.jpg\" alt=\"\" width=\"487\" height=\"326\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 3<\/b><\/p>\n<\/div>\n<\/div>\n<div id=\"fs-id1165135504997\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p>We can sketch a graph of this new function by adding 20 to each of the output values of the original function. This will have the effect of shifting the graph vertically up, as shown in Figure 4.<\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><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\/25200759\/CNX_Precalc_Figure_01_05_003a2.jpg\" alt=\"\" width=\"487\" height=\"329\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 4<\/b><\/p>\n<\/div>\n<p id=\"fs-id1165137662763\">Notice that\u00a0for each input value, the output value has increased by 20, so if we call the new function [latex]S\\left(t\\right)[\/latex], we could write<\/p>\n<div id=\"fs-id1165137772392\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]S\\left(t\\right)=V\\left(t\\right)+20[\/latex]<\/div>\n<p id=\"fs-id1165134164955\">This notation tells us that, for any value of [latex]t,S\\left(t\\right)[\/latex] can be found by evaluating the function [latex]V[\/latex] at the same input and then adding 20 to the result. This defines [latex]S[\/latex] as a transformation of the function [latex]V[\/latex], in this case a vertical shift up 20 units. Notice that, with a vertical shift, the input values stay the same and only the output values change.<\/p>\n<table id=\"Table_01_05_018\" summary=\"Three rows and seven columns. The first row is labeled,\">\n<colgroup>\n<col \/>\n<col data-width=\"60\" data-align=\"center\" \/>\n<col data-width=\"60\" data-align=\"center\" \/>\n<col data-width=\"60\" data-align=\"center\" \/>\n<col data-width=\"60\" data-align=\"center\" \/>\n<col data-width=\"60\" data-align=\"center\" \/>\n<col data-width=\"60\" data-align=\"center\" \/><\/colgroup>\n<tbody>\n<tr>\n<td data-align=\"center\"><strong>[latex]t[\/latex]<\/strong><\/td>\n<td>0<\/td>\n<td>8<\/td>\n<td>10<\/td>\n<td>17<\/td>\n<td>19<\/td>\n<td>24<\/td>\n<\/tr>\n<tr>\n<td data-align=\"center\"><strong>[latex]V\\left(t\\right)[\/latex] <\/strong><\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>220<\/td>\n<td>220<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td data-align=\"center\"><strong>[latex]S\\left(t\\right)[\/latex] <\/strong><\/td>\n<td>20<\/td>\n<td>20<\/td>\n<td>240<\/td>\n<td>240<\/td>\n<td>20<\/td>\n<td>20<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fs-id1165135369225\" class=\"note precalculus howto textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"How To\">\n<h3 id=\"fs-id1165134371214\">How To: Given a tabular function, create a new row to represent a vertical shift.<\/h3>\n<ol id=\"fs-id1165135530387\" data-number-style=\"arabic\">\n<li>Identify the output row or column.<\/li>\n<li>Determine the <strong>magnitude<\/strong> of the shift.<\/li>\n<li>Add the shift to the value in each output cell. Add a positive value for up or a negative value for down.<\/li>\n<\/ol>\n<\/div>\n<div id=\"Example_01_05_02\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165135581153\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165135443766\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 2: Shifting a Tabular Function Vertically<\/h3>\n<p id=\"fs-id1165137692074\">A function [latex]f\\left(x\\right)[\/latex] is given below. Create a table for the function [latex]g\\left(x\\right)=f\\left(x\\right)-3[\/latex].<\/p>\n<table id=\"Table_01_05_01\" summary=\"Two rows and five columns. The first row is labeled,\">\n<colgroup>\n<col \/>\n<col data-width=\"40\" data-align=\"left\" \/>\n<col data-width=\"40\" data-align=\"left\" \/>\n<col data-width=\"40\" data-align=\"left\" \/>\n<col data-width=\"40\" data-align=\"left\" \/><\/colgroup>\n<tbody>\n<tr>\n<td data-align=\"center\"><strong>[latex]x[\/latex]<\/strong><\/td>\n<td>2<\/td>\n<td>4<\/td>\n<td>6<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td data-align=\"center\"><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>7<\/td>\n<td>11<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"fs-id1165137574326\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165135241392\">The formula [latex]g\\left(x\\right)=f\\left(x\\right)-3[\/latex] tells us that we can find the output values of [latex]g[\/latex] by subtracting 3 from the output values of [latex]f[\/latex]. For example:<\/p>\n<div id=\"fs-id1165137662784\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}f\\left(2\\right)=1\\hfill & \\text{Given}\\hfill \\\\ g\\left(x\\right)=f\\left(x\\right)-3\\hfill & \\text{Given transformation}\\hfill \\\\ g\\left(2\\right)=f\\left(2\\right)-3\\hfill & \\hfill \\\\ =1 - 3\\hfill & \\hfill \\\\ =-2\\hfill & \\hfill \\end{cases}[\/latex]<\/div>\n<p id=\"fs-id1165135318984\">Subtracting 3 from each [latex]f\\left(x\\right)[\/latex] value, we can complete a table of values for [latex]g\\left(x\\right)[\/latex].<\/p>\n<table id=\"Table_01_05_02\" summary=\"Three rows and five columns. The first row is labeled,\">\n<colgroup>\n<col data-width=\"40\" \/>\n<col data-width=\"40\" \/>\n<col data-width=\"40\" \/>\n<col data-width=\"40\" \/>\n<col data-width=\"40\" \/><\/colgroup>\n<tbody>\n<tr>\n<td data-align=\"center\"><strong>[latex]x[\/latex]<\/strong><\/td>\n<td data-align=\"center\">2<\/td>\n<td data-align=\"center\">4<\/td>\n<td data-align=\"center\">6<\/td>\n<td data-align=\"center\">8<\/td>\n<\/tr>\n<tr>\n<td data-align=\"center\"><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\n<td data-align=\"center\">1<\/td>\n<td data-align=\"center\">3<\/td>\n<td data-align=\"center\">7<\/td>\n<td data-align=\"center\">11<\/td>\n<\/tr>\n<tr>\n<td data-align=\"center\"><strong>[latex]g\\left(x\\right)[\/latex] <\/strong><\/td>\n<td data-align=\"center\">\u22122<\/td>\n<td data-align=\"center\">0<\/td>\n<td data-align=\"center\">4<\/td>\n<td data-align=\"center\">8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"fs-id1165137737963\" class=\"commentary\" data-type=\"commentary\">\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\n<p id=\"fs-id1165135175018\">As with the earlier vertical shift, notice the input values stay the same and only the output values change.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fs-id1165137692134\" class=\"note precalculus try\" data-type=\"note\" data-has-label=\"true\" data-label=\"Try It\">\n<div id=\"ti_01_05_01\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165137834794\" class=\"problem\" data-type=\"problem\">\n<p id=\"fs-id1165137767439\">The function [latex]h\\left(t\\right)=-4.9{t}^{2}+30t[\/latex] gives the height [latex]h[\/latex] of a ball (in meters) thrown upward from the ground after [latex]t[\/latex] seconds. Suppose the ball was instead thrown from the top of a 10-m building. Relate this new height function [latex]b\\left(t\\right)[\/latex] to [latex]h\\left(t\\right)[\/latex], and then find a formula for [latex]b\\left(t\\right)[\/latex].<\/p>\n<\/div>\n<div id=\"fs-id1165137481965\" class=\"solution\" data-type=\"solution\">\n<div id=\"fs-id1165137680332\" class=\"equation\" style=\"text-align: center;\" data-type=\"equation\">[latex]b\\left(t\\right)=h\\left(t\\right)+10=-4.9{t}^{2}+30t+10[\/latex]<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<section id=\"fs-id1165137597159\" data-depth=\"2\">\n<h2 style=\"text-align: center;\" data-type=\"title\">\n<p><span style=\"text-decoration: underline;\">Identifying Horizontal Shifts<\/span><\/h2>\n<p>We just saw that the vertical shift is a change to the output, or outside, of the function. We will now look at how changes to input, on the inside of the function, change its graph and meaning. A shift to the input results in a movement of the graph of the function left or right in what is known as a <strong>horizontal shift<\/strong>.<\/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\/25200801\/CNX_Precalc_Figure_01_05_0042.jpg\" alt=\"Graph of f of x equals the cubed root of x shifted left one unit, the resulting graph passes through the point (0,-1) instead of (0,0), (0, 1) instead of (1,1) and (-2, -1) instead of (-1, -1)\" width=\"487\" height=\"288\" data-media-type=\"image\/jpg\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 5.<\/strong> Horizontal shift of the function [latex]f\\left(x\\right)=\\sqrt[3]{x}[\/latex]. Note that [latex]h=+1[\/latex] shifts the graph to the left, that is, towards <em data-effect=\"italics\">negative<\/em> values of [latex]x[\/latex].<\/p>\n<\/section>\n<section data-depth=\"2\">\n<p id=\"eip-884\">For example, if [latex]f\\left(x\\right)={x}^{2}[\/latex], then [latex]g\\left(x\\right)={\\left(x - 2\\right)}^{2}[\/latex] is a new function. Each input is reduced by 2 prior to squaring the function. The result is that the graph is shifted 2 units to the right, because we would need to increase the prior input by 2 units to yield the same output value as given in [latex]f[\/latex].<\/p>\n<div id=\"fs-id1165137436470\" class=\"note textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"A General Note\">\n<h3 class=\"title\" data-type=\"title\">A General Note: Horizontal Shift<\/h3>\n<p id=\"fs-id1165135188470\">Given a function [latex]f[\/latex], a new function [latex]g\\left(x\\right)=f\\left(x-h\\right)[\/latex], where [latex]h[\/latex] is a constant, is a <strong>horizontal shift<\/strong> of the function [latex]f[\/latex]. If [latex]h[\/latex] is positive, the graph will shift right. If [latex]h[\/latex] is negative, the graph will shift left.<\/p>\n<\/div>\n<div id=\"Example_01_05_03\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165135241148\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165134148356\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 3: Adding a Constant to an Input<\/h3>\n<p id=\"fs-id1165137658363\">Returning to our building airflow example from Example 2, suppose that in autumn the facilities manager decides that the original venting plan starts too late, and wants to begin the entire venting program 2 hours earlier. Sketch a graph of the new function.<\/p>\n<\/div>\n<div id=\"fs-id1165137423751\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165137423753\">We can set [latex]V\\left(t\\right)[\/latex] to be the original program and [latex]F\\left(t\\right)[\/latex] to be the revised program.<\/p>\n<div id=\"fs-id1165135195278\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}{c}V\\left(t\\right)=\\text{ the original venting plan}\\\\ \\text{F}\\left(t\\right)=\\text{starting 2 hrs sooner}\\end{cases}[\/latex]<\/div>\n<p id=\"fs-id1165137714274\">In the new graph, at each time, the airflow is the same as the original function [latex]V[\/latex] was 2 hours later. For example, in the original function [latex]V[\/latex], the airflow starts to change at 8 a.m., whereas for the function [latex]F[\/latex], the airflow starts to change at 6 a.m. The comparable function values are [latex]V\\left(8\\right)=F\\left(6\\right)[\/latex].\u00a0Notice also that the vents first opened to [latex]220{\\text{ ft}}^{2}[\/latex] at 10 a.m. under the original plan, while under the new plan the vents reach [latex]220{\\text{ ft}}^{\\text{2}}[\/latex] at 8 a.m., so [latex]V\\left(10\\right)=F\\left(8\\right)[\/latex].<\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><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\/25200802\/CNX_Precalc_Figure_01_05_005a2.jpg\" alt=\"Figure_01_05_005a\" width=\"487\" height=\"329\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 6<\/b><\/p>\n<\/div>\n<p id=\"fs-id1165137411313\">In both cases, we see that, because [latex]F\\left(t\\right)[\/latex] starts 2 hours sooner, [latex]h=-2[\/latex]. That means that the same output values are reached when [latex]F\\left(t\\right)=V\\left(t-\\left(-2\\right)\\right)=V\\left(t+2\\right)[\/latex].<span id=\"fs-id1165137640758\" data-type=\"media\" data-alt=\"Figure_01_05_005a\"><br \/>\n<\/span><\/p>\n<\/div>\n<div id=\"fs-id1165137714144\" class=\"commentary\" data-type=\"commentary\">\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\n<p id=\"fs-id1165137757835\">Note that [latex]V\\left(t+2\\right)[\/latex] has the effect of shifting the graph to the <em data-effect=\"italics\">left<\/em>.<\/p>\n<p id=\"fs-id1165137473462\">Horizontal changes or &#8220;inside changes&#8221; affect the domain of a function (the input) instead of the range and often seem counterintuitive. The new function [latex]F\\left(t\\right)[\/latex] uses the same outputs as [latex]V\\left(t\\right)[\/latex], but matches those outputs to inputs 2 hours earlier than those of [latex]V\\left(t\\right)[\/latex]. Said another way, we must add 2 hours to the input of [latex]V[\/latex] to find the corresponding output for [latex]F:F\\left(t\\right)=V\\left(t+2\\right)[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fs-id1165137644724\" class=\"note precalculus howto textbox\" data-type=\"note\" data-has-label=\"true\" data-label=\"How To\">\n<h3 id=\"fs-id1165137667199\">How To: Given a tabular function, create a new row to represent a horizontal shift.<\/h3>\n<ol id=\"fs-id1165137652957\" data-number-style=\"arabic\">\n<li>Identify the input row or column.<\/li>\n<li>Determine the magnitude of the shift.<\/li>\n<li>Add the shift to the value in each input cell.<\/li>\n<\/ol>\n<\/div>\n<div id=\"Example_01_05_04\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165137831912\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165137831914\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 4: Shifting a Tabular Function Horizontally<\/h3>\n<p id=\"fs-id1165137761563\">A function [latex]f\\left(x\\right)[\/latex] is given below. Create a table for the function [latex]g\\left(x\\right)=f\\left(x - 3\\right)[\/latex].<\/p>\n<table id=\"Table_01_05_03\" summary=\"Two rows and five columns. The first row is labeled,\">\n<colgroup><\/colgroup>\n<tbody>\n<tr>\n<td data-align=\"center\"><strong>[latex]x[\/latex]<\/strong><\/td>\n<td data-align=\"center\">2<\/td>\n<td data-align=\"center\">4<\/td>\n<td data-align=\"center\">6<\/td>\n<td data-align=\"center\">8<\/td>\n<\/tr>\n<tr>\n<td data-align=\"center\"><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\n<td data-align=\"center\">1<\/td>\n<td data-align=\"center\">3<\/td>\n<td data-align=\"center\">7<\/td>\n<td data-align=\"center\">11<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"fs-id1165134401703\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165137735632\">The formula [latex]g\\left(x\\right)=f\\left(x - 3\\right)[\/latex] tells us that the output values of [latex]g[\/latex] are the same as the output value of [latex]f[\/latex] when the input value is 3 less than the original value. For example, we know that [latex]f\\left(2\\right)=1[\/latex]. To get the same output from the function [latex]g[\/latex], we will need an input value that is 3 <em data-effect=\"italics\">larger<\/em>. We input a value that is 3 larger for [latex]g\\left(x\\right)[\/latex] because the function takes 3 away before evaluating the function [latex]f[\/latex].<\/p>\n<div id=\"fs-id1165137645517\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}g\\left(5\\right)=f\\left(5 - 3\\right)\\hfill \\\\ =f\\left(2\\right)\\hfill \\\\ =1\\hfill \\end{cases}[\/latex]<\/div>\n<p id=\"fs-id1165135531624\">We continue with the other values to create this table.<\/p>\n<table id=\"Table_01_05_04\" summary=\"Three rows and five columns. The first row is labeled,\">\n<colgroup><\/colgroup>\n<tbody>\n<tr>\n<td data-align=\"left\"><strong>[latex]x[\/latex]<\/strong><\/td>\n<td data-align=\"left\">5<\/td>\n<td data-align=\"left\">7<\/td>\n<td data-align=\"left\">9<\/td>\n<td data-align=\"left\">11<\/td>\n<\/tr>\n<tr>\n<td data-align=\"left\"><strong>[latex]x - 3[\/latex]<\/strong><\/td>\n<td data-align=\"left\">2<\/td>\n<td data-align=\"left\">4<\/td>\n<td data-align=\"left\">6<\/td>\n<td data-align=\"left\">8<\/td>\n<\/tr>\n<tr>\n<td data-align=\"left\"><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\n<td data-align=\"left\">1<\/td>\n<td data-align=\"left\">3<\/td>\n<td data-align=\"left\">7<\/td>\n<td data-align=\"left\">11<\/td>\n<\/tr>\n<tr>\n<td><strong>[latex]g\\left(x\\right)[\/latex] <\/strong><\/td>\n<td data-align=\"left\">1<\/td>\n<td data-align=\"left\">3<\/td>\n<td data-align=\"left\">7<\/td>\n<td data-align=\"left\">11<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p id=\"fs-id1165137678273\">The result is that the function [latex]g\\left(x\\right)[\/latex] has been shifted to the right by 3. Notice the output values for [latex]g\\left(x\\right)[\/latex] remain the same as the output values for [latex]f\\left(x\\right)[\/latex], but the corresponding input values, [latex]x[\/latex], have shifted to the right by 3. Specifically, 2 shifted to 5, 4 shifted to 7, 6 shifted to 9, and 8 shifted to 11.<\/p>\n<\/div>\n<div id=\"fs-id1165135196829\" class=\"commentary\" data-type=\"commentary\">\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\n<p>The graph in Figure 7 represents both of the functions. We can see the horizontal shift in each point.<\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><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\/25200803\/CNX_Precalc_Figure_01_05_0062.jpg\" alt=\"Graph of the points from the previous table for f(x) and g(x)=f(x-3).\" width=\"487\" height=\"549\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 7<\/b><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"Example_01_05_05\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165135528978\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165135528980\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 5: Identifying a Horizontal Shift of a Toolkit Function<\/h3>\n<p>This graph represents a transformation of the toolkit function [latex]f\\left(x\\right)={x}^{2}[\/latex]. Relate this new function [latex]g\\left(x\\right)[\/latex] to [latex]f\\left(x\\right)[\/latex], and then find a formula for [latex]g\\left(x\\right)[\/latex].<\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><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\/25200805\/CNX_Precalc_Figure_01_05_0072.jpg\" alt=\"Graph of a parabola.\" width=\"487\" height=\"328\" data-media-type=\"image\/jpg\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 8<\/b><\/p>\n<\/div>\n<\/div>\n<div id=\"fs-id1165135173899\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165135173902\">Notice that the graph is identical in shape to the [latex]f\\left(x\\right)={x}^{2}[\/latex] function, but the <em data-effect=\"italics\">x-<\/em>values are shifted to the right 2 units. The vertex used to be at (0,0), but now the vertex is at (2,0). The graph is the basic quadratic function shifted 2 units to the right, so<\/p>\n<div id=\"fs-id1165133349274\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]g\\left(x\\right)=f\\left(x - 2\\right)[\/latex]<\/div>\n<p id=\"fs-id1165137561935\">Notice how we must input the value [latex]x=2[\/latex] to get the output value [latex]y=0[\/latex]; the<em data-effect=\"italics\"> x<\/em>-values must be 2 units larger because of the shift to the right by 2 units. We can then use the definition of the [latex]f\\left(x\\right)[\/latex] function to write a formula for [latex]g\\left(x\\right)[\/latex] by evaluating [latex]f\\left(x - 2\\right)[\/latex].<\/p>\n<div id=\"fs-id1165137444147\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}f\\left(x\\right)={x}^{2}\\hfill \\\\ g\\left(x\\right)=f\\left(x - 2\\right)\\hfill \\\\ g\\left(x\\right)=f\\left(x - 2\\right)={\\left(x - 2\\right)}^{2}\\hfill \\end{cases}[\/latex]<\/div>\n<\/div>\n<div id=\"fs-id1165137415967\" class=\"commentary\" data-type=\"commentary\">\n<h3 data-type=\"title\">Analysis of the Solution<\/h3>\n<p id=\"fs-id1165137939874\">To determine whether the shift is [latex]+2[\/latex] or [latex]-2[\/latex] , consider a single reference point on the graph. For a quadratic, looking at the vertex point is convenient. In the original function, [latex]f\\left(0\\right)=0[\/latex]. In our shifted function, [latex]g\\left(2\\right)=0[\/latex]. To obtain the output value of 0 from the function [latex]f[\/latex], we need to decide whether a plus or a minus sign will work to satisfy [latex]g\\left(2\\right)=f\\left(x - 2\\right)=f\\left(0\\right)=0[\/latex]. For this to work, we will need to <em data-effect=\"italics\">subtract<\/em> 2 units from our input values.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"Example_01_05_06\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165137437869\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165137786325\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 6: Interpreting Horizontal versus Vertical Shifts<\/h3>\n<p id=\"fs-id1165137574172\">The function [latex]G\\left(m\\right)[\/latex] gives the number of gallons of gas required to drive [latex]m[\/latex] miles. Interpret [latex]G\\left(m\\right)+10[\/latex] and [latex]G\\left(m+10\\right)[\/latex].<\/p>\n<\/div>\n<div id=\"fs-id1165135690669\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165137921579\">[latex]G\\left(m\\right)+10[\/latex] can be interpreted as adding 10 to the output, gallons. This is the gas required to drive [latex]m[\/latex] miles, plus another 10 gallons of gas. The graph would indicate a vertical shift.<\/p>\n<p id=\"fs-id1165137434382\">[latex]G\\left(m+10\\right)[\/latex] can be interpreted as adding 10 to the input, miles. So this is the number of gallons of gas required to drive 10 miles more than [latex]m[\/latex] miles. The graph would indicate a horizontal shift.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bcc-box bcc-success\">\n<h3>Try It 1<\/h3>\n<p id=\"fs-id1165137557596\">Given the function [latex]f\\left(x\\right)=\\sqrt{x}[\/latex], graph the original function [latex]f\\left(x\\right)[\/latex] and the transformation [latex]g\\left(x\\right)=f\\left(x+2\\right)[\/latex] on the same axes. Is this a horizontal or a vertical shift? Which way is the graph shifted and by how many units?<\/p>\n<p><a href=\"https:\/\/courses.candelalearning.com\/osprecalc\/chapter\/solutions-5\/\" target=\"_blank\">Solution<\/a><\/p>\n<\/div>\n<\/section>\n<section id=\"fs-id1165135250592\" data-depth=\"2\"><\/section>\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-931\">\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>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>. <strong>License Terms<\/strong>: Download For Free at : http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.<\/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":276,"menu_order":2,"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\":\"Download For Free at : http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-931","chapter","type-chapter","status-publish","hentry"],"part":921,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/users\/276"}],"version-history":[{"count":3,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/931\/revisions"}],"predecessor-version":[{"id":2808,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/931\/revisions\/2808"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/parts\/921"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/931\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/media?parent=931"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=931"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/contributor?post=931"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/odessa-collegealgebra\/wp-json\/wp\/v2\/license?post=931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}