Properties of Functions I

Shifting and Stretching Transformations

f(x-h), A f(x), f(x) + k, A f(x-h) + k



Introduction

This section on stretching and shifting of graphs begins a summary of general properties of functions. Later sections will look at other properties, including domains and ranges as well as the various ways in which functions can be combined.

You have seen numerous examples of how graphs stretch and shift. You probably recall that

the transformation y = f(x-h) shifts the graph of y = f(x) by h units in the x direction,

the transformation y = f(x) + k shifts the graph of y = f(x) by k units in the y direction, and

the transformation y = A f(x) shifts the graph of y = f(x) by factor A from the x axis.

In this section we will begin by reviewing how the graphs of negative-p power functions behave under these transformations. The graphs of y = x^p for negative values of p have a convenient characteristic: they always have horizontal and vertical asymptotes that coincide with the x and y axes. This makes it easy to see how the graphs shift and stretch. We will then consider how the shifting and stretching behavior extends to arbitrary functions.

Review: Tables and Graphs of negative-power functions

The table below shows the values of x^p for x = -3, -2.5, -2, ..., +3 for powers p = -2, -3, -4 and -5.

x

x^-2

x^-3

x^-4

x^-5

-3

0.111111

-0.03704

0.012346

-0.00412

-2.5

0.16

-0.064

0.0256

-0.01024

-2

0.25

-0.125

0.0625

-0.03125

-1.5

0.444444

-0.2963

0.197531

-0.13169

-1

1

-1

1

-1

-0.5

4

-8

16

-32

0

#DIV/0!

#DIV/0!

#DIV/0!

#DIV/0!

0.5

4

8

16

32

1

1

1

1

1

1.5

0.444444

0.296296

0.197531

0.131687

2

0.25

0.125

0.0625

0.03125

2.5

0.16

0.064

0.0256

0.01024

3

0.111111

0.037037

0.012346

0.004115

Note the following patterns in the table:

The values in the x = -3 row alternate between positive and negative values. The same pattern occurs for the x = -2 and x = -1 rows.

The x = .5 and x = -.5 powers are the largest (absolute) numbers shown on the table.

The x = .5 and x = -.5 powers get further and further from 0 as the power p goes from -2 to -5.

The values in the x = 0 row all indicate division by 0. Recall that this is usually associated with a vertical asymptote.

The values for x = 1, 2 and 3 are identical to those for x = -1, -2 and -3, except for the negative signs that occur for odd powers of x.

The x = 2 and x = 3 values get closer and closer to zero as the power p goes from -2 to -5.

The figure below shows the approximate graphs of the functions between x = -1 and x = 1. The basic points corresponding to x = .5 are clearly indicated. Note how the points mimic the x = .5 row of the table.

Power functions, -1 < x < 1

negative_powers_-1_to_1.gif (7076 bytes)

The odd-powered functions (in red, if you are viewing in color), alternate with the even-powered functions to the right of the y axis, where x is positive. To the left of the y axis, the graphs alternate between the positive p functions (p = 2 and 4), which lie above the x axis, and the negative p functions (p = 3 and 5), which lie below the x axis.

The graphs of all the functions approach the y axis as an asymptote, reflecting how division by smaller and smaller values gives absolute values which are larger and larger.

Exercises 1-2

Stretching and shifting of graphs of negative-power functions

Vertical and Horizontal Shifting

You will recall that replacing x by x-h will shift a graph h units to the right, while adding k to the y value will raise the graph k units. You will also recall that multiplying y values by a number A will move all graph points A times as far from the x axis.

We will investigate these ideas for the negative-power functions.

The graphs below show the same functions as in the previous graph, but with x values from -2 to 2.  The asymptotic approach of all graphs to the x and y axes is clearly shown on these graphs.

negative_power_functions_-2_to_2.gif (6766 bytes)

We now consider what happens to the graph of y = x^-2 when we replace x by (x-.7), and then when we add -1.5 to y.  Each of these processes is thought of as a transformation of the graph of the function on which it is performed.

The table below  shows the effect of each transformation.

           x

    x^-2

  (x-.7)^-2

(x-.7)^-2 - 1.5

-2.1

0.226757

0.127551

-1.37245

-1.4

0.510204

0.226757

-1.27324

-0.7

2.040816

0.510204

-0.9898

0

#DIV/0!

2.040816

0.540816

0.7

2.040816

#DIV/0!

#DIV/0!

1.4

0.510204

2.040816

0.540816

2.1

0.226757

0.510204

-0.9898

Note that the x values change by increments of .7.

When we replace x by (x-.7), we obtain the function y = (x-.7)^-2, with values indicated in the third column. Note how the division by 0 occurs when x = .7, compared to x = 0 as with the original y = x^-2 function. This is easy enough to understand, since when x = .7, y = (x - .7) ^-2 will equal 0^-2, or 1 / 0^2.

We can see similarly that every y value in the (x-.7)^2 column is displaced 1 position downward (in the direction of positive x) from the corresponding value in the x^-2 column.

This displacement of y values in the positive x direction corresponds to a shift of the graph .7 units to the right.

The graph below shows the y = x^2 function as the thick solid (black) line and the y = (x-.7) ^ -2 graph as the thin (blue) line (note that this graph is mislabeled as y = (x-.7)^2, and in green).  The vertical asymptote at x = .7, corresponding to division by zero, is shown and labeled in green.  It is clear that the graph and its vertical asymptote have shifted .7 units to the right.

horizontal_and_vertical_shifts_of_y=x^-2.gif (6600 bytes)

The thick (red) dotted line shows the graph that results when we add -1.5 to y = (x-.7)^-2, obtaining y = (x-.7)^-2 - 1.5.  The table shows how the y values of this function, shown in the last column, are uniformly 1.5 units lower than in the y = (x-.7)^-2 column.  The graph shows how the entire graph of y = (x-.7)^-2 - 1.5 is uniformly shifted 1.5 units lower.  This shift moves the horizontal asymptote, the x axis for the first two graphs, 1.5 units lower to y = -1.5.

The shifting of the graph of y = (x-.7)^-2 - 1.5 is clearly shown by the way the original asymptotes, the x and y axes, are shifted so as to meet at (.7, -1.5) rather than (0,0).  This demonstrates the horizontal shift of .7 units and the vertical shift of -1.5 units.

Vertical Stretching

Vertical stretching is the result of multiplying a function by a number.   To multiply a function y = f(x) by a number, we multiply all its y values by that number.  If we multiply y = f(x) by the number c we obtain y = c f(x).

If we multiply the y values of a function by 2, we double all the y values. Since y values are represented on the graph as distances from the x axis, multiplying the values of a function by 2 has the effect of moving every point twice as far from the x axis.   If we multiply y = f(x) by 2 we get y = 2 f(x).

If we were to multiply all y values by .5, we would move every point twice as close to the x axis.  If we multiply y = f(x) by .5 we get y = .5 f(x).

If we multiply the y values by a negative number, then every point above the x axis, which must represent a positive y value, will move below the x axis, representing the resulting negative value that results when we multiply the original positive y value by a negative number. Similarly, since every point below the x axis represents a negative y value which will become positive when multiplied by our negative number, points below the x axis will move above the x axis. Thus the graph is inverted in addition to being stretched.

The table below represents the results of multiplying the y = x^-3 function by 3 and by -5. The resulting functions are y = 3 x^-3 and y = -5 x^-3.

x

x^-3

3 x^-3

-5 x^-3

-2

-0.125

-0.375

0.625

-1.5

-0.2963

-0.88889

1.481481

-1

-1

-3

5

-0.5

-8

-24

40

0

#DIV/0!

#DIV/0!

#DIV/0!

0.5

8

24

-40

1

1

3

-5

1.5

0.296296

0.888889

-1.48148

2

0.125

0.375

-0.625

The table clearly shows in the x = .5 row, for example, how the values of 3 x^-3 and -5 x^-3 are respectively 3 and -5 times as great as the values of the y = x^-3 function. You should look at the other rows and verify that the same pattern occurs.

The x = 0 row clearly shows that in all cases, if x = 0 we have division by 0. Once again we see that as we divide by smaller and smaller numbers we get larger and larger numbers, resulting in a vertical asymptote at x = 0.

It is also clear that when the y = x^3 column is positive, the y = 3 x^3 column is positive and the y = -5 x^3 is negative.

The graph below shows these behaviors very clearly.

y=x^-3_y=3x^-3_y=-5x^-3.gif (5988 bytes)

The original y = x^3 graph is shown by the solid black line. The graph shows how the y values are positive when x is positive and negative when x is negative. It also shows how the y values increase in magnitude as x approaches 0, forming the vertical asymptote at y = 0, and how the y values approach the

y = 0 asymptote (the x axis) when x becomes large.

The y = 3 x^3 graph is shown by the light (blue) dotted line. For any given x value, the point on the y = 3 x^3 will be three times as far from the x axis as the y = x^3 point. This is indicated for an x value of approximately -1.2. You should look at several other points and convince yourself that the same sort of statement could be made for those points.

The y = -5 x^3 graph is shown by the heavy (red) dotted line. As indicated a y = -5 x^3 point is 5 times as far from the x axis as the y = x^3 point, and on the other side of the x axis. You should check this behavior out for several other points.

Exercises 3-5

3. For the function y = (x-1.7) ^ -4, show how division by 0 occurs at x = 1.7.

Show by evaluating the function at x = 1.5, 1.6, 1.8 and 1.9 we can see how a vertical asymptote forms at the line x = 1.7.

4. Construct a table showing how the y = x^-3 function can be transformed first into y = (x - .4) ^ -3, then into y = -2 (x - .4) ^ -3, and finally into y = -2 (x - .4) ^ -3 + .6. When constructing your table be sure you use an interval of .4 between your x values.

Identify the patterns that occur on your table.

Construct a graph of all the functions on your table. Explain how the patterns of the table appear on your graph.

Why is the interval of .4 helpful in seeing how the graph shifts due to the replacement of x by x = .4.

5. Sketch on one set of coordinate axes the graphs of y = x ^ .5 and y = 3 x^.5, for x values between 0 and 4. For at least 3 randomly selected x values, show on your graph the ratios of y values between the two functions.

Repeat for y = x^.5 and y = -4 x^.5.

Generalizing to arbitrary functions y = f(x)

The graph below depicts what happens when a graph is first stretched vertically (this graph is stretched vertically by a factor of approximately 2.2), then shifted vertically by some distance k.

vertical_stretch_and_shift.gif (5500 bytes)

The original function is denoted by y = f(x). When multiplied by A, every point moves A times as far from the x axis. The resulting function is denoted y = A f(x).

The approximate values of the two functions y = f(x) and y = A f(x) are indicated at three arbitrary points by pairs of vertical bars.

The longer (blue) bar at each point represents the value of y = A f(x), while the shorter (red) bar represents the value of y = f(x).

At each point we see that the (blue) bar representing y = A f(x) is a little more than twice as long as the (red) bar representing y = f(x).

The ratio of lengths is therefore a bit greater than 2; this ratio is of course A f(x) / f(x) = A, approximately 2.2 in the present example.

The y = A f(x) graph is then shifted k units higher. Each point on the graph is raised by k units to the graph of y = A f(x) + k.  This is indicated by the (green) vertical displacement lines of length k.

It is important to understand that had we done the vertical shift by k units before doing the vertical stretch, the result would have been somewhat different. This is because we would be vertically stretching not only the original function but the vertical shift itself. In the former example, the vertical shift had no effect on the vertical shift factor A.

Using function notation this is somewhat easier to understand:

If we begin with y = f(x) and shift it k units vertically we obtain the function y = f(x) + k.

If we then stretch by factor A, we multiply every y value by A, so we multiply the entire expression y = f(x) + k by A.

We obtain y = A ( f(x) + k ) = A f(x) + A k. This expression shows that the vertical shift k has also been stretched by factor A.  This process is not depicted in a graph.  This graph is left as a problem.

If we replace x by (x-h), the function y = f(x) becomes y = f(x-h).

The table of y = f(x-h) will be the same as that of y = f(x), but shifted h units in the direction of x (look again at the table of y = (x-.7)^-2 vs. x^-2). The graph correspondingly shifts h units in the x direction.

This process is shown on the graph below. The vertical shift of the f(x-h) function is also shown.

horizontal_shift_followed_by_vertical_stretch.gif (2783 bytes)

The horizontal shift h is shown for three points. The original function y = f(x) and the shifted function y = f(x-h) are connected by these shifts.

The process of vertically stretching the function y = f(x-h) by factor A is carried out as before. The relative y values are shown for one point. The ratio of y values appears to again be a bit more than 2, perhaps a bit more than the ratio 2.2 of the preceding example.

Exercises 6-7

6. In Exercise 4 you constructed the graph of y = A f(x-h) + k for f(x) = x^-3, A = -2, h = .4 and k = .6. If you have not yet successfully completed that exercise, do so now.

Now for the same functions, construct the graph of y = A [ f(x-h) + k ], and compare the resulting graph to that of exercise 4.

Write out the function in the form y = A [ f(x-h) + k ] and simplify your expression using the distributive law. Use this expression to explain the difference in your graphs for this exercise and exercise 4.

7. For each of the parameters A, h and k and functions f(x) listed below, construct a table and graph showing how the function y = A f(x-h) + k is constructed:

f(x)

A

h

k

x^2

3

-2

1

log{base 2} (x)

1

-5

3

2^x

-2

0

5

2^x

3

0

6