lkarch.org/tools/mathisfun/www.mathsisfun.com/sets/function-transformations.html
Lucas Kent e39465ad2f Changes to be committed:
new file:   Files/flashplayer_32_sa.exe
	new file:   favicon.ico
	new file:   globe.gif
	new file:   imgs/download.png
	new file:   imgs/zuck.jpg
	new file:   index.html
	new file:   other.ico
	new file:   script.js
	new file:   site.webmanifest
	new file:   sitemap.html
	new file:   styles/backround.css
	new file:   styles/border.css
	new file:   styles/fonts/Titillium_Web/OFL.txt
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf
	new file:   styles/fonts/webfontkit-20221027-163353/generator_config.txt
	new file:   styles/fonts/webfontkit-20221027-163353/specimen_files/grid_12-825-55-15.css
	new file:   styles/fonts/webfontkit-20221027-163353/specimen_files/specimen_stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-163353/stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-demo.html
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff2
	new file:   styles/fonts/webfontkit-20221027-165950/generator_config.txt
	new file:   styles/fonts/webfontkit-20221027-165950/specimen_files/grid_12-825-55-15.css
	new file:   styles/fonts/webfontkit-20221027-165950/specimen_files/specimen_stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-165950/stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-demo.html
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff2
	new file:   styles/style.css
	new file:   tools/2048/.gitignore
	new file:   tools/2048/.jshintrc
	new file:   tools/2048/CONTRIBUTING.md
	new file:   tools/2048/LICENSE.txt
	new file:   tools/2048/README.md
	new file:   tools/2048/Rakefile
	new file:   tools/2048/favicon.ico
	new file:   tools/2048/index.html
	new file:   tools/2048/js/animframe_polyfill.js
	new file:   tools/2048/js/application.js
	new file:   tools/2048/js/bind_polyfill.js
	new file:   tools/2048/js/classlist_polyfill.js
	new file:   tools/2048/js/game_manager.js
	new file:   tools/2048/js/grid.js
	new file:   tools/2048/js/html_actuator.js
	new file:   tools/2048/js/keyboard_input_manager.js
	new file:   tools/2048/js/local_storage_manager.js
	new file:   tools/2048/js/tile.js
    new file:   tools/2048/meta/apple-touch-icon.png
	new file:   tools/webretro/cores/neocd_libretro.js
	new file:   tools/webretro/cores/neocd_libretro.wasm
	new file:   tools/webretro/cores/nestopia_libretro.js
	new file:   tools/webretro/cores/nestopia_libretro.wasm
	new file:   tools/webretro/cores/o2em_libretro.js
	new file:   tools/webretro/cores/o2em_libretro.wasm
	new file:   tools/webretro/cores/opera_libretro.js
	new file:   tools/webretro/cores/opera_libretro.wasm
2022-11-02 08:40:01 -04:00

292 lines
14 KiB
HTML

<!doctype html>
<html lang="en"><!-- #BeginTemplate "../Templates/Advanced.dwt" --><!-- DW6 -->
<!-- Mirrored from www.mathsisfun.com/sets/function-transformations.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 01:00:37 GMT -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>Function Transformations</title>
<meta name="Description" content="Math explained in easy language, plus puzzles, games, quizzes, worksheets and a forum. For K-12 kids, teachers and parents." />
<!-- #EndEditable -->
<meta name="keywords" content="math, maths, mathematics, school, homework, education" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; user-scalable=true;" />
<meta name="HandheldFriendly" content="true"/>
<meta http-equiv="pics-label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.mathsisfun.com" r (SS~~000 1))' />
<link rel="stylesheet" type="text/css" href="../style3.css" />
<script src="../main3.js" type="text/javascript"></script>
</head>
<body id="bodybg" class="adv">
<div class="bg">
<div id="stt"></div>
<div id="hdr"></div>
<div id="logo"><a href="../index.html"><img src="../images/style/logo.svg" alt="Math is Fun" /></a></div>
<div id="advText">Advanced</div>
<div id="gtran"><script type="text/javascript">document.write(getTrans());</script></div>
<div id="gplus"><script type="text/javascript">document.write(getGPlus());</script></div>
<div id="adTopOuter" class="centerfull noprint">
<div id="adTop">
<script type="text/javascript">document.write(getAdTop());</script>
</div>
</div>
<div id="adHide">
<div id="showAds1"><a href="javascript:showAds()">Show Ads</a></div>
<div id="hideAds1"><a href="javascript:hideAds()">Hide Ads</a><br>
<a href="../about-ads.html">About Ads</a></div>
</div>
<div id="menuWide" class="menu">
<script type="text/javascript">document.write(getMenu(0));</script>
</div>
<div id="linkto">
<div id="linktort"><script type="text/javascript">document.write(getLinks());</script></div>
</div>
<div id="search" role="search"><script type="text/javascript">document.write(getSearch());</script></div>
<div id="menuSlim" class="menu">
<script type="text/javascript">document.write(getMenu(1));</script>
</div>
<div id="menuTiny" class="menu">
<script type="text/javascript">document.write(getMenu(2));</script>
</div>
<div id="extra"></div>
</div>
<div id="content" role="main"><!-- #BeginEditable "Body" -->
<h1 align="center">Function Transformations</h1>
<table border="0">
<tr>
<td><img src="../geometry/images/congruent-flip.svg" alt="move and flip" /></td>
<td>Just like <a href="../geometry/transformations.html">Transformations in Geometry</a>, we can move and resize the graphs of functions</td>
</tr>
</table>
<p>Let us start with a function, in this case it is <span class="large">f(x) = x<sup>2</sup></span>, but it could be anything:</p>
<p align="center"><img src="images/function-square.svg" alt="Square function" /></p>
<p align="center"><span class="larger"> f(x) = x<sup>2</sup></span></p>
<p>Here are some simple things we can do to move or scale it on the graph:</p>
<h3>We can move it up or down by adding a constant to the y-value:</h3>
<p align="center"><img src="images/function-translation-a.gif" alt="Translation" width="219" height="190" /></p>
<p align="center" src="images/function-translation-a.gif"><span class="larger">g(x) = x<sup>2</sup> + C</span></p>
<p>Note: to move the line <b>down</b>, we use a <b>negative</b> value for C. </p>
<ul>
<li>C &gt; 0 moves it up</li>
<li>C &lt; 0 moves it down</li>
</ul>
<h3>&nbsp;</h3>
<h3>We can move it left or right by adding a constant to the x-value:</h3>
<p align="center"><img src="images/function-translation-e.gif" alt="Translation" width="246" height="221" /></p>
<p align="center"><span class="larger">g(x) = (x+C)<sup>2</sup></span></p>
<div class="center80">
<p><span class="larger"><b>Adding C</b> moves the function to the <b>left</b> (the negative direction).</span> </p>
<p><b>Why?</b> Well imagine you will inherit a fortune when your <b>age=25</b>. If you change that to <b>(age+4) = 25</b> then you will get it when you are 21. Adding 4 made it happen earlier.</p>
</div>
<ul>
<li>C &gt; 0 moves it left</li>
<li>C &lt; 0 moves it right</li>
</ul>
<br>
<p>BUT we must <b>add C wherever x appears</b> in the function (we are <a href="../algebra/substitution.html">substituting</a> x+C for x).</p>
<div class="example">
<h3>Example: the function v(x) = x<sup>3</sup> - x<sup>2</sup> + 4x</h3>
<p>To move C spaces to the left, add C to x <b>wherever x appears</b>: </p>
<p class="center"><b>w(x) = (x <span class="hilite">+ C</span>)<sup>3</sup> &minus; (x <span class="hilite">+ C</span>)<sup>2</sup> + 4(x <span class="hilite">+ C</span>)</b></p>
</div>
<p>&nbsp;</p>
<div class="center80">
<p>An easy way to remember what happens to the graph when we add a constant:</p>
<p align="center" class="larger">add to <b>y</b> to go <b>high</b>
<br /> add to <b>x</b> to go <b>left</b></p>
</div>
<p>&nbsp;</p>
<h3>We can stretch or compress it in the y-direction by multiplying the whole function by a constant.</h3>
<p align="center"><img src="images/function-scaling-a.gif" alt="Scaling" width="217" height="222" /></p>
<p align="center"><span class="larger">g(x) = 0.35(x<sup>2</sup>)</span></p>
<ul>
<li>C &gt; 1 stretches it</li>
<li>0 &lt; C &lt; 1 compresses it</li>
</ul>
<h3>&nbsp;</h3>
<h3>We can stretch or compress it in the x-direction by multiplying x by a constant.</h3>
<p align="center"><img src="images/function-scaling-b.gif" alt="Scaling" width="161" height="221" /></p>
<p align="center"><span class="larger">g(x) = (2x)<sup>2</sup></span></p>
<ul>
<li>C &gt; 1 compresses it</li>
<li>0 &lt; C &lt; 1 stretches it</li>
</ul>
<p>Note that (unlike for the y-direction), <b>bigger</b> values cause more <b>compression</b>.</p>
<h3>&nbsp;</h3>
<h3>We can flip it upside down by multiplying the whole function by &minus;1:</h3>
<p align="center"><img src="images/function-scaling-c.gif" alt="Scaling" width="217" height="248" /></p>
<p align="center"><span class="larger">g(x) = &minus;(x<sup>2</sup>)</span></p>
<p>This is also called <b>reflection about the x-axis</b> (the axis where y=0)</p>
<p>We can combine a negative value with a scaling:</p>
<div class="example">
<p>Example: multiplying by &minus;2 will flip it upside down AND stretch it in the y-direction.</p>
</div>
<h3>&nbsp;</h3>
<h3>We can flip it left-right by multiplying the x-value by &minus;1:</h3>
<p align="center" src="images/function-scaling-d.gif"><img src="images/function-scaling-d.gif" alt="Scaling" width="246" height="221" /></p>
<p align="center"><span class="larger">g(x) = (&minus;x)<sup>2</sup></span></p>
<p><b>It really does flip it left and right!</b> But you can't see it, because <span class="larger">x<sup>2</sup></span> is <a href="../algebra/equation-symmetry.html">symmetrical about the y-axis</a>. So here is another example using <span class="larger">&radic;(x)</span>:</p>
<p align="center" src="images/function-scaling-d.gif"><img src="images/function-scaling-e.gif" alt="Scaling" width="221" height="137" /></p>
<p align="center"><span class="larger">g(x) = &radic;(&minus;x)</span></p>
<p>This is also called <b>reflection about the y-axis</b> (the axis where x=0)</p>
<h2>Summary</h2>
<div class="simple">
<table border="0" align="center">
<tr>
<td class="larger">y&nbsp;=&nbsp;f(x)&nbsp;+&nbsp;C</td>
<td>
<ul>
<li>C &gt; 0 moves it up</li>
<li>C &lt; 0 moves it down</li>
</ul>
</td>
</tr>
<tr>
<td class="larger">y&nbsp;=&nbsp;f(x&nbsp;+&nbsp;C)</td>
<td>
<ul>
<li>C &gt; 0 moves it left</li>
<li>C &lt; 0 moves it right</li>
</ul>
</td>
</tr>
<tr>
<td class="larger">y = Cf(x)</td>
<td>
<ul>
<li>C &gt; 1 stretches it in the y-direction</li>
<li>0 &lt; C &lt; 1 compresses it</li>
</ul>
</td>
</tr>
<tr>
<td class="larger">y = f(Cx)</td>
<td>
<ul>
<li>C &gt; 1 compresses it in the x-direction</li>
<li>0 &lt; C &lt; 1 stretches it</li>
</ul>
</td>
</tr>
<tr>
<td class="larger">y = &minus;f(x)</td>
<td>
<ul>
<li>Reflects it about x-axis</li>
</ul>
</td>
</tr>
<tr>
<td class="larger">y = f(&minus;x)</td>
<td>
<ul>
<li>Reflects it about y-axis</li>
</ul>
</td>
</tr>
</table>
</div>
<p>&nbsp;</p>
<h2>Examples</h2>
<div class="example">
<h3>Example: the function g(x) = 1/x</h3>
<p><i>Here are some things we can do:</i></p>
<div class="tbl">
<div class="row"><span class="left">Move 2 spaces up:</span><span class="right"><b>h(x) = 1/x + 2</b></span></div>
<div class="row"><span class="left">Move 3 spaces down:</span><span class="right"><b>h(x) = 1/x &minus; 3</b></span></div>
<div class="row"><span class="left">Move 4 spaces right:</span><span class="right"><b>h(x) = 1/(x&minus;4) </b><a href="../data/function-grapher15b4.html?func1=1/(x-4)&amp;xmin=-12&amp;xmax=12&amp;ymin=-8&amp;ymax=8">graph</a></span></div>
<div class="row"><span class="left">Move 5 spaces left:</span><span class="right"><b>h(x) = 1/(x+5)</b></span></div>
<div class="row"><span class="left">Stretch it by 2 in the y-direction:</span><span class="right"><b>h(x) = 2/x</b></span></div>
<div class="row"><span class="left">Compress it by 3 in the x-direction:</span><span class="right"><b>h(x) = 1/(3x)</b></span></div>
<div class="row"><span class="left">Flip it upside down:</span><span class="right"><b>h(x) = &minus;1/x</b></span></div>
</div>
</div>
<div class="example">
<h3>Example: the function v(x) = x<sup>3</sup> &minus; 4x</h3>
<p><i>Here are some things we can do:</i></p>
<div class="tbl">
<div class="row"><span class="left">Move 2 spaces up:</span><span class="right"><b>w(x) = x<sup>3</sup> &minus; 4x + 2</b></span></div>
<div class="row"><span class="left">Move 3 spaces down:</span><span class="right"><b>w(x) = x<sup>3</sup> &minus; 4x &minus; 3</b></span></div>
<div class="row"><span class="left">Move 4 spaces right:</span><span class="right"><b>w(x) = (x&minus;4)<sup>3</sup> &minus; 4(x&minus;4)</b></span></div>
<div class="row"><span class="left">Move 5 spaces left:</span><span class="right"><b>w(x) = (x+5)<sup>3</sup> &minus; 4(x+5)</b>&nbsp; <a href="../data/function-grapherf7a5.html?func1=x^3-4x&amp;func2=(x+5)^3-4(x+5)&amp;xmin=-12&amp;xmax=12&amp;ymin=-8&amp;ymax=8">graph</a></span></div>
<div class="row"><span class="left">Stretch it by 2 in the y-direction:</span><span class="right"><b>w(x) = 2(x<sup>3</sup> &minus; 4x)<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2x<sup>3</sup> &minus; 8x</b></span></div>
<div class="row"><span class="left">Compress it by 3 in the x-direction:</span><span class="right"><b>w(x) = (3x)<sup>3</sup> &minus; 4(3x)<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 27x<sup>3</sup> &minus; 12x</b></span></div>
<div class="row"><span class="left">Flip it upside down:</span><span class="right"><b>w(x) = &minus;x<sup>3</sup> + 4x</b></span></div>
</div>
</div>
<h2>All In One ... !</h2>
<p>We can do all transformation <b>in one go</b> using this:</p>
<p align="center" class="larger"><img src="images/function-transform-all.gif" alt="af( b(x + c) ) + d " width="295" height="62" />
<br /> </p>
<div class="dotpoint">
<p><span class="largest">a</span><span class="larger"> is vertical stretch/compression </span></p>
<ul>
<li>|a| &gt; 1 stretches
<br /> </li>
<li>|a| &lt; 1 compresses
<br /> </li>
<li>a &lt; 0 flips the graph upside down</li>
</ul>
</div>
<div class="dotpoint">
<p><span class="largest">b</span><span class="larger"> is horizontal stretch/compression</span></p>
<ul>
<li>|b| &gt; 1 compresses
<br /> </li>
<li>|b| &lt; 1 stretches
<br /> </li>
<li>b &lt; 0 flips the graph left-right</li>
</ul>
</div>
<div class="dotpoint">
<p> <span class="largest">c</span><span class="larger"> is horizontal shift </span></p>
<ul>
<li>c &lt; 0 shifts to the right
<br /> </li>
<li>c &gt; 0 shifts to the left</li>
</ul>
</div>
<div class="dotpoint">
<p><span class="largest">d</span><span class="larger"> is vertical shift</span></p>
<ul>
<li>d &gt; 0 shifts upward
<br /> </li>
<li>d &lt; 0 shifts downward</li>
</ul>
</div>
<p>&nbsp;</p>
<div class="example">
<h3>Example: 2&radic;(x+1)+1</h3>
<p align="center">a=2, c=1, d=1</p>
<p>So it takes the square root function, and then</p>
<ul>
<li>Stretches it by 2 in the y-direction </li>
<li>Shifts it left 1, and</li>
<li>Shifts it up 1 </li>
</ul>
<p><a href="../data/function-grapher77bb.html?func1=sqrt(x)&amp;func2=2*sqrt(1*(x+1))+1&amp;xmin=-12&amp;xmax=12&amp;ymin=-8&amp;ymax=8">Play with this graph</a></p>
</div>
<p>&nbsp;</p>
<div class="questions">
<script type="text/javascript">
getQ(7260, 7261, 7262, 7267, 7268, 555, 556, 557, 558, 1191);
</script>&nbsp; </div>
<div class="related"><a href="function.html">What is a Function?</a> <a href="../algebra/index.html">Algebra Index</a></div>
<!-- #EndEditable --></div>
<div id="adend" class="centerfull noprint">
<script type="text/javascript">document.write(getAdEnd());</script>
</div>
<div id="footer" class="centerfull noprint">
<script type="text/javascript">document.write(getFooter());</script>
</div>
<div id="copyrt">
Copyright &copy; 2017 MathsIsFun.com
</div>
<script type="text/javascript">document.write(getBodyEnd());</script>
</body>
<!-- #EndTemplate -->
<!-- Mirrored from www.mathsisfun.com/sets/function-transformations.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 01:00:39 GMT -->
</html>