Does there exist a function which is continuous everywhere but not differentiable at exactly two points? Justify your answer.
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine drawing a smooth road on paper — no lifting your pen. That is what 'continuous' means. Now imagine the road has two sharp zigzag bends in it. At those bends, the road is still connected, but you cannot measure a clean slope there. The function \( f(x) = |x - 1| + |x - 2| \) is exactly like that road. It never breaks, so it is continuous everywhere. But at \( x = 1 \) and \( x = 2 \) there are sharp corners, so the slope cannot be defined at those two points.
Answer: Yes, such a function exists. The function \( f(x) = |x - 1| + |x - 2| \) is continuous for every real number but fails to be differentiable at exactly two points, namely \( x = 1 \) and \( x = 2 \) (sharp corners where the left and right derivatives differ).
A key theorem in Class 12 says that if a function is differentiable at a point, then it must be continuous at that point. But the converse is NOT true: a function can be continuous at a point yet fail to be differentiable there. The classic example is \( f(x) = |x| \), which is continuous everywhere but not differentiable at \( x = 0 \), because the graph has a sharp corner there. A function fails to be differentiable at a point when its graph has a corner (the left-hand derivative and right-hand derivative are unequal) even though there is no break. So YES, such a function exists. To get non-differentiability at exactly two points, we simply create two corners, for example at \( x = 1 \) and \( x = 2 \), using absolute value expressions.
Differentiable at \( a \Rightarrow \) continuous at \( a \), but continuous at \( a \not\Rightarrow \) differentiable at \( a \). Non-differentiability at \( a \) occurs when \( \lim_{h \to 0^-} \frac{f(a+h)-f(a)}{h} \ne \lim_{h \to 0^+} \frac{f(a+h)-f(a)}{h} \).
Yes, such a function exists. The function \( f(x) = |x - 1| + |x - 2| \) is continuous for every real number but fails to be differentiable at exactly two points, namely \( x = 1 \) and \( x = 2 \) (sharp corners where the left and right derivatives differ).
A common mistake is to think that continuity automatically implies differentiability, and hence to claim no such function can exist. In fact, differentiability implies continuity, but not the other way round; \( |x| \)-type corner functions are continuous yet not differentiable at the corner points.
Yes, such a function exists. The function \( f(x) = |x - 1| + |x - 2| \) is continuous for every real number but fails to be differentiable at exactly two points, namely \( x = 1 \) and \( x = 2 \) (sharp corners where the left and right derivatives differ).
One common mistake: students assume that if a function is continuous at a point it must also be differentiable there — this is false. Continuity means no break in the graph, but differentiability additionally requires no sharp corner; the two conditions are not equivalent.
Answer: Yes, such a function exists. The function \( f(x) = |x - 1| + |x - 2| \) is continuous for every real number but fails to be differentiable at exactly two points, namely \( x = 1 \) and \( x = 2 \) (sharp corners where the left and right derivatives differ).
Question: Does there exist a function which is continuous everywhere but not differentiable at exactly three points? Justify your answer by constructing such a function and verifying your claim.
Solution: Yes, such a function exists. Consider the function \[f(x) = |x - 1| + |x - 3| + |x - 5|\] Step 1: Continuity. Each term \( |x - 1| \), \( |x - 3| \), and \( |x - 5| \) is an absolute-value function, and every absolute-value function is continuous everywhere on \( \mathbb{R} \). Since \( f \) is a sum of three continuous functions, \( f \) is continuous everywhere on \( \mathbb{R} \). Step 2: Differentiability at the critical points. For a general absolute-value term \( |x - c| \), the derivative is \( +1 \) when \( x > c \) and \( -1 \) when \( x < c \), so the left-hand and right-hand derivatives differ at \( x = c \). At \( x = 1 \): Left-hand derivative of \( f \): \[f'(1^-) = (-1) + (-1) + (-1) = -3\] Right-hand derivative of \( f \): \[f'(1^+) = (+1) + (-1) + (-1) = -1\] Since \( f'(1^-) \ne f'(1^+) \), \( f \) is not differentiable at \( x = 1 \). At \( x = 3 \): Left-hand derivative: \[f'(3^-) = (+1) + (-1) + (-1) = -1\] Right-hand derivative: \[f'(3^+) = (+1) + (+1) + (-1) = +1\] Since \( f'(3^-) \ne f'(3^+) \), \( f \) is not differentiable at \( x = 3 \). At \( x = 5 \): Left-hand derivative: \[f'(5^-) = (+1) + (+1) + (-1) = +1\] Right-hand derivative: \[f'(5^+) = (+1) + (+1) + (+1) = +3\] Since \( f'(5^-) \ne f'(5^+) \), \( f \) is not differentiable at \( x = 5 \). Step 3: Differentiability everywhere else. For all \( x \notin \{1, 3, 5\} \), each absolute-value term is differentiable (it equals either \( x - c \) or \( -(x-c) \) in a neighbourhood of \( x \)), so \( f \) is differentiable at every such point. Conclusion: \( f(x) = |x - 1| + |x - 3| + |x - 5| \) is continuous everywhere on \( \mathbb{R} \) but is not differentiable at exactly the three points \( x = 1,\ 3,\ 5 \).
Answer: Yes. The function \( f(x) = |x - 1| + |x - 3| + |x - 5| \) is continuous everywhere but not differentiable at exactly three points: \( x = 1,\ 3,\ 5 \).
Question: Construct a function that is continuous on all of \( \mathbb{R} \) but is not differentiable at exactly the two points \( x = -2 \) and \( x = 4 \). Verify both continuity and non-differentiability at those points.
Solution: Yes, such a function can be constructed. Define \[g(x) = |x + 2| + |x - 4|\] Step 1: Verify continuity. The function \( |x + 2| \) is continuous everywhere, and \( |x - 4| \) is continuous everywhere. Their sum \( g(x) \) is therefore continuous everywhere on \( \mathbb{R} \). Step 2: Check differentiability at \( x = -2 \). For \( |x + 2| \): the left-hand derivative at \( x = -2 \) is \( -1 \) and the right-hand derivative is \( +1 \). For \( |x - 4| \): since \( -2 < 4 \), the function equals \( 4 - x \) near \( x = -2 \), so its derivative is \( -1 \) on both sides at \( x = -2 \). Left-hand derivative of \( g \) at \( x = -2 \): \[g'(-2^-) = (-1) + (-1) = -2\] Right-hand derivative of \( g \) at \( x = -2 \): \[g'(-2^+) = (+1) + (-1) = 0\] Since \( g'(-2^-) \ne g'(-2^+) \), the function \( g \) is not differentiable at \( x = -2 \). Step 3: Check differentiability at \( x = 4 \). For \( |x + 2| \): since \( 4 > -2 \), the function equals \( x + 2 \) near \( x = 4 \), so its derivative is \( +1 \) on both sides at \( x = 4 \). For \( |x - 4| \): the left-hand derivative at \( x = 4 \) is \( -1 \) and the right-hand derivative is \( +1 \). Left-hand derivative of \( g \) at \( x = 4 \): \[g'(4^-) = (+1) + (-1) = 0\] Right-hand derivative of \( g \) at \( x = 4 \): \[g'(4^+) = (+1) + (+1) = 2\] Since \( g'(4^-) \ne g'(4^+) \), the function \( g \) is not differentiable at \( x = 4 \). Step 4: Differentiability everywhere else. For \( x < -2 \): \( g(x) = -(x+2) + (4-x) = -2x + 2 \), which is differentiable. For \( -2 < x < 4 \): \( g(x) = (x+2) + (4-x) = 6 \), which is differentiable (derivative \( = 0 \)). For \( x > 4 \): \( g(x) = (x+2) + (x-4) = 2x - 2 \), which is differentiable. Conclusion: \( g(x) = |x + 2| + |x - 4| \) is continuous everywhere on \( \mathbb{R} \) and is not differentiable at exactly the two points \( x = -2 \) and \( x = 4 \).
Answer: Yes. The function \( g(x) = |x + 2| + |x - 4| \) is continuous everywhere but not differentiable at exactly the two points \( x = -2 \) and \( x = 4 \).
Question: Does there exist a function which is continuous everywhere but not differentiable at exactly three points? Justify your answer with an explicit example and verify the claims made.
Answer: Yes, such a function exists. The function \( f(x) = |x| + |x - 1| + |x - 3| \) is continuous everywhere on \( \mathbb{R} \) but fails to be differentiable at exactly three points: \( x = 0 \), \( x = 1 \), and \( x = 3 \), where the left-hand and right-hand derivatives are unequal (sharp corners in the graph).