Exercise 81Calculus › Single-variable calculus › Continuity › Continuous and discontinuous functionsL1Added 2 Nov 2026
The absolute value of a continuous function
#continuity#absolute value#counterexamples
Statement
- Show that if is continuous at , then is continuous at .
- Show that the converse is false.
Hint
For part 1, use the reverse triangle inequality . For part 2, try a function that only takes the values and .
Show solutionHide solution
Solution
1. For all , . Given , continuity of gives with when ; the same works for .
2. Let if is rational and if is irrational. Then is constant, hence continuous. But is discontinuous at every point: near any there are rationals (where ) and irrationals (where ).
Remark. Taking the absolute value can only destroy sign jumps, never create new discontinuities. That is why is "more continuous" than .