Transformations of Functions: How to Shift, Stretch and Reflect Any Graph

Read in: English · Français · Español · العربية · 中文

Transformations of functions let you draw a new graph without plotting dozens of points. If you know the shape of a simple “parent” graph such as y = x², y = √x or y = 1/x, you can shift it, stretch it or flip it to get the graph of a more complicated equation. In Ontario, the Grade 11 Functions course (MCR3U) asks students to describe the roles of a, k, d and c in y = af(k(x − d)) + c and to sketch these graphs (Ontario Curriculum, Grades 11 and 12 Mathematics; MHR teacher resource, Section 2.6).

New to function notation? Read our free lesson on functions, domain and range first.

The 4 basic transformations of functions

There are four moves: shifts, vertical stretches, horizontal stretches and reflections. Rules from Lumen Learning’s Precalculus (based on OpenStax) and The Ohio State University’s summary sheet.

EquationWhat happens to the graph of y = f(x)Point (x, y) moves to
y = f(x) + cShift up c units (down if c is negative)(x, y + c)
y = f(x − d)Shift right d units (left if d is negative)(x + d, y)
y = a·f(x)Vertical stretch by a if a > 1; compression if 0 < a < 1(x, a·y)
y = f(kx)Horizontal compression by a factor of 1/k if k > 1; stretch if 0 < k < 1(x/k, y)
y = −f(x)Reflection in the x-axis(x, −y)
y = f(−x)Reflection in the y-axis(−x, y)

A handy memory trick: changes outside the brackets act on y (vertical) and do what they look like; changes inside the brackets act on x (horizontal) and do the opposite of what they look like. That is why f(x − 3) moves the graph 3 units to the right, and f(2x) makes it narrower. A negative a also reflects the graph in the x-axis, and a negative k reflects it in the y-axis (Lumen Learning; Active Preparation for Calculus, GVSU).

In what order do you apply them?

Order matters. Apply stretches, compressions and reflections (a and k) before translations (d and c), just as multiplication comes before addition (MHR teacher resource). If the inside is not factored, factor it first: f(bx + p) = f(b(x + p/b)) (Lumen Learning). A horizontal change and a vertical change can be done in either order (Lumen Learning summary).

Worked examples

Example 1: y = (x − 3)² + 2. Parent: y = x². Here d = 3 and c = 2: shift right 3, up 2. (0, 0) → (3, 2); (1, 1) → (4, 3); (2, 4) → (5, 6). The vertex is (3, 2). Check: (5 − 3)² + 2 = 6 ✓.

Example 2: y = −2√(x − 4) + 1. Parent: y = √x. Here a = −2, d = 4, c = 1. First multiply each y by −2 (reflect and stretch), then shift right 4 and up 1. (0, 0) → (4, 1); (1, 1) → (5, −1); (4, 2) → (8, −3); (9, 3) → (13, −5). Check: −2√(13 − 4) + 1 = −2(3) + 1 = −5 ✓.

Example 3: y = √(2x − 6). Factor the inside first: 2x − 6 = 2(x − 3). So k = 2 and d = 3: compress horizontally by a factor of 1/2, then shift right 3 (not 6!). (0, 0) → (3, 0); (1, 1) → (3.5, 1); (4, 2) → (5, 2); (16, 4) → (11, 4). Check: √(2 × 11 − 6) = √16 = 4 ✓.

Example 4: y = 3/(x + 1) − 2. Parent: y = 1/x. Here a = 3, d = −1, c = −2: stretch vertically by 3, shift left 1 and down 2. (1, 1) → (0, 1); (−1, −1) → (−2, −5); (2, 0.5) → (1, −0.5). The asymptotes x = 0 and y = 0 move to x = −1 and y = −2. Check: 3/(0 + 1) − 2 = 1 ✓.

Common mistakes

  • Wrong direction: f(x + 5) moves the graph 5 units left, not right.
  • Not factoring: in f(3x + 6) the horizontal shift is 2 units left, not 6, because 3x + 6 = 3(x + 2). Reading the constant inside as the shift is a known common error (MHR teacher resource).
  • Shifting before stretching: 2f(x) + 3 is not the same as 2[f(x) + 3].
  • Mixing up the factor: f(2x) compresses by 1/2; it does not stretch by 2.

Practice set (with answers)

  1. Describe how y = 4(x + 5)² − 7 is a transformation of y = x², and give its vertex.
  2. The point (2, 4) is on y = f(x). Find its image on y = 3f(x − 1) + 2.
  3. The point (6, −2) is on y = f(x). Find its image on y = −f(2x).
  4. Rewrite y = f(3x + 12) in factored form and describe the horizontal transformations.
  5. For y = −√(x + 2) + 5, give the starting point, the domain and the range.

Answers: 1) Vertical stretch by 4, shift left 5 and down 7; vertex (−5, −7). 2) (3, 14). 3) (3, 2). 4) y = f(3(x + 4)): horizontal compression by a factor of 1/3, then shift left 4. 5) Starting point (−2, 5); domain x ≥ −2; range y ≤ 5.

Want more? Try the free Grade 11 maths practice or play the “Transformations of functions” game in our Grade 11 Maths Kahoot games. Transformations also explain the line y = mx + b, so our article How to Find the Slope of a Line is a good companion.

FAQ

Why does f(x − 3) move the graph right? The input must be 3 units larger to give the same output, so every point slides 3 units right.

Does the order of transformations really matter? Yes, in the same direction: stretch or reflect first, then shift. Horizontal and vertical changes can be done in either order.

Which parent functions should I know? Start with y = x, y = x², y = √x and y = 1/x. Learn a few key points on each.

Stuck on functions before a test? Our excellent teachers can help: explore Mathematics at Dualingua and book your free assessment. Discover all our courses and free tools on Dualingua.

Get help from Dualingua

Sources

Last checked: November 24, 2026

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top