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


Ben J. A Level Maths tutor, A Level Further Mathematics  tutor
View profile
£20 /hr

Ben J.

Degree: Mathematics (Masters) - Durham University

Subjects offered: Maths, Further Mathematics

Further Mathematics

“Friendly tutor with perfect academic record happy to help you enjoy Maths and get the grades you need! :)”

Nandesh P. Mentoring -Medical School Preparation- tutor, Mentoring -P...
View profile
£20 /hr

Nandesh P.

Degree: Medicine (Bachelors) - Edinburgh University

Subjects offered: Maths, Science+ 5 more

-Personal Statements-
-Medical School Preparation-

“I'm a medical student at the University of Edinburgh currently undertaking my intercalated year at Imperial College London. I've always loved studying the sciences and I'm hoping to pass this passion onto you whilst tutoring subjects ...”

Kyle C. A Level Computing tutor, A Level Maths tutor, GCSE Physics tu...
View profile
£20 /hr

Kyle C.

Degree: Computer Science With Electronics (Bachelors) - Edinburgh University

Subjects offered: Maths, Physics+ 1 more


“Who am I?I am a student pursuing a Computer Science degree at the University of Edinburgh. I enjoy working on theatre lighting and am also a keen fencer which is where I initially started teaching by coaching younger fencers.Sessio...”

About the author

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

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

Express (3x^2 - 3x - 2)/(x-1)(x-2) in partial fractions

Prove that the d(tan(x))/dx is equal to sec^2(x).

Show that the equation 5sin(x) = 1 + 2 [cos(x)]^2 can be written in the form 2[sin(x)]^2 + 5 sin(x)-3=0

View A Level Maths tutors


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