Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Transformations






Reshaping Functions

Every function family has a simplest member — a parent function that captures the essential shape. The parabola y=x2y = x^2. The absolute value y=∣x∣y = |x|. The square root y=xy = \sqrt{x}. From each parent, an infinite variety of related functions emerges through transformations: shifts that move the graph, stretches that change its scale, reflections that flip its orientation.

Transformations connect algebra to geometry. A change in the equation produces a predictable change in the graph. Knowing how each transformation works allows sketching complex functions quickly and writing equations from visual information.

Key Terms

The Four Operations

Transformation— any operation that modifies a graph: shift, reflect, stretch, or compress
Translation— sliding the graph horizontally or vertically without changing shape
Reflection— flipping the graph across an axis
Dilation— stretching or compressing the graph vertically or horizontally

Foundation

Parent Function— the starting shape before any transformations are applied
Domain— horizontal transformations shift or scale the domain
Range— vertical transformations shift or scale the range


See All Function Definitions →


Parent Functions

A parent function is the simplest function representing a family. It captures the essential shape without any shifts, stretches, or reflections.

Common parent functions include:

Linear: f(x)=xf(x) = x — a straight line through the origin with slope 11.

Quadratic: f(x)=x2f(x) = x^2 — a parabola with vertex at the origin, opening upward.

Cubic: f(x)=x3f(x) = x^3 — an S-curve passing through the origin with point symmetry.

Absolute value: f(x)=∣x∣f(x) = |x| — a V-shape with vertex at the origin.

Square root: f(x)=xf(x) = \sqrt{x} — a half-curve starting at the origin, rising and flattening.

Reciprocal: f(x)=1/xf(x) = 1/x — a hyperbola with branches in opposite quadrants.

Exponential: f(x)=exf(x) = e^x or f(x)=2xf(x) = 2^x — a curve rising rapidly to the right, approaching zero to the left.

Each parent has characteristic domain, range, symmetry, and shape. Transformations modify these features systematically. Knowing the parent means knowing what to expect from its transformed offspring. The table below collects all seven parents in one place with formula, domain, range, and the geometric feature that identifies each.
DownloadPNG2×PDF
Layout
ParentFormulaDomainRangeIdentifying feature
Linearf(x) = xℝℝstraight line through the origin, slope 1
Quadraticf(x) = x²ℝ[0, ∞)parabola with vertex at the origin, opens upward
Cubicf(x) = x³ℝℝS-curve through the origin with point symmetry
Absolute valuef(x) = |x|ℝ[0, ∞)V-shape with vertex at the origin
Square rootf(x) = √x[0, ∞)[0, ∞)half-curve rising from the origin, flattening
Reciprocalf(x) = 1⁄xx ≠ 0y ≠ 0hyperbola with asymptotes at the axes
Exponentialf(x) = eˣ (or 2ˣ)ℝ(0, ∞)rises rapidly to the right, asymptote y = 0
Parent FunctionsLearn Math Class

Transformations Overview

A small change to a formula often leaves the shape of its graph alone and only moves it.
Adding 33 to x2x^2, or replacing xx by x−3x - 3, gives new functions — but their graphs still look like the familiar parabola.
y = x² + 3 is the parabola lifted 3 units; y = (x − 3)² is the parabola moved 3 units right.
Track a few points of y=x2y = x^2 into each new graph. Every point travels the same distance in the same direction.
point on y = x²on y = x² + 3on y = (x − 3)²
(0, 0)(0, 3)(3, 0)
(1, 1)(1, 4)(4, 1)
(2, 4)(2, 7)(5, 4)
move3 up3 right
y = x^2, y = x^2 + 3 and y = (x - 3)^2: the same parabola moved up and moved rightxy−4−3−2−11234567246810y = x²y = x² + 3y = (x − 3)²One shape, three positions: vertex at (0, 0), (0, 3) and (3, 0)
Those moves are forced by the formulas, not chosen.
For x2+3x^2 + 3, each output is the old output plus 33, so every point rises by 33. For (x−3)2(x - 3)^2, the new function at xx does what the old one did at x−3x - 3, so each old value turns up 33 units further right. A change outside the function acts on outputs; a change inside acts on inputs.
These transformations arise from modifying the function's equation.
RULE
Changes outside the function — operations applied to f(x)f(x) — produce vertical effects. Changes inside the function — operations applied to xx — produce horizontal effects.
The definition
A transformation of a function is a change to its formula that moves, flips, stretches or compresses its graph while keeping the basic shape recognisable.
The general transformed function takes the form:
General Transformation
g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k
Learn more about this formula: General Transformation →
Here aa controls vertical stretch and reflection, bb controls horizontal stretch and reflection, hh controls horizontal shift, and kk controls vertical shift. Understanding each parameter's effect enables both graphing from equations and writing equations from graphs.
So x2+3x^2 + 3 is the transformation with k=3k = 3, and (x−3)2(x - 3)^2 the one with h=3h = 3.
Transformations come in four basic kinds, and each one has a parameter.
Transformations alter a function's graph in predictable ways. Four basic types cover most modifications:
Translation shifts the graph horizontally or vertically without changing its shape or orientation.
Reflection flips the graph across an axis, reversing its orientation.
Stretch pulls the graph away from an axis, making it taller or wider.
Compression pushes the graph toward an axis, making it shorter or narrower.
-10-5510-55g(x) = 0.5 · f(1.5(x − 2)) + 1
All four parameters at once

The dashed curve is the parent f(x) = x²; the solid one is g(x) = 0.5 · f(1.5(x − 2)) + 1. Inside the function, h = 2 moves the vertex right and b = 1.5 narrows the curve; outside, a = 0.5 flattens it and k = 1 lifts it. The vertex lands at (2, 1). Set each of a, b, h, k yourself on the transformations explorer.

Every transformation on this page is one of these four parameters at work.
Inside changes run against intuition: (x − 3)² moves right, not left.
The minus sign in x−3x - 3 points the opposite way to the move, because the new graph needs a larger xx to reach the same value. The same reversal affects horizontal stretches and the order in which several transformations are applied. The section on horizontal translations works through it.
The rest of the page covers the notation and then each transformation in turn — translations, reflections, stretches and compressions — before combining them.

Transformation Notation

Notation

Transformation Notation

Four lowercase knobs, one sign trap, and a minus that flips a different mirror depending on where it stands. The inside/outside split — input changes move horizontally, output changes vertically — is the single rule behind everything here.
f(x)f(x), substitution and the letter conventions come from function notation; the domain and range each transformation drags along are written with domain and range notation.
a⋅f(b(x−h))+ka \cdot f(b(x - h)) + k
a times f of b times, x minus h, plus k
The four-knob recipe: outside letters (aa, kk) act on the output and move things vertically; inside letters (bb, hh) act on the input and move things horizontally — Transformations Overview above assigns each its job.
CasesTrigonometry runs the same machine in capitals — the Asin⁡(Bx−C)+DA\sin(Bx - C) + D of sinusoidal graphs; the h,kh, k pair is the one vertex form (x−h)2+k(x - h)^2 + k carries. Case is convention; the grammar is identical.
Do not confuseA left-to-right pipeline. The knobs do not apply in reading order — inside transformations act before outside ones, which is why combined problems track Order of Transformations below.
f(x−h)f(x - h)
f of x minus h
The sign trap of the subject: subtracting inside shifts right — (x−3)2(x - 3)^2 sits three units to the right of x2x^2. Horizontal Translations below explains why the direction inverts; the notation just records the outcome.
CasesLeft shifts hide as negative hh: ∣x+2∣|x + 2| is x−(−2)x - (-2), so h=−2h = -2, two units left — reading a shift means first rewriting the inside as a subtraction.
Do not confuseThe vertical twin. Outside, the sign behaves: f(x)+kf(x) + k goes up for positive kk, no inversion — importing that intuition inside is exactly how graphs land on the wrong side.
−f(x)-f(x) vs f(−x)f(-x)
minus f of x; f of minus x
One minus, two mirrors — position picks the axis: −f(x)-f(x) negates outputs and flips across the xx-axis; f(−x)f(-x) negates inputs and flips across the yy-axis. Vertical Reflections and Horizontal Reflections below draw both.
CasesThe pair doubles as the symmetry test: f(−x)=f(x)f(-x) = f(x) declares a function even, f(−x)=−f(x)f(-x) = -f(x) odd — the checks of graph analysis.
Do not confuseEach other, constantly. For odd functions the two coincide — (−x)3=−x3(-x)^3 = -x^3 hides the difference; testing on a lopsided function like x\sqrt{x} or exe^x is the fastest way to see the two mirrors apart.
DownloadPNG2×PDF
Notation · Cheat sheet
Function Notation at a Glance
The marks from the notation cards across the function pages: how each is read and what it means. Every group links to the full card on its page.
Basics
f(x)f(x)
f of x
ff names the rule, f(x)f(x) its output; never f times x.
g(t),  P(n)g(t), \; P(n)
g of t; P of n
Any letter can name a function; tt hints at time, nn at counting.
f(x+1)f(x + 1)
f of x plus one
Whatever is in the brackets replaces xx everywhere.
Domain
[2,5)[2, 5)
two included, five excluded
Square bracket in, round bracket out.
{x∣x≥0}\{x \mid x \geq 0\}
all x such that
Set-builder: the variable, then the test it must pass.
(a,b)∪(c,d)(a, b) \cup (c, d)
a union of intervals
For domains in separate pieces, as (−∞,−1)∪(1,∞)(-\infty, -1) \cup (1, \infty).
Range
{y∣y≥0}\{y \mid y \geq 0\}
all y such that
The same grammar on the output side.
f:R→Rf: \mathbb{R} \to \mathbb{R}
f from R to R
Domain, then codomain; the range may be smaller.
{2,5,7}\{2, 5, 7\}
exactly these outputs
A finite range listed in braces.
Function arithmetic
(f+g)(x)(f + g)(x)
f plus g, of x
Equals f(x)+g(x)f(x) + g(x); the same for f−gf - g.
(fg)(x)(fg)(x)
f times g, of x
Equals f(x) g(x)f(x)\,g(x).
(fg)(x)\left(\frac{f}{g}\right)(x)
f over g, of x
Equals f(x)g(x)\frac{f(x)}{g(x)}, only where g(x)≠0g(x) \neq 0.
Composition
f∘gf \circ g
f after g
Feed the output of gg into ff; read right to left.
f(g(x))f(g(x))
f of g of x
The same thing, evaluated inside out.
fg(x)fg(x)
ambiguous
Could mean a product; avoid it for composition.
Inverse functions
f−1(x)f^{-1}(x)
f inverse of x
The function that undoes ff: f−1(f(x))=xf^{-1}(f(x)) = x.
1f(x),  (f(x))−1\frac{1}{f(x)}, \; (f(x))^{-1}
one over f of x
The reciprocal: a different thing.
Dom(f),  Ran(f)\text{Dom}(f), \; \text{Ran}(f)
domain and range of f
They swap: Dom(f−1)=Ran(f)\text{Dom}(f^{-1}) = \text{Ran}(f).
Piecewise functions
{2xx<05x≥0\begin{cases} 2x & x < 0 \\ 5 & x \geq 0 \end{cases}
defined by cases
Use the row whose condition holds.
x<1,  x≥1x < 1, \; x \geq 1
split at the boundary
Each cut point belongs to exactly one row.
∙,  ∘\bullet, \; \circ
solid dot, open dot
On a graph: endpoint included, endpoint excluded.
TransformationsThis page
af(b(x−h))+ka f(b(x - h)) + k
the four-knob form
Outside letters move it vertically, inside letters horizontally.
f(x−h)f(x - h)
f of x minus h
Shifts right by hh: the sign goes the opposite way.
−f(x)-f(x) vs f(−x)f(-x)
two mirrors
Flip across the xx-axis against flip across the yy-axis.
Same marks, different job
f−1f^{-1} vs 1f\frac{1}{f}The inverse function against the reciprocal.
f(x)f(x)The brackets apply ff; they never mean multiplication.
(2,5)(2, 5)An open interval in a domain; a point in the plane on a graph.
the bar ∣\midSuch that, inside set braces; given, inside P(⋅)P(\cdot); divides, between integers.
Function Notation at a Glance·/functions/basicsLearn Math Class

Vertical Translations

A vertical translation shifts the graph up or down. Every point moves the same vertical distance; the shape remains unchanged.

The transformation that shifts the graph of ff vertically takes the form:

Vertical Translation
g(x)=f(x)+kg(x) = f(x) + k
Learn more about this formula: Vertical Translation →


When k>0k > 0, the graph shifts up by kk units.

When k<0k < 0, the graph shifts down by ∣k∣|k| units.

For f(x)=x2f(x) = x^2, the function g(x)=x2+3g(x) = x^2 + 3 shifts the parabola up 33 units. The vertex moves from (0,0)(0, 0) to (0,3)(0, 3).

For f(x)=xf(x) = \sqrt{x}, the function g(x)=x−2g(x) = \sqrt{x} - 2 shifts the curve down 22 units. The starting point moves from (0,0)(0, 0) to (0,−2)(0, -2).

Vertical translation affects the range directly. If ff has range [0,∞)[0, \infty), then f(x)+kf(x) + k has range [k,∞)[k, \infty). The domain is unchanged — shifting up or down does not affect which inputs are valid.

The yy-intercept shifts by kk: if f(0)=cf(0) = c, then g(0)=c+kg(0) = c + k. The xx-intercepts shift to new locations determined by solving f(x)+k=0f(x) + k = 0.
-10-5510-55g(x) = f(x) + 3
g(x) = f(x) + 3

The dashed parabola is f(x) = x² and the solid one is the same curve lifted 3 units: every point moved straight up by the same amount, the vertex included, and the shape is untouched. A negative k would push it down. Drag k through negative values on the transformations explorer.

The vertical shift is the one transformation that leaves the x-coordinates of every feature alone.

Horizontal Translations

A horizontal translation shifts the graph left or right. Every point moves the same horizontal distance; the shape remains unchanged.

The transformation that shifts the graph of ff horizontally takes the form:

Horizontal Translation
g(x)=f(x−h)g(x) = f(x - h)
Learn more about this formula: Horizontal Translation →


When h>0h > 0, the graph shifts right by hh units.

When h<0h < 0, the graph shifts left by ∣h∣|h| units.

The direction is counterintuitive. Subtracting hh inside the function moves the graph in the positive direction. This happens because g(x)=f(x−h)g(x) = f(x - h) needs xx to be hh units larger to produce the same output as ff: g(x+h)=f(x)g(x + h) = f(x).

For f(x)=x2f(x) = x^2, the function g(x)=(x−3)2g(x) = (x - 3)^2 shifts the parabola right 33 units. The vertex moves from (0,0)(0, 0) to (3,0)(3, 0).

For f(x)=∣x∣f(x) = |x|, the function g(x)=∣x+2∣g(x) = |x + 2| shifts the V-shape left 22 units (since x+2=x−(−2)x + 2 = x - (-2), so h=−2h = -2). The vertex moves from (0,0)(0, 0) to (−2,0)(-2, 0).

Horizontal translation affects the domain directly. If ff has domain [0,∞)[0, \infty), then f(x−h)f(x - h) has domain [h,∞)[h, \infty). The range is unchanged.
-10-5510-55g(x) = f(x − 3)
g(x) = f(x − 3)

Subtracting 3 inside the function moves the parabola 3 units to the right, the direction opposite to the sign: the vertex that was at 0 now sits at 3. The graph itself is unchanged, only its position. Watch the vertex slide as h changes on the transformations explorer.

The sign reversal is the single most common source of error on this page.

Vertical Reflections

A vertical reflection flips the graph across the xx-axis. Points above the axis move below; points below move above.

The transformation that reflects the graph of ff vertically takes the form:

Vertical Reflection
g(x)=−f(x)g(x) = -f(x)
Learn more about this formula: Vertical Reflection →


Each output is negated: where ff produced yy, the reflected function produces −y-y.

For f(x)=x2f(x) = x^2, the function g(x)=−x2g(x) = -x^2 reflects the parabola across the xx-axis. The original opens upward with vertex at the minimum; the reflection opens downward with vertex at the maximum.

For f(x)=xf(x) = \sqrt{x}, the function g(x)=−xg(x) = -\sqrt{x} reflects the half-curve below the axis. The original has range [0,∞)[0, \infty); the reflection has range (−∞,0](-\infty, 0].

Vertical reflection transforms the range. If ff has range [a,b][a, b], then −f-f has range [−b,−a][-b, -a]. The domain is unchanged.

Peaks become valleys and valleys become peaks. An increasing function becomes decreasing, and vice versa. The xx-intercepts stay fixed — if f(c)=0f(c) = 0, then −f(c)=0-f(c) = 0 as well.
-10-5510-55g(x) = −x²
g(x) = −x²: reflected in the x-axis

Negating the output flips the parabola upside down across the x-axis: points above the axis land the same distance below it, and the vertex stays on the axis. The mirror line is drawn in the picture. Reflect other families in the same line on the reflections explorer.

Reflection is the special case a = −1 of the vertical stretch.

Horizontal Reflections

A horizontal reflection flips the graph across the yy-axis. Points on the right move to the left; points on the left move to the right.

The transformation that reflects the graph of ff horizontally takes the form:

Horizontal Reflection
g(x)=f(−x)g(x) = f(-x)
Learn more about this formula: Horizontal Reflection →


Each input is negated before the function acts: the output at xx equals the original output at −x-x.

Pitfall: Negating the output instead of the input
Reflecting f(x)=(x−2)2f(x) = (x - 2)^2 in the yy-axis as −(x−2)2-(x - 2)^2 flips it across the xx-axis instead: the vertex stays at (2,0)(2, 0) and the parabola opens downward. The yy-axis mirror image is f(−x)=(−x−2)2=(x+2)2f(-x) = (-x - 2)^2 = (x + 2)^2, with vertex (−2,0)(-2, 0).

For f(x)=xf(x) = \sqrt{x}, the function g(x)=−xg(x) = \sqrt{-x} reflects the half-curve across the yy-axis. The original exists for x≥0x \geq 0; the reflection exists for x≤0x \leq 0.

For f(x)=exf(x) = e^x, the function g(x)=e−xg(x) = e^{-x} reflects the exponential curve. The original rises to the right and decays to the left; the reflection rises to the left and decays to the right.

Horizontal reflection transforms the domain. If ff has domain [a,b][a, b], then f(−x)f(-x) has domain [−b,−a][-b, -a]. The range is unchanged.

The yy-intercept stays fixed — f(0)=f(−0)f(0) = f(-0). The xx-intercepts reflect: if f(c)=0f(c) = 0, then f(−x)=0f(-x) = 0 at x=−cx = -c.
-10-5510-55g(x) = √(−x)
g(x) = √(−x): reflected in the y-axis

Negating the input mirrors the square root across the y-axis: the curve that rose to the right now rises to the left, and its domain [0, ∞) becomes (−∞, 0]. An even function would be its own reflection here. Reflect the other families in the y-axis on the reflections explorer.

Reflection is the special case b = −1 of the horizontal stretch.

Vertical Stretch and Compression

A vertical stretch or compression changes the height of the graph. The xx-coordinates stay fixed while yy-coordinates scale.

The transformation that scales the graph of ff vertically takes the form:

Vertical Dilation
g(x)=a⋅f(x)g(x) = a \cdot f(x)
Learn more about this formula: Vertical Dilation →


When ∣a∣>1|a| > 1, the graph stretches vertically — it becomes taller.

When 0<∣a∣<10 < |a| < 1, the graph compresses vertically, becoming shorter.

When a<0a < 0, a reflection across the xx-axis also occurs.

For f(x)=x2f(x) = x^2, the function g(x)=3x2g(x) = 3x^2 stretches the parabola vertically by a factor of 33. Points move three times as far from the xx-axis. The parabola appears narrower.

For f(x)=sin⁡(x)f(x) = \sin(x), the function g(x)=12sin⁡(x)g(x) = \frac{1}{2}\sin(x) compresses the wave vertically. The amplitude decreases from 11 to 12\frac{1}{2}.

Fact: Stretching an exponential slides it
Since 8⋅2x=2x+38 \cdot 2^x = 2^{x + 3}, stretching y=2xy = 2^x vertically by 88 gives the same graph as moving it 33 units left. For an exponential, every vertical scaling by a positive factor is a horizontal shift.

For f(x)=2xf(x) = 2^x, the function g(x)=8⋅2xg(x) = 8 \cdot 2^x stretches the curve vertically by a factor of 88. The yy-intercept moves from (0,1)(0, 1) to (0,8)(0, 8) and every height is multiplied by 88, while the horizontal asymptote y=0y = 0 stays where it is, since 8⋅0=08 \cdot 0 = 0.

Vertical scaling affects the range. If ff has range [m,M][m, M], then a⋅fa \cdot f has range [am,aM][am, aM] when a>0a > 0, or [aM,am][aM, am] when a<0a < 0.

The xx-intercepts remain fixed — scaling zero still yields zero. The yy-intercept scales: if f(0)=cf(0) = c, then g(0)=acg(0) = ac.
-10-5510-55g(x) = 2 · f(x)
g(x) = 2f(x)

Multiplying every output by 2 doubles each height: the parabola becomes narrower because it climbs twice as fast, while its x-intercept and vertex on the axis stay put. A factor between 0 and 1 would flatten it instead. Slide a past 1 and below 1 on the transformations explorer.

Vertical stretches change the range; the domain is untouched.

Horizontal Stretch and Compression

A horizontal stretch or compression changes the width of the graph. The yy-coordinates stay fixed while xx-coordinates scale.

The transformation that scales the graph of ff horizontally takes the form:

Horizontal Dilation
g(x)=f(bx)g(x) = f(bx)
Learn more about this formula: Horizontal Dilation →


When ∣b∣>1|b| > 1, the graph compresses horizontally — it becomes narrower.

When 0<∣b∣<10 < |b| < 1, the graph stretches horizontally, becoming wider.

When b<0b < 0, a reflection across the yy-axis also occurs.

The effect is counterintuitive: multiplying xx by a number greater than 11 makes the graph narrower, not wider. This happens because larger bb means reaching the same output values at smaller xx values.

Pitfall: Raising only x to the power
Writing f(2x)f(2x) for f(x)=x3f(x) = x^3 as 2x32x^3 cubes only the xx and gives 22 at x=1x = 1, a vertical stretch. The whole input is cubed: f(2x)=(2x)3=8x3f(2x) = (2x)^3 = 8x^3, which reaches f(2)=8f(2) = 8 already at x=1x = 1.

For f(x)=x2f(x) = x^2, the function g(x)=(2x)2=4x2g(x) = (2x)^2 = 4x^2 compresses the parabola horizontally by a factor of 22. Points at x=1x = 1 and x=−1x = -1 now achieve the heights that ff achieved at x=2x = 2 and x=−2x = -2.

For f(x)=sin⁡(x)f(x) = \sin(x), the function g(x)=sin⁡(2x)g(x) = \sin(2x) compresses the wave horizontally. The period changes from 2π2\pi to π\pi — the wave completes twice as fast.

Horizontal scaling affects the domain. If ff has domain [p,q][p, q], then f(bx)f(bx) has domain [p/b,q/b][p/b, q/b] when b>0b > 0.

Across the six basic transformations covered in the sections above, a single pattern emerges: operations applied inside ff act on the horizontal direction, while operations applied outside ff act on the vertical direction. The table below pairs the inside form with the outside form for each of the three operation types — addition, negation, and scaling.
DownloadPNG2×PDF
Layout
Operation on the formulaInside f — horizontal effectOutside f — vertical effect
Add a constantf(x − h): shifts horizontally by h (sign reversed — counterintuitive)f(x) + k: shifts vertically by k (sign preserved)
Negatef(−x): reflection across the y-axis−f(x): reflection across the x-axis
Multiply by a constantf(bx): scales x-values by 1⁄b — reciprocal effect (|b| > 1 compresses, 0 < |b| < 1 stretches)a · f(x): scales y-values by a — direct effect (|a| > 1 stretches, 0 < |a| < 1 compresses)
Horizontal Stretch and CompressionLearn Math Class
-10-5510-55g(x) = f(2x)
g(x) = f(2x)

Doubling the input compresses the graph horizontally by a factor of 2: the height that x² reaches at x = 2 is now reached at x = 1. Heights are unchanged; positions along the x-axis are halved. Compare with the vertical stretch, which looks similar but moves different points, on the transformations explorer.

Horizontal stretches change the domain; the range is untouched.

Combining Transformations

Multiple transformations can act together. The general form

General Transformation
g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k
Learn more about this formula: General Transformation →


combines all four types:

hh: horizontal shift (right if positive, left if negative)

kk: vertical shift (up if positive, down if negative)

aa: vertical stretch (∣a∣>1|a| > 1), compression (0<∣a∣<10 < |a| < 1), and reflection (a<0a < 0)

bb: horizontal compression (∣b∣>1|b| > 1), stretch (0<∣b∣<10 < |b| < 1), and reflection (b<0b < 0)

Example
For example, g(x)=−2(x+3)2+5g(x) = -2(x + 3)^2 + 5 transforms the parent f(x)=x2f(x) = x^2:
Shift left 33 units (since x+3=x−(−3)x + 3 = x - (-3), so h=−3h = -3)
Stretch vertically by factor 22
Reflect across the xx-axis (negative coefficient)
Shift up 55 units
The vertex moves from (0,0)(0, 0) to (−3,5)(-3, 5), and the parabola opens downward.

To break your own formula into its transformations step by step, use the transformations calculator on Functions Explorer.
x^2 transformed into -2(x + 3)^2 + 5, vertex (0, 0) to (-3, 5)xy−6−5−4−3−2−112−3−2−11234567−2(x + 3)² + 5(0, 0)vertex (−3, 5)parent x²Parent x² (dashed): left 3, stretch ×2, flip, up 5
Four transformations, one parabola

The section's example g(x) = −2(x + 3)² + 5 against its parent x² (dashed). Shifting left 3 and up 5 carries the vertex from (0, 0) to (−3, 5); the factor −2 makes the curve twice as steep and turns it upside down, so the vertex becomes a maximum.

Tracking the vertex is the quickest way to check a combined transformation.
DownloadPNG2×PDF
shiftstretch, compression, reflection
horizontalvertical
hh
Horizontal shift
  • Right if positive.
  • Left if negative.
bb
Horizontal scaling
  • Compression: ∣b∣>1|b| > 1
  • Stretch: 0<∣b∣<10 < |b| < 1
  • Reflection: b<0b < 0
kk
Vertical shift
  • Up if positive.
  • Down if negative.
aa
Vertical scaling
  • Stretch: ∣a∣>1|a| > 1
  • Compression: 0<∣a∣<10 < |a| < 1
  • Reflection: a<0a < 0
g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + kcombines all four types
Exampleg(x)=−2(x+3)2+5g(x) = -2(x + 3)^2 + 5 shifts x2x^2 left 33 units, stretches it vertically by factor 22, reflects it across the xx-axis and shifts it up 55 units. The vertex moves from (0,0)(0, 0) to (−3,5)(-3, 5).
Combining TransformationsLearn Math Class

Order of Transformations

When applying multiple transformations, order matters. Different sequences can produce different results.

One systematic approach applies transformations inside-out:

First, apply horizontal transformations: scale by 1/b1/b, then shift by hh (a point x0x_0 moves to x0/b+hx_0/b + h).

Then, apply vertical transformations in the order they appear when reading outward from the function: scale by aa, then shift by kk.

Pitfall: Reading the shift before factoring
Reading g(x)=(2x−6)2g(x) = (2x - 6)^2 as a shift right by 66 puts the vertex at x=6x = 6, where g(6)=36g(6) = 36. Factoring first, 2x−6=2(x−3)2x - 6 = 2(x - 3), gives h=3h = 3: the vertex is (3,0)(3, 0).

For g(x)=3f(2(x−1))+4g(x) = 3f(2(x - 1)) + 4:

Start with parent ff

Compress horizontally by factor 22 first (horizontal, inside)

Then shift right 11 (horizontal, inside)

Stretch vertically by factor 33 (vertical, outside)

Shift up 44 (vertical, outside)

An alternative approach tracks key points. Identify a reference point on the parent — say, the vertex of a parabola — and apply each transformation to that point's coordinates. The final coordinates locate the transformed point.

Both approaches yield the same result when done correctly. Choose the method that makes the most sense for the given problem.
Order matters: in a⋅f(b(x−h))+ka \cdot f(b(x - h)) + k, each direction is scaled first and shifted second.
The inside-out order on the function from this section. Press Next to apply one transformation at a time.
DownloadPNG2×PDF
g(x)=3f(2(x−1))+4g(x) = 3f(2(x - 1)) + 4Step 1 of 5
Step
g(x)=3f(2(x−1))+4g(x) = 3f(2(x - 1)) + 4
1
Start with the parent function
f(x)f(x)
2
Scale horizontally by 1/b1/bHorizontal, inside
Compress by factor 22: f(2x)f(2x)
3
Shift horizontally by hhHorizontal, inside
Shift right 11: f(2(x−1))f(2(x - 1))
4
Scale vertically by aaVertical, outside
Stretch by factor 33: 3f(2(x−1))3f(2(x - 1))
5
Shift vertically by kkVertical, outside
Shift up 44: 3f(2(x−1))+43f(2(x - 1)) + 4
The order on one functionLearn Math Class

Writing Equations from Transformed Graphs

Given a transformed graph, the goal is to identify the parent function and the transformations applied, then write the equation.

Step 1: Identify the parent function from the overall shape. Parabola suggests x2x^2; V-shape suggests ∣x∣|x|; S-curve suggests x3x^3; half-curve suggests x\sqrt{x}.

Step 2: Locate key reference points on the transformed graph. For a parabola, find the vertex. For absolute value, find the vertex. For square root, find the starting point.

Step 3: Compare to the parent. The vertex of y=x2y = x^2 is at (0,0)(0, 0). If the transformed vertex is at (3,−2)(3, -2), the graph has shifted right 33 and down 22.

Step 4: Determine vertical scaling and reflection. Compare the steepness or amplitude to the parent. If the graph is twice as steep, ∣a∣=2|a| = 2. If it opens in the opposite direction, aa is negative.

Step 5: Write the equation. For a parabola with vertex (3,−2)(3, -2) opening downward with steepness 22:

Writing Equations from Transformed Graphs
y=−2(x−3)2−2y = -2(x - 3)^2 - 2

Pitfall: Copying the vertex sign into the bracket
Writing the vertex (3,−2)(3, -2) as y=−2(x+3)2−2y = -2(x + 3)^2 - 2 puts the vertex at (−3,−2)(-3, -2), and the check point (4,−4)(4, -4) then gives −100-100. The bracket holds x−hx - h: y=−2(x−3)2−2y = -2(x - 3)^2 - 2.

Step 5 is where the picture becomes a formula. The two coordinates of the vertex end up in different places: the vertical one stands alone at the end, where it is added to every output, and the horizontal one goes inside the bracket next to xx, where it acts on the input before the squaring. The steepness found in Step 4 becomes the coefficient in front.

Step 6: Verify by checking a point. Substitute another visible point into the equation and confirm equality.
The six steps on the parabola of this section. Press Next to carry out one step at a time.
DownloadPNG2×PDF
A parabola with vertex (3,−2)(3, -2), opening downwardStep 1 of 6
Step
A parabola with vertex (3,−2)(3, -2), opening downward
1
Identify the parent function from the shape
parabola: y=x2y = x^2
2
Locate a key reference point
vertex at (3,−2)(3, -2)
3
Compare it to the parentThe vertex of y=x2y = x^2 is at (0,0)(0, 0)
right 33, down 22
4
Determine vertical scaling and reflection
twice as steep, opening downward: a=−2a = -2
5
Write the equation
y=−2(x−3)2−2y = -2(x - 3)^2 - 2
✓
Verify with another visible point
(4,−4)(4, -4): −2(4−3)2−2=−4-2(4 - 3)^2 - 2 = -4
From a transformed graph to its equation·/functions/transformationsLearn Math Class
Reading y = -2(x - 3)^2 - 2 from its vertex and one more pointxy−1123456−8−7−6−5−4−3−2−112vertex (3, −2)(4, −4)1 right, 2 down: |a| = 2y = −2(x − 3)² − 2The vertex gives h and k; one more point gives a
Reading the equation off the graph

The section's parabola: its vertex at (3, −2) gives h = 3 and k = −2. One step right of the vertex the graph has dropped 2 units, where the parent x² would have risen 1, so |a| = 2 and, since it opens downward, a = −2. The point (4, −4) checks the result: −2(4 − 3)² − 2 = −4.

Any visible point other than the vertex can serve as the check.

Effect on Domain and Range

Each transformation type affects domain and range in predictable ways.

Vertical translations shift the range. If ff has range [a,b][a, b], then f(x)+kf(x) + k has range [a+k,b+k][a + k, b + k]. The domain is unchanged.

Horizontal translations shift the domain. If ff has domain [a,b][a, b], then f(x−h)f(x - h) has domain [a+h,b+h][a + h, b + h]. The range is unchanged.

Vertical scaling multiplies the range. If ff has range [a,b][a, b], then c⋅f(x)c \cdot f(x) has range [ca,cb][ca, cb] when c>0c > 0, or [cb,ca][cb, ca] when c<0c < 0. The domain is unchanged.

Horizontal scaling divides the domain. If ff has domain [a,b][a, b], then f(cx)f(cx) has domain [a/c,b/c][a/c, b/c] when c>0c > 0, or [b/c,a/c][b/c, a/c] when c<0c < 0. The range is unchanged.

Vertical reflection negates the range. Horizontal reflection negates the domain.

Tracking these effects ensures the transformed function is described correctly.

Example
The domain and range of g(x)=2x−3+1g(x) = 2\sqrt{x - 3} + 1 follow from the parent f(x)=xf(x) = \sqrt{x} with domain [0,∞)[0, \infty) and range [0,∞)[0, \infty): shift domain to [3,∞)[3, \infty), then range becomes [0,∞)[0, \infty) scaled to [0,∞)[0, \infty), then shifted to [1,∞)[1, \infty).

The table below collects each transformation's effect on domain and range in one place — a quick reference when determining the domain and range of a transformed function.
DownloadPNG2×PDF
Layout
TransformationEffect on domainEffect on range
Vertical shift + kunchanged[a, b] → [a + k, b + k]
Horizontal shift − h[a, b] → [a + h, b + h]unchanged
Vertical scale by aunchanged[m, M] → [am, aM] (or [aM, am] if a < 0)
Horizontal scale by b[p, q] → [p⁄b, q⁄b] (or reversed if b < 0)unchanged
Vertical reflectionunchanged[a, b] → [−b, −a]
Horizontal reflection[a, b] → [−b, −a]unchanged
Effect on Domain and RangeLearn Math Class
Horizontal changes reshape only the domain and vertical changes only the range; neither reaches the other.

Effect on Key Features

Transformations move and modify all key features of a graph systematically.

Intercepts transform with the graph. The yy-intercept f(0)f(0) moves to a⋅f(−bh)+ka \cdot f(-bh) + k. When k=0k = 0, each xx-intercept cc moves to (c/b)+h(c/b) + h — scaled and shifted horizontally.

Vertices, maxima, and minima move according to both shifts and scalings. The vertex of f(x)=x2f(x) = x^2 at (0,0)(0, 0) moves to (h,k)(h, k) in a(x−h)2+ka(x - h)^2 + k. If a<0a < 0, a minimum becomes a maximum.

Asymptotes shift with translations. A horizontal asymptote at y=Ly = L becomes y=aL+ky = aL + k. A vertical asymptote at x=cx = c becomes x=(c/b)+hx = (c/b) + h.

Symmetry can be preserved or destroyed. Translating an even function horizontally off-center removes its yy-axis symmetry. Reflecting an odd function vertically preserves origin symmetry; translating it generally does not.

Periodicity scales with horizontal transformations. A function with period pp becomes a function with period p/∣b∣p/|b| under f(bx)f(bx). Amplitude scales with vertical transformations.

Tracking these features during transformation confirms that the algebraic and geometric descriptions match.

Common Pitfalls

Four mistakes come up again and again when transforming functions and reading transformed equations. Each is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Negating the output instead of the input
Asked to reflect a graph in the yy-axis, the minus sign is placed in front of the whole function instead of on the input. That produces the reflection in the xx-axis, a different graph.
Start
For f(x)=(x−2)2f(x) = (x - 2)^2,
Wrong turn
Error here
The reflection in the yy-axis is written as −(x−2)2-(x - 2)^2. Its vertex is still (2,0)(2, 0), and the parabola now opens downward.
Right path
A reflection in the yy-axis replaces xx with −x-x: f(−x)=(−x−2)2=(x+2)2f(-x) = (-x - 2)^2 = (x + 2)^2. The vertex moves to (−2,0)(-2, 0), and the parabola still opens upward.
Why it happensBoth reflections use a single minus sign, and "reflect" suggests turning the graph over, which is what −f(x)-f(x) does.
How to checkA reflection in the yy-axis keeps the yy-intercept, since f(−0)=f(0)f(-0) = f(0). Here f(0)=4f(0) = 4, and (0+2)2=4(0 + 2)^2 = 4 agrees, while −(0−2)2=−4-(0 - 2)^2 = -4 does not.
2Raising only x to the power
When bxbx is substituted into a power function, the power is applied to xx alone and bb is left outside. The result is a vertical stretch b⋅f(x)b \cdot f(x), not the horizontal compression f(bx)f(bx).
Start
For f(x)=x3f(x) = x^3,
Wrong turn
Error here
f(2x)f(2x) is written as 2x32x^3. At x=1x = 1 this gives 22.
Right path
The whole input is cubed: f(2x)=(2x)3=23x3=8x3f(2x) = (2x)^3 = 2^3 x^3 = 8x^3. At x=1x = 1 it gives 8=f(2)8 = f(2): the height ff reached at x=2x = 2 is now reached at x=1x = 1, which is the horizontal compression by a factor of 22.
Why it happens2x32x^3 looks like "x3x^3 with 2x2x in place of xx", but a power acts before multiplication, so 2x32x^3 means 2⋅x32 \cdot x^3, which is 2f(x)2f(x).
How to checkEvaluate at one input. f(2x)f(2x) at x=1x = 1 must equal f(2)f(2); here 2⋅13=22 \cdot 1^3 = 2, while f(2)=8f(2) = 8.
3Reading the shift before factoring
In an inside expression like bx−cbx - c, the number cc is read as the horizontal shift. The shift is the hh of the factored form b(x−h)b(x - h), so h=c/bh = c/b.
Wrong turn
Error here
g(x)=(2x−6)2g(x) = (2x - 6)^2 is read as "compress by 22, shift right 66", and the vertex is placed at x=6x = 6. But g(6)=(12−6)2=36g(6) = (12 - 6)^2 = 36, not 00.
Right path
2x−6=2(x−3)2x - 6 = 2(x - 3), so b=2b = 2 and h=3h = 3. The vertex is at (3,0)(3, 0), and indeed g(3)=(6−6)2=0g(3) = (6 - 6)^2 = 0.
Why it happensIn f(x−h)f(x - h) the number next to xx is the shift, and the habit carries over when a factor bb stands in front of xx. The factor acts on the shift as well, dividing it by bb.
How to checkThe parent's vertex sits where the inside equals 00. Solve 2x−6=02x - 6 = 0 to get x=3x = 3.
4Copying the vertex sign into the bracket
When an equation is written from a graph, the horizontal coordinate of the vertex is copied into the bracket with its sign unchanged, as if the bracket held x+hx + h.
Wrong turn
Error here
For a downward parabola with vertex (3,−2)(3, -2) and steepness 22, the equation is written as y=−2(x+3)2−2y = -2(x + 3)^2 - 2. Its vertex is (−3,−2)(-3, -2), the mirror image of the intended one.
Right path
Vertex form is a(x−h)2+ka(x - h)^2 + k, so h=3h = 3 goes in as x−3x - 3 and k=−2k = -2 is added at the end: y=−2(x−3)2−2y = -2(x - 3)^2 - 2. The point (4,−4)(4, -4) checks: −2(4−3)2−2=−4-2(4 - 3)^2 - 2 = -4.
Why it happenskk keeps its sign in the formula while hh appears with the opposite sign, and the two coordinates are read off the graph in the same way.
How to checkSubstitute a second visible point, as in Step 6. With the wrong equation, (4,−4)(4, -4) gives −2(4+3)2−2=−100-2(4 + 3)^2 - 2 = -100, far from −4-4.
Common pitfalls with transformations·/functions/transformationsLearn Math Class
Each slip changes the wrong part of the formula. A reflection in the yy-axis replaces xx with −x-x, f(2x)f(2x) puts 2x2x into every place that held xx, a horizontal shift is read only after the factor of xx is taken out, and the vertex form puts x−hx - h in the bracket. Evaluating the new formula at one input, or substituting a known point, catches each slip.

Summary of Transformations

This summary arranges the six basic transformations of a graph in three rows, shifts, stretches and compressions, and reflections, each in a vertical and a horizontal version. Above them sits the general form, in which four parameters control all six. Each cell gives the form, its effect on the graph with a link to its section, and the condition that decides the direction.

The vertical column changes the outputs and moves the graph the way the sign suggests. The horizontal column changes the inputs and runs against intuition: subtracting inside moves the graph right, and a large factor on the input makes it narrower. A note at the bottom points to combining all four at once.
DownloadPNG2×PDF
The general formg(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k
Verticalchanges the outputs, outside ff
follows the sign
Horizontalchanges the inputs, inside ff
counterintuitive
Shift
g(x)=f(x)+kg(x) = f(x) + k
Shifts the graph vertically by kk; every point moves the same distance, as vertical translations shows.
up if k>0k > 0, down if k<0k < 0
g(x)=f(x−h)g(x) = f(x - h)
Shifts the graph horizontally by hh; subtracting inside moves it the positive way, from horizontal translations.
right if h>0h > 0, left if h<0h < 0
Stretch / compression
g(x)=a⋅f(x)g(x) = a \cdot f(x)
Scales the yy-values by the factor aa while the xx-coordinates stay fixed (vertical stretch and compression).
stretch if ∣a∣>1|a| > 1, compress if 0<∣a∣<10 < |a| < 1
g(x)=f(bx)g(x) = f(bx)
Scales the xx-values by the factor 1/b1/b, so a larger bb makes the graph narrower (horizontal stretch and compression).
compress if ∣b∣>1|b| > 1, stretch if 0<∣b∣<10 < |b| < 1
Reflection
g(x)=−f(x)g(x) = -f(x)
Flips the graph across the xx-axis by negating every output, from vertical reflections.
occurs when a<0a < 0
g(x)=f(−x)g(x) = f(-x)
Flips the graph across the yy-axis by negating every input before ff acts (horizontal reflections).
occurs when b<0b < 0
All four togetherThe general form combines every row, and combining transformations reads aa, bb, hh and kk off a single equation.
The six basic transformations·All function formulasLearn Math Class
To read a transformed equation, sort its parameters first: what sits outside the function acts vertically and as expected, what sits inside acts horizontally and in reverse. Then apply the shifts, stretches and reflections one at a time to the original graph.

Skills You Should Learn

Each skill opens its step-by-step method page. Skills marked "On this page" are taught above.
Taught on this page
More functions methods

Function Transformations FAQ

Why does f(x + 2) shift the graph left instead of right?

+
Because the change happens to the input before the function acts. To produce the output previously seen at 2, you now only need to supply 0, so every feature arrives two units earlier and the graph moves left. Changes inside the brackets act on inputs and behave opposite to intuition; changes outside act on outputs and behave as expected.Read more →

What is the difference between reflecting over the x-axis and the y-axis?

+
Negating the whole function flips it vertically across the horizontal axis, turning every output upside down. Negating just the input flips it horizontally across the vertical axis, swapping left for right. Even functions look unchanged under the second, and odd functions look unchanged when both are applied together.Read more →

Why does f(2x)f(2x) make the graph narrower?

+
Because the new function reaches each output at half the input. At x=1x = 1, g(x)=f(2x)g(x) = f(2x) gives f(2)f(2), so every height of ff arrives twice as early and every point's xx-coordinate is halved. For x2x^2 the height 44, reached at x=2x = 2, is now reached at x=1x = 1; for sin⁡x\sin x the period drops from 2π2\pi to π\pi. A factor bb inside scales xx-values by 1b\frac{1}{b}, the reverse of what it looks like.Read more →

Is f(2x)f(2x) the same as 2f(x)2f(x)?

+
No. 2f(x)2f(x) doubles every output, a vertical stretch, while f(2x)f(2x) doubles every input, a horizontal compression. For f(x)=x3f(x) = x^3, 2f(x)=2x32f(x) = 2x^3 but f(2x)=(2x)3=8x3f(2x) = (2x)^3 = 8x^3; at x=1x = 1 these give 22 and 88. For a power function the inside factor can be pulled out, (bx)n=bnxn(bx)^n = b^n x^n, so for x3x^3 the compression by 22 draws the same graph as a vertical stretch by 23=82^3 = 8, not by 22.Read more →

How do you find the horizontal shift when xx has a coefficient?

+
Factor the coefficient out of the inside first. In (2x−6)2(2x - 6)^2 the shift is not 66: 2x−6=2(x−3)2x - 6 = 2(x - 3), so b=2b = 2 and h=3h = 3, and the vertex is at (3,0)(3, 0). Reading 66 as the shift puts the vertex at x=6x = 6, where (2⋅6−6)2=36(2 \cdot 6 - 6)^2 = 36. A quick check is to set the inside to zero: 2x−6=02x - 6 = 0 gives x=3x = 3, where the parent's vertex lands.Read more →

Can a vertical stretch be the same as a horizontal shift?

+
Yes, for exponential functions. Since 8⋅2x=23⋅2x=2x+38 \cdot 2^x = 2^3 \cdot 2^x = 2^{x + 3}, stretching y=2xy = 2^x vertically by 88 gives exactly the graph of 2x2^x moved 33 units left. Any positive factor works the same way: c⋅2x=2x+log⁡2cc \cdot 2^x = 2^{x + \log_2 c}, a shift of log⁡2c\log_2 c units to the left, or to the right when c<1c < 1. The asymptote y=0y = 0 stays put under either description.Read more →