In the previous section, we discussed how basic arithmetic affects the number line. Now we want to see how post-composition with arithmetic functions (i.e., applying arithmetic operations after a known function) affects the function and its resulting two-dimensional graph.
For example, given the function, k, that goes through the points:
| x | y = k(x) |
| -4 -1 0 1 4 |
1 -1 0 1 -3 |
consider how post-composition with a function, f, affects this function numerically and algebraically. Algebraically, post-composition gives , that is, the function f is applied after (on the "outside" of) k. Numerically, computing simply involves applying f to the outputs of k.
For example, consider post-composition with each of the arithmetic operations from the previous section:
| x | y = k(x) + 1 |
| -4 -1 0 1 4 |
2 0 1 2 -2 |
| x | y = 2k(x) |
| -4 -1 0 1 4 |
2 -2 0 2 -6 |
| x | y = -k(x) |
| -4 -1 0 1 4 |
-1 1 0 -1 3 |
Applying several operations at once is no more difficult; if r(x) = -2x + 1, so (i.e., " take the input, multiply by 2, multiply by -1, and add 1"), then , and:
| x | y = -2k(x) + 1 |
| -4 -1 0 1 4 |
-1 3 1 -1 7 |
For example, since "add 1" shifts the number line by 1 unit in the positive direction, the graph of y = k(x) + 1 should look like the graph of y = k(x), but shifted up one unit. We can use XFunctions to quickly verify this.
| x | y = k(x) | x | y = k(x) + 1 | |
| -4 -1 0 1 4 |
1 -1 0 1 -3 |
and | -4 -1 0 1 4 |
2 0 1 2 -2 |
as predicted, and the second graph is shifted up by 1 unit.
Similarly, since "multiply by 2" stretches the number line by a factor of 2, the graph of y = 2k(x) should look like the graph of y = k(x), but stretched vertically by a factor of 2. Since XFunctions allows us not only to pre-define functions, but also sets of graphs, we can verify this even more easily.
| x | y = k(x) | x | y = 2k(x) | |
| -4 -1 0 1 4 |
1 -1 0 1 -3 |
and | -4 -1 0 1 4 |
2 -2 0 2 -6 |
as predicted, and the second graph is stretched vertically (away from the x-axis) by a factor of 2.
We can also verify that negation acts as expected.
| 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 vertically (around the x-axis).
Finally, even when we apply several operations, we only need to consider the order of composition. For example, the graph of should look like the graph of y = k(x), but stretched vertically by a factor of 2 (g(x) = 2x), flipped vertically (h(x) = -x), and shifted up by 1 (f(x) = x + 1). We can see this easily in XFunctions:
This will allow you to compare the graphs at each successive step; simply select each successive example from the top menu. Note: As usual, these appear at the bottom of the menu. The last example shows all the graphs at once.
We can see that the outputs of -2k(x) + 1 are -2 times those of k plus 1:
| x | k(x) | 2k(x) | -2k(x) | -2k(x) + 1 |
| -4 -1 0 1 4 |
1 -1 0 1 -3 |
2 -2 0 2 -6 |
-2 2 0 -2 6 |
-1 3 1 -1 7 |
and how, from a geometric perspective, these operations take the original graph of k(x) and:
Note: Once we have learned how each operation works separately, the most difficult part of this analysis is to correctly decompose the expression in the correct order; that is because the order of composition does not tend to follow the order in which the operations are written algebraically (in fact, since evaluation works "inside-out", it tends to be somewhat backwards of the written order).
To summarize, we have seen that:
While we have showed that this principle applies to composition of a function with any other function, since most other functions are much harder to describe geometrically, we will use this graphing principle primarily in these three cases of multiplication and addition with constants.
On the following worksheet,
we will introduce a technique to analyze a known function
composed with arithmetic operations to create an accurate sketch.
Go to Graphing and Linear Functions
| Table of Contents | Glossary |