Function Transformations

Function transformations describe how shifting, stretching, and flipping graphs of functions create new related functions from a parent function.

y=af(b(xh))+ky = a\,f\big(b(x - h)\big) + k

Solve a problem with Function Transformations

Type the problem. The solver will use Function Transformations where Function Transformations is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Function Transformations takes
aa
bb
hh
kk
ff
xx
yy
Function Transformations
SymbolMeaning
aaThe vertical scaling factor: positive values stretch (if a>1|a| > 1) or compress (if 0<a<10 < |a| < 1) the graph vertically, while negative values also flip it vertically across the xx-axis.
bbThe horizontal scaling factor that works inversely: if b>1|b| > 1 the graph compresses horizontally by factor 1b\frac{1}{|b|}, if 0<b<10 < |b| < 1 it stretches horizontally by factor 1b\frac{1}{|b|}, and if b<0b < 0 it also flips horizontally.
hhThe horizontal shift: the graph moves right by hh units if h>0h > 0 or left by h|h| units if h<0h < 0, and the sign must match the subtraction in (xh)(x-h).
kkThe vertical shift: the graph moves up by kk units if k>0k > 0 or down by k|k| units if k<0k < 0, applied after all horizontal changes.
ffThe original parent function being transformed, such as f(x)=xf(x) = x, f(x)=x2f(x) = x^2, f(x)=xf(x) = \sqrt{x}, or f(x)=xf(x) = |x|.
xxThe input variable (independent variable) representing positions along the horizontal axis or quantities you can control.
yyThe output variable (dependent variable) representing positions along the vertical axis or the result after applying the transformation to an input value.

When to use it

Use this when you need to graph a function derived from a simpler parent function, or when you need to understand how changes to an equation affect its graph.

Level

Usually taught in: Algebra II

Worked examples

1. Identify transformations and find the vertex of a parabola

Problem

Identify all transformations in y=2(x1)2+3y = 2(x-1)^2 + 3, starting from f(x)=x2f(x) = x^2, and determine the location of the vertex.
  1. f(x)=x2 has vertex at (0,0)f(x) = x^2 \text{ has vertex at } (0, 0)

    Identify the parent function and its key feature, the vertex.

  2. a=2,b=1,h=1,k=3a = 2, \quad b = 1, \quad h = 1, \quad k = 3

    Match the equation y=af(b(xh))+ky = af(b(x-h)) + k to extract the transformation parameters from y=2(x1)2+3y = 2(x-1)^2 + 3.

  3. Vertical stretch by a=2; Horizontal shift right h=1; Vertical shift up k=3\text{Vertical stretch by } a = 2; \text{ Horizontal shift right } h = 1; \text{ Vertical shift up } k = 3

    Interpret each parameter: aa controls vertical stretch, (xh)(x-h) controls horizontal shift, and kk controls vertical shift.

  4. New vertex=(0+1,0+3)=(1,3)\text{New vertex} = (0 + 1, 0 + 3) = (1, 3)

    Apply all shifts to the original vertex (0,0)(0, 0)—move right 1 and up 3.

Answer: y=2(x1)2+3; vertex at (1,3); transformations: stretch vertically by 2, shift right 1, shift up 3y = 2(x-1)^2 + 3; \text{ vertex at } (1, 3); \text{ transformations: stretch vertically by } 2, \text{ shift right } 1, \text{ shift up } 3

Reading parameters directly from the equation y=a(xh)2+ky = a(x-h)^2 + k gives the vertex and all transformations at once. This vertex form is specifically designed so you can identify the vertex (h,k)(h, k) and all transformations instantly without plotting points.

2. Transform with a flip, compression, and shifts

Problem

Given f(x)=xf(x) = \sqrt{x}, apply these transformations: vertical flip, vertical compression by factor 2, horizontal shift left 3 units, vertical shift down 2 units. Write the new function and evaluate it at x=1x = 1.
  1. f(x)=xf(x) = \sqrt{x}

    Identify the parent function.

  2. a=12,b=1,h=3,k=2a = -\frac{1}{2}, \quad b = 1, \quad h = -3, \quad k = -2

    From the transformations: flip means a<0a < 0, compression by 2 means a=12|a| = \frac{1}{2}, shift left 3 means h=3h = -3 (negative for left), shift down 2 means k=2k = -2.

  3. y=af(b(xh))+k=121(x(3))+(2)=12x+32y = af(b(x-h)) + k = -\frac{1}{2}\sqrt{1 \cdot (x-(-3))} + (-2) = -\frac{1}{2}\sqrt{x+3} - 2

    Substitute parameters into the transformation formula, being careful with the double negative (x(3))=(x+3)(x-(-3)) = (x+3).

  4. y(1)=121+32=1242=12(2)2=12=3y(1) = -\frac{1}{2}\sqrt{1+3} - 2 = -\frac{1}{2}\sqrt{4} - 2 = -\frac{1}{2}(2) - 2 = -1 - 2 = -3

    Evaluate the new function at x=1x = 1 by substituting and simplifying the square root before multiplying by 12-\frac{1}{2}.

Answer: y=12x+32;y(1)=3y = -\frac{1}{2}\sqrt{x+3} - 2; \quad y(1) = -3

The negative aa flips the graph vertically and compresses it. The h=3h = -3 means the standard form (x(3))(x - (-3)) produces x+3x + 3, shifting the domain left. The vertical flip combined with the shift and compression creates a curve that rises less steeply and is positioned in the third quadrant near the new starting point.

3. Apply transformations to a real-world cost function

Problem

A gym charges M(m)=50mM(m) = 50m dollars for mm months of membership. The gym restructures pricing: the monthly rate doubles and adds a $40 registration fee. Write the new cost function and find the cost for a 6-month membership.
  1. M(m)=50mM(m) = 50m

    Identify the original cost function, where 50 is the monthly rate.

  2. New cost=2M(m)+40\text{New cost} = 2 \cdot M(m) + 40

    The new function applies a vertical stretch by factor 2 (doubling the rate) and adds a vertical shift of 40 (the registration fee).

  3. Mnew(m)=2(50m)+40=100m+40M_{\text{new}}(m) = 2(50m) + 40 = 100m + 40

    Substitute the original function into the transformed equation and simplify by multiplying.

  4. Mnew(6)=100(6)+40=600+40=640M_{\text{new}}(6) = 100(6) + 40 = 600 + 40 = 640

    Evaluate the new function at m=6m = 6 to find the total cost in dollars for a 6-month membership.

Answer: Mnew(m)=100m+40;Cost for 6 months=$640M_{\text{new}}(m) = 100m + 40; \quad \text{Cost for 6 months} = \$640

Function transformations directly model real scenarios where prices, rates, or other quantities are scaled and shifted. Here, doubling the rate and adding a fee are exactly the transformations described by the formula—a vertical stretch and vertical shift—making it easy to write and understand the new function without recalculating from scratch.

Common mistakes

Where Function Transformations usually goes wrong
Answer came out wrong
To shift right by 2, write y=f(x+2)y = f(x+2)
Shifting right by 2 is written as y=f(x2)y = f(x-2); shifting left by 2 is written as y=f(x+2)y = f(x+2).
A coefficient of 12\frac{1}{2} stretches the graph vertically
Multiplying by 12\frac{1}{2} compresses vertically; to stretch vertically, multiply by a number greater than 1 like 2 or 3.
In y=f(3x)y = f(3x), the graph stretches horizontally by a factor of 3
To stretch horizontally by 3, write y=f(13x)y = f(\frac{1}{3}x); to compress horizontally by 3, write y=f(3x)y = f(3x).
The mistakeWhy it is wrongThe fix
To shift right by 2, write y=f(x+2)y = f(x+2)The transformation formula contains (xh)(x - h), so shifting right by 2 requires h=2h = 2, which gives (x2)(x-2) not (x+2)(x+2).Shifting right by 2 is written as y=f(x2)y = f(x-2); shifting left by 2 is written as y=f(x+2)y = f(x+2).
A coefficient of 12\frac{1}{2} stretches the graph verticallyA coefficient between 0 and 1 compresses the graph toward the xx-axis, not stretches it away.Multiplying by 12\frac{1}{2} compresses vertically; to stretch vertically, multiply by a number greater than 1 like 2 or 3.
In y=f(3x)y = f(3x), the graph stretches horizontally by a factor of 3The bb parameter works inversely for horizontal changes: b=3b = 3 compresses the graph horizontally by a factor of 3, not stretches it.To stretch horizontally by 3, write y=f(13x)y = f(\frac{1}{3}x); to compress horizontally by 3, write y=f(3x)y = f(3x).

Tips and when to use something else

  • Apply transformations in order: horizontal stretches and shifts (changes to xx inside the function) happen first, then vertical stretches and shifts (changes to yy outside the function). Applying them in the wrong order produces a different equation.
  • The bb parameter is backwards from what you might expect: b=2b = 2 compresses horizontally, while b=12b = \frac{1}{2} stretches horizontally.
  • Negative values always flip: a<0a < 0 flips the graph vertically across the xx-axis, and b<0b < 0 flips the graph horizontally across the yy-axis.
  • For quadratic functions, use Vertex Form y=a(xh)2+ky = a(x-h)^2 + k to identify the vertex (h,k)(h, k) instantly; for other functions like square roots or absolute values, apply the general transformation formula y=af(b(xh))+ky = af(b(x-h)) + k.

Frequently asked questions

Why does (xh)(x-h) mean shift right when hh is positive?
The formula has a minus sign built in: (xh)(x-h). When h=3h = 3, we compute x3x - 3, which gives the same output value using a smaller input number, so the graph shifts right. When h=2h = -2, we compute x(2)=x+2x - (-2) = x + 2, which shifts left. The sign of hh is opposite to the direction of the shift.
How does multiplying xx by a number create a horizontal squeeze or stretch, not a vertical one?
When you write f(2x)f(2x), you get the same output value using half the input. This makes the graph repeat twice as fast as you move right, squeezing it horizontally. Multiplying the entire function 2f(x)2f(x) stretches vertically because every yy-value is doubled, moving points away from the xx-axis. The position of the multiplication (inside or outside the function) determines the direction of the transformation.
Can I apply transformations in a different order than stated in the formula?
No. Horizontal transformations must be applied to xx before vertical transformations are applied to the output. If you switch the order, you get a different equation. For example, stretching vertically first then shifting horizontally right gives a different result than shifting right first then stretching vertically.
How do I write the equation when a problem describes transformations in words but does not use the word 'shift'?
Translate the description into transformation parameters: "double" means a=2a = 2, "half" means a=12a = \frac{1}{2}, "move left 3" means h=3h = -3, "move up 5" means k=5k = 5. Then substitute into y=af(b(xh))+ky = af(b(x-h)) + k. Remember that negative hh values mean leftward shifts and negative kk values mean downward shifts.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18