In this explainer, we will learn how to identify function transformations involving horizontal and vertical stretches or compressions.

When working with functions, we are often interested in obtaining the graph as a means of visualizing and understanding the general behavior. Coupled with the knowledge of specific information such as the roots, the -intercept, and any maxima or minima, plotting a graph of the function can provide a complete picture of the exact, known behavior as well as a more general, qualitative understanding. Once an expression for a function has been given or obtained, we will often be interested in how this function can be written algebraically when it is subjected to geometric transformations such as rotations, reflections, translations, and dilations.

In this explainer, we will investigate the concept of a dilation, which is an umbrella term for stretching or compressing a function (in this case, in either the horizontal or vertical direction) by a fixed scale factor. Geometrically, such transformations can sometimes be fairly intuitive to visualize, although their algebraic interpretation can seem a little counterintuitive, especially when stretching in the horizontal direction. Accordingly, we will begin by studying dilations in the vertical direction before building to this slightly trickier form of dilation.

### Definition: Dilation in the Vertical Direction

Consider a function , plotted in the -plane. We stretch it in the vertical direction by a scale factor of , causing the transformation . Furthermore, the roots of the function are unchanged, as are the -coordinates of any turning points. The value of the -intercept, as well as the -coordinate of any turning point, will be multiplied by the scale factor.

We will demonstrate this definition by working with the quadratic . We will not give the reasoning here, but this function has two roots, one when and one when , with a -intercept of , as well as a minimum at the point . The plot of the function is given below.

Now we will stretch the function in the vertical direction by a scale factor of 3. According to our definition, this means that we will need to apply the transformation and hence sketch the function

We could investigate this new function and we would find that the location of the roots is unchanged. However, both the -intercept and the minimum point have moved. The value of the -intercept has been multiplied by the scale factor of 3 and now has the value of . Although we will not give the working here, the -coordinate of the minimum is also unchanged, although the new -coordinate is thrice the previous value, meaning that the location of the new minimum point is . This information is summarized on the plot below, with the original function plotted in blue and the new function plotted in purple.

Equally, we could have chosen to compress the function by stretching it in the vertical direction by a scale factor of a number between 0 and 1. For example, suppose that we chose to stretch it in the vertical direction by a scale factor of by applying the transformation . We would then plot the function

This new function has the same roots as but the value of the -intercept is now . Furthermore, the location of the minimum point is . This new function is plotted below in gold, superimposed over the previous plot.

At this point it is worth noting that we have only dilated a function in the vertical direction by a positive scale factor. Had we chosen
a negative scale factor, we also would have *reflected* the function in the horizontal axis. This makes sense, as it is well-known that
a function can be reflected in the horizontal axis by applying the transformation
. For example, stretching the function in the vertical direction by a scale factor of
can be thought of as first stretching the function with the transformation , and then reflecting it by further letting .
This allows us to think about reflecting a function in the horizontal axis as stretching it in the vertical direction by a scale factor of
.

Suppose that we had decided to stretch the given function by a scale factor of in the horizontal direction by using the transformation . Then, we would have been plotting the function

Once again, the roots of this function are unchanged, but the -intercept has been multiplied by a scale factor of and now has the value 4. The -coordinate of the minimum is unchanged, but the -coordinate has been multiplied by the scale factor. The new turning point is , but this is now a local maximum as opposed to a local minimum. The new function is plotted below in green and is overlaid over the previous plot. We can see that the new function is a reflection of the function in the horizontal axis.

### Example 1: Expressing Vertical Dilations Using Function Notation

The function is stretched in the vertical direction by a scale factor of . Write, in terms of , the equation of the transformed function.

### Answer

Stretching a function in the vertical direction by a scale factor of will give the transformation . Since the given scale factor is , the new function is .

At first, working with dilations in the horizontal direction can feel counterintuitive. Much as this is the case, we will approach the treatment of dilations in the horizontal direction through much the same framework as the one for dilations in the vertical direction, discussing the effects on key points such as the roots, the -intercepts, and the turning points of the function that we are interested in. We will begin with a relevant definition and then will demonstrate these changes by referencing the same quadratic function that we previously used.

### Definition: Dilation in the Horizontal Direction

Consider a function , plotted in the -plane. We stretch it in the horizontal direction by a scale factor of by creating the new function . The value of the -intercept, as well as the -coordinate of any turning point, will be unchanged. The roots of the function are multiplied by the scale factor, as are the -coordinates of any turning points.

We will use the same function as before to understand dilations in the horizontal direction. As a reminder, we had the quadratic function , the graph of which is below. We know that this function has two roots when and , also having a -intercept of , and -plane a minimum point with the coordinate .

We will first demonstrate the effects of dilation in the horizontal direction. We will choose an arbitrary scale factor of 2 by using the transformation , and our definition implies that we should then plot the function

If we were to analyze this function, then we would find that the -intercept is unchanged and that the -coordinate of the minimum point is also unaffected. The roots of the original function were at and , and we can see that the roots of the new function have been multiplied by the scale factor and are found at and respectively. It is difficult to tell from the diagram, but the -coordinate of the minimum point has also been multiplied by the scale factor, meaning that the minimum point now has the coordinate , whereas for the original function it was . This information is summarized in the diagram below, where the original function is plotted in blue and the dilated function is plotted in purple.

We will now further explore the definition above by stretching the function by a scale factor that is between 0 and 1, and in this case we will choose the scale factor . To create this dilation effect from the original function, we use the transformation , meaning that we should plot the function

In this new function, the -intercept and the -coordinate of the turning point are not affected. However, we could deduce that the value of the roots has been halved, with the roots now being at and . Additionally, the -coordinate of the turning point has also been halved, meaning that the new location is . This is summarized in the plot below, albeit not with the greatest clarity, where the new function is plotted in gold and overlaid over the previous plot.

In our final demonstration, we will exhibit the effects of dilation in the horizontal direction by a negative scale factor. As with dilation in the vertical direction, we anticipate that there will be a reflection involved, although this time in the horizontal axis instead of the vertical axis. We will choose to dilate the function in the horizontal direction by a scale factor of , which will require the transformation . We would then plot the following function:

This new function has the same -intercept as , and the -coordinate of the turning point is not altered by this dilation. However, the roots of the new function have been multiplied by and are now at and , whereas previously they were at and respectively. The -coordinate of the turning point has also been multiplied by the scale factor and the new location of the turning point is at . We have plotted the graph of the dilated function below, where we can see the effect of the reflection in the vertical axis combined with the stretching effect. For the sake of clarity, we have only plotted the original function in blue and the new function in purple.

### Example 2: Expressing Horizontal Dilations Using Function Notation

The function is stretched in the horizontal direction by a scale factor of 2. Write, in terms of , the equation of the transformed function.

### Answer

Stretching a function in the horizontal direction by a scale factor of will give the transformation . Since the given scale factor is 2, the transformation is and hence the new function is .

As we have previously mentioned, it can be helpful to understand dilations in terms of the effects that they have on key points of a function, such as the -intercept, the roots, and the locations of any turning points. If this information is known precisely, then it will usually be enough to infer the specific dilation without further investigation. If we are working exclusively with a dilation in the vertical direction, then the -coordinates of any key points will be unaffected. Similarly, if we are working exclusively with a dilation in the horizontal direction, then the -coordinates will be unaffected. We will use this approach throughout the remainder of the examples in this explainer, where we will only ever be dilating in either the vertical or the horizontal direction.

### Example 3: Identifying the Graph of a Given Function Following a Dilation

The figure shows the graph of .

Which of the following is the graph of ?

### Answer

The function represents a dilation in the vertical direction by a scale factor of , meaning that this is a compression. Given that we are dilating the function in the vertical direction, the -coordinates of any key points will not be affected, and we will give our attention to the -coordinates instead.

This means that we can ignore the roots of the function, and instead we will focus on the -intercept of , which appears to be at the point . If we were to plot the function , then we would be halving the -coordinate, hence giving the new -intercept at the point . From the graphs given, the only graph that respects this property is option (e), meaning that this must be the correct choice. Note that the roots of this graph are unaffected by the given dilation, which gives an indication that we have made the correct choice.

The next question gives a fairly typical example of graph transformations, wherein a given dilation is shown graphically and then we are asked to determine the precise algebraic transformation that represents this. Much as the question style is slightly more advanced than the previous example, the main approach is largely unchanged. By paying attention to the behavior of the key points, we will see that we can quickly infer this information with little other investigation.

### Example 4: Expressing a Dilation Using Function Notation Where the Dilation Is Shown Graphically

The red graph in the figure represents the equation and the green graph represents the equation . Express as a transformation of .

### Answer

We will begin by noting the key points of the function , plotted in red. Firstly, the -intercept is at the origin, hence the point , meaning that it is also a root of . Dilating in either the vertical or the horizontal direction will have no effect on this point, so we will ignore it henceforth.

Just by looking at the graph, we can see that the function has been stretched in the horizontal direction, which would indicate that the function has been dilated in the horizontal direction. To make this argument more precise, we note that in addition to the root at the origin, there are also roots of when and , hence being at the points and . However, in the new function , plotted in green, we can see that there are roots when and , hence being at the points and . This indicates that we have dilated by a scale factor of 2. The distance from the roots to the origin has doubled, which means that we have indeed dilated the function in the horizontal direction by a factor of 2.

We should double check that the changes in any turning points are consistent with this understanding. We can see that there is a local maximum of , which is to the left of the vertical axis, and that there is a local minimum to the right of the vertical axis. Now comparing to , we can see that the -coordinate of these turning points appears to have doubled, whereas the -coordinate has not changed. Although this does not entirely confirm what we have found, since we cannot be accurate with the turning points on the graph, it certainly looks as though it agrees with our solution. Therefore, we have the relationship .

### Example 5: Finding the Coordinates of a Point on a Curve After the Original Function Is Dilated

The figure shows the graph of and the point . The point is a local maximum. Identify the corresponding local maximum for the transformation .

### Answer

The transformation represents a dilation in the horizontal direction by a scale factor of . This will halve the value of the -coordinates of the key points, without affecting the -coordinates. In particular, the roots of at and , respectively, have the coordinates and , which also happen to be the two local minimums of the function. When considering the function , the -coordinates will change and hence give the new roots at and , which will, respectively, have the coordinates and . Regarding the local maximum at the point , the -coordinate will be halved and the -coordinate will be unaffected, meaning that the local maximum of will be at the point .

This explainer has so far worked with functions that were continuous when defined over the real axis, with all behaviors being βsmooth,β even if they are complicated. This does not have to be the case, and we can instead work with a function that is not continuous or is otherwise described in a piecewise manner. In these situations, it is not quite proper to use terminology such as βinterceptβ or βroot,β since these terms are normally reserved for use with continuous functions. However, the principles still apply and we can proceed with these problems by referencing certain key points and the effects that these will experience under vertical or horizontal dilations.

### Example 6: Identifying the Graph of a Given Function following a Dilation

The diagram shows the graph of the function for .

Which of the following shows the graph of ?

### Answer

We note that the function intersects the -axis at the point and that the function appears to cross the -axis at the points and . There are other points which are easy to identify and write in coordinate form. For example, the points , and .

The dilation corresponds to a compression in the vertical direction by a factor of 3. This means that the function should be βsquashedβ by a factor of 3 parallel to the -axis. In terms of the effects on known coordinates of the function, any noted points will have their -coordinate unaffected and their -coordinate will be divided by 3. Referring to the key points in the previous paragraph, these will transform to the following, respectively: , , , , and .

The only graph where the function passes through these coordinates is option (c). We can confirm visually that this function does seem to have been squished in the vertical direction by a factor of 3.

In this explainer, we only worked with dilations that were strictly either in the vertical axis or in the horizontal axis; we did not consider a dilation that occurs in both directions simultaneously. Such transformations can be hard to picture, even with the assistance of accurate graphing tools, especially if either of the scale factors is negative (meaning that either involves a reflection about the axis). The result, however, is actually very simple to state. Suppose that there is a function and we wish to dilate this by a scale factor of in the vertical direction and a scale factor of in the horizontal direction. Then, we would obtain the new function by virtue of the transformation

In many ways, our work so far in this explainer can be summarized with the following result, which describes the effect of a simultaneous dilation in both axes. Suppose that we take any coordinate on the graph of this the new function, which we will label . Now take the original function and dilate it by a scale factor of in the vertical direction and a scale factor of in the horizontal direction to give a new function . Then, the point lays on the graph of . This result generalizes the earlier results about special points such as intercepts, roots, and turning points.

### Key Points

- A function can be dilated in the vertical direction by a scale factor of by creating the new function .
- When dilating a function in the vertical direction, the roots of the function are unchanged, as are the -coordinates of any turning points.
- When dilating in the vertical direction, the value of the -intercept, as well as the -coordinate of any turning point, will also be multiplied by the scale factor.
- When dilating in the vertical direction by a negative scale factor, the function will be reflected in the horizontal axis, in addition to the stretching/compressing effect that occurs when the scale factor is not equal to negative one. This transformation will turn local minima into local maxima, and vice versa.
- A function can be dilated in the horizontal direction by a scale factor of by creating the new function .
- When dilating in the horizontal direction, the -intercept of the function is unchanged, as is the -coordinate of any turning point.
- When dilating in the horizontal direction, the roots of the function are stretched by the scale factor, as will be the -coordinate of any turning points.
- When dilating in the horizontal direction by a negative scale factor, the function will be reflected in the vertical axis, in addition to the stretching/compressing effect that occurs when the scale factor is not equal to negative one. This transformation does not affect the classification of turning points.
- We can dilate in both directions, with a scale factor of in the vertical direction and a scale factor of in the horizontal direction, by using the transformation .