Transformations Of Functions: Rules & Examples

#Calculus
TL;DR
Transformations of functions are the six ways of moving or reshaping a graph without changing its basic form: shift it up or down with f(x)+kf(x) + k, shift it left or right with f(x−h)f(x - h), stretch or compress it vertically with a,f(x)a,f(x) or horizontally with f(bx)f(bx), and reflect it with −f(x)-f(x) (over the x-axis) or f(−x)f(-x) (over the y-axis). The two rules that trip students up are horizontal: f(x−h)f(x - h) moves the graph right for positive hh, and f(bx)f(bx) scales it by 1/b1/b, both the opposite of what the sign or number first suggests.
BT
Bhanzu TeamLast updated on October 1, 202612 min read

What Are Transformations Of Functions?

Transformations of functions are the standard ways of changing the graph of a function f(x)f(x) into a related graph that keeps the same fundamental shape but is moved, stretched, or flipped. You start from a parent function, a simple base such as f(x)=x2f(x) = x^2 or f(x)=xf(x) = \sqrt{x}, and every change is written as an edit to that function's formula.

There are two families, and telling them apart is the whole game:

  • Outside changes act on the output (vertical). Anything you do to f(x)f(x) after it produces its value, such as f(x)+kf(x) + k or a,f(x)a,f(x), moves or scales the graph up and down, and it behaves the way you expect.

  • Inside changes act on the input (horizontal). Anything you do to xx before the function sees it, such as f(x−h)f(x - h) or f(bx)f(bx), moves or scales the graph left and right, and it behaves backwards from the sign or number written down.

That single split, outside means vertical and intuitive, inside means horizontal and reversed, explains every rule below. It also builds directly on function notation, because a transformation is nothing more than a small rewrite of f(x)f(x).

What Are The Six Transformations Of Functions?

There are six core transformations, in three pairs. For each one, the algebra tells you what to type, and the geometry tells you what the graph does.

Vertical shift: f(x)+kf(x) + k. Adds kk to every output. Graphically, the whole curve slides up by kk (or down if kk is negative). A point (x,y)(x, y) moves to (x,,y+k)(x,, y + k).

Horizontal shift: f(x−h)f(x - h). Replaces xx with x−hx - h before the function runs. Graphically, the curve slides right by hh when hh is positive. This is the counter-intuitive one: the minus sign moves the graph in the positive direction. A point (x,y)(x, y) moves to (x+h,,y)(x + h,, y).

Vertical stretch or compression: a,f(x)a,f(x). Multiplies every output by aa. If a>1a > 1 the graph is stretched taller; if 0<a<10 < a < 1 it is compressed toward the x-axis. A point (x,y)(x, y) moves to (x,,ay)(x,, a y).

Horizontal stretch or compression: f(bx)f(bx). Multiplies the input by bb before the function runs. The graph is scaled horizontally by a factor of 1/b1/b, the reciprocal, so b>1b > 1 actually compresses the graph and 0<b<10 < b < 1 stretches it. A point (x,y)(x, y) moves to (xb,,y)\left(\tfrac{x}{b},, y\right). This is the second counter-intuitive rule.

Reflection over the x-axis: −f(x)-f(x). Flips the sign of every output, so the graph flips upside-down across the x-axis. A point (x,y)(x, y) moves to (x,,−y)(x,, -y).

Reflection over the y-axis: f(−x)f(-x). Flips the sign of the input, so the graph flips left-to-right across the y-axis. A point (x,y)(x, y) moves to (−x,,y)(-x,, y).

What Is The Transformations Of Functions Rule Table?

Every rule above collapses into one reference. Read the middle column as "what to type" and the right column as "what the graph does."

Table: The six transformations of functions, their algebra, and their effect on the graph.

Transformation

Rule applied to f(x)f(x)

Effect on the graph

Vertical shift

f(x)+kf(x) + k

Up kk if k>0k > 0, down if k<0k < 0

Horizontal shift

f(x−h)f(x - h)

Right hh if h>0h > 0, left if h<0h < 0 (reversed)

Vertical stretch / compress

a,f(x)a,f(x)

Taller if a>1a > 1, shorter if 0<a<10 < a < 1

Horizontal stretch / compress

f(bx)f(bx)

Scaled by 1/b1/b: compressed if b>1b > 1, stretched if 0<b<10 < b < 1 (reciprocal)

Reflect over x-axis

−f(x)-f(x)

Flipped upside-down (top to bottom)

Reflect over y-axis

f(−x)f(-x)

Flipped left-to-right

The two "reversed" rows are the horizontal ones. Both act on the input, and both do the opposite of what the symbol first suggests. Keep this table beside you and the sign errors mostly disappear.

How Do You Apply Combined Transformations Of Functions?

Real problems stack several changes at once, written in the general form

g(x)=a,f(b(x−h))+k.g(x) = a,f\big(b(x - h)\big) + k.

Rather than argue about order, use one reliable point-mapping rule. A point (x0,y0)(x_0, y_0) on the parent graph lands at

(x0b+h,;;a,y0+k).\left(\frac{x_0}{b} + h,;; a,y_0 + k\right).

The x-coordinate is handled inside-first (divide by bb, then add hh); the y-coordinate is handled outside (multiply by aa, then add kk). Mapping three or four points this way rebuilds the whole transformed graph without a single sign slip.

Example 1: Describe and plot g(x)=2(x−3)2+1g(x) = 2(x - 3)^2 + 1 from the parent f(x)=x2f(x) = x^2.

Read the formula against the general form, with a=2a = 2, h=3h = 3, k=1k = 1, and b=1b = 1:

  • x−3x - 3 inside shifts the graph right 3.

  • The factor 22 outside gives a vertical stretch by 2.

  • The +1+1 outside shifts the graph up 1.

Now map three points from f(x)=x2f(x) = x^2, using (x0,y0)↦(x0+3,;2y0+1)(x_0, y_0) \mapsto (x_0 + 3,; 2y_0 + 1):

(0,0)↦(3,1),(1,1)↦(4,3),(2,4)↦(5,9)(0, 0) \mapsto (3, 1), \qquad (1, 1) \mapsto (4, 3), \qquad (2, 4) \mapsto (5, 9)

Check the vertex directly: g(3)=2(0)2+1=1g(3) = 2(0)^2 + 1 = 1, matching (3,1)(3, 1). The parabola now sits with its lowest point at (3,1)(3, 1), twice as steep as y=x2y = x^2.

Final answer: right 3, vertical stretch by 2, up 1; vertex at (3,1)(3, 1).

Example 2: Describe and plot g(x)=−x−1g(x) = -\sqrt{x - 1} from the parent f(x)=xf(x) = \sqrt{x}.

Here a=−1a = -1 and h=1h = 1, so there are two changes:

  • x−1x - 1 inside shifts the graph right 1 (so the domain becomes x≥1x \ge 1).

  • The −1-1 outside is a reflection over the x-axis.

Map points with (x0,y0)↦(x0+1,;−y0)(x_0, y_0) \mapsto (x_0 + 1,; -y_0):

(0,0)↦(1,0),(1,1)↦(2,−1),(4,2)↦(5,−2)(0, 0) \mapsto (1, 0), \qquad (1, 1) \mapsto (2, -1), \qquad (4, 2) \mapsto (5, -2)

Check: g(5)=−5−1=−4=−2g(5) = -\sqrt{5 - 1} = -\sqrt{4} = -2, matching (5,−2)(5, -2). The square-root curve starts at (1,0)(1, 0) and bends downward instead of upward. Reading the new domain and range of a function straight off the transformation is one of the payoffs of this method.

Example 3: Compress f(x)=x2f(x) = x^2 horizontally with g(x)=f(2x)g(x) = f(2x).

Substituting 2x2x for xx gives g(x)=(2x)2=4x2g(x) = (2x)^2 = 4x^2. Because b=2b = 2, the horizontal scale factor is 1/21/2, a compression, not a stretch:

(2,4)↦(1,4),(3,9)↦(1.5,9)(2, 4) \mapsto (1, 4), \qquad (3, 9) \mapsto (1.5, 9)

Check: g(1)=(2⋅1)2=4g(1) = (2 \cdot 1)^2 = 4, matching (1,4)(1, 4). Every point is pulled halfway toward the y-axis. Compare f(x2)=x24f\left(\tfrac{x}{2}\right) = \tfrac{x^2}{4}, where b=12b = \tfrac{1}{2} gives a scale factor of 22, a genuine stretch: there (2,4)↦(4,4)(2, 4) \mapsto (4, 4).

How Do Reflections Connect To Even And Odd Functions?

The two reflection rules link directly to symmetry, which is why some graphs look unchanged after a flip.

  • A function is even when f(−x)=f(x)f(-x) = f(x). Reflecting it over the y-axis lands it exactly on top of itself, so its graph is symmetric about the y-axis. The parent f(x)=x2f(x) = x^2 is even: f(−x)=(−x)2=x2f(-x) = (-x)^2 = x^2.

  • A function is odd when f(−x)=−f(x)f(-x) = -f(x). Reflecting it over the y-axis and the x-axis returns the original, so its graph is symmetric about the origin. The parent f(x)=x3f(x) = x^3 is odd: f(−x)=(−x)3=−x3f(-x) = (-x)^3 = -x^3.

So the f(−x)f(-x) transformation is a test as much as a move: apply it, and if nothing changes the function is even, while if the whole graph flips sign it is odd. This symmetry lens carries straight into curve sketching, where knowing a function is even or odd halves the work.

Why Do Horizontal Transformations Work Backwards?

The reversal feels wrong until you look at when the change happens. Horizontal transformations act on the input, before the function runs, so they change which xx produces a given output.

  • The shift. In g(x)=f(x−3)g(x) = f(x - 3), the graph of gg reaches a given height when x−3x - 3 equals the input that gave ff that height. If ff peaked at input 00, then gg peaks when x−3=0x - 3 = 0, that is at x=3x = 3. To keep the inside equal to the old input, xx has to grow, so the graph moves right. The minus sign forces xx up.

  • The scale. In g(x)=f(2x)g(x) = f(2x), the function hits its input value twice as fast, so it reaches every feature at half the xx. Feed it a bigger multiplier and the graph races through its shape sooner, squeezing horizontally by the reciprocal 1/b1/b.

Vertical transformations never reverse because they act after the function has produced its value, so adding or multiplying does exactly what the symbol says. The rule to carry: outside is honest, inside is reversed. Seeing input-versus-output this way is the same reading you use for composition of functions, where an inside function always runs first.

Who Shaped Transformations Of Functions?

Graphs of functions are so familiar that it is easy to forget someone had to invent the coordinate plane before any curve could be shifted or stretched at all.

Two later figures shaped how we write and think about these moves:

  • Leonhard Euler (1707–1783, Switzerland) introduced the notation f(x)f(x) in the 1730s, which is what lets us write a transformation as a clean edit such as f(x−h)f(x - h) rather than a paragraph of words.

  • Felix Klein (1849–1925, Germany) put transformations at the center of geometry itself in his 1872 Erlangen program, arguing that a geometry is the study of the properties left unchanged by a family of transformations.

Where Are Transformations Of Functions Used In The Real World?

Shifting, scaling, and reflecting a known shape is how many fields reuse one model in many situations.

  • Computer graphics and animation: every character that slides across the screen, scales up, or mirrors is a transformation applied to the curves and surfaces that define it.

  • Signal and audio processing: raising a sound's volume is a vertical stretch of its waveform, delaying it is a horizontal shift, and inverting its phase is a reflection.

  • Physics: a wave that travels is the graph y=f(x−vt)y = f(x - vt), a horizontal shift of a fixed shape moving with time, so the shift rule literally describes motion.

  • Economics and statistics: a demand curve or a bell-shaped distribution is often a single parent shape shifted and scaled to fit new data, rather than a brand-new function each time.

  • Engineering: transfer functions and control models reuse standard response curves, tuned to a system by stretching and shifting them.

One parent shape plus six moves generates a whole family, which is why transformations show up wherever the same pattern recurs at a new scale, place, or orientation.

What Are The Most Common Mistakes With Transformations Of Functions?

These three errors account for most lost marks on this topic, and each matches a question real students ask on r/learnmath and in course common-error notes.

Reading the sign of a horizontal shift backwards.

Where it slips in:

A student sees f(x−3)f(x - 3) and shifts the graph three units to the left, treating the minus sign as "go negative."

Don't do this:

Do not move the graph in the direction the sign points. Inside changes are reversed.

The correct way:

f(x−h)f(x - h) shifts right by hh, and f(x+h)f(x + h) shifts left. So f(x−3)f(x - 3) moves right 3. Test it with one point: the vertex of (x−3)2(x - 3)^2 sits where x−3=0x - 3 = 0, at x=3x = 3, which is to the right.

Treating the horizontal scale factor as the number, not its reciprocal.

Where it slips in:

A student reads f(2x)f(2x) as "stretch the graph by 2," when multiplying the input by 2 actually squeezes it.

Don't do this:

Do not apply bb directly as the scale. The horizontal scale factor is 1/b1/b.

The correct way:

f(bx)f(bx) scales the graph horizontally by 1/b1/b, so f(2x)f(2x) compresses by 12\tfrac{1}{2} and f(x2)f\left(\tfrac{x}{2}\right) stretches by 22. Map a point to be sure: (2,4)(2, 4) on x2x^2 goes to (1,4)(1, 4) under f(2x)f(2x).

Applying combined transformations in the wrong order.

Where it slips in:

Given g(x)=2f(x)+1g(x) = 2f(x) + 1, a student shifts up 1 first and then stretches by 2, which also stretches the shift and lands every point too high.

Don't do this:

Do not mix the order of a stretch and a shift freely. For vertical changes, multiply before you add.

The correct way:

Handle the outside in order of operations: stretch by aa first, then shift by kk. The point-mapping rule (x0,y0)↦(x0b+h,;ay0+k)(x_0, y_0) \mapsto \left(\tfrac{x_0}{b} + h,; a y_0 + k\right) encodes the safe order automatically, inside handled first for xx, outside in arithmetic order for yy.

Practice Problems On Transformations Of Functions

Work each one, then check against the answer. Answers are verified.

  1. Describe the transformation from f(x)f(x) to g(x)=f(x)−4g(x) = f(x) - 4.
    (Answer: vertical shift down 4.)

  2. Describe the transformation from f(x)f(x) to g(x)=f(x+5)g(x) = f(x + 5).
    (Answer: horizontal shift left 5, because x+5=x−(−5)x + 5 = x - (-5).)

  3. For the parent f(x)=x2f(x) = x^2, write g(x)g(x) that reflects it over the x-axis and then shifts it up 2.
    (Answer: g(x)=−x2+2g(x) = -x^2 + 2.)

  4. Describe the transformation from f(x)f(x) to g(x)=3f(x)g(x) = 3f(x).
    (Answer: vertical stretch by a factor of 3.)

  5. Describe the transformation from f(x)f(x) to g(x)=f(4x)g(x) = f(4x).
    (Answer: horizontal compression by a factor of 14\tfrac{1}{4}.)

  6. For f(x)=xf(x) = \sqrt{x}, describe g(x)=x−2+3g(x) = \sqrt{x - 2} + 3 and state its domain.
    (Answer: right 2 and up 3; starting point (0,0)↦(2,3)(0,0) \mapsto (2, 3); domain x≥2x \ge 2.)

Where Should You Go Next After Transformations Of Functions?

Transformations are the bridge between a formula and its graph, and several natural doors open from here.

  1. Curve sketching. Use the shift, stretch, and reflection rules together to draw a graph fast, straight from its equation.

  2. Composition of functions. A transformation is a composition in disguise, so this generalizes the inside-versus-outside idea.

  3. Absolute value functions. The graph ∣x∣|x| is a favourite parent for practising every transformation with sharp, easy-to-track corners.

  4. Inverse functions. Reflecting a graph over the line y=xy = x is the transformation that produces an inverse, tying this topic to the next.

If your child is meeting transformations of functions for the first time, a live Bhanzu trainer teaches them from the parent-graph picture up, so the six rules feel like one idea, in the Bhanzu math program.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What are the transformations of functions?
They are the six standard ways to change a graph: vertical shift f(x)+kf(x) + k, horizontal shift f(x−h)f(x - h), vertical stretch or compression a,f(x)a,f(x), horizontal stretch or compression f(bx)f(bx), reflection over the x-axis −f(x)-f(x), and reflection over the y-axis f(−x)f(-x).
Why does f(x−3)f(x - 3) shift the graph to the right?
Because the change is inside the function, on the input. The graph reaches each height when x−3x - 3 equals the old input, so xx has to be larger, moving the graph right by 3. Inside (horizontal) changes always run opposite to the sign.
What is the difference between a vertical and a horizontal stretch?
A vertical stretch a,f(x)a,f(x) multiplies outputs, pulling the graph away from the x-axis by the factor aa. A horizontal stretch f(bx)f(bx) acts on the input and scales the graph by 1/b1/b, the reciprocal, so the number behaves backwards.
How do transformations of functions relate to even and odd functions?
An even function is unchanged by the reflection f(−x)=f(x)f(-x) = f(x) and is symmetric about the y-axis. An odd function satisfies f(−x)=−f(x)f(-x) = -f(x) and is symmetric about the origin. The y-axis reflection is both a transformation and a symmetry test.
In what order do you apply combined transformations?
Handle inside changes first for the x-coordinate (scale, then shift) and outside changes in arithmetic order for the y-coordinate (stretch, then shift). The mapping (x0,y0)↦(x0b+h,;ay0+k)(x_0, y_0) \mapsto \left(\tfrac{x_0}{b} + h,; a y_0 + k\right) does this correctly every time.
What is a parent function?
A parent function is the simplest member of a family, such as x2x^2, x\sqrt{x}, ∣x∣|x|, or x3x^3. Every other member is built by applying transformations to it, which is why learning the parent shapes first makes the rest fast.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →