The modulus function
In a nutshell
The modulus of a number is its non-negative numerical value. The function inside the modulus is called the argument of the modulus. When a whole function becomes the argument of the modulus, all outputs from that function become positive numbers on the y-axis.
Example 1
A function is given as f(x)=2x. Sketch y=f(x) and y=∣f(x)∣ on the same set of axes and state their domains and ranges.
The domain of both functions is x∈R, but the range is different. For f(x) it is R but for ∣f(x)∣ it is [0,+∞) because the modulus can only span zero and positive numbers.
The sketch should look like this:
The modulus function
A modulus function is a function of the type y=∣f(x)∣ :
If f(x)≥0⟹∣f(x)∣=f(x)
If f(x)<0⟹∣f(x)∣=−f(x)
The domain of ∣f(x)∣ and f(x) is the same, but the range may change. All values of this function must be above the x-axis.
Example 2
Sketch f(x)=x2+2x−3 and f(x)=∣x2+2x−3∣.
As you can see, both functions give the same coordinates when f(x) is above the x-axis, however ∣f(x)∣ is a reflection of f(x) when f(x) is below the x-axis.