In a previous section, we examined how applying arithmetic operations after a given function affects it algebraically, numerically, and geometrically. We illustrated the resulting graphing principles by examining linear functions. Now we want to investigate the effects of applying operations before a given function, that is, by pre-composition.
As before, we will investigate the effects of pre-composition by using the function, k, going through the points:
| x | y = k(x) |
| -4 -1 0 1 4 |
1 -1 0 1 -3 |
Now consider how pre-composition with a function, f, affects this function numerically and algebraically. Algebraically, pre-composition gives , that is, the function f is applied before (on the "inside" of) k. Numerically, computing simply involves applying k to the outputs of f. This makes it a bit more difficult to compute a table of values for . We must compute those inputs of f which will evaluate to the given input values for k; that is, we must apply the inverse, f -1, to the inputs of k.
For example, consider pre-composition with each of the arithmetic operations from before:
| x | y = k(x + 1) |
| -5 -2 -1 0 3 |
1 -1 0 1 -3 |
| x | y = k(2x) |
| -2 -1/2 0 1/2 2 |
1 -1 0 1 -3 |
| x | y = -k(x) |
| 4 1 0 -1 -4 |
1 -1 0 1 -3 |
Since only the input values in each case have been affected, which are plotted horizontally, each of these pre-compositions should affect the graph horizontally, by transforming the horizontal axis. However, since the function is affected numerically by the inverse operations, we should expect the graph to be affected geometrically by the corresponding inverse operations.
For example, since the opposite of "add 1" is "subtract 1"", which shifts the number line by 1 unit in the negative direction, the graph of y = k(x + 1) should look like the graph of y = k(x), but shifted left one unit. We can use XFunctions to quickly verify this.
and select "Example: k(x) vs. k(x+1)" from the menu at the top of the applet.
| x | y = k(x) | x | y = k(x + 1) | |
| -4 -1 0 1 4 |
1 -1 0 1 -3 |
and | -5 -2 -1 0 3 |
1 -1 0 1 -3 |
as predicted, and the second graph is shifted left by 1 unit.
Similarly, the opposite of "multiply by 2" is "divide by 2", which shrinks the number line by a factor of 2. This suggests that the graph of y = k(2x) should look like the graph of y = k(x), but shrunk horizontally by a factor of 2.
| x | y = k(x) | x | y = k(2x) | |
| -4 -1 0 1 4 |
1 -1 0 1 -3 |
and | -2 -1/2 0 1/2 2 |
1 -1 0 1 -3 |
as predicted, and the second graph is shrunk horizontally (towards the the y-axis) by a factor of 2. Notice: Although k(2x) looks algebraically very similar to 2k(x), the effect of the factor of 2 is exactly opposite (horizontal vs. vertical, shrink vs. stretch). In general:
We can also verify that negation acts as expected. Since the opposite of "negation" is "negation", which flips the number line, we expect the graph of y = k(-x) to look like the graph of y = k(x), but flipped horizontally.
| x | y = k(x) | x | y = k(-x) | |
| -4 -1 0 1 4 |
1 -1 0 1 -3 |
and | 4 1 0 -1 -4 |
1 -1 0 1 -3 |
as predicted, and the second graph is flipped horizontally (around the y-axis).
Since pre-composition seems to work "backwards", it might not be such a surprise to see what happens when we apply a series of operations. For example, consider r(x) = -2x + 1, (i.e., : " take the input, multiply by 2, negate this, and add 1"). If we try to relate k(x) to k(-2x + 1) one step at a time, we can see that we should pre-compose with g, h, and f in reverse order; that is, start with k(x), then:
This will compare each successive pair of graphs; simply select each successive example from the top menu.
This behavior is actually not so strange, since we have already seen that, to invert a series of operations, we must apply the opposite of each operation in the reverse order. For example, since r(x) = -2x + 1 takes the input:
to apply r -1 to the inputs of k, we would need to:
This gives:
| x | x - 1 | -(x - 1) | r -1(x) = -(x - 1)/2 |
| -4 -1 0 1 4 |
-5 -2 -1 0 3 |
5 2 1 0 -3 |
5/2 1 1/2 0 -3/2 |
so that
| x | y = k(-2x + 1) |
| 5/2 1 1/2 0 -3/2 |
1 -1 0 1 -3 |
To summarize, we have seen that:
Notice that the geometric and numerical effects directly correspond, in that they both correspond to the reverse of the algebraic operation applied to the input variable, x. As with post-composition, while this principle applies to any functional operation, we will use this graphing principle primarily in these three cases of multiplication and addition with constants.
On the following worksheet,
we will refine our earlier
technique to analyze a known function
composed with arithmetic operations to create an accurate sketch.
Go to Transformational Graphing
| Table of Contents | Glossary |