Transforming general graphs
We learned how to transform the graphs of power functions and the trigonometric function :
where the parameters and tells you by how much the graph of or are stretched in -direction (by ), then stretched in -direction (by ), then shifted left or right (by ), and finally shifted up or down (by ).
As a side remark, note that we did not use the parameter (-direction) for the power function. We could do this, and then it would look as follows:
The reason why this is not necessary is that we can always write
that is, we can replace stretching in -direction by by the transformation stretch in -direction by . Think about it: draw the graph of and stretch in in -direction by the factor of - it gets wider. Let's call this graph . But it is easy to find a value to stretch the graph of in -direction to obtain the same graph: . Indeed, for we get the same graph , as a table of values quickly shows.
We can transform any function in this way. We will discuss this in a moment, but let's first revisit the notation of a function, as this will be essential for what follows.
Consider a function , say
Recall that this notation defines a machine. The wrapped in the brackets after the stands for the input of the machine . The algebraic formula determines what to do with the input to produce the output of the machine. So perhaps a more intuitive notation would be to use a container instead of the letter , like
and whatever is in the container in appears also in the containers in the formula. This container notation might resolve a lot of confusing issues surrounding the notation of functions, but alas, we tend not to use this notation. So instead of
we simply write
Importantly, if we write xx^2-4x+1xf(..)$ to dertermine the output_. For example,
Notice that
- in the third example we have to wrap the input into brackets in te formula, so that the input is squared: we cannot write . The way we treat and , this would not square the input , only , and it would not multiply the input by , only .
- some inputs lead to new functions, e.g. , so we could write
- for some inputs, like house, the formula does not make sense in terms of adding and multiplying, but this is okey.
Let's assume we have a starting function , whose graph is shown below. Let's apply each type of transformation to the graph of and see what the function equation of the resulting graph looks like.
- Stretching in -direction by factor .