Free lesson

Every lesson is free, no account needed. Make a free account to save your progress.

Live classGet practice + mocks
  1. Home
  2. Grade 7-12 Math Review
  3. Transformations of Functions
Grade 7-12 Math Review · Grade 11-12 · Gen Math: Functions

Transformations of Functions

Change the equation a little and the whole graph moves, flips or stretches — and every change follows a rule you can read off the equation.

Write the new function

The graph of f(x) = x² is shifted 3 units right and 2 units up. Which function gives the new graph?

Adding outside moves the graph up or down.

xy (0, 3) (0, −2) y = x² + 3 y = x² y = x² − 2

y = f(x) + k

up k units when k > 0

y = f(x) − k

down k units

Every output gets k added, so every point climbs by the same k. The shape does not change at all — only its height.

Changing x inside moves it sideways — against the sign.

xy (3, 0) y = (x − 3)² (−2, 0) y = (x + 2)²

y = (x − 3)²

lowest point where x − 3 = 0

x = 3

so the vertex moved RIGHT to (3, 0)

Minus inside means right

It is tempting to read y = (x − 3)² as "3 to the left" because of the minus sign. Ask instead which x makes the inside zero: x = 3, on the right. In the same way, the blue curve has x + 2 inside, which is zero at x = −2, so its vertex sits on the left.

A minus sign flips it — where you put it decides which way.

xy y = √x y = −√x y = √(−x)
EquationFlip(4, 2) becomes
y = −f(x)over the x-axis(4, −2)
y = f(−x)over the y-axis(−4, 2)

A minus outside changes every y. A minus inside changes every x.

Multiplying stretches or shrinks it.

xy y = 2x² y = x² y = ½x²
EquationWhat happensWhy
y = a·f(x), a > 1vertical stretch — narrowerevery y is multiplied by a
y = a·f(x), 0 < a < 1vertical shrink — widerevery y gets smaller
y = f(bx), b > 1horizontal shrinkevery x is DIVIDED by b

The point (1, 1) on y = x² becomes (1, 2) on y = 2x². The x stayed; only the height doubled.

Put them together by moving a few points.

y = −2(x + 1)² + 3

(x, y) → (x − 1, −2y + 3)

left 1; stretch by 2, flip, then up 3

(0, 0) → (−1, 3)

the vertex

(1, 1) → (0, 1)

−2(1) + 3 = 1

(−1, 1) → (−2, 1)

check: −2(−2 + 1)² + 3 = 1 ✓

xy (−1, 3) (−2, 1) y = x²

Stretch before you shift up

The y-values are multiplied by −2 first and then raised by 3. Adding 3 first gives −2(1 + 3) = −8 for the point (1, 1), which puts it far below the real graph. The equation says −2 times the square, plus 3 — follow the order of operations.

Variations: a point under a squeeze, two flips at once, a factor hiding inside.

A horizontal squeeze on a point: (6, −4) is on y = f(x). Where is it on y = f(3x)?

3x = 6

the inside must still feed 6 to f

x = 2

divide the x by 3

(2, −4)

y is untouched

f(3 · 2) = f(6) = −4 ✓

check

A number multiplying x inside divides the x-coordinate. It does not multiply it.

Both flips at once: (5, 2) is on y = f(x). Where is it on y = −f(−x)?

f(−x): (5, 2) → (−5, 2)

the inside minus flips x

−f(−x): (−5, 2) → (−5, −2)

the outside minus flips y

Two flips together turn the graph half a turn about the origin: both signs change.

A factor hiding inside: where is the vertex of y = (2x − 6)²?

2x − 6 = 0

the inside is zero at the vertex

x = 3

not 6

(2x − 6)² = (2(x − 3))²

factor out the 2 to see the shift

vertex (3, 0)

right 3

Read the shift only after the x stands alone in the bracket. Reading "right 6" from 2x − 6 is the trap.

The domain and range move with the graph.

y = √x

domain x ≥ 0, range y ≥ 0

y = √x + 4 − 1

left 4, down 1

domain x ≥ −4

the starting point moved left 4

range y ≥ −1

and down 1

With a flip: y = −√x + 3 + 4

domain x ≥ −3

the inside must be 0 or more

√x + 3 ≥ 0

a root is never negative

−√x + 3 ≤ 0

the minus turns it 0 or less

range y ≤ 4

adding 4 makes it 4 or less

The flip turns the range over

Copying the shift and writing y ≥ 4 forgets the minus. The curve starts at (−3, 4) and runs DOWN from there: at x = 1, y = −√4 + 4 = 2, which is below 4.

y = a·f(x − h) + k: flip and stretch by a, right h, up k

On the exam

Periodical exams usually give an equation and ask for the move (up, left, flip, stretch), the new vertex, or the domain and range; entrance tests turn it round and give the moves, asking for the equation or where one point lands. The fastest route is to treat x and y separately: inside the bracket acts on x against the sign, outside acts on y as written. For a 10-second check, put the new point back into the new equation.

Remember the flow

Outside: up or down, as written · Inside: sideways, against the sign · Minus: a flip · Multiply: a stretch or shrink

Move two or three points and the rest of the graph follows.
Now you try

Practice problem

Move the point

The point (2, 6) is on the graph of y = f(x). Which point must be on the graph of

y = ½·f(x − 4) + 1?

Hint: handle x and y separately. The x only sees what is inside the brackets; the y sees everything outside, multiplication first.