Grade by GradeEssential student suppliesSign in
C. Content · Pre-calculus 12: Transformations, Exponents and Logarithms, Series, Polynomials, Rational Functions and Trigonometry

Transformations of Functions and Relations

BC PREC 12: transformationsAbout 75 minutes
Learning goals
  • I can describe how a, b, h and k change the graph of y = a f(b(x - h)) + k.
  • I can map key points of a parent function to its transformed graph.
  • I can write the equation of a transformed function from a description.
  • I can find the domain, range and invariant points of a transformed graph.

Words to know

parent function
The simplest function in a family, such as y = x^2, y = |x|, y = √x or y = 1/x.
translation
A slide of the whole graph left, right, up or down without changing its shape.
stretch
A change in size away from or toward an axis. A factor below 1 is often called a compression.
reflection
A flip of the graph in the x-axis (y = -f(x)) or in the y-axis (y = f(-x)).
invariant point
A point that stays in the same place after a transformation.

One rule for every family

In Pre-calculus 12 you will meet many function families: quadratic, absolute value, radical, reciprocal, exponential, logarithmic and trigonometric. They all move in the same way. If y = f(x) is the parent function, then

y = a f(b(x - h)) + k

  • a: vertical stretch by a factor of |a|; if a < 0, also a reflection in the x-axis.
  • b: horizontal stretch by a factor of 1/|b|; if b < 0, also a reflection in the y-axis.
  • h: horizontal translation (right if h > 0, left if h < 0).
  • k: vertical translation (up if k > 0, down if k < 0).

The changes inside the brackets act on x and feel backwards: y = f(x - 3) moves 3 to the right, and y = f(2x) squeezes the graph to half its width.

Parent functionEquationKey pointsDomainRange
Quadraticy = x^2(-1, 1), (0, 0), (1, 1)all real numbersy ≥ 0
Absolute valuey = |x|(-1, 1), (0, 0), (1, 1)all real numbersy ≥ 0
Square rooty = √x(0, 0), (1, 1), (4, 2), (9, 3)x ≥ 0y ≥ 0
Reciprocaly = 1/x(-1, -1), (1, 1); asymptotes x = 0, y = 0x ≠ 0y ≠ 0
Cubicy = x^3(-1, -1), (0, 0), (1, 1), (2, 8)all real numbersall real numbers
Some parent functions and the key points that are handy for sketching. Exponential, logarithmic and trigonometric parents come later in the unit.

The mapping rule

Every point (x, y) on y = f(x) moves to

(x/b + h, a y + k)

Do the stretches and reflections first, then the translations. Before you use the rule, make sure the inside is factored so that b is outside the bracket: y = √(2x + 8) is really y = √(2(x + 4)), so h = -4, not -8.

Worked example

Example 1: Absolute value

Describe and sketch y = -2|x - 3| + 1 from y = |x|.

  1. a = -2: vertical stretch by 2 and a reflection in the x-axis. b = 1. h = 3: right 3. k = 1: up 1.
  2. Mapping rule: (x, y) → (x + 3, -2y + 1).
  3. (-1, 1) → (2, -1); (0, 0) → (3, 1); (1, 1) → (4, -1).
  4. The vertex is (3, 1) and the V now opens downward. Domain: all real numbers. Range: y ≤ 1.

A downward V with vertex (3, 1), passing through (2, -1) and (4, -1)

Worked example

Example 2: Factor first

Sketch y = √(2x + 8) - 3 and state its domain and range.

  1. Factor the inside: y = √(2(x + 4)) - 3, so a = 1, b = 2, h = -4, k = -3.
  2. Mapping rule: (x, y) → (x/2 - 4, y - 3).
  3. (0, 0) → (-4, -3); (1, 1) → (-3.5, -2); (4, 2) → (-2, -1); (9, 3) → (0.5, 0).
  4. Check one point: x = 0.5 gives √(1 + 8) - 3 = 3 - 3 = 0 ✓

Starts at (-4, -3); domain x ≥ -4, range y ≥ -3

xy-4-22468-3-2-1123y = √xy = √(2(x + 4)) - 3
The parent y = √x (dashed, open dots) and y = √(2(x + 4)) - 3 (solid, filled dots at (-4, -3), (-2, -1) and (0.5, 0)). The graph is half as wide and moved 4 left and 3 down.
Worked example

Example 3: Writing an equation

The graph of y = 1/x is stretched vertically by a factor of 4, then translated 2 units right and 1 unit down. Write its equation and give its asymptotes.

  1. a = 4, h = 2, k = -1.
  2. y = 4/(x - 2) - 1.
  3. The vertical asymptote x = 0 moves to x = 2; the horizontal asymptote y = 0 moves to y = -1.

y = 4/(x - 2) - 1, asymptotes x = 2 and y = -1

Invariant points

Some points do not move. When y = f(x) is reflected in the x-axis, points with y = 0 (the x-intercepts) stay put. When it is reflected in the y-axis, points with x = 0 stay put. Under a vertical stretch, the x-intercepts are invariant; under a horizontal stretch, the y-intercept is invariant. Invariant points are a quick way to check a sketch.

Inside opposite, outside as is

Changes outside the function (a and k) do what they say to y. Changes inside (b and h) do the opposite of what they look like to x: f(x + 5) moves left 5, and f(3x) divides every x by 3.

Hands-on activity

Grid-paper transformations

Draw y = |x| on grid paper using five points. Then, on the same axes, draw y = |x - 2|, y = 2|x - 2| and y = 2|x - 2| - 3 in turn, using the mapping rule each time. Label every vertex. Swap with a friend: can they write the equation for each of your graphs from the picture alone?

Just for fun

Odd fact: for some parents, a horizontal squeeze and a vertical stretch give the same graph. (2x)^2 = 4x^2, so squeezing y = x^2 to half its width looks exactly like stretching it 4 times taller. And |3x| = 3|x|, so for y = |x| the two moves are identical.

Your turn

1

Describe how y = f(x - 5) + 2 compares with y = f(x).

2

What do y = -f(x) and y = f(-x) do to the graph of y = f(x)?

3

The point (6, -4) is on y = f(x). Find its image on y = 2f(3x) and on y = f(x + 1) - 3.

4

Write the equation: y = x^2 is compressed horizontally by a factor of 1/2, reflected in the x-axis and translated 4 units left.

5

State the domain and range of y = -3√(x - 2) + 5.

6

f(x) = x^2 - 4. Which points are invariant when y = f(x) is reflected in the x-axis?

More practice

1

Write y = √(3x - 12) in the form y = √(b(x - h)) and describe the transformations.

2

The point (-2, 5) is on y = f(x). Find its image on y = -f(x - 4) + 1.

3

Give the vertex and direction of opening of y = 0.5|x + 1| - 3.

4

State the asymptotes of y = 2/(x + 3) + 4.

5

y = f(x) has domain -2 ≤ x ≤ 6 and range 0 ≤ y ≤ 4. Find the domain and range of y = 3f(x - 1) + 1.

Check your understanding

Quiz

1.

How does the graph of y = f(x + 2) - 7 compare with y = f(x)?

2.

The point (4, 6) is on y = f(x). Which point is on y = 0.5f(2x)?

3.

What is the domain of y = √(x + 5) - 1?

4.

Which equation shows y = |x| reflected in the x-axis and translated 3 units right?

5.

Under a vertical stretch y = 4f(x), which points are invariant?

For parents and teachers

How to help: Ask your teen to say the mapping rule out loud before sketching, for example "x over 2, minus 4; y minus 3." Encourage a quick table of three or four key points of the parent function every time.

Common mistakes:

  • Not factoring the inside first: √(2x + 8) moves 4 left, not 8.
  • Moving the wrong way for h: f(x - 3) goes right.
  • Doing translations before stretches, which puts points in the wrong place.
  • Forgetting that a reflection in the x-axis turns the range upside down (y ≥ 5 becomes y ≤ 5, for example).