{"id":643,"date":"2025-07-14T19:28:55","date_gmt":"2025-07-14T19:28:55","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/precalculus\/?post_type=chapter&#038;p=643"},"modified":"2026-01-29T20:42:02","modified_gmt":"2026-01-29T20:42:02","slug":"transformation-of-functions-learn-it-4","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/precalculus\/chapter\/transformation-of-functions-learn-it-4\/","title":{"raw":"Transformation of Functions: Learn It 5","rendered":"Transformation of Functions: Learn It 5"},"content":{"raw":"<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<section class=\"textbox keyTakeaway\">\r\n<h3>horizontal shift<\/h3>\r\nA <strong>horizontal shift<\/strong> occurs when you add or subtract a constant value to the input [latex]x[\/latex] of the function [latex]f(x)[\/latex].\r\n\r\nThis shifts the graph of the function horizontally.\r\n<ul>\r\n \t<li><strong>Rightward shift:<\/strong> If you subtract a constant [latex]c[\/latex] from [latex]x[\/latex] before applying the function [latex]f[\/latex], the graph of the function shifts to the right by [latex]c[\/latex] units.<\/li>\r\n<\/ul>\r\n<p style=\"text-align: center;\">[latex]g(x) = f(x-c)[\/latex]<\/p>\r\n\r\n<ul>\r\n \t<li><strong>Leftward shift:<\/strong> If you add a constant [latex]c[\/latex] to [latex]x[\/latex] before applying the function [latex]f[\/latex], the graph of the function shifts to the left by [latex]c[\/latex] units.<\/li>\r\n<\/ul>\r\n<p style=\"text-align: center;\">[latex]h(x) = f(x+c)[\/latex]<\/p>\r\n&nbsp;\r\n\r\n<\/section><section class=\"textbox example\">The image shows the graph of the cube root function [latex]f(x) = \\sqrt[3]{x}[\/latex] (solid blue line) and its horizontally shifted version [latex]f(x + 1)[\/latex] (dashed orange line).<img class=\"aligncenter\" 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=\"386\" height=\"228\" \/><strong>Original Function [latex]f(x)[\/latex]<\/strong>\r\n<ul>\r\n \t<li>The solid blue curve represents the original function [latex]\\sqrt[3]{x}[\/latex].<\/li>\r\n \t<li>The function [latex]f(x)[\/latex] passes through the origin [latex](0,0)[\/latex] because [latex]\\sqrt[3]{0} = 0[\/latex].<\/li>\r\n<\/ul>\r\n<strong>Horizontally Shifted Function [latex]f(x+1)[\/latex]<\/strong>\r\n<ul>\r\n \t<li>The dashed orange curve represents the function\u00a0 [latex]f(x+1)\u00a0 = \\sqrt[3]{x+1}[\/latex].<\/li>\r\n \t<li>Each point on the graph of [latex]f(x+1)[\/latex] is exactly [latex]1[\/latex] unit to the left of the corresponding point on the graph of [latex]f(x)[\/latex].<\/li>\r\n \t<li>For example:\r\n<ul>\r\n \t<li>If [latex]x=0[\/latex], then [latex]\\sqrt[3]{0+1} =\u00a0 \\sqrt[3]{1} = 1[\/latex].<\/li>\r\n \t<li>If [latex]x=-2[\/latex], then [latex]\\sqrt[3]{-2+1} = \\sqrt[3]{-1} = -1[\/latex].<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\nA horizontal shift involves moving the graph of a function left or right without altering its shape. In this case, adding [latex]1[\/latex] to the input of the function [latex]f(x) = \\sqrt[3]{x}[\/latex] results in a horizontal shift of the graph to the <strong>left<\/strong> by [latex]1[\/latex] unit.\r\n\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">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].[reveal-answer q=\"792859\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"792859\"][latex]G\\left(m\\right)+10[\/latex] can be interpreted as adding [latex]10[\/latex] to the output, gallons. This is the gas required to drive [latex]m[\/latex] miles, plus another [latex]10[\/latex] gallons of gas. The graph would indicate a vertical shift.[latex]G\\left(m+10\\right)[\/latex] can be interpreted as adding [latex]10 [\/latex]to the input, miles. So this is the number of gallons of gas required to drive [latex]10[\/latex] miles more than [latex]m[\/latex] miles. The graph would indicate a horizontal shift.[\/hidden-answer]<\/section><section aria-label=\"Example\"><section class=\"textbox questionHelp\" aria-label=\"Question Help\">\r\n<p id=\"fs-id1165137667199\"><strong>How To: Given a tabular function, create a new row to represent a horizontal shift.<\/strong><\/p>\r\n\r\n<ol id=\"fs-id1165137652957\">\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<\/section><section class=\"textbox example\" aria-label=\"Example\">\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> <\/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=\"797840\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"797840\"]\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>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<p style=\"text-align: center;\">[latex]\\begin{align}g\\left(5\\right)&amp;=f\\left(5 - 3\\right) \\\\ &amp;=f\\left(2\\right) \\\\ &amp;=1 \\end{align}[\/latex]<\/p>\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> <\/colgroup>\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\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>\r\n\r\n<h4>Analysis of the Solution<\/h4>\r\nThe graph represents both of the functions. We can see the horizontal shift in each point.\r\n\r\n<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010516\/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\r\n<\/section><\/section><section class=\"textbox tryIt\">[ohm_question hide_question_numbers=1]317931[\/ohm_question]<\/section><section class=\"textbox tryIt\">[ohm_question hide_question_numbers=1]317932[\/ohm_question]<\/section><section class=\"textbox tryIt\">[ohm_question hide_question_numbers=1]317933[\/ohm_question]<\/section>","rendered":"<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<section class=\"textbox keyTakeaway\">\n<h3>horizontal shift<\/h3>\n<p>A <strong>horizontal shift<\/strong> occurs when you add or subtract a constant value to the input [latex]x[\/latex] of the function [latex]f(x)[\/latex].<\/p>\n<p>This shifts the graph of the function horizontally.<\/p>\n<ul>\n<li><strong>Rightward shift:<\/strong> If you subtract a constant [latex]c[\/latex] from [latex]x[\/latex] before applying the function [latex]f[\/latex], the graph of the function shifts to the right by [latex]c[\/latex] units.<\/li>\n<\/ul>\n<p style=\"text-align: center;\">[latex]g(x) = f(x-c)[\/latex]<\/p>\n<ul>\n<li><strong>Leftward shift:<\/strong> If you add a constant [latex]c[\/latex] to [latex]x[\/latex] before applying the function [latex]f[\/latex], the graph of the function shifts to the left by [latex]c[\/latex] units.<\/li>\n<\/ul>\n<p style=\"text-align: center;\">[latex]h(x) = f(x+c)[\/latex]<\/p>\n<p>&nbsp;<\/p>\n<\/section>\n<section class=\"textbox example\">The image shows the graph of the cube root function [latex]f(x) = \\sqrt[3]{x}[\/latex] (solid blue line) and its horizontally shifted version [latex]f(x + 1)[\/latex] (dashed orange line).<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" 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=\"386\" height=\"228\" \/><strong>Original Function [latex]f(x)[\/latex]<\/strong><\/p>\n<ul>\n<li>The solid blue curve represents the original function [latex]\\sqrt[3]{x}[\/latex].<\/li>\n<li>The function [latex]f(x)[\/latex] passes through the origin [latex](0,0)[\/latex] because [latex]\\sqrt[3]{0} = 0[\/latex].<\/li>\n<\/ul>\n<p><strong>Horizontally Shifted Function [latex]f(x+1)[\/latex]<\/strong><\/p>\n<ul>\n<li>The dashed orange curve represents the function\u00a0 [latex]f(x+1)\u00a0 = \\sqrt[3]{x+1}[\/latex].<\/li>\n<li>Each point on the graph of [latex]f(x+1)[\/latex] is exactly [latex]1[\/latex] unit to the left of the corresponding point on the graph of [latex]f(x)[\/latex].<\/li>\n<li>For example:\n<ul>\n<li>If [latex]x=0[\/latex], then [latex]\\sqrt[3]{0+1} =\u00a0 \\sqrt[3]{1} = 1[\/latex].<\/li>\n<li>If [latex]x=-2[\/latex], then [latex]\\sqrt[3]{-2+1} = \\sqrt[3]{-1} = -1[\/latex].<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>A horizontal shift involves moving the graph of a function left or right without altering its shape. In this case, adding [latex]1[\/latex] to the input of the function [latex]f(x) = \\sqrt[3]{x}[\/latex] results in a horizontal shift of the graph to the <strong>left<\/strong> by [latex]1[\/latex] unit.<\/p>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">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\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q792859\">Show Solution<\/button><\/p>\n<div id=\"q792859\" class=\"hidden-answer\" style=\"display: none\">[latex]G\\left(m\\right)+10[\/latex] can be interpreted as adding [latex]10[\/latex] to the output, gallons. This is the gas required to drive [latex]m[\/latex] miles, plus another [latex]10[\/latex] gallons of gas. The graph would indicate a vertical shift.[latex]G\\left(m+10\\right)[\/latex] can be interpreted as adding [latex]10[\/latex]to the input, miles. So this is the number of gallons of gas required to drive [latex]10[\/latex] miles more than [latex]m[\/latex] miles. The graph would indicate a horizontal shift.<\/div>\n<\/div>\n<\/section>\n<section aria-label=\"Example\">\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\">\n<p id=\"fs-id1165137667199\"><strong>How To: Given a tabular function, create a new row to represent a horizontal shift.<\/strong><\/p>\n<ol id=\"fs-id1165137652957\">\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<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">\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><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\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q797840\">Show Solution<\/button><\/p>\n<div id=\"q797840\" class=\"hidden-answer\" style=\"display: none\">\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>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{align}g\\left(5\\right)&=f\\left(5 - 3\\right) \\\\ &=f\\left(2\\right) \\\\ &=1 \\end{align}[\/latex]<\/p>\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><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 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<h4>Analysis of the Solution<\/h4>\n<p>The graph represents both of the functions. We can see the horizontal shift in each point.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010516\/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<\/section>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm317931\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=317931&theme=lumen&iframe_resize_id=ohm317931&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm317932\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=317932&theme=lumen&iframe_resize_id=ohm317932&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm317933\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=317933&theme=lumen&iframe_resize_id=ohm317933&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":13,"menu_order":17,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":498,"module-header":"learn_it","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/643"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/users\/13"}],"version-history":[{"count":10,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/643\/revisions"}],"predecessor-version":[{"id":5446,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/643\/revisions\/5446"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/parts\/498"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/643\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/media?parent=643"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapter-type?post=643"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/contributor?post=643"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/license?post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}