The modulus of a real number $x$ (denoted by $|x|$ and read as “modulus of $x$“) is defined by its distance from zero on the number line. Because distance is always non-negative, the modulus function has a piecewise definition that covers all cases for $x \in \mathbb{R}$.
The definition is:
The definition works simply for constants:
Case A: The number is positive or zero.
The modulus is the number itself.
$|2| = 2$
$|3| = 3$
$|0| = 0$
Case B: The number is negative.
The modulus is the negative of the number, which results in a positive value.
$|-2| = -(-2) = 2$
$|-3| = -(-3) = 3$
When the modulus is applied to an expression like $|f(x)|$, we must determine the range of $x$ for which the expression $f(x)$ is positive, zero, or negative. This breaks the domain into intervals, creating a piecewise function.
To remove the modulus, we check the sign of the inner expression, $x-1$. The critical point is where $x-1=0$, which is $x=1$.
Since the expression is non-negative, the modulus does nothing.
Since the expression is negative, we multiply it by $-1$.
First, find the critical point where the expression changes sign: $2x-3 = 0 \implies x = \frac{3}{2}$.
This occurs when $2x \ge 3$, or $x \ge \frac{3}{2}$.
This occurs when $2x < 3$, or $x < \frac{3}{2}$.