Function Transformation Calculator

THE TRANSFORMATIONS, IN ORDER
Type the function as it is written.
The parent, the four numbers, and where the points go
Your function
Type it as written — −2|x − 1| + 3. Six parent shapes are read: x, x^2, x^3, |x|, sqrt(x) and 1/x. A y = in front is ignored, and for a letter the pad does not carry, tap My keyboard. This page names the transformations and says where the key points land; it does not draw — for a graph, a graphing tool is the right thing.
The trap is the inside. sqrt(2x − 6) is a shift of 3, not 6 — the 2 has to be factored out first.
Tap a box, then use the keys
Order matters as much as the list. Work from the inside out: anything done to x happens first and behaves backwards, then anything done to the whole function happens after and behaves the way you expect.
How each one is read off

This function transformation calculator names every transformation that takes a parent function to the one you were given, in the order they apply.

Type -2|x - 1| + 3 and it tells you: start from |x|, shift 1 right, stretch vertically by 2, reflect in the x-axis, shift 3 up.

Everything Comes From Four Numbers

Function transformations all fit one shape, however different the questions look:

y = a · f(b(x − h)) + k

f is the parent — the plain shape underneath. The four numbers do the rest, and they split cleanly in two. a and k sit outside and act on the output. b and h sit inside and act on the input.

That split is the whole topic. The two outside behave the way they read; the two inside behave backwards.

NumberWhereWhat it does
koutsideshifts up (or down if negative)
aoutsidestretches vertically; a negative flips it top to bottom
hinsideshifts right when it is subtracted
binsidesquashes horizontally when it is bigger than 1

The One That Costs Marks

Here is √(2x − 6). How far does it shift?

Six, says almost everybody. It is three.

The 2 has to come out of the bracket first: 2x − 6 = 2(x − 3). Only once b is outside does the number next to x mean a shift, and by then it is 3, not 6. Every step after this one inherits the error, so a wrong answer here is wrong all the way down.

This page factors the inside before it reads anything, and says so when it has had to.

Why Inside Behaves Backwards

It is the one part of this topic worth understanding rather than memorising, and it takes a sentence.

y = f(x − 3) asks for the value f had at x − 3. So at x = 5 you get what f had at 2 — the graph is showing you old news, three units late. Late means further right. Subtracting shifts right.

The same argument covers b. y = f(2x) reaches whatever f did at 10 by the time x is only 5, so everything arrives twice as early and the picture is squashed to half its width. Multiplying by 2 halves the graph rather than doubling it.

The Order Is Part of the Answer

Naming the transformations without their order is half a mark at best.

Work from the inside out. Anything done to x happens first: the horizontal squash, then the reflection in the y-axis if b is negative, then the horizontal shift. Anything done to the whole function happens after: the vertical stretch, the reflection in the x-axis if a is negative, then the vertical shift last of all.

Swap the shift and the stretch on the same axis and you get a different graph. That is why "shift 3 right and stretch by 2" and "stretch by 2 and shift 3 right" are not the same instruction.

The Six Shapes Underneath

Almost every question in this topic is built on one of six parents.

ParentWhat it looks like
xa straight line through the origin
|x|a V with its corner at the origin
a curve with one turning point at the origin
an S through the origin
√xhalf a curve on its side, starting at the origin
1/xtwo branches in opposite quadrants

Naming the parent first is worth doing even when it seems obvious, because everything after it is measured against that shape.

Sketching Without Plotting

You do not need to work out a table of values. Take the points you already know on the parent and put each one through the same transformations.

On |x| the corner sits at (0, 0), with (−1, 1) and (1, 1) beside it. Put those three through −2|x − 1| + 3 and they land at (1, 3), (0, 1) and (2, 1). Three points and you have the V: corner up at (1, 3), opening downwards, twice as steep as before.

That is faster than any table, and it is what the calculator above prints alongside the answer. If you want the picture itself rather than the points, a graphing tool is the right thing — this page is for saying what happened.

Where You Have Already Met This

You have been doing transformations for longer than you think.

Writing a quadratic in the form a(x − h)² + k is exactly this: h and k are the two shifts and a is the vertical stretch, which is why that form tells you the turning point at a glance. The vertex calculator handles that case properly, and completing the square is how you get there from the expanded form.

Graph shifts and reflections turn up on their own too: a function is even when reflecting in the y-axis changes nothing, and odd when reflecting in both axes changes nothing, which the even and odd function calculator tests directly.

How to Use This Function Transformation Calculator

Type the function as it is written: -2|x - 1| + 3, or sqrt(2x - 6), or 3/(x - 1). A y = in front is ignored.

Coefficients may be fractions or decimals, and the inside is factored for you before anything is read off. Shifting a domain rather than a graph is a different question, and the domain and range calculator covers it; combining two functions rather than reshaping one is handled by operations on functions.

Function Transformation Calculator FAQ

What is a parent function?
The plain shape underneath, before any stretching or shifting. Strip every number from |x − 4| + 2 and |x| is what is left.
Why does x − 3 shift right and not left?
Because f(x − 3) shows at x whatever f showed at x − 3, so the graph runs three units late. Late means further along, which is to the right.
How far does √(2x − 6) shift?
Three, not six. Factor the inside first: 2x − 6 = 2(x − 3). The number next to x only means a shift once the multiplier is outside the bracket.
Does the order of transformations matter?
Yes. Inside before outside, and within each pair, stretch before shift. Doing them in the wrong order gives a different graph and is marked wrong.
What does a negative in front do?
A negative outside the function reflects it in the x-axis, top to bottom. A negative multiplying x reflects it in the y-axis, left to right.
Why does multiplying x by 2 squash the graph?
Because f(2x) reaches at x = 5 whatever f reached at 10. Everything arrives twice as early, so the picture is half as wide.
Can I do transformations without drawing?
Yes, and it is quicker. Take three or four known points on the parent, put each through the same transformations, and join them up.
Which shapes does this page read?
x, x², x³, |x|, √x and 1/x. Powers of four and above, and trigonometric or logarithmic functions, are outside what it covers.

Find the parent, factor the inside, then read the four numbers off and apply them from the inside out. The shift is the one to check twice.