Two earlier posts provide background information for this one: Function Translations and Function Dilations. If you are not already familiar with these topics, you may benefit from reading those first.

Given two points on a curve and their corresponding points after transformation, how does one determine the underlying transformations? Since two dilations and two translations may be taking place, it can be complex to try to separate the effects of dilation from those of translation.

As an example, consider the two curves above. The green curve is the graph of

and the red curve is a transformation of the green one. Two points are labeled on the green curve:

and their corresponding transformed points are labeled on the red curve:

The challenge is to determine what combination of horizontal and vertical transformations turn the green graph into the red one, and from there determine the equation of the transformed graph.

### Finding the Horizontal Transformation

Dilations result from multiplication (or division), and translations result from addition (or subtraction). Combining the two transformations produces the equation:

Or, verbally, the original x-coordinate has been dilated by a factor *d*, then translated by *t, *to produce the transformed x-coordinate . The order of operations forces us to apply the dilation factor before adding the translation amount.

We can now use the pair of points on the green curve and their corresponding transformed points on the red curve to solve for *d* and *t*. Looking only at the x-coordinates of the points and their transformations, we see that

1 => -3

2 => -7

and we can substitute each of these pairs into the equation above to produce a system of two equations and two unknowns:

Solving this system by subtracting the two equations produces:

and substituting this result back into the first equation produces:

so the horizontal transformation of the green function that produces the red function is:

### Finding the Vertical Transformation

Using the same reasoning about the nature of dilations and translations, and the same approach as above, the vertical transformation can be modeled using the equation:

and the two sets of y-coordinates from the green points and their corresponding transformed red points:

1 => 1

2 => 3

which lead to the two equations:

and their solution:

so the vertical transformation of the green function that produces the red function is:

### The Transformed Function

Now that we have calculated the two transformations

what is the equation of transformed red graph? The green graph has the equation:

so we can apply the vertical transformation to it by substituting the equation above into the transformation equation for above:

then apply the horizontal transfomation… but there is one more step needed before we can do so. Note that the equation for the green graph above has an in it, but our horizontal transformation equation above is solved for . So, we need to solve it for ,

The steps above convert the transformation equation from a form where the dilation factor (-4) and translation amount (+1) are both easily read directly

into the form you are used to seeing for horizontal transformations, where the reciprocal of the horizontal dilation factor and the negative of the horizontal translation amount appear

We can now subsitute the above for in the equation that resulted from applying the vertical transformations. The substituted text is in **bold**:

And we have finally arrived at the equation for the red graph , expressed as vertical and horizontal transformations of the green graph :