How to transform graphs of functions?

So you've encountered something like:

g(x) = | 4 f( |x + 1| - 3 ) + 5 |

What a mess! And you are only given the graph of f(x). How do we go about sketching g(x)?

As in any problem in mathematics, let's break it all down to a list of simple steps. We start with a graph of f(x).

1. Let's create a function f1(x) = f(x+1). You might already know that adding a number to the argument of a function is equivalent to 'sliding' its graph by that number to the left (it's quite simple, after all, you make an x=5 give f(5+1)=f(6) - which is to the right of f(5) we call that translation by a vector)

2. f1(x) is not quite like g(x) yet. Let's make f2(x) = f1( |x| ) = f( |x+1| ) . How does that affect the graph? As we know |x| = x, for positive x's and |x| = -x, for negative x's. So to sketch f2(x), we take the part of the graph of f1(x) which is to the right of the y-axis (where x is positive), and on the left half, we need to draw a mirror image of the right half. We're one step closer to g(x).

3. Next we need to include the number -3 in the argument. Let f3(x) = f2(x-3). Which means another shift along the x-axis. This time we move the graph of f2(x) to theright, by 'amount' 3. 

4. Now we are 'outside' f3(x) - we are not going to play with the argument anymore. Which means that now we will change the graph in the y-axis only. The remaining steps include multiplying the function by 4. This means that everywhere on the graph, the function is 4 times farther away from the x-axis (from 0). So sketch f4(x) = 4*f3(x), 4 times taller and steeper.

5. Then there is the 5 left to add. If we add a number to the function, it means that it goes up in the y direction by 5, everywhere. So let's shift the graph upwards. f5(x) = f4(x) + 5

6. We are nearly done now. The last thing to do is the absolute value. Once again, for all positive values, it stays as is, and for all negative values it gets a minus sign. Thus everywhere the function f5(x) has values smaller than 0, we need to 'flip' it upside down (symmetry with respect to the x-axis). f6(x) = |f5(x)|

g(x) = f6(x)

And that is it. You now have an accurate depiction of g(x). It wasn't that complicated after all. You just needed to make incremental changes and step by step move 'from the inside out'.

- See more at:

Adrian G. A Level Maths tutor, A Level Physics tutor, A Level Further...

2 years ago

Answered by Adrian, an A Level Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£24 /hr

Tiarnan B.

Degree: MChem (Masters) - York University

Subjects offered:Maths, Geography+ 2 more

-Personal Statements-

“I am a fun, open and qualified tutor. I guarantee by choosing me you will reach where you want to be and beyond, all while enjoying the subject!”

£20 /hr

Iebad A.

Degree: Aerospace Engineering (Masters) - Sheffield University

Subjects offered:Maths, Italian


“About me: Hello, my name is Iebad and I am an aerospace engineering student at The University of Sheffield. As an engineer, maths is the key to unlock all the solutions to our problems in this field. Since the early years I had a broad...”

£22 /hr

Dan B.

Degree: MPhys Physics (Masters) - Exeter University

Subjects offered:Maths, Physics


“Hi I'm Dan and I'm in the first year of a four-year MPhys Physics degree at the University of Exeter. I am very patient and will tailor the sessions' content and pace to suit your individual needs...”

About the author

Adrian G.

Currently unavailable: for regular students

Degree: Physics (Masters) - Manchester University

Subjects offered:Maths, Physics+ 1 more

Further Mathematics

“I'm Adrian, I study physics. And if you are looking for some real understanding, you have just found the right person.”

You may also like...

Other A Level Maths questions

Find the solutions to x^3+4x^2+x-5=1

At x=3, is the polynomial y= (4/3)x^3 -6x^2 + 11 at a maxima or minima?

The graph with equation y= x^3 - 6x^2 + 11x - 6 intersects the x axis at 1, find the other 2 points at which the graph intersects the x axis

How do I integrate ln(x)

View A Level Maths tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss