Math-MateSchool maths, made clearer

Search the complete textbook

Find a Math-Mate lesson

Type at least two letters to search 240+ lessons.

Topic 69 · lesson 2 of 5

Graph Transformations

Clear explanations and worked examples from the Math-Mate school maths textbook.

Free lessonNo sign-upPrint friendly

Graph Transformations

Amplitude transformations

Say I have to graph the function Mathematical diagram. To get this graph, all you do is take the normal sin(x) graph, and stretch it in the vertical direction by a factor of 2.

Mathematical diagram

If the number had been ‘–2’, you would stretch the graph in the vertical direction by a factor of 2, then take its mirror image about the x-axis.

Sideways movement

What about if I have to graph Mathematical diagram?  If the sign in the brackets is positive, this shifts the graph to the left by whatever is to the right of the ‘+’ sign.  If the sign is negative, this shifts the graph to the right by whatever is to the right of the ‘–’ sign.  Since in this case, the sign is positive, it shifts the graph Mathematical diagram to the left.      

Mathematical diagram

Horizontal squashing or stretching

Another type of function you might have to plot is something likeMathematical diagram.  This time the 'x' has a coefficient in front of it.  When this coefficient is larger than 1 (as it is in this case), the graph is compressed sideways (horizontally).  If it is smaller than 1, the graph is stretched sideways.  In this case, since 2 is larger than 1, the graph is compressed sideways by a factor of 2.

Mathematical diagram

 

Vertical displacements

For a function like Mathematical diagram, all you do is shift the entire Mathematical diagram curve upwards by 2 units.

Sign changes

Say I want to draw the curve Mathematical diagram. The easy way to do this is to first draw the curve Mathematical diagram, then simply reflect it over the horizontal line of symmetry – the x-axis in this case. 

Mathematical diagram

What about when the negative is actually inside the brackets?  An example of this would be Mathematical diagram.  For this curve, you need to remember that Mathematical diagram, so they are the same curve.  However, say you had to plot Mathematical diagram. For this you need to know that Mathematical diagram.  So to draw Mathematical diagram, you would first draw Mathematical diagram.  Then you would reflect it over the horizontal line of symmetry (usually the x-axis) to get Mathematical diagram.

Putting it all together

Often you will have to plot quite complex functions that involve sometimes all of these things.  Whenever you get a function to plot, you want to get it in the general form:

                                                  Mathematical diagram

                                               or Mathematical diagram

                                               or Mathematical diagram

Remember that ‘b’, ‘c’, and ‘d’ can be zero – the result is usually a simpler function.

Periodic graph plotting question

Plot the following function for Mathematical diagram:

                                                Mathematical diagram

Solution

This equation is already in the general form that we desire.  Since it is a sin function, we first draw the simplest curve we know, Mathematical diagram.  Next we deal with the 3 in front of the ‘x’ – we now draw the next simplest function, Mathematical diagram.  This is simply the Mathematical diagram curve squashed sideways a lot. 

Mathematical diagram

The next part to deal with is the  ‘Mathematical diagram’ part.  We can plot Mathematical diagram simply by shifting the Mathematical diagram graph to the right by Mathematical diagram. Why do we shift the graph by Mathematical diagram, not Mathematical diagram?  This is because of the 3 in front of the ‘x’.  If it had just been Mathematical diagram then we would have shifted the graph by Mathematical diagram to the right.  But because there is a 3 in front of the ‘x’, we shift the graph by ‘Mathematical diagram divided by 3’ – which is Mathematical diagram.

 Mathematical diagram

The next step is to allow for the 2 in front of the Mathematical diagram.  This is easy to do – we just stretch the graph vertically by a factor of 2.  Now the curve goes from –2 to 2 in the y direction, instead of –1 to 1 as it did previously.

Mathematical diagram

The last step is to allow for the ‘+1’.  This is also very simple – we shift the curve up by 1 in the vertical direction.  So by using a step by step approach, you can break up a fairly hard problem into easy bits that by themselves are quite simple.

Mathematical diagram