When Is the Absolute Value of a Function Continuous?
At a glance
- 1. Use continuity of absolute value
The map x ↦ |x| is continuous everywhere.
- 2. Compose the functions
If f is continuous at a point, then |f| is continuous there.
- 3. Check the converse
Continuity of |f| does not generally imply continuity of f.
- 4. Find the failure
A function can jump between positive and negative values while its absolute value stays unchanged.
The absolute value of a real-valued function is continuous wherever the original function is continuous. This follows because taking an absolute value is itself a continuous operation.
However, the converse is false in general: a continuous absolute-value function does not guarantee that the original function is continuous. The issue is that absolute value removes sign information.
The basic theorem
Let be a function, where is a subset of . If is continuous at , then the function
is continuous at .
There are two standard ways to see this.
First, the function is continuous on . Therefore is the composition of two continuous functions:
Second, use the inequality
If as , then the right-hand side tends to zero. Consequently,
which is exactly the continuity of at .
Epsilon–delta proof
Suppose is continuous at . To prove that is continuous at , let .
Since is continuous at , there exists such that
The reverse triangle inequality gives
Thus, whenever ,
Therefore is continuous at .
The same argument works when the domain is a metric space and the codomain is a normed vector space: if is continuous, then is continuous.
Worked example
Take
Because is a polynomial, it is continuous on . Therefore
is continuous on .
The formula for can be written piecewise by finding the zeros of :
has roots
Thus changes sign at those two points, but remains continuous there. Explicitly,
Although the derivative may fail to exist at a zero where the sign changes, continuity is preserved. For example, is continuous at but is not differentiable there.
The converse is false
It is tempting to claim
but this is not true.
Define
The function is discontinuous at : its left-hand limit is , while its right-hand limit and value at are .
But
for every . Hence is constant and therefore continuous everywhere.
The absolute value cannot detect this discontinuity because both and have the same absolute value.
When can the converse hold?
The converse does hold under additional sign information. Suppose is continuous at and has a fixed sign in some neighborhood of .
If near , then near , so is continuous at whenever is.
If near , then near , so again is continuous at .
The condition by itself is not sufficient. For example, define
Then for every , so is continuous everywhere, but is discontinuous at even though .
Thus, what matters is a fixed-sign condition, or another hypothesis that rules out sign switching, rather than merely the fact that is nonzero. A sign change can occur without the function taking the value zero when no intermediate-value property is available.
Common mistakes
Confusing continuity and differentiability
If is continuous, then is continuous. But may not be differentiable where is zero and changes sign. The function gives , which is continuous but not differentiable at zero.
Assuming absolute values preserve all information
The equality does not imply . The values could have opposite signs. This is why continuity of alone cannot always establish continuity of .
Ignoring the domain
Continuity is considered relative to the domain. For example, if a function is defined only on , continuity at uses points from the domain and does not require a two-sided limit from all real numbers.
Forgetting the reverse triangle inequality
The estimate
is often the quickest proof. It says that the absolute-value operation is Lipschitz continuous with constant .
A useful generalization
The same reasoning applies to any continuous function . If is continuous, then is continuous. Taking gives the result here.
More generally, if is continuous and is a positive integer, then is continuous. For , this is the absolute-value result; for , it follows from .
References
- Walter Rudin, Principles of Mathematical Analysis
- Tom M. Apostol, Mathematical Analysis
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.