### Video Transcript

In this video weβre gonna take some functions and carry out transformations that will stretch or squash the graphs parallel to the π₯-axis, so away from or towards the π¦-axis. Weβll also take a look at the effect of such transformations on the equations of the functions and weβll come up with a general rule about stretch and squash transformations parallel to the π₯-axis.

Hereβs a graph of a function called π of π₯. Now letβs define another function π of π₯ so the π of π₯ is equal to π of two π₯. Now letβs just first recap the process for calculating the π¦-coordinates for a function. So π¦ equals π of π₯. First we input our π₯-coordinate, our π₯-value, into the function. Then the π of π₯ function does some math with that number. And the number that pops out is the corresponding π¦-coordinate. So now to work out a π¦-coordinate or output value for the π function for a specific input value, I can just double that π₯-value and pass it into the π function. And the answer I get to that tells me the π¦-coordinate corresponding to π₯ for the π function.

So the process for working out all the π¦-coordinates for the π function is just going to be to take the π₯-coordinates, double them, read off the corresponding π¦-coordinates from the graph of π¦ equals π of π₯ and use those as the corresponding π¦-coordinates for the π of π₯ function. So for example, π of zero is gonna be the same as π of two times zero and two times zero is zero. So π of zero is the same as π of zero. Well π of zero here is zero. So that is going to map to π of zero, here to the same place. And π of one is equal to π of two times one which is π of two So the π¦-coordinate that corresponds to an π₯-coordinate of one in the π function is going to be the same as the π¦-coordinate that corresponds to an π₯-coordinate of two in the π function. So if we look that up, thatβs going to be this point here is going to map to this point here. π of one is the same as π of two. So to work out the π¦-coordinate that corresponds to an π₯-coordinate of two in the π function, we need to work out the π¦-coordinate that corresponds to an π₯-coordinate of four on the π function. And thatβs this one, zero, so thatβs got an π₯-coordinate of four on the π function. So on the π function, itβs going to, half that- is going to have an π₯-coordinate of two.

Now letβs try some negative π₯-coordinates. π of negative one is gonna be the same as π of two times negative one, so π of negative two. Now π of negative two is this point here. Itβs got a π¦-coordinate value of about two point four. Now thatβs gonna correspond to an π₯-coordinate of negative one on the π function. So that point is gonna map to here. And π of negative two is equal to π of two times negative two, so thatβs π of negative four. And thatβs obviously off our graph down there somewhere. But the effect is gonna be the same; itβs gonna have its π₯-coordinate halved and moved in here somewhere. So after running through a few of these points, we can see a bit of a pattern emerging. All the points on the curve π¦ equals π of π₯ are being squashed towards the π¦-axis. Itβs like the π of π₯ curve is exactly the same as the π of π₯ curve, but with all of the π₯-coordinates halved. So the point that was on the π¦-axis and had an π₯-coordinate of zero stays where it is because a half of zero is zero. But all of the other π₯-coordinates are being squashed inwards.

So letβs now complete the sketch by joining up the dots, so taking this curve one section at a time. So letβs look at this section first here instead of being this section of the curve. All of those π₯-coordinates are gonna be halved. So itβs gonna come-come down here like that. And then the next section from here up to here, halving all those π₯-coordinates, itβs gonna bring it here like that. And then this section up here, all of those π₯-coordinates are gonna be halved. And itβs gonna look something like that. Then this section of the π of π₯ curve is gonna be squashed towards the π₯-axis to look something like that. And then finally this section is gonna be squashed towards the π₯-axis to look something like that. And once weβre happy with it, letβs just colour it in a different colour to make it stand out, so there we have it. Because π of π₯ is equal to π of two π₯, thisβs had the effect of halving all of the π₯-coordinates on our π of π₯ curve to turn them into the π¦-coordinates for our π of π₯ curve.

Now letβs look at another function β of π₯, where β of π₯ is equal to π of half π₯. Again weβre gonna use the graph of π of π₯ to work out all the values of β of π₯. We simply take the π₯-input value, halve it, and then feed the result into the π function. What comes out is the value weβre looking for for β of π₯. So again just running through some points, β of zero is equal to π of a half times zero, which is just π of zero. And π of zero is here and thatβs gonna map to exactly the same place here. Now β of one is equal to π of a half times one, so thatβs π of a half. And remember the π₯-coordinate a half plugged into the π functions gives us the π¦-coordinate answer that we would get if we plug one into the β function. So this point is going to map to here. And thatβs about negative one point two-ish. β of two is equal to π of a half times two, so thatβs π of one. And π of one looks like itβs about negative two point four and that is going to map to the β function with an π₯-coordinate of two. So that point is gonna be transformed to here. Now hopefully you can see the pattern thatβs emerging. In doing the transformation βπ₯ equals π of a half π₯, weβre taking all of these π₯-coordinates and we are effectively doubling them. So this π₯-coordinate up from here on the π function gets doubled over to here on the β function. Now this means that the curve π¦ equals βπ₯ is exactly like the curve π¦ equals π of π₯, but with all of the π₯-coordinates doubled. Itβs stretched away from the π¦-axis parallel to the π₯-axis.

So letβs quickly work out a few more points here with negative π₯-coordinates. β of negative one is the same as π of negative a half which works out to be about one point two-ish. So this point maps to here. And β of negative two is the same as π of negative one and thatβs about two. So this point here maps to this point here. So again by following that pattern, weβre doubling all of the π₯-coordinates, but this time obviously in the negative direction.

Letβs just manually stretch another couple of points. This point here down to the bottom of this part of the curve has got an π₯-coordinate of about two point three, two point four. So thatβs gonna double. And weβll move out to about here somewhere. And this point here has- well itβs obviously got a π¦-coordinate of zero; itβs got an π₯-coordinate of four. So thatβs gonna double out to eight. So now I can sort of complete the sketch for this side of my curves. So itβs gonna come down here and then sort of up and thatβs an up to here. And then letβs just plot another couple of points on the left-hand side to the left of the π¦-axis. At this point here, itβs got an π₯-coordinate of about minus one point seven. So thatβs gonna double to about negative three point four. So this point is gonna move out to here. And this point here with an π₯-coordinate of negative three is gonna map out here to have an π₯-coordinate of negative six. And again now I can complete the sketch on this side. So the curve is gonna come something around here, something like that. So wholly you can see that we locked off the π¦-axis there. That point that was on the π¦-axis stayed exactly where it was, but everything else is being stretched away from the π¦-axis parallel to the π₯-axis. And itβs having all of its π₯-coordinates doubled.

Now weβve been transforming functions by multiplying the input values by a constant. So weβve been mapping or transforming something like π of π₯ onto π of π times π₯. And weβve seen that when π is greater than one β so we tried when π was two, we did π of two π₯. This squashes the curve of π¦ equals π of π₯ towards the π¦-axis. So weβre gonna multiply the π₯-coordinates by one over π, which in this case is going to be less than one. So itβs squashing it towards the π¦-axis. And we also saw that when π is between zero and one, remember we had tried the value of half, that stretches the curve of π¦ equals π of π₯ away from the π¦-axis. But again weβre multiplying the π₯-coordinates by one over π. But because this time π is between zero and one, one over eight becomes a positive whole number greater than one. So itβs stretching those π₯-coordinates away from the π¦-axis. But what if we wouldβve used the value of one for π? That would have done π of one times π₯. Well the curve would stay the same; weβre just multiplying all the π₯-coordinates by one. So again weβre multiplying the π₯-coordinates by one over π. But because π is one, we get one over one which is just one. So weβre multiplying all the π₯-coordinates by one.

Well now letβs take a quick look at what happens when those π values are negative. What effect does that have on the transformation? Well letβs start off by thinking about when π is negative one. So if weβre doing the transformation π of π₯ is equal to π of π times π₯, if π is negative one that means π of negative one times π₯, so weβre gonna multiply all the π₯-coordinates by one over negative one. So thatβs negative one. It would just be the negative version of all the π₯-coordinates.

So π of π₯ will equal π of negative π₯.

And that is just a reflection in the π¦-axis. Letβs have a quick look. Letβs use the same curve weβve been using for our other examples. Letβs start with this point here. When the π₯-coordinate is zero, the negative is zero-zero. So that point on the π¦-axis stays exactly where it is. And this point here is gonna map to negative four over here. And this point here is gonna map to positive three over here.

These points here weβre gonna take the negative of their π₯-coordinates. So theyβre gonna map across here like that. I will draw the arrows in as it started to get a bit messy. And these points down here below the π₯-axis will map across to here like this. And these points here will map across to here like this. And then we can actually start to fill in the sketch. So joining up the dots that we have, the transformed curve is going to look something like this, going up to here. And now letβs go on and transform some more points. So these points here are gonna map to here like this and these last points here, over here like this. Then joining them up to complete our sketch, weβre gonna get this curve here. So if the black dotty curve was our original π¦ equals π of π₯ curve when we transformed that, so π of π₯ is equal to π of negative π₯, π¦ equals to π of π₯ is the orange curve here. Itβs just a reflection in the π¦-axis.

Now looking at some other negative values of π, letβs think about what would happen if π is between zero and negative one, so for example, if π was equal to negative half. Now we can define a new function. Letβs call it β of π₯. Thatβs equal to π of π times π₯. Now if π is equal to negative a half, that means β of π₯ is equal to π of negative a half π₯. So as we just seen that negative in there is gonna cause a reflection in the π¦-axis. Weβre gonna be taking the negative of all the π₯-coordinates, but then weβre multiplying those π₯-coordinates by a half as the input values. And we saw before that thatβs going to double the π₯-coordinates on the output on our graph. So the effect of this transformation is gonna be a reflection in the π¦-axis followed by a stretch doubling the π₯-coordinates away from the π¦-axis.

Now obviously any point on the π¦-axis is gonna map to itself in this scenario. So that point is gonna map to there. And this point here has an π₯-coordinate of four. So in this transformation, weβre going to take then negative that, negative four. Then weβre going to double it; so itβs gonna go to negative eight. And thatβs slightly off of our scale in this example. But this point here has an π₯-coordinate of negative three. Weβre going to make it the negative of that, so positive three, and then double it. So thatβs gonna map to six.

Now letβs try another couple of points. So this point here has an π₯-coordinate of about minus one point seven. So thatβs gonna be negativized and then doubled. Thatβs gonna map over to here to about three point four. And this point here has an π₯-coordinate with about two point four. So thatβs gonna be negatived and doubled to be negative four point eight. So thatβs gonna map over to about here somewhere. So this bit of the curve here is going to be reflected and stretched out something like this. And this bit of the curve here is going to be stretched out and reflect across the π¦-axis something like this. So itβs gonna come up like that. So that just leaves us with this section of the curve here to map. And weβve got a point down here at the bottom; this is going to map to over here, about here. So take the negative-the negative three point eight, double that; you can get about positive seven point six. So the rest of that curve is going to come down here and look something like that. So just coloring that in a different color to make it really stand out, that green curve then is π¦ equals β of π₯, which is π of negative a half π₯. The negative remember reflecting in the π¦-axis and the half times π₯ is doubling all of that π₯-coordinates. So itβs stretching it out away from the π¦-axis.

Letβs just quickly consider then when π is less than negative one, so for example, if it was negative two. Now βπ₯ equals π of ππ₯ would be π of negative two π₯. And negatives are going to cause this reflection in the π¦-axis and the two times π₯ is going to squash the curve towards the π¦-axis, halving all of those π₯-coordinates. So the points to the right of the π¦-axis there are gonna move over to the other side of the π¦-axis and have their π₯-coordinates halved. So that half of the reflecting curve will look something like this. And the points to the left of the π¦-axis are going to reflect like this, creating a curve that looks something like that.

So having a run through those examples, we can now complete our summary for all the transformations of this format. And that basically amounts to if weβre transforming π of π₯ into π of π times π₯, what we do is we take the π₯-coordinates and weβre multiplying them by one over π. Sometimes that squashes the entire curve towards the π¦-axis. Sometimes it stretches it away from the π¦-axis. And we can summarize that basically as being a horizontal stretch. Now I know I promised in the introduction that I would take a look at what happens to the equations of these functions under the transformations, but Iβve run out of time unfortunately. So I will record a separate video and weβll talk all about what happens to the equations.