Learn
Lesson · Lines, Functions and Graphs · Functions

Transformations of Graphs

Changing a formula in four standard ways moves its graph in four predictable ways. Everything done outside the function acts on the output and behaves as written; everything done inside acts on the input and behaves in the opposite direction, all captured by one point map.

y = a f(b(x - h)) + k outside x: a stretches by |a|, k shifts up as written inside x: b squashes by 1/|b|, h shifts right the other way (x0, y0) -> (x0/b + h, a*y0 + k)
One template, four controls

Core ideas

What this lesson establishes

The graph of f is supplied. The task is not to know a future family of curves; it is to send known points to their new coordinates and use that mapping to explain the four familiar moves.

1

Outside acts on the output, and reads normally

In 2f(x) + 5 the function runs first and the result is doubled and raised by 5. Output changes are vertical, and they do what the symbols suggest: +5 is up, ×2 is taller, a minus sign flips the picture over the horizontal axis.

2

Inside acts on the input, and reads backwards

In f(x − 3) the input is altered before f sees it. The new graph at x = 5 shows the old value at 2, so the whole picture moves right by 3, not left. Every horizontal effect is inverted this way, and it catches everyone the first time.

3

Factor the inside before reading it

f(2x + 6) is not a shift by 6. Writing it as f(2(x + 3)) shows a squash by 1/2 and a shift left by 3. Until b is factored out, the number next to it is not the shift.

The material

One point map, with four consequences

Why inside and outside behave differently, where a known point lands, and how the four constants follow from that calculation.

Definition · Parent function

A parent function here is simply the supplied reference graph y = f(x). The core examples use a line, |x| and x³, whose arithmetic is already available. The lab also offers root and reciprocal previews, but those families are not part of this lesson's completion standard.

Why inside is backwards

This is the one point in the lesson that repays a proof rather than a rule. Nothing about the graph of f changes; what changes is which input is asked for.

Let g(x) = f(x − 3). Take any point (t, f(t)) on the graph of f. Ask where g takes that same value: g(x) = f(t) as soon as x − 3 = t, which is x = t + 3.

So the point (t, f(t)) on the graph of f corresponds to the point (t + 3, f(t)) on the graph of g. Same height, input three larger. Every point moves three to the right, so the graph does.

The subtraction inside produces an addition to the coordinate because the equation x − 3 = t is solved for x. That single rearrangement is the entire reason horizontal effects are inverted, and it applies equally to the stretch: g(x) = f(2x) takes the value f(t) at x = t/2, so distances from the vertical axis are halved.

□

The four moves

  • f(x) + k. Vertical shift. Up if k is positive, down if negative. The x-values are untouched.
  • a f(x). Vertical stretch by |a|, and a reflection over the horizontal axis when a is negative. Points on the horizontal axis stay put, since a·0 = 0.
  • f(x − h). Horizontal shift, right by h. Written with a minus sign inside, so f(x + 4) is h = −4 and moves left.
  • f(bx). Horizontal squash toward the vertical axis by a factor of 1/|b|, and a reflection over the vertical axis when b is negative. f(2x) is half as wide, not twice as wide.

The two reflections are worth separating. −f(x) negates the output and turns the picture upside down; f(−x) negates the input and turns it left to right. For f(x) = x + 1, they are −x − 1 and −x + 1, visibly different parallel lines. At the parent point (0, 1), the vertical flip lands at (0, −1) while the horizontal flip leaves (0, 1) fixed. One point separates the two readings without requiring a new curve family.

Reading a combined formula

Take g(x) = −2|x − 3| + 5, in the template with parent f(x) = |x|, a = −2, b = 1, h = 3, k = 5. Move each parent point by (x₀, y₀) → (x₀ + 3, −2y₀ + 5). The corner (0, 0) lands at (3, 5); the two points (−1, 1) and (1, 1) land at (2, 3) and (4, 3). Those three points determine the transformed V without any future quadratic technique.

g(x) = -2|x - 3| + 5 parent f(x) = |x| parent point new x = x0 + 3 new y = -2y0 + 5 image ( 0, 0) 3 5 (3, 5) (-1, 1) 2 3 (2, 3) ( 1, 1) 4 3 (4, 3) direct checks: g(3) = 5 g(2) = 3 g(4) = 3 the equal heights at x = 2 and x = 4 confirm symmetry about x = 3

The coordinate map makes the order explicit. The new x-coordinate is found from the inside equation b(x − h) = x₀, giving x = x₀/b + h; the new y-coordinate is found after the parent has run, as ay₀ + k. Mixing those routes — adding k to an x-coordinate or dividing a y-coordinate by b — is not a small slip but a change of which quantity each constant acts on.

When a horizontal stretch and a shift are combined

Let f(x) = x³ and r(x) = f(2x + 6). The 6 is not the shift. Factoring gives f(2(x + 3)), so b = 2 and h = −3. A parent point with input x₀ lands at x₀/2 − 3: the graph is half as wide and moved left by 3.

r(x) = f(2x + 6) = f(2(x + 3)) f(x) = x^3 parent ( 0, 0) -> ( 0/2 - 3, 0) = ( -3, 0) parent ( 1, 1) -> ( 1/2 - 3, 1) = (-5/2, 1) parent (-1, -1) -> (-1/2 - 3, -1) = (-7/2, -1) check at x = -5/2: 2(-5/2) + 6 = 1, so r(-5/2) = f(1) = 1

The point calculation settles both horizontal constants at once. Reading 6 as a shift left 6 would send (0, 0) to (-6, 0), but direct substitution shows r(−6) = f(−6), not f(0). The factored 3 and the division by 2 are not a mnemonic; they are the solution of 2x + 6 = x₀ for the new input.

Example · Vertical and horizontal changes kept separate

If (4, −2) lies on y = f(x), then on y = 3f(x − 5) + 1 it becomes (9, −5): the inside equation x − 5 = 4 gives x = 9, while the outside calculation 3(−2) + 1 gives −5. Checking one mapped point forces each constant to act on the coordinate it actually controls.

Interactive

Transformations of a graph

a f(b(x - h)) + k, with the parent behind it

y = a f(b(x - h)) + k
parent, dashedimagea tracked pointwhere it lands

Method

Describing a graph from its formula

Identify the parent, factor the input, then read the constants in a fixed order.

1

Name the parent

Identify the supplied reference graph y = f(x). For assessed work it will be a line, |x| or x³; the lesson is about moving its known points, not recalling an unlearned family shape.

2

Factor the coefficient out of the input

Turn f(2x + 6) into f(2(x + 3)) before reading anything horizontal. Skipping this is the single most common source of a wrong shift, because 6 is sitting there looking like the answer.

3

Read the outside constants as written

a scales the output and flips it when negative; k raises it. These need no reinterpretation, which is why doing the vertical part first builds confidence for the horizontal part.

4

Read the inside constants backwards, then verify one point

For a parent point (x₀, y₀), solve b(x − h) = x₀ to get x = x₀/b + h, then compute y = ay₀ + k. Substitute that new x into the transformed formula; the result must be the mapped y.

Which way does it move

Score 0 / 0

Two formulas, described and checked

The first maps three landmarks of |x|; the second factors the input before moving three points of x³.

1. g(x) = -2|x - 3| + 5 parent f(x) = |x| a = -2 b = 1 h = 3 k = 5 right 3, stretch vertically by 2, flip down, up 5 point map: (x0, y0) -> (x0 + 3, -2y0 + 5) ( 0, 0) -> (3, 5) check g(3) = -2|0| + 5 = 5 (-1, 1) -> (2, 3) check g(2) = -2| -1 | + 5 = 3 ( 1, 1) -> (4, 3) check g(4) = -2| 1 | + 5 = 3 the corner (0, 0) becomes (3, 5); equal heights remain equal 2. r(x) = f(2x + 6) parent f(x) = x^3 factor: f(2(x + 3)) a = 1 b = 2 h = -3 k = 0 point map: (x0, y0) -> (x0/2 - 3, y0) ( 0, 0) -> ( -3, 0) check 2(-3) + 6 = 0 ( 1, 1) -> (-5/2, 1) check 2(-5/2) + 6 = 1 (-1, -1) -> (-7/2, -1) check 2(-7/2) + 6 = -1

The first point map handles all four constants without asking the learner to picture four moves at once. Equal parent heights at −1 and 1 become equal image heights at 2 and 4, a built-in check.

The second formula shows why factoring comes before naming h. The raw 6 disappears into 2(x + 3), and each direct input check confirms the half-width and the shift left by 3.

For a faded point map, suppose (2, −1) is on y = f(x) and q(x) = 3f(2(x + 1)) − 4. The supplied inside equation is 2(x + 1) = 2. Solve for the new x, compute the new y, and verify the mapped point by substituting its x into the displayed rule.

Common mistakes

1
Reading a subtraction inside as a shift leftf(x − 3) moves right. The rule cannot be fixed by memorising it harder; solve x − 3 = t for x and the +3 appears. Any time the direction is in doubt, that one line settles it.
2
Reading the number beside x as the shiftIn f(2x + 6) the shift is 3, not 6, because the input must be written as 2(x + 3) first. Check a parent point: input 0 moves to −3, because 2(−3) + 6 = 0; a supposed shift of 6 fails that test.
3
Calling f(2x) a stretch by 2It is a squash by 1/2. The graph reaches at x = 1 what the parent reached at x = 2, so horizontal distances are halved. The factor that describes the picture is 1/b, never b.

Check your understanding

✓
Finish when you can go from formula to described graph and back, including the case where the input has a coefficient.

Given a supplied graph and y = a f(b(x − h)) + k, you should factor the input, map at least three known points with (x₀/b + h, ay₀ + k), and verify one in the displayed rule. Given f(4) = −2, for example, you should locate the matching point on 3f(2(x + 1)) − 4 without needing to know any new parent-function family.

Note: Every transformation here is a composition in disguise: f(x − 3) is f applied to the output of the rule that sends x to x − 3. “Composition of Functions” makes that explicit and general, which is why the horizontal moves will stop feeling like an exception once composition is in place.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.