Scaling & reflecting absolute value functions: graph | High School Math | Khan Academy
Function G can be thought of as a stretched or compressed version of f of x is equal to the absolute value of x. What is the equation for G of x? So you can see f of x is equal to the absolute value of x here in blue. And then G of x not only does it look stretched or compressed, but it also has flipped over the x-axis.
So like always, pause this video and see if you can come up with the equation for G of x. All right, now let's work through this together. So there's a couple of ways we could do it. We could first try to flip f of x and then try to stretch or compress it, or we could stretch or compress it first and then try to flip it. Well, let's actually flip it first.
So let's say that we have a function that looks like this: that's just exactly what f of x is but flipped over the x-axis. So it's just flipped over the x-axis, so all the values for any given x, whatever y you used to get, you're now getting the negative of that. So this graph right over here, this would be the graph I'll call this y is equal to the negative absolute value of x.
Whatever the absolute value of x would have gotten you before, you're now going to get the negative or the opposite of it. So this is getting us closer to our definition of g of x. The key here is how do we appropriately stretch or squeeze this green function?
So let's think about what's happening on this green function. When x is equal to 1, the function itself is equal to 1, but we want it to be the same as G. We want it to be equal to -4. So it's actually four times the value for a given x, at least for x equals 1. G is giving me something four times the value that my green function is giving.
And it's not just true for positive x's; it's also true for negative x's. You can see it right over here: when x is equal to 1, my green function gives me 1, but G gives me -4. So it's giving me four times the value; it's giving me four times the negative value, so it's going even more negative.
So what you can see to go from the green to G, you have to multiply this thing right over here by four. So that is what essentially stretches it down, stretches it down in the vertical direction. So we could say that g of x is equal to -4 * the absolute value of x.
And you could have done it the other way. You could have said, “Hey, let's com, let's first stretch or compress f” and say, “All right, before we even flip it over, if we were to unflip G, it would look like this.”
If we were to unflip G, it would look like this. This thing right over here looks like four times f of x. We could write this as y is equal to 4 * f of x or you could say y is equal to four times the absolute value of x.
And then we have a negative sign. Whatever positive value we were getting before, you now get the opposite value, and that would flip it over and get you to G, which is exactly what we already got.