On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Function Transformation

A transformation reshapes a parent function's graph — shift, stretch, compress, or reflect — through systematic changes to its formula y=a f(b(x−h))+k.

y=a⋅f(b(x−h))+k where a = vertical stretch, b = horizontal compression, h = horizontal shift, k = vertical shift

Quick Answer

A transformation reshapes a parent function's graph — shift, stretch, compress, or reflect — through systematic changes to its formula y=a f(b(x−h))+k. Use it to graph a new function from one you already know: y=(x−4)2+1 is the parabola y=x2 moved right 4 and up 1, so its vertex is (4,1). Numbers outside the function (a and k) change heights; numbers inside (b and h) change inputs and act opposite to how they look. A negative a flips the graph over the x-axis.

Why This Matters

With a handful of parent graphs (x2, x, ∣x∣, 1x, sin⁡x) and four kinds of move, you can sketch thousands of functions without plotting points, and read a vertex, an intercept or an asymptote straight from the constants. It is also how models are fitted: a daily temperature curve is a cosine wave stretched, raised to the average temperature and shifted to the hottest hour.

Intuitive Explanation

Draw y=x2 on tracing paper and slide the paper 3 units up. Every point rises by 3, so the new graph is y=x2+3. Slide it 4 units right instead. A point that sat above x=0 now sits above x=4, so to find the new height at x you look up the old height at x−4, and the formula is y=(x−4)2. That is why a minus sign inside the brackets moves the graph to the right.

Stretches follow the same logic. y=3x2 triples every height, making the parabola look narrower, and y=−x2 flips it upside down. Inside the function, y=(2x)2 reaches each height with half the input, so the graph is squeezed toward the y-axis by a factor of 12. Outside changes act on outputs and do what they look like; inside changes act on inputs and do the reverse.

A transformation keeps the parent's basic shape: a parabola stays a parabola and a square-root curve stays a square-root curve. Rules such as x2+x3 or (x2)2=x4 change the shape itself, so they are not transformations of x2. Feeding a linear rule into the parent, as in (x+1)2, is a transformation (a shift left 1), but feeding in a curved rule is not.

Think of it like this. Transformations work like the controls in a photo editor: move, resize, stretch, flip. The picture's content never changes, only its position and proportions. The horizontal controls are wired backwards, though: typing x−4 moves the picture right, and multiplying x by 2 squeezes it.

Core idea. A transformation shifts, reflects, stretches, or compresses a known parent graph by editing its formula.


When to Use

Use transformations when a formula contains a familiar parent function with constants added or multiplied inside or outside it: (x−4)2+1, 2x+3, −∣x∣+5, sin⁡(2x). Read a, b, h and k to sketch the graph from a few key points, or to write the equation of a moved graph. If the formula combines different functions, such as x2+sin⁡x, or feeds a curved rule into the parent, it is not a transformation of one parent.

Tip. Ask: Is a known parent graph being moved, scaled, or flipped by added or multiplied constants?

How to Recognize It

Before sketching a transformed graph, pick out the parent function and sort each extra number by whether it acts on x before the parent or on the output after it.

  1. Is the change applied to x before the parent function acts?

    Yes means a horizontal change that works backwards: x+3 moves left 3, and 2x is squeezed toward the y-axis. A change after the parent, as in x+3, is vertical and moves the graph up just as written.

  2. Is only a constant added, with no multiplying and no sign change?

    Yes means a translation only: the graph slides without changing size or shape, so (x−1)2−4 is x2 moved right 1 and down 4. Any multiplying factor adds a stretch, compression or reflection.

  3. Is there a minus sign directly in front of the parent or in front of x?

    In front of the parent, as in −x2, the graph flips over the x-axis; in front of x, as in −x, it flips over the y-axis. With no other changes, that is a reflection only.

  4. Is the parent fed something curved, like the x2 in sin⁡(x2), rather than x shifted or scaled?

    Yes means a composition of two functions, not a transformation of one parent, and its graph can look nothing like the parent. Only inputs of the form b(x−h) count as transformations.

Function Transformation compared with Translation only, Composition, and Reflection only

All four rows change or combine functions, so their effects on a graph can look similar. Ask what is done to the parent: slid (translation), flipped (reflection), any mix of slides, stretches and flips by constants (transformation), or fed into another whole function (composition).

Function Transformation

Meaning
Use this when you graph a function by adjusting a recognizable parent function's shape via shifts, stretches, or reflections.
Key test
Is a known parent graph being moved, scaled, or flipped by added or multiplied constants?
Formula
y=a⋅f(b(x−h))+k where a = vertical stretch, b = horizontal compression, h = horizontal shift, k = vertical shift
Example
Compared to y=x2, describe y=(x−4)2+1.

Translation only

Meaning
A pure shift with no stretching or reflecting, just sliding the graph.
Key test
Use when only h or k changes, leaving size and orientation intact.
Formula
f(x−h)+k
Example
y=(x−2)2+3 only slides the parabola

Composition

Meaning
Feeds one whole function's output into another; transformation adjusts one parent's parameters.
Key test
Use when chaining two different functions, not reshaping one.
Formula
f(g(x))
Example
f(g(x)) chains functions; 2f(x)+1 transforms one

Reflection only

Meaning
A flip across an axis, one specific transformation among several.
Key test
Use when the only change is a sign on a or inside the input.
Formula
y=−f(x) or y=f(−x)
Example
y=−x2 flips the parabola downward

Formula & Notation

y=a⋅f(b(x−h))+k where a = vertical stretch, b = horizontal compression, h = horizontal shift, k = vertical shift
g(x)=a f(b(x−h))+k: vertical scale ∣a∣, reflect if a<0; horizontal scale 1∣b∣, reflect if b<0; shift right h, up k

How to read it: Parent function f(x) is transformed: +k shifts up, −h shifts right, a scales vertically, b scales horizontally.

Worked Examples

Example 1 — Describe the transformation

Easy

Compared to y=x2, describe y=(x−4)2+1.
Show the steps and the answer
  1. Match y=(x−4)2+1 to a f(b(x−h))+k with f(x)=x2: a=1, b=1, h=4, k=1.

    Reading each constant against the template tells you which move it makes.

  2. Interpret h=4: the input is replaced by x−4, so the graph moves right 4.

    The new graph reaches the parent's height at 0 only when x−4=0, at x=4, so everything happens 4 units later.

  3. Interpret k=1: 1 is added to every output, so the graph moves up 1.

    Changes outside the function act on heights directly, in the direction they appear.

  4. Track points: the vertex (0,0) goes to (4,1), and (1,1) goes to (5,2); check (5−4)2+1=2.

    Following one or two key points confirms the description.

Answer: Parabola shifted right 4 and up 1

Takeaway: Inside changes act on x and run opposite to their sign; outside changes act on y and run with it.

Example 2 — Composition or transformation?

Standard

Given f(x)=x2 and g(x)=x+1, is f(g(x)) just a transformation of f?
Show the steps and the answer
  1. Compute the composition: f(g(x))=f(x+1)=(x+1)2.

    Substituting g(x) for the input of f is the definition of composition.

  2. Match it to a f(b(x−h))+k: (x+1)2=f(x−(−1)), so a=1, b=1, h=−1, k=0.

    Because g only adds a constant to the input, the composite fits the shift pattern exactly.

  3. Track points: the vertex moves from (0,0) to (−1,0), and (1,1) moves to (0,1).

    Every point slides 1 unit left, which is what a horizontal shift does.

  4. Contrast with a curved inner rule: g(x)=x2 gives f(g(x))=x4, flatter near 0 and steeper further out.

    Any a(b(x−h))2+k is still a parabola, so no shift, stretch or flip of y=x2 produces x4.

Answer: Yes: f(g(x))=(x+1)2 is a composition, and because g only adds 1 to the input, it is also the parent y=x2 shifted left 1.

Takeaway: A transformation is a composition with linear rules such as x+1 or 2x; composing with a curved inner rule reshapes the graph and is not a transformation.

Example 3 — Find the mistake: a factor inside the function

Application

Describe how y=2x relates to y=x. Omar writes: "The 2 is inside, so the graph is stretched horizontally by a factor of 2." Find the mistake and correct it.
Show the steps and the answer
  1. Pick a point on the parent: x reaches height 2 at x=4.

    Following one height shows where points move under the change.

  2. Find where 2x reaches the same height: 2x=4, so x=2.

    Doubling the input means the new graph gets there with half the input.

  3. Conclude that (4,2) moved to (2,2): every point is now half as far from the y-axis.

    That is a horizontal compression by a factor of 12, the opposite of Omar's stretch.

  4. Cross-check: 2x=2⋅x≈1.41x, a vertical stretch by 2.

    For square roots the same graph can be described either way, and neither description is a horizontal stretch by 2.

Answer: y=2x is y=x compressed horizontally by a factor of 12 (equivalently, stretched vertically by 2).

Takeaway: A factor b inside the function scales the graph horizontally by 1b, so b>1 squeezes it toward the y-axis.

Where You'll See It

  • Modelling a day of temperatures

    If a city's temperature swings 6∘C either side of an 18∘C average and peaks at 3 p.m., a model is T(t)=18+6cos⁡(2π(t−15)24): the parent cos⁡t stretched vertically by 6, raised by 18, stretched horizontally to a 24-hour period and shifted right to t=15.

  • Throwing from a balcony, or later

    A ball thrown from the ground has height h(t)=−5t2+20t. The same throw from a 1.5 m ledge is h(t)+1.5, a shift up, and the same throw made 2 seconds later is h(t−2), a shift right. The arc's shape is unchanged; only where and when it starts differs.

  • Moving characters in a video game

    A game stores a character's outline once, then draws it shifted 120 pixels right by adding 120 to every x-coordinate, or mirrored to face the other way by multiplying them by −1. One stored shape serves every position, because shifts and reflections never change it.

Common Mistakes

  1. The slip: Shifting the wrong direction inside the function

    Instead: f(x−3) moves right, f(x+3) moves left (opposite of the sign).

  2. The slip: Confusing inside (horizontal, on x) with outside (vertical, on y) changes

    Instead: a and k act on outputs, b and h on inputs.

  3. The slip: Applying horizontal stretches as the literal factor

    Instead: a factor b inside compresses by 1b, not by b.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Compared with y=x2, describe the graph of y=−2(x+3)2.

    Hint: Read the inside change, the factor in front and its sign separately.

  2. Write the equation of y=∣x∣ after it is shifted right 5 units and down 2 units.

    Hint: A horizontal shift goes inside with x; a vertical shift goes outside.

  3. The point (2,8) is on the graph of y=f(x). Where does it move on the graph of y=f(x−1)+3?

    Hint: Apply the horizontal shift to the x-coordinate and the vertical shift to the y-coordinate.

  4. The point (6,4) is on the graph of y=f(x). Where does it move on the graph of y=f(2x)?

    Hint: Which input x makes 2x=6?

  5. Graph B is y=f(x)+3 and graph C is y=3f(x). Which is a translation only, keeping exactly the same shape?

    Hint: Does each change add to every output or multiply every output?

  6. A student says 'y=(x+2)2 is y=x2 shifted right 2.' Find and correct the mistake.

    Hint: Where is the new vertex? Which x makes x+2=0?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Does the order of the transformations matter?

Sometimes. Two changes in the same direction can clash: stretching x2x^2 by 2 and then shifting up 3 gives 2x2+32x^2+3, but shifting first and then stretching gives 2(x2+3)=2x2+62(x^2+3)=2x^2+6. A horizontal change and a vertical one can be done in either order. For vertical changes, stretch or reflect by aa first and add kk last, the order in which you would compute an output.

Why does f(x−4) move the graph right instead of left?

Because the new graph reaches each old height 4 units later. Whatever ff did at input 0, f(x−4)f(x-4) does at x=4x=4, since that is where x−4=0x-4=0. Every point arrives 4 units to the right of where it used to be. The same reasoning explains f(2x)f(2x): it reaches each old value at half the input, so the graph is squeezed toward the yy-axis.

Can two different transformations give the same graph?

Yes, for some parents. For y=2xy=2^x, shifting left 3 gives 2x+3=8⋅2x2^{x+3}=8\cdot 2^x, which is also a vertical stretch by 8. For the line y=2xy=2x, moving up 2 gives 2x+2=2(x+1)2x+2=2(x+1), the same as moving left 1. So a transformed graph may have more than one correct description, and an answer written in a different form can still be right.

How do I find where a point ends up after a transformation?

Apply the changes to its coordinates directly. For y=a f(b(x−h))+ky=a\,f(b(x-h))+k, a point (p,q)(p,q) on the parent moves to (pb+h, aq+k)\left(\frac{p}{b}+h,\ aq+k\right). So the point (4,2)(4,2) on y=xy=\sqrt{x} becomes (4+3, 2⋅2−1)=(7,3)(4+3,\ 2\cdot 2-1)=(7,3) on y=2x−3−1y=2\sqrt{x-3}-1. Tracking three or four key points this way gives an accurate sketch without a table of values.

Learning Path

Function Transformation

You are here

You need Function and the Coordinate Plane, so you can track how points such as a vertex move. Function Transformation adds the four moves (shift, stretch, compress, reflect) and the rule that inside changes act in reverse. Next, Parent Functions builds the library of basic shapes, such as x2, x, ∣x∣ and 1x, that these moves act on.

See Also