{"id":639,"date":"2025-07-14T19:27:53","date_gmt":"2025-07-14T19:27:53","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/precalculus\/?post_type=chapter&#038;p=639"},"modified":"2026-01-29T20:25:33","modified_gmt":"2026-01-29T20:25:33","slug":"transformation-of-functions-learn-it-2","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/precalculus\/chapter\/transformation-of-functions-learn-it-2\/","title":{"raw":"Transformation of Functions: Learn It 3","rendered":"Transformation of Functions: Learn It 3"},"content":{"raw":"<h2>Vertical Stretches and Compressions<\/h2>\r\nWe can transform the inside (input values) of a function or we can transform the outside (output values) of a function. Each change has a specific effect that can be seen graphically.\r\n\r\nWhen we multiply a function by a positive constant, we get a function whose graph is stretched or compressed vertically in relation to the graph of the original function. If the constant is greater than 1, we get a <strong>vertical stretch<\/strong>; if the constant is between 0 and 1, we get a<strong> vertical compression<\/strong>. The graph below\u00a0shows a function multiplied by constant factors 2 and 0.5 and the resulting vertical stretch and compression.\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\/18203611\/CNX_Precalc_Figure_01_05_0242.jpg\" alt=\"Graph of a function that shows vertical stretching and compression.\" width=\"487\" height=\"326\" \/> Vertical stretch and compression[\/caption]\r\n\r\n<section class=\"textbox keyTakeaway\">\r\n<h3>vertical stretches and compressions<\/h3>\r\nA <strong>vertical stretch or compression<\/strong> involves scaling the graph of a function [latex]f(x)[\/latex] by a constant factor [latex]a[\/latex].\r\n<p style=\"text-align: center;\">[latex]g(x) = a \\cdot f(x)[\/latex]<\/p>\r\nThis transformation changes the output values of the function.\r\n<ul>\r\n \t<li>If [latex]a&gt;1[\/latex]: The graph is stretched vertically.<\/li>\r\n \t<li>If [latex]0 &lt; a &lt; 1[\/latex]: The graph is compressed vertically.<\/li>\r\n \t<li>If [latex]a&lt;0[\/latex]: A combination of vertical stretch\/compression and vertical reflection.<\/li>\r\n<\/ul>\r\n<\/section><section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a function, graph its vertical stretch.<\/strong>\r\n<ol>\r\n \t<li>Identify the value of [latex]a[\/latex].<\/li>\r\n \t<li>Multiply all range values by [latex]a[\/latex].<\/li>\r\n \t<li>If [latex]a&gt;1[\/latex], the graph is stretched by a factor of [latex]a[\/latex].\r\nIf [latex]{ 0 }&lt;{ a }&lt;{ 1 }[\/latex], the graph is compressed by a factor of [latex]a[\/latex].\r\nIf [latex]a&lt;0[\/latex], the graph is either stretched or compressed and also reflected about the [latex]x[\/latex]-axis.<\/li>\r\n<\/ol>\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">A function [latex]P\\left(t\\right)[\/latex] models the number\u00a0of fruit flies in a population over time, and is graphed below.A scientist is comparing this population to another population, [latex]Q[\/latex], whose growth follows the same pattern, but is twice as large. Sketch a graph of this population.<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203613\/CNX_Precalc_Figure_01_05_025.jpg\" alt=\"Graph to represent the growth of the population of fruit flies.\" width=\"487\" height=\"367\" \/>\r\n[reveal-answer q=\"951851\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"951851\"]Because the population is always twice as large, the new population\u2019s output values are always twice the original function\u2019s output values.If we choose four reference points, [latex](0, 1)[\/latex], [latex](3, 3)[\/latex], [latex](6, 2)[\/latex] and [latex](7, 0)[\/latex] we will multiply all of the outputs by [latex]2[\/latex].The following shows where the new points for the new graph will be located.<center>[latex]\\begin{cases}\\left(0,\\text{ }1\\right)\\to \\left(0,\\text{ }2\\right)\\hfill \\\\ \\left(3,\\text{ }3\\right)\\to \\left(3,\\text{ }6\\right)\\hfill \\\\ \\left(6,\\text{ }2\\right)\\to \\left(6,\\text{ }4\\right)\\hfill \\\\ \\left(7,\\text{ }0\\right)\\to \\left(7,\\text{ }0\\right)\\hfill \\end{cases}[\/latex]<\/center><img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203615\/CNX_Precalc_Figure_01_05_026.jpg\" alt=\"Graph of the population function doubled.\" width=\"487\" height=\"367\" \/>Symbolically, the relationship is written as<center>[latex]Q\\left(t\\right)=2P\\left(t\\right)[\/latex]<\/center>This means that for any input [latex]t[\/latex], the value of the function [latex]Q[\/latex] is twice the value of the function [latex]P[\/latex]. Notice that the effect on the graph is a vertical stretching of the graph, where every point doubles its distance from the horizontal axis. The input values, [latex]t[\/latex], stay the same while the output values are twice as large as before.[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">A function [latex]f[\/latex] is given in the table below. Create a table for the function [latex]g\\left(x\\right)=\\frac{1}{2}f\\left(x\\right)[\/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>[latex]2[\/latex]<\/td>\r\n<td>[latex]4[\/latex]<\/td>\r\n<td>[latex]6[\/latex]<\/td>\r\n<td>[latex]8[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td>[latex]1[\/latex]<\/td>\r\n<td>[latex]3[\/latex]<\/td>\r\n<td>[latex]7[\/latex]<\/td>\r\n<td>[latex]11[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n[reveal-answer q=\"798923\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"798923\"]\r\n\r\nThe formula [latex]g\\left(x\\right)=\\frac{1}{2}f\\left(x\\right)[\/latex] tells us that the output values of [latex]g[\/latex] are half of the output values of [latex]f[\/latex] with the same inputs. For example, we know that [latex]f\\left(4\\right)=3[\/latex]. Then:\r\n\r\n<center>[latex]g\\left(4\\right)=\\frac{1}{2}\\cdot{f}(4) =\\frac{1}{2}\\cdot\\left(3\\right)=\\frac{3}{2}[\/latex]<\/center>We do the same for the other values to produce this table.\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>[latex]2[\/latex]<\/td>\r\n<td>[latex]4[\/latex]<\/td>\r\n<td>[latex]6[\/latex]<\/td>\r\n<td>[latex]8[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>[latex]g\\left(x\\right)[\/latex]<\/strong><\/td>\r\n<td>[latex]\\frac{1}{2}[\/latex]<\/td>\r\n<td>[latex]\\frac{3}{2}[\/latex]<\/td>\r\n<td>[latex]\\frac{7}{2}[\/latex]<\/td>\r\n<td>[latex]\\frac{11}{2}[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n[latex]\\\\[\/latex]\r\n<strong>Analysis of the Solution<\/strong>\r\n\r\nThe result is that the function [latex]g\\left(x\\right)[\/latex] has been compressed vertically by [latex]\\frac{1}{2}[\/latex]. Each output value is divided in half, so the graph is half the original height.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]317921[\/ohm_question]<\/section>\r\n<h2>Horizontal Stretches and Compressions<\/h2>\r\nNow we consider changes to the inside of a function. When we multiply a function\u2019s input by a positive constant, we get a function whose graph is stretched or compressed horizontally in relation to the graph of the original function. If the constant is between 0 and 1, we get a <strong>horizontal stretch<\/strong>; if the constant is greater than 1, we get a <strong>horizontal compression<\/strong> of the function.\r\n\r\nGiven a function [latex]y=f\\left(x\\right)[\/latex], the form [latex]y=f\\left(bx\\right)[\/latex] results in a horizontal stretch or compression. Consider the function [latex]y={x}^{2}[\/latex].\u00a0The graph of [latex]y={\\left(0.5x\\right)}^{2}[\/latex] is a horizontal stretch of the graph of the function [latex]y={x}^{2}[\/latex] by a factor of 2. The graph of [latex]y={\\left(2x\\right)}^{2}[\/latex] is a horizontal compression of the graph of the function [latex]y={x}^{2}[\/latex] by a factor of [latex]2[\/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\/18203621\/CNX_Precalc_Figure_01_05_028.jpg\" alt=\"Graph of the vertical stretch and compression of x^2.\" width=\"487\" height=\"514\" \/>\r\n\r\n<section class=\"textbox keyTakeaway\">\r\n<h3>horizontal stretches and compressions<\/h3>\r\nA <strong>horizontal stretch or compression<\/strong> involves scaling the graph of a function [latex]f(x)[\/latex] by a constant factor [latex]b[\/latex].\r\n<p style=\"text-align: center;\">[latex]g(x) = f(b \\cdot x)[\/latex]<\/p>\r\nThis transformation changes the input values of the function.\r\n<ul>\r\n \t<li>If [latex]b&gt;1[\/latex]: The graph is compressed horizontally. The graph is compressed by [latex]\\dfrac{1}{b}[\/latex].<\/li>\r\n \t<li>If [latex]0 &lt; b &lt; 1[\/latex]: The graph is stretched horizontally. The graph is stretched by [latex]\\dfrac{1}{b}[\/latex].<\/li>\r\n \t<li>If [latex]b&lt;0[\/latex]: A combination of horizontal stretch\/compression and horizontal reflection.<\/li>\r\n<\/ul>\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">Suppose a scientist is comparing a population of fruit flies to a population that progresses through its lifespan twice as fast as the original population. In other words, this new population, [latex]R[\/latex], will progress in [latex]1[\/latex] hour the same amount as the original population does in [latex]2[\/latex] hours, and in [latex]2[\/latex] hours, it will progress as much as the original population does in [latex]4[\/latex] hours. Sketch a graph of this population.[reveal-answer q=\"855794\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"855794\"]Symbolically, we could write\r\n<p style=\"text-align: center;\">[latex]\\begin{align}&amp;R\\left(1\\right)=P\\left(2\\right), \\\\ &amp;R\\left(2\\right)=P\\left(4\\right),\\text{ and in general,} \\\\ &amp;R\\left(t\\right)=P\\left(2t\\right). \\end{align}[\/latex]<\/p>\r\nSee below\u00a0for a graphical comparison of the original population and the compressed population.\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"976\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203623\/CNX_Precalc_Figure_01_05_029ab.jpg\" alt=\"Two side-by-side graphs. The first graph has function for original population whose domain is [0,7] and range is [0,3]. The maximum value occurs at (3,3). The second graph has the same shape as the first except it is half as wide. It is a graph of transformed population, with a domain of [0, 3.5] and a range of [0,3]. The maximum occurs at (1.5, 3).\" width=\"976\" height=\"401\" \/> (a) Original population graph (b) Compressed population graph[\/caption]\r\n[latex]\\\\[\/latex]\r\n<strong>Analysis of the Solution<\/strong>\r\n[latex]\\\\[\/latex]\r\nNote that the effect on the graph is a horizontal compression where all input values are half of their original distance from the vertical axis.[\/hidden-answer]<\/section><section class=\"textbox example\" aria-label=\"Example\">A function [latex]f\\left(x\\right)[\/latex] is given below. Create a table for the function [latex]g\\left(x\\right)=f\\left(\\frac{1}{2}x\\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>[latex]2[\/latex]<\/td>\r\n<td>[latex]4[\/latex]<\/td>\r\n<td>[latex]6[\/latex]<\/td>\r\n<td>[latex]8[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\r\n<td>[latex]1[\/latex]<\/td>\r\n<td>[latex]3[\/latex]<\/td>\r\n<td>[latex]7[\/latex]<\/td>\r\n<td>[latex]11[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n[reveal-answer q=\"261935\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"261935\"]\r\n\r\nThe formula [latex]g\\left(x\\right)=f\\left(\\frac{1}{2}x\\right)[\/latex] tells us that the output values for [latex]g[\/latex] are the same as the output values for the function [latex]f[\/latex] at an input half the size. Notice that we do not have enough information to determine [latex]g\\left(2\\right)[\/latex] because [latex]g\\left(2\\right)=f\\left(\\frac{1}{2}\\cdot 2\\right)=f\\left(1\\right)[\/latex], and we do not have a value for [latex]f\\left(1\\right)[\/latex] in our table. Our input values to [latex]g[\/latex] will need to be twice as large to get inputs for [latex]f[\/latex] that we can evaluate. For example, we can determine [latex]g\\left(4\\right)\\text{.}[\/latex]\r\n<p style=\"text-align: center;\">[latex]g\\left(4\\right)=f\\left(\\frac{1}{2}\\cdot 4\\right)=f\\left(2\\right)=1[\/latex]<\/p>\r\nWe do the same for the other values to produce the table below.\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>4<\/td>\r\n<td>8<\/td>\r\n<td>12<\/td>\r\n<td>16<\/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<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203626\/CNX_Precalc_Figure_01_05_031.jpg\" alt=\"Graph of the previous table.\" width=\"975\" height=\"333\" \/>\r\n\r\nThis figure shows the graphs of both of these sets of points.\r\n\r\n<strong>Analysis of the Solution<\/strong>\r\n\r\nBecause each input value has been doubled, the result is that the function [latex]g\\left(x\\right)[\/latex] has been stretched horizontally by a factor of 2.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\">[ohm_question hide_question_numbers=1]317920[\/ohm_question]<\/section>","rendered":"<h2>Vertical Stretches and Compressions<\/h2>\n<p>We can transform the inside (input values) of a function or we can transform the outside (output values) of a function. Each change has a specific effect that can be seen graphically.<\/p>\n<p>When we multiply a function by a positive constant, we get a function whose graph is stretched or compressed vertically in relation to the graph of the original function. If the constant is greater than 1, we get a <strong>vertical stretch<\/strong>; if the constant is between 0 and 1, we get a<strong> vertical compression<\/strong>. The graph below\u00a0shows a function multiplied by constant factors 2 and 0.5 and the resulting vertical stretch and compression.<\/p>\n<figure style=\"width: 487px\" 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\/18203611\/CNX_Precalc_Figure_01_05_0242.jpg\" alt=\"Graph of a function that shows vertical stretching and compression.\" width=\"487\" height=\"326\" \/><figcaption class=\"wp-caption-text\">Vertical stretch and compression<\/figcaption><\/figure>\n<section class=\"textbox keyTakeaway\">\n<h3>vertical stretches and compressions<\/h3>\n<p>A <strong>vertical stretch or compression<\/strong> involves scaling the graph of a function [latex]f(x)[\/latex] by a constant factor [latex]a[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]g(x) = a \\cdot f(x)[\/latex]<\/p>\n<p>This transformation changes the output values of the function.<\/p>\n<ul>\n<li>If [latex]a>1[\/latex]: The graph is stretched vertically.<\/li>\n<li>If [latex]0 < a < 1[\/latex]: The graph is compressed vertically.<\/li>\n<li>If [latex]a<0[\/latex]: A combination of vertical stretch\/compression and vertical reflection.<\/li>\n<\/ul>\n<\/section>\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a function, graph its vertical stretch.<\/strong><\/p>\n<ol>\n<li>Identify the value of [latex]a[\/latex].<\/li>\n<li>Multiply all range values by [latex]a[\/latex].<\/li>\n<li>If [latex]a>1[\/latex], the graph is stretched by a factor of [latex]a[\/latex].<br \/>\nIf [latex]{ 0 }<{ a }<{ 1 }[\/latex], the graph is compressed by a factor of [latex]a[\/latex].\nIf [latex]a<0[\/latex], the graph is either stretched or compressed and also reflected about the [latex]x[\/latex]-axis.<\/li>\n<\/ol>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">A function [latex]P\\left(t\\right)[\/latex] models the number\u00a0of fruit flies in a population over time, and is graphed below.A scientist is comparing this population to another population, [latex]Q[\/latex], whose growth follows the same pattern, but is twice as large. Sketch a graph of this population.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203613\/CNX_Precalc_Figure_01_05_025.jpg\" alt=\"Graph to represent the growth of the population of fruit flies.\" width=\"487\" height=\"367\" \/><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q951851\">Show Solution<\/button><\/p>\n<div id=\"q951851\" class=\"hidden-answer\" style=\"display: none\">Because the population is always twice as large, the new population\u2019s output values are always twice the original function\u2019s output values.If we choose four reference points, [latex](0, 1)[\/latex], [latex](3, 3)[\/latex], [latex](6, 2)[\/latex] and [latex](7, 0)[\/latex] we will multiply all of the outputs by [latex]2[\/latex].The following shows where the new points for the new graph will be located.<\/p>\n<div style=\"text-align: center;\">[latex]\\begin{cases}\\left(0,\\text{ }1\\right)\\to \\left(0,\\text{ }2\\right)\\hfill \\\\ \\left(3,\\text{ }3\\right)\\to \\left(3,\\text{ }6\\right)\\hfill \\\\ \\left(6,\\text{ }2\\right)\\to \\left(6,\\text{ }4\\right)\\hfill \\\\ \\left(7,\\text{ }0\\right)\\to \\left(7,\\text{ }0\\right)\\hfill \\end{cases}[\/latex]<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203615\/CNX_Precalc_Figure_01_05_026.jpg\" alt=\"Graph of the population function doubled.\" width=\"487\" height=\"367\" \/>Symbolically, the relationship is written as<\/p>\n<div style=\"text-align: center;\">[latex]Q\\left(t\\right)=2P\\left(t\\right)[\/latex]<\/div>\n<p>This means that for any input [latex]t[\/latex], the value of the function [latex]Q[\/latex] is twice the value of the function [latex]P[\/latex]. Notice that the effect on the graph is a vertical stretching of the graph, where every point doubles its distance from the horizontal axis. The input values, [latex]t[\/latex], stay the same while the output values are twice as large as before.<\/p><\/div>\n<\/div>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">A function [latex]f[\/latex] is given in the table below. Create a table for the function [latex]g\\left(x\\right)=\\frac{1}{2}f\\left(x\\right)[\/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>[latex]2[\/latex]<\/td>\n<td>[latex]4[\/latex]<\/td>\n<td>[latex]6[\/latex]<\/td>\n<td>[latex]8[\/latex]<\/td>\n<\/tr>\n<tr>\n<td><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\n<td>[latex]1[\/latex]<\/td>\n<td>[latex]3[\/latex]<\/td>\n<td>[latex]7[\/latex]<\/td>\n<td>[latex]11[\/latex]<\/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=\"q798923\">Show Solution<\/button><\/p>\n<div id=\"q798923\" class=\"hidden-answer\" style=\"display: none\">\n<p>The formula [latex]g\\left(x\\right)=\\frac{1}{2}f\\left(x\\right)[\/latex] tells us that the output values of [latex]g[\/latex] are half of the output values of [latex]f[\/latex] with the same inputs. For example, we know that [latex]f\\left(4\\right)=3[\/latex]. Then:<\/p>\n<div style=\"text-align: center;\">[latex]g\\left(4\\right)=\\frac{1}{2}\\cdot{f}(4) =\\frac{1}{2}\\cdot\\left(3\\right)=\\frac{3}{2}[\/latex]<\/div>\n<p>We do the same for the other values to produce this table.<\/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>[latex]2[\/latex]<\/td>\n<td>[latex]4[\/latex]<\/td>\n<td>[latex]6[\/latex]<\/td>\n<td>[latex]8[\/latex]<\/td>\n<\/tr>\n<tr>\n<td><strong>[latex]g\\left(x\\right)[\/latex]<\/strong><\/td>\n<td>[latex]\\frac{1}{2}[\/latex]<\/td>\n<td>[latex]\\frac{3}{2}[\/latex]<\/td>\n<td>[latex]\\frac{7}{2}[\/latex]<\/td>\n<td>[latex]\\frac{11}{2}[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[latex]\\\\[\/latex]<br \/>\n<strong>Analysis of the Solution<\/strong><\/p>\n<p>The result is that the function [latex]g\\left(x\\right)[\/latex] has been compressed vertically by [latex]\\frac{1}{2}[\/latex]. Each output value is divided in half, so the graph is half the original height.<\/p>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm317921\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=317921&theme=lumen&iframe_resize_id=ohm317921&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<h2>Horizontal Stretches and Compressions<\/h2>\n<p>Now we consider changes to the inside of a function. When we multiply a function\u2019s input by a positive constant, we get a function whose graph is stretched or compressed horizontally in relation to the graph of the original function. If the constant is between 0 and 1, we get a <strong>horizontal stretch<\/strong>; if the constant is greater than 1, we get a <strong>horizontal compression<\/strong> of the function.<\/p>\n<p>Given a function [latex]y=f\\left(x\\right)[\/latex], the form [latex]y=f\\left(bx\\right)[\/latex] results in a horizontal stretch or compression. Consider the function [latex]y={x}^{2}[\/latex].\u00a0The graph of [latex]y={\\left(0.5x\\right)}^{2}[\/latex] is a horizontal stretch of the graph of the function [latex]y={x}^{2}[\/latex] by a factor of 2. The graph of [latex]y={\\left(2x\\right)}^{2}[\/latex] is a horizontal compression of the graph of the function [latex]y={x}^{2}[\/latex] by a factor of [latex]2[\/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\/18203621\/CNX_Precalc_Figure_01_05_028.jpg\" alt=\"Graph of the vertical stretch and compression of x^2.\" width=\"487\" height=\"514\" \/><\/p>\n<section class=\"textbox keyTakeaway\">\n<h3>horizontal stretches and compressions<\/h3>\n<p>A <strong>horizontal stretch or compression<\/strong> involves scaling the graph of a function [latex]f(x)[\/latex] by a constant factor [latex]b[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]g(x) = f(b \\cdot x)[\/latex]<\/p>\n<p>This transformation changes the input values of the function.<\/p>\n<ul>\n<li>If [latex]b>1[\/latex]: The graph is compressed horizontally. The graph is compressed by [latex]\\dfrac{1}{b}[\/latex].<\/li>\n<li>If [latex]0 < b < 1[\/latex]: The graph is stretched horizontally. The graph is stretched by [latex]\\dfrac{1}{b}[\/latex].<\/li>\n<li>If [latex]b<0[\/latex]: A combination of horizontal stretch\/compression and horizontal reflection.<\/li>\n<\/ul>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">Suppose a scientist is comparing a population of fruit flies to a population that progresses through its lifespan twice as fast as the original population. In other words, this new population, [latex]R[\/latex], will progress in [latex]1[\/latex] hour the same amount as the original population does in [latex]2[\/latex] hours, and in [latex]2[\/latex] hours, it will progress as much as the original population does in [latex]4[\/latex] hours. Sketch a graph of this population.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q855794\">Show Solution<\/button><\/p>\n<div id=\"q855794\" class=\"hidden-answer\" style=\"display: none\">Symbolically, we could write<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}&R\\left(1\\right)=P\\left(2\\right), \\\\ &R\\left(2\\right)=P\\left(4\\right),\\text{ and in general,} \\\\ &R\\left(t\\right)=P\\left(2t\\right). \\end{align}[\/latex]<\/p>\n<p>See below\u00a0for a graphical comparison of the original population and the compressed population.<\/p>\n<figure style=\"width: 976px\" 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\/18203623\/CNX_Precalc_Figure_01_05_029ab.jpg\" alt=\"Two side-by-side graphs. The first graph has function for original population whose domain is &#091;0,7&#093; and range is &#091;0,3&#093;. The maximum value occurs at (3,3). The second graph has the same shape as the first except it is half as wide. It is a graph of transformed population, with a domain of &#091;0, 3.5&#093; and a range of &#091;0,3&#093;. The maximum occurs at (1.5, 3).\" width=\"976\" height=\"401\" \/><figcaption class=\"wp-caption-text\">(a) Original population graph (b) Compressed population graph<\/figcaption><\/figure>\n<p>[latex]\\\\[\/latex]<br \/>\n<strong>Analysis of the Solution<\/strong><br \/>\n[latex]\\\\[\/latex]<br \/>\nNote that the effect on the graph is a horizontal compression where all input values are half of their original distance from the vertical axis.<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">A function [latex]f\\left(x\\right)[\/latex] is given below. Create a table for the function [latex]g\\left(x\\right)=f\\left(\\frac{1}{2}x\\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>[latex]2[\/latex]<\/td>\n<td>[latex]4[\/latex]<\/td>\n<td>[latex]6[\/latex]<\/td>\n<td>[latex]8[\/latex]<\/td>\n<\/tr>\n<tr>\n<td><strong>[latex]f\\left(x\\right)[\/latex] <\/strong><\/td>\n<td>[latex]1[\/latex]<\/td>\n<td>[latex]3[\/latex]<\/td>\n<td>[latex]7[\/latex]<\/td>\n<td>[latex]11[\/latex]<\/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=\"q261935\">Show Solution<\/button><\/p>\n<div id=\"q261935\" class=\"hidden-answer\" style=\"display: none\">\n<p>The formula [latex]g\\left(x\\right)=f\\left(\\frac{1}{2}x\\right)[\/latex] tells us that the output values for [latex]g[\/latex] are the same as the output values for the function [latex]f[\/latex] at an input half the size. Notice that we do not have enough information to determine [latex]g\\left(2\\right)[\/latex] because [latex]g\\left(2\\right)=f\\left(\\frac{1}{2}\\cdot 2\\right)=f\\left(1\\right)[\/latex], and we do not have a value for [latex]f\\left(1\\right)[\/latex] in our table. Our input values to [latex]g[\/latex] will need to be twice as large to get inputs for [latex]f[\/latex] that we can evaluate. For example, we can determine [latex]g\\left(4\\right)\\text{.}[\/latex]<\/p>\n<p style=\"text-align: center;\">[latex]g\\left(4\\right)=f\\left(\\frac{1}{2}\\cdot 4\\right)=f\\left(2\\right)=1[\/latex]<\/p>\n<p>We do the same for the other values to produce the table below.<\/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>4<\/td>\n<td>8<\/td>\n<td>12<\/td>\n<td>16<\/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><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18203626\/CNX_Precalc_Figure_01_05_031.jpg\" alt=\"Graph of the previous table.\" width=\"975\" height=\"333\" \/><\/p>\n<p>This figure shows the graphs of both of these sets of points.<\/p>\n<p><strong>Analysis of the Solution<\/strong><\/p>\n<p>Because each input value has been doubled, the result is that the function [latex]g\\left(x\\right)[\/latex] has been stretched horizontally by a factor of 2.<\/p>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm317920\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=317920&theme=lumen&iframe_resize_id=ohm317920&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":13,"menu_order":15,"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\/639"}],"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":11,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/639\/revisions"}],"predecessor-version":[{"id":5444,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/639\/revisions\/5444"}],"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\/639\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/media?parent=639"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapter-type?post=639"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/contributor?post=639"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/license?post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}