Section 2.5: Pre-Composition and Graphing

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:

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.

  1. Use the following applet:

    and select "Example: k(x) vs. k(x+1)" from the menu at the top of the applet.

Notice that the two graphs do go through the points:
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.  

  1. Use the following applet for the next experiment. 

  2. Select "Example: k(x) vs. k(2x)" from the menu at the top of the applet.
Notice that the two graphs do go through the points:
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.  

  1. Use the following applet for the next experiment.  

  2. Select "Example: k(x) vs. k(-x)" from the menu at the top of the applet.
You can easily see that the two graphs do go through the points:
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:

  1. You can see this using the following applet:  
  2. 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
Check: For example, plugging in x = 5/2, gives k(-2(5/2) + 1) = k(-5 + 1) = k(-4) = 1.  

  1. You can use the above applet  to verify that these are points on the graph of k(-2x + 1) and that they correspond to the original points of k(x); simply select the Example from the top menu.

To summarize, we have seen that:

Operations done before applying the function (i.e., pre-composition) affect the graph horizontally.  Specifically:

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 Send questions or comments to jwicks@northpark.edu Glossary