{"id":150,"date":"2023-06-21T13:22:38","date_gmt":"2023-06-21T13:22:38","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/chapter\/transformations-of-functions\/"},"modified":"2023-08-24T05:48:49","modified_gmt":"2023-08-24T05:48:49","slug":"transformations-of-functions","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/chapter\/transformations-of-functions\/","title":{"raw":"\u25aa   Shifts","rendered":"\u25aa   Shifts"},"content":{"raw":"<div class=\"textbox learning-objectives\">\r\n<h3>Learning Outcomes<\/h3>\r\n<ul>\r\n \t<li>Graph functions using vertical and horizontal shifts.<\/li>\r\n<\/ul>\r\n<\/div>\r\nOne 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[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203540\/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\" \/> Vertical shift by [latex]k=1[\/latex] of the cube root function [latex]f\\left(x\\right)=\\sqrt[3]{x}[\/latex].[\/caption]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.\r\n<div class=\"textbox\">\r\n<h3>A General Note: Vertical Shift<\/h3>\r\nGiven 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.\r\n\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: 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<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203542\/CNX_Precalc_Figure_01_05_0022.jpg\" width=\"487\" height=\"326\" \/>\r\n[reveal-answer q=\"716887\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"716887\"]\r\n\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.\r\n\r\n<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203545\/CNX_Precalc_Figure_01_05_003a2.jpg\" width=\"487\" height=\"329\" \/>\r\n\r\nNotice 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\r\n<p style=\"text-align: center;\">[latex]S\\left(t\\right)=V\\left(t\\right)+20[\/latex]<\/p>\r\nThis 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.\r\n<table summary=\"Three rows and seven columns. The first row is labeled,\"><colgroup> <col \/> <col \/> <col \/> <col \/> <col \/> <col \/> <col \/><\/colgroup>\r\n<tbody>\r\n<tr>\r\n<td><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>\r\n<tr>\r\n<td><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>\r\n<tr>\r\n<td><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>\r\n<\/tbody>\r\n<\/table>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox\">\r\n<h3>How To: Given a tabular function, create a new row to represent a vertical shift.<\/h3>\r\n<ol>\r\n \t<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>\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: Shifting a Tabular Function Vertically<\/h3>\r\nA 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].\r\n<table summary=\"Two rows and five columns. The first row is labeled,\"><colgroup> <col \/> <col \/> <col \/> <col \/> <col \/><\/colgroup>\r\n<tbody>\r\n<tr>\r\n<td><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>\r\n<tr>\r\n<td><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>\r\n<\/tbody>\r\n<\/table>\r\n[reveal-answer q=\"603330\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"603330\"]\r\n\r\nThe 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:\r\n<p style=\"text-align: center;\">[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]<\/p>\r\nSubtracting 3 from each [latex]f\\left(x\\right)[\/latex] value, we can complete a table of values for [latex]g\\left(x\\right)[\/latex].\r\n<table summary=\"Three rows and five columns. The first row is labeled,\"><colgroup> <col \/> <col \/> <col \/> <col \/> <col \/><\/colgroup>\r\n<tbody>\r\n<tr>\r\n<td><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>\r\n<tr>\r\n<td><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>\r\n<tr>\r\n<td><strong>[latex]g\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td>\u22122<\/td>\r\n<td>0<\/td>\r\n<td>4<\/td>\r\n<td>8<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h4>Analysis of the Solution<\/h4>\r\nAs with the earlier vertical shift, notice the input values stay the same and only the output values change.\r\n\r\n[\/hidden-answer]\r\n<iframe id=\"mom1\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=75586&amp;theme=oea&amp;iframe_resize_id=mom1\" width=\"100%\" height=\"260\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe>\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Try It<\/h3>\r\nThe 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].\r\n\r\n[reveal-answer q=\"901752\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"901752\"]\r\n\r\n[latex]b\\left(t\\right)=h\\left(t\\right)+10=-4.9{t}^{2}+30t+10[\/latex][\/hidden-answer]\r\n<iframe id=\"mom2\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=75929&amp;theme=oea&amp;iframe_resize_id=mom2\" width=\"100%\" height=\"280\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe>\r\n\r\n<\/div>\r\n<h2>Identifying Horizontal Shifts<\/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[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203547\/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\" \/> 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 negative values of [latex]x[\/latex].[\/caption]\r\n<h3><\/h3>\r\nFor 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].\r\n<div class=\"textbox\">\r\n<h3>A General Note: Horizontal Shift<\/h3>\r\nGiven 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.\r\n\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: Adding a Constant to an Input<\/h3>\r\nReturning 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.\r\n\r\n[reveal-answer q=\"839866\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"839866\"]\r\n\r\nWe 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.\r\n<p style=\"text-align: center;\">[latex]\\begin{align}{c}V\\left(t\\right)&amp;=\\text{ the original venting plan}\\\\ F\\left(t\\right)&amp;=\\text{starting 2 hrs sooner}\\end{align}[\/latex]<\/p>\r\nIn 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].\r\n\r\n<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203550\/CNX_Precalc_Figure_01_05_005a2.jpg\" width=\"487\" height=\"329\" \/>\r\n\r\nIn 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].\r\n<h4>Analysis of the Solution<\/h4>\r\nNote that [latex]V\\left(t+2\\right)[\/latex] has the effect of shifting the graph to the <em>left<\/em>.\r\n\r\nHorizontal 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].\r\n\r\n[\/hidden-answer]\r\n<iframe id=\"mom2\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=75931&amp;theme=oea&amp;iframe_resize_id=mom2\" width=\"100%\" height=\"430\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe>\r\n\r\n<\/div>\r\n<div class=\"textbox\">\r\n<h3>How To: Given a tabular function, create a new row to represent a horizontal shift.<\/h3>\r\n<ol>\r\n \t<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>\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: Shifting a Tabular Function Horizontally<\/h3>\r\nA 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].\r\n<table summary=\"Two rows and five columns. The first row is labeled,\">\r\n<tbody>\r\n<tr>\r\n<td><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>\r\n<tr>\r\n<td><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>\r\n<\/tbody>\r\n<\/table>\r\n[reveal-answer q=\"719880\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"719880\"]\r\n\r\nThe 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>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].\r\n<p style=\"text-align: center;\">[latex]\\begin{cases}g\\left(5\\right)=f\\left(5 - 3\\right)\\hfill \\\\ =f\\left(2\\right)\\hfill \\\\ =1\\hfill \\end{cases}[\/latex]<\/p>\r\nWe continue with the other values to create this table.\r\n<table summary=\"Three rows and five columns. The first row is labeled,\">\r\n<tbody>\r\n<tr>\r\n<td><strong>[latex]x[\/latex]<\/strong><\/td>\r\n<td>5<\/td>\r\n<td>7<\/td>\r\n<td>9<\/td>\r\n<td>11<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>[latex]x - 3[\/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>\r\n<tr>\r\n<td><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>\r\n<tr>\r\n<td><strong>[latex]g\\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>\r\n<\/tbody>\r\n<\/table>\r\nThe result is that the function [latex]f\\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.\r\n<h4>Analysis of the Solution<\/h4>\r\nThe graph below represents both of the functions. We can see the horizontal shift in each point.\r\n\r\n<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203552\/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\" \/>\r\n\r\n[\/hidden-answer]\r\n<iframe id=\"mom12\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=113437&amp;theme=oea&amp;iframe_resize_id=mom12\" width=\"100%\" height=\"350\"><\/iframe>\r\n\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: 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<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203554\/CNX_Precalc_Figure_01_05_0072.jpg\" alt=\"Graph of a parabola.\" width=\"487\" height=\"328\" \/>\r\n[reveal-answer q=\"937293\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"937293\"]\r\n\r\nNotice that the graph is identical in shape to the [latex]f\\left(x\\right)={x}^{2}[\/latex] function, but the [latex]x[\/latex]<em>-<\/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\r\n<p style=\"text-align: center;\">[latex]g\\left(x\\right)=f\\left(x - 2\\right)[\/latex]<\/p>\r\nNotice how we must input the value [latex]x=2[\/latex] to get the output value [latex]y=0[\/latex]; the [latex]x[\/latex]-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].\r\n<p style=\"text-align: center;\">[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]<\/p>\r\n\r\n<h4>Analysis of the Solution<\/h4>\r\nTo 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>subtract<\/em> 2 units from our input values.\r\n\r\n[\/hidden-answer]\r\n\r\n<iframe id=\"mom5\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=60789&amp;theme=oea&amp;iframe_resize_id=mom5\" width=\"100%\" height=\"350\"><\/iframe>\r\n\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: Interpreting Horizontal versus Vertical Shifts<\/h3>\r\nThe 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].\r\n\r\n[reveal-answer q=\"792859\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"792859\"]\r\n\r\n[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.\r\n\r\n[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.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Try It<\/h3>\r\nGiven 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?\r\n\r\n[reveal-answer q=\"193388\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"193388\"]\r\n\r\nA horizontal shift results when a constant is added to or subtracted from the input. A vertical shift results when a constant is added to or subtracted from the output.\r\n\r\n[\/hidden-answer]\r\n<iframe id=\"mom15\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=33066&amp;theme=oea&amp;iframe_resize_id=mom15\" width=\"100%\" height=\"350\"><\/iframe>\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Try It<\/h3>\r\nOnline graphing calculators can graph transformations using function notation. Use an online graphing calculator to graph the toolkit function [latex]f(x) = x^2[\/latex]\r\nNow, enter [latex]f(x+5)[\/latex], and [latex]f(x)+5[\/latex] in the next two lines.\r\n\r\nNow have the online graphing calculator make a table of values for the original function. Include integer values on the interval [latex][-5,5][\/latex]. Replace the column labeled [latex]y_{1}[\/latex] with [latex]f(x_{1})[\/latex].\r\n\r\nNow replace [latex]f(x_{1})[\/latex] with\u00a0[latex]f(x_{1}+3)[\/latex], and\u00a0[latex]f(x_{1})+3[\/latex].\r\n\r\nWhat are the corresponding functions associated with the transformations you have graphed?\r\n[reveal-answer q=\"593472\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"593472\"]\r\n\r\nYou have graphed the following transformations:\r\n\r\n[latex]f(x+3)=(x+3)^2[\/latex]\r\n\r\n[latex]f(x)+3=(x)^2+3[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>","rendered":"<div class=\"textbox learning-objectives\">\n<h3>Learning Outcomes<\/h3>\n<ul>\n<li>Graph functions using vertical and horizontal shifts.<\/li>\n<\/ul>\n<\/div>\n<p>One 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<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203540\/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\" \/><\/p>\n<p class=\"wp-caption-text\">Vertical shift by [latex]k=1[\/latex] of the cube root function [latex]f\\left(x\\right)=\\sqrt[3]{x}[\/latex].<\/p>\n<\/div>\n<p>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 class=\"textbox\">\n<h3>A General Note: Vertical Shift<\/h3>\n<p>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 class=\"textbox exercises\">\n<h3>Example: 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<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203542\/CNX_Precalc_Figure_01_05_0022.jpg\" width=\"487\" height=\"326\" alt=\"image\" \/><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q716887\">Show Solution<\/span><\/p>\n<div id=\"q716887\" class=\"hidden-answer\" style=\"display: none\">\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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203545\/CNX_Precalc_Figure_01_05_003a2.jpg\" width=\"487\" height=\"329\" alt=\"image\" \/><\/p>\n<p>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<p style=\"text-align: center;\">[latex]S\\left(t\\right)=V\\left(t\\right)+20[\/latex]<\/p>\n<p>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 summary=\"Three rows and seven columns. The first row is labeled,\">\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<td><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><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><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 class=\"textbox\">\n<h3>How To: Given a tabular function, create a new row to represent a vertical shift.<\/h3>\n<ol>\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 class=\"textbox exercises\">\n<h3>Example: Shifting a Tabular Function Vertically<\/h3>\n<p>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 summary=\"Two rows and five columns. The first row is labeled,\">\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<td><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><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 class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q603330\">Show Solution<\/span><\/p>\n<div id=\"q603330\" class=\"hidden-answer\" style=\"display: none\">\n<p>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<p style=\"text-align: center;\">[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]<\/p>\n<p>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 summary=\"Three rows and five columns. The first row is labeled,\">\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<td><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><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<tr>\n<td><strong>[latex]g\\left(x\\right)[\/latex] <\/strong><\/td>\n<td>\u22122<\/td>\n<td>0<\/td>\n<td>4<\/td>\n<td>8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Analysis of the Solution<\/h4>\n<p>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<p><iframe loading=\"lazy\" id=\"mom1\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=75586&amp;theme=oea&amp;iframe_resize_id=mom1\" width=\"100%\" height=\"260\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Try It<\/h3>\n<p>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 class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q901752\">Show Solution<\/span><\/p>\n<div id=\"q901752\" class=\"hidden-answer\" style=\"display: none\">\n<p>[latex]b\\left(t\\right)=h\\left(t\\right)+10=-4.9{t}^{2}+30t+10[\/latex]<\/p><\/div>\n<\/div>\n<p><iframe loading=\"lazy\" id=\"mom2\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=75929&amp;theme=oea&amp;iframe_resize_id=mom2\" width=\"100%\" height=\"280\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<\/div>\n<h2>Identifying Horizontal Shifts<\/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<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203547\/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\" \/><\/p>\n<p class=\"wp-caption-text\">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 negative values of [latex]x[\/latex].<\/p>\n<\/div>\n<h3><\/h3>\n<p>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 class=\"textbox\">\n<h3>A General Note: Horizontal Shift<\/h3>\n<p>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 class=\"textbox exercises\">\n<h3>Example: Adding a Constant to an Input<\/h3>\n<p>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 class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q839866\">Show Solution<\/span><\/p>\n<div id=\"q839866\" class=\"hidden-answer\" style=\"display: none\">\n<p>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<p style=\"text-align: center;\">[latex]\\begin{align}{c}V\\left(t\\right)&=\\text{ the original venting plan}\\\\ F\\left(t\\right)&=\\text{starting 2 hrs sooner}\\end{align}[\/latex]<\/p>\n<p>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<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203550\/CNX_Precalc_Figure_01_05_005a2.jpg\" width=\"487\" height=\"329\" alt=\"image\" \/><\/p>\n<p>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].<\/p>\n<h4>Analysis of the Solution<\/h4>\n<p>Note that [latex]V\\left(t+2\\right)[\/latex] has the effect of shifting the graph to the <em>left<\/em>.<\/p>\n<p>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<p><iframe loading=\"lazy\" id=\"mom2\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=75931&amp;theme=oea&amp;iframe_resize_id=mom2\" width=\"100%\" height=\"430\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<\/div>\n<div class=\"textbox\">\n<h3>How To: Given a tabular function, create a new row to represent a horizontal shift.<\/h3>\n<ol>\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 class=\"textbox exercises\">\n<h3>Example: Shifting a Tabular Function Horizontally<\/h3>\n<p>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 summary=\"Two rows and five columns. The first row is labeled,\">\n<tbody>\n<tr>\n<td><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><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 class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q719880\">Show Solution<\/span><\/p>\n<div id=\"q719880\" class=\"hidden-answer\" style=\"display: none\">\n<p>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>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<p style=\"text-align: center;\">[latex]\\begin{cases}g\\left(5\\right)=f\\left(5 - 3\\right)\\hfill \\\\ =f\\left(2\\right)\\hfill \\\\ =1\\hfill \\end{cases}[\/latex]<\/p>\n<p>We continue with the other values to create this table.<\/p>\n<table summary=\"Three rows and five columns. The first row is labeled,\">\n<tbody>\n<tr>\n<td><strong>[latex]x[\/latex]<\/strong><\/td>\n<td>5<\/td>\n<td>7<\/td>\n<td>9<\/td>\n<td>11<\/td>\n<\/tr>\n<tr>\n<td><strong>[latex]x - 3[\/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><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<tr>\n<td><strong>[latex]g\\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<p>The result is that the function [latex]f\\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<h4>Analysis of the Solution<\/h4>\n<p>The graph below represents both of the functions. We can see the horizontal shift in each point.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203552\/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\" \/><\/p>\n<\/div>\n<\/div>\n<p><iframe loading=\"lazy\" id=\"mom12\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=113437&amp;theme=oea&amp;iframe_resize_id=mom12\" width=\"100%\" height=\"350\"><\/iframe><\/p>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>Example: 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<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203554\/CNX_Precalc_Figure_01_05_0072.jpg\" alt=\"Graph of a parabola.\" width=\"487\" height=\"328\" \/><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q937293\">Show Solution<\/span><\/p>\n<div id=\"q937293\" class=\"hidden-answer\" style=\"display: none\">\n<p>Notice that the graph is identical in shape to the [latex]f\\left(x\\right)={x}^{2}[\/latex] function, but the [latex]x[\/latex]<em>&#8211;<\/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<p style=\"text-align: center;\">[latex]g\\left(x\\right)=f\\left(x - 2\\right)[\/latex]<\/p>\n<p>Notice how we must input the value [latex]x=2[\/latex] to get the output value [latex]y=0[\/latex]; the [latex]x[\/latex]-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<p style=\"text-align: center;\">[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]<\/p>\n<h4>Analysis of the Solution<\/h4>\n<p>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>subtract<\/em> 2 units from our input values.<\/p>\n<\/div>\n<\/div>\n<p><iframe loading=\"lazy\" id=\"mom5\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=60789&amp;theme=oea&amp;iframe_resize_id=mom5\" width=\"100%\" height=\"350\"><\/iframe><\/p>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>Example: Interpreting Horizontal versus Vertical Shifts<\/h3>\n<p>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 class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q792859\">Show Solution<\/span><\/p>\n<div id=\"q792859\" class=\"hidden-answer\" style=\"display: none\">\n<p>[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>[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=\"textbox key-takeaways\">\n<h3>Try It<\/h3>\n<p>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<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q193388\">Show Solution<\/span><\/p>\n<div id=\"q193388\" class=\"hidden-answer\" style=\"display: none\">\n<p>A horizontal shift results when a constant is added to or subtracted from the input. A vertical shift results when a constant is added to or subtracted from the output.<\/p>\n<\/div>\n<\/div>\n<p><iframe loading=\"lazy\" id=\"mom15\" class=\"resizable\" src=\"https:\/\/www.myopenmath.com\/multiembedq.php?id=33066&amp;theme=oea&amp;iframe_resize_id=mom15\" width=\"100%\" height=\"350\"><\/iframe><\/p>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Try It<\/h3>\n<p>Online graphing calculators can graph transformations using function notation. Use an online graphing calculator to graph the toolkit function [latex]f(x) = x^2[\/latex]<br \/>\nNow, enter [latex]f(x+5)[\/latex], and [latex]f(x)+5[\/latex] in the next two lines.<\/p>\n<p>Now have the online graphing calculator make a table of values for the original function. Include integer values on the interval [latex][-5,5][\/latex]. Replace the column labeled [latex]y_{1}[\/latex] with [latex]f(x_{1})[\/latex].<\/p>\n<p>Now replace [latex]f(x_{1})[\/latex] with\u00a0[latex]f(x_{1}+3)[\/latex], and\u00a0[latex]f(x_{1})+3[\/latex].<\/p>\n<p>What are the corresponding functions associated with the transformations you have graphed?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q593472\">Show Solution<\/span><\/p>\n<div id=\"q593472\" class=\"hidden-answer\" style=\"display: none\">\n<p>You have graphed the following transformations:<\/p>\n<p>[latex]f(x+3)=(x+3)^2[\/latex]<\/p>\n<p>[latex]f(x)+3=(x)^2+3[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\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-150\">\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>Question ID 113437, 60789. <strong>Authored by<\/strong>: Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em>. <strong>License Terms<\/strong>: IMathAS Community License CC-BY + GPL<\/li><\/ul><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>College Algebra. <strong>Authored by<\/strong>: Abramson, Jay et al.. <strong>Provided by<\/strong>: OpenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@5.2\">http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@5.2<\/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\/9b08c294-057f-4201-9f48-5d6ad992740d@5.2<\/li><li>Question ID 75586, 75929, 75931. <strong>Authored by<\/strong>: Shahbazian, Roy. <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>: IMathAS Community License CC-BY + GPL<\/li><li>Question ID 33066. <strong>Authored by<\/strong>: Smart, Jim. <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>: IMathAS Community License CC-BY + GPL<\/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":395986,"menu_order":27,"template":"","meta":{"_candela_citation":"[{\"type\":\"original\",\"description\":\"Revision and Adaptation\",\"author\":\"\",\"organization\":\"Lumen Learning\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"College Algebra\",\"author\":\"Abramson, Jay et al.\",\"organization\":\"OpenStax\",\"url\":\"http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@5.2\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"Download for free at http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@5.2\"},{\"type\":\"cc\",\"description\":\"Question ID 75586, 75929, 75931\",\"author\":\"Shahbazian, Roy\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"IMathAS Community License CC-BY + GPL\"},{\"type\":\"original\",\"description\":\"Question ID 113437, 60789\",\"author\":\"Lumen Learning\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"IMathAS Community License CC-BY + GPL\"},{\"type\":\"cc\",\"description\":\"Question ID 33066\",\"author\":\"Smart, Jim\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"IMathAS Community License CC-BY + GPL\"}]","CANDELA_OUTCOMES_GUID":"24cd2249-f76f-43f0-bac2-0caf5f1602d5","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-150","chapter","type-chapter","status-publish","hentry"],"part":115,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/wp\/v2\/users\/395986"}],"version-history":[{"count":4,"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/150\/revisions"}],"predecessor-version":[{"id":1381,"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/150\/revisions\/1381"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/pressbooks\/v2\/parts\/115"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/150\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=150"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/wp\/v2\/contributor?post=150"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/gsu-collegealgebra\/wp-json\/wp\/v2\/license?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}