All published worksheets from http://sagenb.org
Image: ubuntu2004
Transformations of Functions Using Sage
by Susan Schmoyer (adapted by Linda Green)
In this worksheet you will learn how to graph functions using transformations. In particular, you will learn how horizontal and vertical shifts and stretches of the graph of a function affect the equation for the function.
Before you begin, make sure you know the graphs of our "toolkit" functions:
(denoted by sqrt(x) )
(denoted by abs(x))
If the function is new to you, that's okay. You don't need to know what it means, but you should familiarize yourself with its shape below.
Experiment A: transformations of toolkit functions.
For each of the following exercises, type the following expressions into the boxes below.
Exercise 1: (type x^2 to get the squaring function).
Exercise 2: (type abs(x), abs(x-1), abs(x+2) into the respective cells).
Exercise 3: (type sqrt(x), - sqrt(x), sqrt(-x) into the respective cells).
Exercise 4: (you must use * for multiplication).
Exercise 5: (you must use * for multiplication).
Generalize experiment A:
1: How does the graph of compare to the graph of ?
2: How does the graph of compare to the graph of ?
3: How does the graph of compare to the graph of ? How does the graph of compare to the graph of ?
4: How does the graph of compare to the graph of ?
5: How does the graph of compare to the graph of ?
Experiment B: combining shifts
Use the drop-down menu to pick a toolkit function for . Then use the sliders to pick
- , the vertical shift
- , the horizontal shift
Experiment C: Combining shifts and stretches
Use the drop-down menu to pick a toolkit function for . Then use the sliders to pick
- , the vertical stretch / shrink
- , the horizontal stretch / shrink
- , the vertical shift
- , the horizontal shift
Challenges for Experiment C (above):
Challenge 1: Pick the function in the graph above. What value do you need to pick for to make the graph stretch out horizontally by a factor of 2? Try it. Now, without changing the value of that you just set, can you pick a value of that brings the graph back onto the original gray function? What value of do you need to use?
Challenge 2: Select the function . What value do you need to pick for to make the graph stretch out horizontally by a factor of 2? Try it. Now, without changing the value of that you just set, can you find a value of that brings the graph back onto the original gray function? What value of do you need to use?
Explain challenges 1 and 2 in terms of the functions' equations.
Experiment D: Match the function
Try to make the blue function match the red function:
- Enter the correct toolkit function in the box
- Enter the vertical stretch / shrink (if any) in box
- Enter the horizontal stretch / shrink (if any) in box
- Enter the horizontal shift in box
- Enter the vertical shift in box
Once you have the blue function superimposed on the red one, you win!
To play again, click in the cell below and press Shift+Enter
Experiment E: Transformations Guessing Game
Guess the equation of the following function, graphed using transformations.
To get a new graph, click on the cell below, and press Shift-Enter.
To check your answer, evaluate the cell below the graph.
Did you guess correctly? Click on the cell below and then click on 'evaluate' to see the correct formula.
Experiment F: Go wild
Try typing in the formula for ANY function! For example, try:
- or anything else you like
Review:
1: How does the graph of compare to the graph of ?
2: How does the graph of compare to the graph of ?
3: How does the graph of compare to the graph of ? How does the graph of compare to the graph of ?
4: How does the graph of compare to the graph of ?
5: How does the graph of compare to the graph of ?