Absolutevalue
Absolutevalue
For any real number x the absolute value or modulus of a is denoted by |x| (read ”the absolute
value of x”) and is defined as
x x≥0
|x| =
−x x<0
As can be seen from the above definition, the absolute value of a is always either positive or
zero, but never negative. The vertical lines in the symbol |x| are called absolute value bars.
From an analytic geometry point of view, the absolute value of a real number is that number’s
distance from zero along the real number line (it tells us how far it is from 0 to x but not
the direction). More generally the absolute value of the difference of two real numbers is the
distance between them.
|a − b| is the difference between the larger and the smaller of the two numbers. In other words,
|a − b| is the distance between the points a and b (as illustrated above).
√
x2 = |x|
is monotonically decreasing on the interval (−∞, 0] and monotonically increasing on the interval
[0, ∞). Since a real number and its negative have the same absolute value, it is an even function,
and is hence not invertible. The real absolute value function is continuous everywhere. It is
differentiable everywhere except for x = 0 (since it has a ”sharp corner”). The derivative of
the real absolute value function is the signum function, sgn(x), which is defined as
x
sgn(x) =
|x|
for x 6= 0.
Example
a) f (x) = |x − 2|