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:
y = x
y = x^2
y = \sqrt{x} (denoted by sqrt(x) )
y = x^3
y = |x| (denoted by abs(x))
y = 1/x
\sin(x)
If the function \sin(x) 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.
Click to the left again to hide and once more to show the dynamic interactive window |
For each of the following exercises, type the following expressions into the boxes below.
Exercise 1: f(x) = x^2, \;\;\; g(x) = x^2 + 1, \;\;\; h(x) = x^2 - 2 (type x^2 to get the squaring function).
Exercise 2: f(x) = |x|, \;\;\; g(x) = |x + 3|, \;\;\; h(x) = |x - 4| (type abs(x), abs(x-1), abs(x+2) into the respective cells).
Exercise 3: f(x) = \sqrt{x}, \;\;\; g(x) = - \sqrt{x}, \;\;\; h(x) = \sqrt{-x} (type sqrt(x), - sqrt(x), sqrt(-x) into the respective cells).
Exercise 4: f(x) = \sin(x), \;\;\; g(x) = 5 * \sin(x), \;\;\; h(x) = (1/3)*\sin(x) (you must use * for multiplication).
Exercise 5: f(x) = \sin(x), \;\;\; g(x) = \sin(3*x), \;\;\; h(x) = \sin((1/2)*x) (you must use * for multiplication).
Click to the left again to hide and once more to show the dynamic interactive window |
1: How does the graph of f(x) + c compare to the graph of f(x)?
2: How does the graph of f(x+c) compare to the graph of f(x)?
3: How does the graph of -f(x) compare to the graph of f(x)? How does the graph of f(-x) compare to the graph of f(x)?
4: How does the graph of c*f(x) compare to the graph of f(x)?
5: How does the graph of f(c*x) compare to the graph of f(x)?
Use the drop-down menu to pick a toolkit function for f(x). Then use the sliders to pick
Click to the left again to hide and once more to show the dynamic interactive window |
Use the drop-down menu to pick a toolkit function for f(x). Then use the sliders to pick
Click to the left again to hide and once more to show the dynamic interactive window |
Challenge 1: Pick the function f(x) = abs(x) in the graph above. What value do you need to pick for b to make the graph stretch out horizontally by a factor of 2? Try it. Now, without changing the value of b that you just set, can you pick a value of a that brings the graph back onto the original gray function? What value of a do you need to use?
Challenge 2: Select the function f(x) = x^2. What value do you need to pick for b to make the graph stretch out horizontally by a factor of 2? Try it. Now, without changing the value of b that you just set, can you find a value of a that brings the graph back onto the original gray function? What value of a do you need to use?
Explain challenges 1 and 2 in terms of the functions' equations.
Try to make the blue function match the red function:
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
Click to the left again to hide and once more to show the dynamic interactive window |
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.
verbose 0 (4128: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate function at 140 points. verbose 0 (4128: plot.py, generate_plot_points) Last error message: '' verbose 0 (4128: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate function at 140 points. verbose 0 (4128: plot.py, generate_plot_points) Last error message: '' |
Did you guess correctly? Click on the cell below and then click on 'evaluate' to see the correct formula.
f(x) = f(x) = |
|
|
Try typing in the formula for ANY function! For example, try:
Click to the left again to hide and once more to show the dynamic interactive window |
1: How does the graph of f(x) + c compare to the graph of f(x)?
2: How does the graph of f(x+c) compare to the graph of f(x)?
3: How does the graph of -f(x) compare to the graph of f(x)? How does the graph of f(-x) compare to the graph of f(x)?
4: How does the graph of c*f(x) compare to the graph of f(x)?
5: How does the graph of f(c*x) compare to the graph of f(x)?
|
|