Piano Guidance
Photo by Pixabay Pexels Logo Photo: Pixabay

Do you stretch or translate first?

The multiplying for the reflections, stretches, or shrinks should come before the addition for translations. Horizontal transformations are a little counterintuitive to think about. With the function g(x) = f(2x + 3), for example, think about how the inputs to the function g relate to the inputs to the function f.

How many years does a piano last?
How many years does a piano last?

Ten to Thirty Years Normal regulation and voicing will maintain good tone and touch if usage is moderate. If the piano suffers wide temperature and...

Read More »
Who is the famous black pianist?
Who is the famous black pianist?

1. Duke Ellington. What is this? Considered one of the most influential jazz composers of the 20th century, Duke Ellington was a legendary piano...

Read More »

1-07 Transformations of Functions

Summary: In this section, you will:

Graph functions with translations.

Graph functions with reflections.

Graph functions with stretches and shrinks.

Perform a sequences of transformations.

Figure 1: The reflection of two people in a distorting mirror of Cartierville Belmont Park. credit (wikimedia/Conrad Poirier) A flat mirror produces an image called a reflection where everything is inverted left to right. If the mirror is tilted, then the image can be shifted horizontally or vertically. If the mirror is bent like a funhouse mirror, then the image can be stretched or shrunk. These are all transformations. Mathematics can cause the parent functions to transform in ways similar to the mirrors. This lets the functions describe real world situations better. Mathematicians can transform a parent function to model a problem scenario given as words, tables, graphs, or equations. This lesson looks at how to change a parent function into a similar function. These changes are transformations which change a graph's position, orientation, or size. This lesson looks at transformations that change a graph horizontally or vertically. Because the x is the horizontal axis, to transform a graph horizontally, change the x values by addition or multiplication. Likewise, vertical transformations result from changing the y values.

Translations

The first type of transformation is a translation. A translation moves a graph horizontally, vertically, or both. In general, if a function is written as

y = f(x)

then horizontal translations are in the form

y = f(x − h)

where h is the distance the graph is translated to the right. In figure 2, the function y = |x| is translated right 2 units. The new function would be y = |x − 2|.

Figure 2: y = f(x) and y = f(x − 2)

Vertical translations are in the form

y = f(x) + k

where k is the distance the graph is translated up. In figure 3, the function y = |x| is translated up 2 units. The new function would be y = |x| + 2.

Figure 3: y = f(x) and y = f(x) + 2

If h is negative, then it translates left, and if k is negative, then it translated down. Notice that the number h is put inside the function with the x for a horizontal translation so that the x-value changes. The number k is added outside to the entire function for a vertical shift because the function is y (y = f(x)) to change the y-value. If both h and k are present then the graph translates both horizontally and vertically. Translations If the function is y = f(x), then translations are in the form y = f(x − h) + k where the graph is translated h units right and k units up. Example 1: Add a Constant to a Function A small swimming pool lets groups rent the pool for $5 a person, but they only charge for first 10 people. Figure 4 is the graph of the total price for groups. The manager would like to charge more to rent the pool, but people really like the policy of only charging for the first 10 people. So, the manager starts charging a $20 cleaning fee in addition to the rent. Sketch a graph of the new price. Figure 4 Solution The graph can be sketched by adding 20 to each of the y-values of the original function. This will cause the graph to translate up 20 units. Figure 5 Notice in figure 5, for each input x-value, the output y-value increased by 20. If the old function was y = f(x), then the new function would be y = f(x) + 20. Since the entire function = y, then adding 20 to the function increases the y-values by 20. This is a vertical translation up 20. Table 1 t 0 2 4 6 8 10 12 14 16 f(x) 0 10 20 30 40 50 50 50 50 f(x) + 20 20 30 40 50 60 70 70 70 70 Example 2: Add a Constant to an Input Everyday, Jim drives to work and then straight back home. He decided to draw a graph of his distance from home throughout the day. The graph is in figure 6. Next week, his schedule will change and he will have to arrive at work 2 hours earlier, but he will also get to go home 2 hours earlier at the end of the day. Sketch a graph of the function representing Jim's distance from home during the new schedule. Figure 6 Solution Because he will travel 2 hours earlier, the graph will translate two places to the left. Call the original schedule function old(x) and the new schedule new(x). The input will need to be increased by 2. He was leaving at 9 AM, now he is leaving at 7 AM. So the leaving distance is 0 = old(9) originally. Now the leaving distance is 0 = new(7). Since these are both the same leaving distance, then they are equal. old(9) = new(7), thus we have to add 2 to the input of new to make it equal old. If the old function was y = f(x), then the new function will be y = f(x + 2). Figure 7 Analysis Note that f(x + 2) has the effect of shifting the graph to the left. Horizontal changes or “inside changes” affect the domain of a function (the input) instead of the range and often seem counterintuitive. The new function new(x) uses the same outputs as old(t), but matches those outputs to inputs 2 hours earlier than those of old(x). Said another way, we must add 2 hours to the input of old to find the corresponding output for new: new(x) = old(x + 2). Example 3: Write an Equation of a Translation Figure 8 represents a transformation of the parent function f(x) = x2. Relate this new function g(x) to f(x), and then find a formula for g(x). Figure 8 Solution Notice that the graph is identical in shape to the f(x) = x2 function, but the it is translated 3 to the right and 1 down. The vertex used to be at (0, 0), but now the vertex is at (3, −1). The graph is the basic quadratic function translated 3 units to the right and 1 down, so g(x) = f(x − 3) − 1. This would become g(x) = (x − 3)2 − 1. Try It 1 Given f(x) = |x|, sketch a graph of h(x) = f(x + 2) − 1. Answer Try It 2 Write an equation for a transformation of the parent reciprocal function (f(x) = frac{1}{x}) that translates the function's graph one unit to the right and one unit up. Answer (f(x) = frac{1}{x - 1} + 1) Example 4: Interpret Horizontal versus Vertical Shifts The function G(m) gives the number of gallons of gas required to drive m miles. Interpret G(m) + 10 and G(m + 10). Solution G(m) + 10 is adding 10 to the output, gallons. This is the gas required to drive m miles, plus another 10 gallons of gas. The graph would indicate a vertical shift. G(m + 10) is adding 10 to the input, miles. So this is the number of gallons of gas required to drive 10 miles more than m miles. The graph would indicate a horizontal shift.

Reflections

Another transformation is a reflection. A horizontal reflection reflects the graph over the y-axis, and a vertical reflection reflects the graph over the x-axis. This is accomplished by moving all points the same distance as the point is from the axis to the opposite side of the axis. A horizontal reflection will have the same y-values, but the x-values will have the opposite sign, so y = f(−x). A vertical reflection will have the same x-values, but the y-values will have the opposite sign, so y = −f(x).

Figure 9: Vertical and horizontal reflections of a function.

Which is the most popular instrument?
Which is the most popular instrument?

The 10 Most Popular Musical Instruments Piano/Keyboard. Some experts separate the two, and they do have different uses, but the basics are very...

Read More »
How old is Ed Sheeran's kid?
How old is Ed Sheeran's kid?

The couple tied the knot in 2019 Ed and Cherry are also proud parents to one-year-old daughter, Lyra. The couple dubbed her a "miracle" baby owing...

Read More »

Reflections Horizontal Reflection: y = f (− x ) reflects over the y -axis. = (− ) reflects over the -axis. Vertical Reflection: y = −f(x) reflects over the x-axis. Example 5: Reflect a Graph Reflect the graph of f(x) = |x| (a) vertically and (b) horizontally. Solution Reflecting the graph vertically means that each output y-value will be reflected over the horizontal x-axis as shown in figure 10. Figure 10: Vertical reflection of the absolute value function Because each y-value is the opposite of the original y-value, the new function is v(x) = −f(x). (v was chosen for vertical). v(x) = −|x| Notice that this is an outside change, or vertical, that affects the output f(x) values, so the negative sign belongs outside of the function. Reflecting the graph horizontally means that each input x-value will be reflected over the vertical y-axis as shown in figure 11. Figure 11: Horizontal reflection of the absolute value function Because each x-value is the opposite of the original x-value, the new function is h(x) = f(−x). (h was chosen for horizontal). h(x) = |−x| Notice that this is an inside change, or horizontal, that affects the input values, so the negative sign is on the inside of the function. Try It 3 Given the parent function f(x) = x2, graph g(x) = −f(x) and h(x) = f(−x). Answer

Determine Even and Odd Functions

Some functions have symmetry where reflections are the same as the original graph. For the example, the horizontal reflection over the y-axis of the absolute value function in figure 11 results in a graph that is the same as the original graph. Graphs that are symmetric when reflecting over the y-axis are called even functions .

Figure 12: Even function

Other functions such as f(x) = x3 result in the original graph after reflecting in both the x- and y-axes. Reflecting in the x-axis, then reflecting that in the y-axis is the same result as a 180° rotation about the origin. Functions that are symmetric after reflecting in both axes, or rotating 180°, are called odd functions .

Figure 13: Odd function

A function can be even, odd, both, or neither. Consider a circle with its center on the origin. It is both even and odd. However, the square root function is neither even or odd. Figure 14: (a) A circle can be both even and odd (b) The square root is neither even or odd. Even and Odd Functions The graph of an even function is symmetric with a reflection over the y-axis. The graph of an odd function is symmetric with a 180° rotation about the origin, or reflections in both the x- and y-axis.

Stretches and Shrinks

Translations and reflections moved the graph, but did not change its shape. Stretches and shrinks are transformations that do change the shape by stretching or shrinking the graph in one direction. This is done by multiplying the inputs or outputs by some number. Multiplying the outside of a function results in multiplying the y-values. Multiplying a function by a number greater than 1 makes the graph taller, or stretched vertically . Multiplying the function by a number between 0 and 1 makes the graph shorter, or shrunk vertically . For example, multiplying the function by 2 would produce a graph that is twice as tall. Likewise multiplying by 0.5 results in a graph that is half as tall.

Figure 15: Vertical stretch and shrink.

Multiplying the input inside a function results in the opposite of what might be expected. Multiplying the x by a number greater that 1 makes the graph skinnier, or shrunk horizontally . Multiplying the x by a number between 0 and 1 will make the graph wider, or stretched horizontally. For example, multiplying the input by 2 would produce a graph that is half as wide. But multiplying the input by 0.5 results in a graph that is twice as wide, or stretched horizontally .

Figure 16: Vertical stretch and shrink.

Stretches and Shrinks Vertical stretch or shrink occurs when the function is multiplied by a number. y = af ( x ) If a > 1, vertical stretch if 0 < a < 1, vertical shrink Horizontal stretch or shrink occurs when the input is multiplied by a number. y = f ( bx ) If b > 1, horizontal shrink if 0 < b < 1, horizontal stretch Graph a Stretch or Shrink If y = af(bx), then graph by Vertical : Multiply all y coordinates by a

: Multiply all coordinates by Horizontal: Multiply all x coordinates by (frac{1}{b})

Example 6: Graph a Vertical Stretch or Shrink The function B(t) models the population of a certain bacteria in a petri dish. The graph is shown in figure 17. Figure 17 A scientist is comparing this population to another population, C, whose growth follows the same pattern, but is half as large. Sketch a graph of this population. Solution Because the population is always half as large, the new population's output values are always half the original function's output values. Multiply all the y-values by ½ while leaving the t-values the same. This will produce a graph that is half as high which is a vertical shrink. Choose some convenient reference points, (0, 0.1), (3, 1), (4, 2), (5, 4), (6, 8), (7, 4), and (8, 0). Then multiply all of the y-values by ½. The following shows where the new points for the new graph will be located. (0, 0.1) → (0, 0.05)

(3, 1) → (3, 0.5)

(4, 2) → (4, 1)

(5, 4) → (5, 2)

(6, 8) → (6, 4)

(7, 4) → (7, 2)

(8, 0) → (8, 0) Figure 18 Symbolically, the relationship is written as C(t) = 0.5B(t) Try It 4 Write the equation for the function that is the quadratic parent function stretched vertically by a factor of 3, and then translated down by 4 units. Answer y = 3x2 − 4 Example 7: Graph a Horizontal Stretch or Shrink The function B(t) models the population of a certain bacteria in a petri dish. The graph is shown in figure 19. Figure 19 Suppose a scientist is comparing a population of bacteria to a population that progresses through its lifespan twice as fast as the original population. In other words, this new population, D, will progress in 1 minute the same amount as the original population does in 2 minutes, and in 2 minutes, it will progress as much as the original population does in 4 minutes. Sketch a graph of this population. Solution Because the time is cut in half, the description is a horizontal shrink by a factor of 1/2. This means we want D(2) = B(4) and D(3) = B(6). In general that means that D(t) = B(2t). Remember that a horizontal stretch or shrink is by a factor of (frac{1}{b}). In this case, the horizontal shrink factor is (frac{1}{2}), so b = 2. Figure 20 D(t) = B(2t) Try It 5 Write an equation for the parent cubic function horizontally stretched by a factor of 3. Answer (y = left(frac{1}{3}x ight)^3)

Combinations of Transformations

When combining transformations, it is very important to consider the order of the transformations. For example, vertically transforming by 3 and then vertically stretching by 2 does not create the same graph as vertically stretching by 2 and then vertically translating by 3. This is because when the translation is first, both the original function and the translation get stretched, while only the original function gets stretched when the stretch is first. In general, follow the order of operations to decide the order of transformations. The multiplying for the reflections, stretches, or shrinks should come before the addition for translations.

What is a blue note in jazz?
What is a blue note in jazz?

In jazz and blues, a blue note is a note that—for expressive purposes—is sung or played at a slightly different pitch from standard. Typically the...

Read More »
Can I learn piano on an iPad?
Can I learn piano on an iPad?

It's easier than ever to find information on playing the piano and you can learn piano on iPad, with a browser-based lesson, in person, or even...

Read More »

Horizontal transformations are a little counterintuitive to think about. With the function g(x) = f(2x + 3), for example, think about how the inputs to the function g relate to the inputs to the function f. Suppose f(7) = 12. What input to g would produce that output? In other words, what value of x will allow g(x) = f(2x + 3) = 12? So 2x + 3 = 7. To solve for x, first subtract 3, resulting in a horizontal translation, and then divide by 2, causing a horizontal shrink. This format ends up being very difficult to work with, because it is usually much easier to horizontally stretch a graph before translating. This can be fixed by factoring inside the function.

$$ f(bx + h) = fleft(b left(x + frac{h}{b} ight) ight) $$

Here is an example.

$$ f(x) = (2x + 5)^2 $$

Factor out the 2.

$$ f(x) = left(2left(x + frac{5}{2} ight) ight)^2 $$

Now the order of operation can be followed. First do the horizontal shrink by a factor of 1/2, then the horizontal translation to the left of 5/2. Combine Transformations When combining vertical transformations written in the form af ( x ) + k, first vertically stretch by a and then vertically translate by k . ( ) + k, first vertically stretch by and then vertically translate by . When combining horizontal transformations written in the form f ( bx + h ), first horizontally translate by h and then horizontally stretch by (frac{1}{b}). ( + ), first horizontally translate by and then horizontally stretch by (frac{1}{b}). When combining horizontal transformations written in the form f ( b ( x + h )), first horizontally stretch by (frac{1}{b}) and then horizontally translate by h . ( ( + )), first horizontally stretch by (frac{1}{b}) and then horizontally translate by . Horizontal and vertical transformations are independent. It does not matter whether horizontal or vertical transformations are performed first. Example 8: Combine Transformations Use the graph of f(x) in figure 21 to sketch a graph of (k(x) = fleft(frac{1}{3}x - 1 ight) - 2). Figure 21: Graph of f(x) Solution To simplify the process, start by factoring out the inside of the function. $$ fleft(frac{1}{3}x - 1 ight) - 2 $$ $$ fleft(frac{1}{3}left(x - 3 ight) ight) - 2 $$ Now graph by applying the stretch first. It is a horizontal stretch by a factor of 3 because the b is (frac{1}{3}) and the horizontal stretch is by the factor of (frac{1}{b}). Figure 22: Horizontal stretch of f(x) Next, horizontally translate right by 3 units, as indicated by x − 3. Figure 23: Horizontal translation of f(x) Last, vertically translate down by 2, as indicated by the −2 on the outside of the function. Figure 24: Vertical translation of f(x) Note: Often, the horizontal and vertical translations are done together in one step. Try It 6 Use the graph of f(x) in figure 25 to sketch a graph of (y = -2 fleft(x ight) + 1). Figure 25: Graph of f(x) Answer Lesson Summary Transformations For functions written as y = af(b(x − h)) + k a is vertical stretch/shrink/reflection If a > 1, then vertical stretch by factor of a . If 0 < a < 1, then vertical shrink by factor of a . If a is −1, then vertical reflection over the x -axis. is vertical stretch/shrink/reflection b is horizontal stretch/shrink/reflection If b > 1, then horizontal shrink by factor of (frac{1}{b}). If 0 < b < 1, then horizontal stretch by factor of (frac{1}{b}). If b is −1, then horizontal reflection over the y -axis. is horizontal stretch/shrink/reflection h is horizontal translation If h > 0, then translates right. If h < 0, then translate left. is horizontal translation k is vertical translation If k > 0, then translates up. If k < 0, then translate down. is vertical translation The inside may need to be factored to put it in this form. Graph Transformations When combining vertical transformations written in the form af ( x ) + k, first vertically stretch by a and then vertically translate by k . ( ) + k, first vertically stretch by and then vertically translate by . When combining horizontal transformations written in the form f ( b ( x + h )), first horizontally stretch by (frac{1}{b}) and then horizontally translate by h . ( ( + )), first horizontally stretch by (frac{1}{b}) and then horizontally translate by . Horizontal and vertical transformations are independent. It does not matter whether horizontal or vertical transformations are performed first.

Helpful videos about this lesson. Function Transformations

Practice Exercises

Write an equation for the function obtained when the graph of f(x) = |x| is translated left 3 units and up 1 unit. Write an equation for the function obtained when the graph of (f(x) = frac{1}{x^2}) is translated right 2 units and down 4 units. Describe how the graph of the function is a transformation of the graph of the original function f. y = f(x − 15) y = f(x + 1) y = f(x) + 17 y = f(x) − 20 y = f(x + 2) + 4 Use the graph of f(x) = 2x shown in figure 26 to sketch a graph of each transformation of f(x). Figure 26 f(x) = 2x h(x) = 2x − 1 − 3 Sketch a graph of the function as a transformation of the graph of one of the parent functions. f(t) = (t − 1)2 − 2 k(x) = (x + 2)3 − 2 Write an equation for each graphed function by using transformations of the graphs of one of the parent functions. Write a formula for the function g that results when the graph of a given parent function is transformed as described. The graph of (f(x) = sqrt{x}) is reflected over the x-axis and horizontally shrunk by a factor of (frac{1}{3}). The graph of f(x) = x2 is vertically shrunk by a factor of (frac{1}{2}), then shifted to the right 2 units and down 3 units. Describe how the given function is a transformation of a parent function. Then sketch a graph of the transformation. g(x) = 3(x − 1)2 − 6 h(x) = −|2x − 4| + 3 (a(x) = -sqrt{-x + 2}) Mixed Review (1-06) Graph (f(x) = left{egin{align} 2x + 1 &, ext{ if } x ≤ -1 \ x^2 &, ext{ if } x > -1 end{align} ight.) (1-05) Find the domain and range for the function, f(x) = 2x, in figure 26. (1-04) Find the domain of (g(x) = frac{1}{2}x^2 + 5). (1-03) Graph (y = frac{2}{3}x - 1). (1-01) Find the distance and midpoint between (−1, −2) and (5, 6)

Answers

How do I get good at piano?
How do I get good at piano?

From improving finger strength to constantly challenging yourself, here are a few different ways you can become a better piano player. Manage Your...

Read More »
What was the first official song BTS dedicated to fans?
What was the first official song BTS dedicated to fans?

Three! (Still Wishing For Better Days)"" (""둘! 셋! (그래도 좋은 날이 더 많기를)"") was the first official fan song.

Read More »
Are hybrid pianos worth it?
Are hybrid pianos worth it?

Yes, for a serious pianist who plans to use the instrument often and understands the value of a grand piano experience, a high end digital hybrid...

Read More »
Join almost HALF A MILLION Happy Students Worldwide
Join almost HALF A MILLION Happy Students Worldwide

Pianoforall is one of the most popular online piano courses online and has helped over 450,000 students around the world achieve their dream of playing beautiful piano for over a decade.

Learn More »
Which actor is a classically trained pianist?
Which actor is a classically trained pianist?

Christopher Plummer was a classical pianist, and played Rachmaninov between Sound of Music scenes. The beloved star of stage and screen was an...

Read More »