y=∣f(x)∣ and y=f(∣x∣)
In a nutshell
There is a difference between y=∣f(x)∣ and y=f(∣x∣). The first modulus function simply gives the output as a positive number, whereas the second function forces the value of x to be positive but not the output.
y=∣f(x)∣
This modulus function creates a reflection of all points under the x-axis because all y values are positive. To sketch it you can simply follow these steps:
Procedure
1. | Sketch your normal f(x) function. |
2. | Flip the points that lie under the x-axis, create a reflection over it. |
Example 1
On the same set of axes, sketch f(x)=x+2 and f(x)=∣x+2∣.
You have to sketch your normal f(x) but when the values of y are negative, reflect them over the positive axis:
y=f(∣x∣)
This function stays the same when x≥0 and creates a reflection in the y-axis. To sketch it you can simply follow these steps:
procedure
1. | Sketch the graph for x≥0. |
2. | Reflect that shape in the y-axis. |
Example 2
On the same set of axes, sketch f(x)=2x−2 and f(x)=2∣x∣−2.
You have to sketch your normal f(x)=2x−2 but mirror it on the negative side of the x-axis:
Example 3
Sketch the following functions on the same set of axes:
f(x)=x−1 | f(x)=∣x−1∣ | f(x)=∣x∣−1 |
Your graphs should look like this:
As you can see, f(∣x∣) mirrors the y-axis and ∣f(x)∣ reflects off the x-axis.
Example 4
Sketch the following functions on the same set of axes:
f(x)=x2+x−1 | f(x)=∣x2∣+∣x∣−1 | f(x)=∣x2+x−1∣ |
Your three functions should look like this: