←

Graph transformations

Slide a graph, stretch it, and something surprising happens: an awkward sum of circular functions turns into a single, simple one.

Try each question before you look at the answer.

Arrow keys or swipe to turn the page. Hover at the bottom for the page buttons.

Dr Brian Brooks
Mathematics InSight

Often, this topic is referred to as the \(R,\;\alpha\) method. It's usually treated purely algebraically, but there, we will see how to think of it graphically.

Ultimately, you will still apply the idea in an algebraic way. But once you have seen the graphical point of view, it will all make much more sense.

You are a water molecule. A wave comes along and you are repeatedly lifted up and dropped down.

A second wave comes along, out of phase with the first wave. Now you have one wave wanting you to move like the red dot and another wanting you to move like the green dot.

What will happen to you under the influence of both these waves simultaneously?

What is the equation of the graph that represents the resulting movement of the water molecule?

\[y=\cos x+\sin x\]

What pair of transformations takes the graph \(y=\sin x\) to the graph \(y=\sin x+\cos x\)?

A translation left by \(45^\circ\) followed by a stretch parallel to the \(y\) axis by scale factor \(\sqrt 2\)

That's all very well, but what about cases where \(\cos\theta\) is negative?

Here is such a situation. Now the length of the yellow vector is positive, but \(\cos\theta\) is negative.

What is the rotated yellow vector this time?

Here, \(\cos\theta < 0\) and both components of the yellow vector are negative, so if the yellow vector is

\[\cos\theta\binom{\cos\varphi}{\sin \varphi}\]

then the signs of the vector work out as they should. That is, the yellow vector formula is still the same as when \(\cos\theta\) was positive. What a stroke of luck!

Check that the signs are right no matter the size of \(\varphi\).

Here, \(\theta > \pi\) and \(\cos\theta\) is still negative.

Once again, check that the signs are right no matter the size of \(\varphi\).

Rotating the vertical component is harder. We'll start with the unit vector in the vertical direction.

What is the rotated vertical unit vector?

The two components of the rotated vertical unit vector are the same as the two components of the the rotated horizontal unit vector only reversed and with one change of sign.

\[\binom{-\sin\varphi}{\phantom{-}\cos\varphi}\]

Take the time to make sure you understand this.

Once again, check that the signs are right no matter the size of \(\varphi\).

Now we know what happens to the unit vertical vector when it rotates, but that's not what we are dealing with.

Instead, we are rotating the vertical component of a vector, whose magnitude is, in general, less than \(1\).

What is the rotated vertical component?

The magnitude of the vertical component is \(\sin\theta\), so the rotated vector is

\[\sin\theta\binom{-\sin\varphi}{\phantom{-}\cos\varphi}\]

\(\sin\theta\) here is positive, so this vector is correct no matter the size of \(\varphi\).

That's all very well, but what about cases where \(\sin\theta\) is negative?

Here is such a situation. Now the length of the yellow vector is positive, but \(\sin\theta\) is negative.

What is the rotated yellow vector this time?

Here, \(\sin\theta < 0\) and the \(x\) component of the yellow vector is negative, so if the yellow vector is

\[\sin\theta\binom{-\sin\varphi}{\phantom{-}\cos \varphi}\]

then the signs of the vector work out as they should. That is, the yellow vector formula is still the same as when \(\sin\theta\) was positive. Another stroke of luck!

Check that the signs are right no matter the size of \(\varphi\).

Now we can write the blue vector in two ways.

Look what happens!

Well done!

Add a sine and a cosine and you get a single wave, shifted and stretched. What looked like awkward algebra is really just a transformation.

Dr Brian Brooks
Mathematics InSight