Function Translations: How to recognize and analyze them

A function has been “translated” when it has been moved in a way that does not change its shape or rotate it in any way. A function can be translated either vertically, horizontally, or both. Other possible “transformations” of a function include dilation, reflection, and rotation.

Imagine a graph drawn on tracing paper or a transparency, then placed over a separate set of axes. If you move the graph left or right in the direction of the horizontal axis, without rotating it, you are “translating” the graph horizontally. Move the graph straight up or down in the direction of the vertical axis, and you are translating the graph vertically.

In the text that follows, we will explore how we know that the graph of a function like

g(x)=x^2-6x+10\\*~\\*~~~~~~~=(x-3)^2+1

can be described as a translation of the graph of

f(x)=x^2 ~~~~\text{translated right by 3, and up by 1}

Describing g(x) as a translation of a simpler-looking (and more familiar) function like f(x) makes it easier to understand and predict its behavior, and can make it easier to describe the behavior of complex-looking functions.

Vertical Translation

Consider the equation that describes the line that passes through the origin and has a slope of two:

f(x)=2x

What happens to the graph of this line if every value of f(x) has three added to it? The function g(x) is defined as the result of f(x) with three added to each result. If we then substitute the definition of f(x) from above for f(x), we get:

g(x)=f(x)+3\\*~\\*~~~~~~~=2x+3

Since f(x) produces the y-coordinate corresponding to x for every point on the original graph, adding 3 to each value moves every point on the graph up by 3.

Adding “+3” to the definition of f(x) causes the entire function to be “translated vertically” by a positive three.

This process works for any function, and is usually thought through in the reverse order: when looking at a more complex function, do you see a constant added or subtracted? If so, you can think of it as a vertical translation of the rest of the function:

g(x)=sin(x)+3\\*~\\*\text{is a vertical translation (by +3) of}\\*~\\*f(x)=sin(x)

Another example:

g(x)=\dfrac{1}{x}+k\\*~\\*\text{is a vertical translation (by k) of}\\*~\\*f(x)=\dfrac{1}{x}

Horizontal Translation

Consider the same function described at the beginning of the Vertical Translation section, which describes a line that passes through the origin with a slope of two:

f(x)~=~2(x)

What happens to the graph of this equation if every “x” in the equation is replaced by a value that is 4 less? We can describe this algebraically by evaluating f(x-4) instead of f(x), and let’s call this new function g(x):

g(x)~=~f(x-4)\\*~\\*~~~~~~~~=~2(x-4)

Now let’s compare the behaviors of f(x) and g(x):

f(1)~=~2~~~~g(5)~=~2\\*~\\*f(2)~=~4~~~~g(6)~=~4\\*~\\*f(3)~=~6~~~~g(7)~=~6

g(x) produces the same results as f(x), but only when its input values are four greater than the input to f(x). Comparing the graphs of the two functions, the graph of g(x) will have the same shape as f(x), but that shape has been shifted four units to the right along the x-axis.

A helpful way to think about the above (thanks to Michael Paul Goldenberg’s 2016 comment below) is to think of the independent variable “x” as measuring time in seconds. Therefore, “x-4” is 4 seconds earlier then “x”, and evaluating f(x-4) produces a result from 4 seconds earlier than time “x”. When we graph f(x-4), all of the results will appear to be 4 seconds later (to the right) than those on the graph of f(x).

The fact that substituting “x-4” for “x” produces a horizontal translation of +4 (not -4) is a source of errors when people get horizontal and vertical translation behaviors confused. One way to address this is to use a procedural approach whenever you see a variable with a constant added or subtracted (often together in a set of parentheses). To find the direction of the translation, set the transformation expression equal to zero and solve:

(x-4)~=~0\\*~\\*x~=~+4

The result will always give your the magnitude and direction of the translation (see Keep Your Eye On The Variable). This process works for any function:

g(x)~=~(x+3)^2\\*~\\*\text{if }f(x)~=~x^2\text{ then }\\*~\\*g(x)~=~f(x+3)

so set (x+3)~=~0 and solve for x. The graph of g(x) is the same as that of f(x) translated horizontally by -3. Or for

g(x)~=~(x+5)^2-3(x+5)+7\\*~\\*\text{if }f(x)~=~x^2-3x+7\text{ then }\\*~\\*g(x)~=~f(x+5)

the graph of g(x) is the same as that of f(x) translated horizontally by -5. Note that f(x+5) requires every instance of “x” in f(x) to have (x+5) substituted for it. So a function like g(x) will only be a horizontal translation of f(x) if every instance of “x” has the same constant added or subtracted. The notation g(x)=f(x+5) expresses this idea compactly and elegantly.

One last example:

g(x)~=~\dfrac{1}{x+k}\\*~\\*\text{if }f(x)=\dfrac{1}{x}\text{ then }\\*~\\*g(x)=f(x+k)

so the graph of g(x) is the same as that of f(x) translated horizontally by -k.

Reconciling Horizontal And Vertical Translations

Let’s re-examine why f(x)+3 translates a function in a positive vertical direction, yet f(x+3) translates the function in a negative horizontal direction.

This apparent difference in the way we analyze horizontal and vertical translations can be reconciled by treating both independent and dependent variables in the same manner. If

g(x)~=~(x+5)^2-3(x+5)+7

and we subtract 7 from both sides, it becomes:

(g(x)-7)~=~(x+5)^2-3(x+5)

Since every instance of g(x) occurs as a g(x)-7, and every instance of “x” occurs as (x+5), you may treat both g(x) and “x” as having been translated relative to a parent function, and you may analyze them both in exactly the same manner:
– what value of g(x) makes (g(x)-7)=0? Positive 7. So the translation in the g(x) direction, along the vertical axis, is positive 7.
– what value of “x” makes (x+5)=0? Negative 5. So the translation in the “x” direction, along the horizontal axis, is negative 5.

Therefore, if we define f(x) as shown below, a g(x) can be created which is translated horizontally by -5 and vertically by +7 when compared to f(x):

f(x)=x^2-3x\\*~\\*(g(x)-7)=f(x+5)\\*~\\*g(x)~=~(x+5)^2-3(x+5)+7\\*~\\*g(x)~=~x^2+7x+17

Equivalent Translations

In mathematics, it is often (but not always) possible to produce the same end result in different ways. When working with linear equations and using the approach described in the last section above, you may have wondered how to handle a situation such as:

f(x)~=~(x-4)

The above describes a horizontal translation by +4, but if we subtract 4 from both sides the equation becomes:

f(x)-4~=~x

which describes a vertical translation by -4. Are they both valid interpretations?

Since both of the above are valid algebraic manipulations of the same equation, they must both have the same graph. Imagine the graph of f(x)~=~x, which will be a line with a slope of one that passes through the origin. Now translate the graph vertically by +4. This translation will also cause the x-intercept to move… four to its left.

Equivalent translations do not always translate by the same distance. If the slope of the line is not 1, we need to translate by different amounts:

g(x)~=~2(x-2)\\*~\\*g(x)~=~2x-4\\*~\\*g(x)+4~=~2x

The first representation of g(x) above is a horizontal translation of f(x)~=~2x by +2, while the last one is a vertical translation by -4. Yet, they both describe the same graph. We could be even trickier if we wished to:

g(x)~=~2(x-2)\\*~\\*g(x)~=~2x-4\\*~\\*g(x)+2~=~2x-2\\*~\\*g(x)+2~=~2(x-1)

So, we can choose to describe g(x) as either:
– f(x) translated horizontally by +2 (1st line)
– f(x) translated vertically by  -4 (2nd line)
– f(x) translated vertically by -2 and horizontally by +1 (4th line)

Just as there are often multiple ways of describing something using English, a particular situation can often be described in more than one mathematically too.

 

Published by

Whit Ford

Math Tutor in Yarmouth, Maine

8 thoughts on “Function Translations: How to recognize and analyze them”

  1. Since reading this post and commenting on it, I’ve had an epiphany of sorts regarding horizontal transformations and why they seem to behave counterintuitively. Take as an example function f(x) = |x|. Compare the position of the vertex of the parent graph with that of g(x) = |x – 4|. As noted with other functions, the second graph is translated four units to the right. One way to think about this is to consider the independent variable, x, to be time. In that case, subtracting 4 from x DELAYS the outcome by 4 units of time. That means that things happen LATER than they would in the case of f(x), a shift of 4 units to the right.

    On the other hand, h(x) = |x + 4| would entail adding 4 units to x, ACCELERATING the outcome by 4 units of time (4 units EARLIER), and hence shifting the graph 4 units to the left.

    In the last couple of years, the vast majority of my students have found that a helpful metaphor that makes sense of the horizontal shifts of the graphs of various functions.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s