Q.Show that f(x)=∣x−5∣ is continuous but not differentiable at x=5.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Differentiability of Absolute Value
Differentiability of the Absolute Value Function
Start with something familiar: the absolute value of x, written ∣x∣, is its distance from zero on the number line. So ∣3∣=3, ∣−5∣=5, and ∣0∣=0. Graphically, it looks like a V-shape — two straight lines meeting at the origin.
Differentiability is about whether a function has a well-defined slope (derivative) at a point. For smooth curves like x2 or sinx, the slope exists everywhere. But the absolute value function has a sharp corner at x=0 — and that corner is the whole story.
Intuition: Why the corner matters
Walk along y=∣x∣ from left to right. Approaching x=0 from the left, the slope is −1 (the line goes downward). Leaving x=0 to the right, the slope is suddenly +1 (the line goes upward). At x=0, there's no single slope — it changes abruptly. That's why ∣x∣ is not differentiable at x=0. Everywhere else — for x<0 and x>0 — the graph is a straight line with constant slope, so ∣x∣ is differentiable at every point except x=0.
A function must be continuous to be differentiable, but continuity alone isn't enough. The absolute value function is continuous at x=0 (no break), yet fails to be differentiable there because of the sharp corner.
The precise statement
Let f(x)=∣x∣. Then:
- For x>0: f(x)=x, so f′(x)=1.
- For x<0: f(x)=−x, so f′(x)=−1.
- At x=0: the derivative does not exist, because the left-hand and right-hand derivatives are different numbers.
f′(0)=limh→0h∣0+h∣−∣0∣=limh→0h∣h∣
This limit does not exist because:
- From the right (h→0+): h∣h∣=hh=1
- From the left (h→0−): h∣h∣=h−h=−1
Since the two one-sided limits differ, the two-sided limit does not exist.
A common mistake is to think that because ∣x∣ is continuous at x=0, it must be differentiable there. Continuity is necessary for differentiability, but not sufficient. The absolute value function is the classic counterexample.
The bigger picture …
Concept: Differentiability of Absolute Value — the absolute value function has a sharp corner at the point where its argument is zero, making it non-differentiable there.
-
Continuity at x=5:
limx→5∣x−5∣=0 and f(5)=0, so the limit equals the function value. Hence f is continuous at x=5.
-
Left-hand derivative:
For x<5, f(x)=5−x, so f′(5−)=limh→0−h∣h∣=limh→0−h−h=−1.
-
Right-hand derivative: …
The function f(x)=∣x−5∣ is continuous at x=5 because the left and right limits both equal f(5)=0, but it is not differentiable because the left-hand derivative (−1) and right-hand derivative (+1) are different — the graph has a sharp corner.
Why absolute value functions behave this way
The absolute value function ∣x∣ has a V-shaped graph. At the vertex (where the expression inside becomes zero), the slope changes abruptly from −1 to +1. For f(x)=∣x−5∣, that vertex is shifted to x=5. Continuity is about the graph being unbroken — and the V is unbroken. Differentiability is about having a unique tangent — and at the tip of the V, there are infinitely many lines that touch the graph, not a single tangent.
Let’s verify both properties formally.
Step-by-step verification
1. Rewrite the function piecewise
The definition of absolute value gives:
∣x−5∣={x−5,5−x,x≥5x<5
So f(x) is a straight line of slope +1 for x≥5, and slope −1 for x<5.
2. Check continuity at x=5
A function is continuous at a point if three things match: the left-hand limit, the right-hand limit, and the function value.
-
Left-hand limit (x→5−):
For x<5, f(x)=5−x.
x→5−limf(x)=x→5−lim(5−x)=5−5=0.
-
Right-hand limit (x→5+):
For x>5, f(x)=x−5.
x→5+limf(x)=x→5+lim(x−5)=5−5=0.
-
Function value:
f(5)=∣5−5∣=0.
Since x→5−limf(x)=x→5+limf(x)=f(5)=0, the function is continuous at x=5.
Continuity only cares about the value of the function near the point, not the direction of approach. Both sides meet at the same height — that’s enough.
3. Check differentiability at x=5
Differentiability requires the derivative from the left and the derivative from the right to be equal. We compute each using the limit definition of the derivative.
Left-hand derivative (approach from x<5):
f−′(5)=limh→0−hf(5+h)−f(5)
For h<0, 5+h<5, so f(5+h)=5−(5+h)=−h. And f(5)=0.
f−′(5)=limh→0−h−h−0=limh→0−h−h=limh→0−(−1)=−1
Right-hand derivative (approach from x>5): …
Method: Piecewise Continuity and Differentiability Check for ∣x−a∣-Type Functions
This method applies whenever a function is defined using an absolute value (or any expression with a "kink"), and you must show it is continuous at the kink point but decide separately whether it is differentiable there.
Steps
Step 1: Rewrite the function piecewise around the critical point
Identify the point x=a where the expression inside the modulus becomes zero (here a=5), and split f(x)=∣x−a∣ into two linear pieces — one for x≥a and one for x<a — since ∣x−a∣=x−a when x≥a and ∣x−a∣=a−x when x<a.
Step 2: Test continuity using the three-way match
A function is continuous at x=a only if the left-hand limit, the right-hand limit, and the function value all agree:
limx→a−f(x)=limx→a+f(x)=f(a)
For a ∣x−a∣-type function this always holds, because both pieces meet at height 0 at x=a — the graph has no break, only a corner.
Step 3: Test differentiability using one-sided derivatives
Continuity is necessary but never sufficient for differentiability. Compute the left-hand and right-hand derivatives separately using the limit definition: …
Common Mistakes
Mistake 1: Assuming continuity guarantees differentiability
Why it's wrong: continuity only requires the graph to have no break or jump; differentiability additionally requires a single, well-defined tangent slope. A V-shaped graph like ∣x−5∣ is perfectly unbroken at the corner, so it is continuous, but the slope jumps from −1 to +1 there, so no single tangent exists. Correct approach: always check continuity and differentiability as two separate conditions — never infer one from the other.
Mistake 2: Differentiating ∣x−5∣ as if it behaves like x−5 everywhere …
Showing the 12 most recent of 22 on this concept.
- AP EAPCET 2024Set eng-2024-05-22-FN1 markMCQQ.The function f(x)=∣x−24∣ is (A) Differentiable on [0,25] (B) not continuous at x=24 (C) neither continuous nor differentiable on [0,25] (D) Continuous on [0,25], but not differentiable on [0,25]
›Reveal solutionSolution
The absolute value function is always continuous, but fails to be differentiable exactly at its "kink" — here x=24, which lies inside the given interval.
Concept and Intuition
∣x−a∣ equals −(x−a) for x<a and (x−a) for x>a; both pieces are continuous and their values agree at x=a, so the whole function is continuous. But the left derivative there is −1 and the right derivative is +1 — they disagree, so the function is not differentiable at x=a.
Step-by-Step Solution
- f(x)=∣x−24∣ is a composition of continuous functions, hence continuous for all real x, in particular on [0,25].
- Check differentiability at x=24 (which lies in [0,25]): left derivative =limh→0−h∣24+h−24∣−0=limh→0−h∣h∣=−1.
- Right derivative =limh→0+h∣h∣=1.
- Since −1=1, f is not differentiable at x=24. …
- AP EAPCET 2023Set eng-2023-05-16-FN1 markMCQQ.Let f(x)=∣x−3∣+∣x+5∣ and A={a∈R:limx→ax−af(x)−f(a) exists}. Then the number of real numbers which are in (−∞,−3)∪(5,∞) but not in A is (A) 2 (B) 0 (C) 1 (D) 3
›Reveal solutionSolution
The only non-differentiable points of f(x)=∣x−3∣+∣x+5∣ are the two kinks x=3,−5; checking which of these fall inside (−∞,−3)∪(5,∞) shows only x=−5 does, giving the count 1.
Concept and Intuition
f is piecewise linear with corners exactly where each absolute-value term changes sign, i.e. at x=3 and x=−5. Everywhere else it's a sum of linear pieces, hence differentiable. So A=R∖{−5,3}, and we just need to check how many of the excluded points {−5,3} actually lie in the specified region (−∞,−3)∪(5,∞).
Step-by-Step Solution
- f(x)=∣x−3∣+∣x+5∣ is non-differentiable exactly at x=3 and x=−5 (the two "kink" points of the absolute values).
- So the points not in A (points where the limit does not exist) are {−5,3}.
- Check x=−5: is −5∈(−∞,−3)∪(5,∞)? Since −5<−3, yes, −5∈(−∞,−3). …
- AP EAPCET 2022Set eng-2022-07-07-AN1 markMCQQ.Assertion (A): f(x)=∣x∣ is differentiable at x=a=0 and continuous but not differentiable at x=0 Reason (R): If a function is differentiable at a point then it is continuous at that point. But converse is not true. (A) A is correct, R is correct, R is correct explanation of A (B) A is correct, R is correct, but R is not correct explanation of A (C) A is correct, R is false. (D) A is false, R is correct.
›Reveal solutionSolution
Both the assertion and reason are individually true standard facts about ∣x∣ and about differentiability vs. continuity, and R does explain why A is true. Answer: (A).
Concept and Intuition
f(x)=∣x∣ has slope −1 for x<0 and slope +1 for x>0 — these are unequal, so the two one-sided derivatives at x=0 never match, and f isn't differentiable there, even though f is perfectly continuous at x=0 (no jump or break). This is the textbook example showing that continuity is a necessary but not sufficient condition for differentiability — which is exactly what Reason (R) states in general.
Step-by-Step Solution
- Verify Assertion (A): for a=0, ∣x∣ equals either x or −x in a neighbourhood of a, both of which are differentiable, so f′(a) exists. At x=0: left derivative =−1, right derivative =+1; unequal, so not differentiable, but limx→0∣x∣=0=f(0), so it is continuous. A is TRUE.
- Verify Reason (R): this is the standard theorem "differentiable ⇒ continuous", and ∣x∣ at 0 is the classic counterexample to the converse. R is TRUE and is a general statement. …
- AP EAPCET 2022Set eng-2022-07-06-AN1 markMCQQ.Let f(x)={∣x∣,∣2x−4∣,−∞<x<22≤x≤20. x=a is a point where f(x) is continuous but not differentiable and x=b is a point where f(x) is not differentiable (a=b). Then a+b= (A) 1 (B) 2 (C) -2 (D) 0
›Reveal solutionSolution
The piecewise function has exactly one genuine "corner" (continuous but non-differentiable) at x=0 from the ∣x∣ piece, and a jump discontinuity (hence non-differentiable) at the junction x=2; their sum is 2.
Concept and Intuition
A function can fail to be differentiable at a point either because it has a sharp corner while still being continuous there (like ∣x∣ at 0), or because it's outright discontinuous there (any jump automatically kills differentiability too, but that's a stronger failure). This problem asks us to identify one of each type.
Step-by-Step Solution
- For −∞<x<2: f(x)=∣x∣. This has its classic corner at x=0 — continuous there (f(0)=0 from both sides) but the left and right derivatives are −1 and +1, unequal, so not differentiable. This is our point a=0.
- Check continuity at the junction x=2: from the left, using the first piece, limx→2−∣x∣=2. From the definition at x=2 (second piece applies since 2≤x≤20): f(2)=∣2(2)−4∣=∣0∣=0.
- Since 2=0, f has a jump discontinuity at x=2 — so f is not differentiable there (discontinuity is a stronger failure than a mere corner). This is our point b=2. …
- AP EAPCET 2024Set eng-2024-05-20-AN1 markMCQQ.In the interval [0,3], the function f(x)=∣x−1∣+∣x−2∣ is (A) Discontinuous (B) differentiable (C) Continuous but not differentiable at x=2 only (D) Continuous but not differentiable at x=1 and x=2
›Reveal solutionSolution
∣x−1∣+∣x−2∣ is continuous everywhere but has corners at the two points where the absolute values "switch," x=1 and x=2 — (D).
Concept and Intuition
∣x−a∣ is continuous everywhere (as a composition of continuous functions) but fails to be differentiable exactly at x=a, where its graph has a sharp corner (the left and right slopes are −1 and +1, which don't match). A sum of such functions is continuous everywhere (sum of continuous functions) and non-differentiable at each individual corner point (unless the kinks happen to cancel, which they don't here).
Step-by-Step Solution
- Break [0,3] into three pieces based on where x−1 and x−2 change sign: [0,1), [1,2), [2,3].
- On [0,1): x−1<0,x−2<0, so f(x)=(1−x)+(2−x)=3−2x.
- On (1,2): x−1>0,x−2<0, so f(x)=(x−1)+(2−x)=1 (constant!).
- On (2,3]: both positive, f(x)=(x−1)+(x−2)=2x−3.
- All three pieces match up in value at the junctions (f(1)=1 from both sides, f(2)=1 from both sides), so f is continuous throughout. …
- AP EAPCET 2023Set eng-2023-05-15-AN1 markMCQQ.If f(x)=∣x−5∣+∣x+5∣+∣x−4∣+∣x+4∣, then f′(−1)+f′(6)f′(1)−f′(−6)= (A) 1 (B) 0 (C) 4/5 (D) 3/2
›Reveal solutionSolution
Each ∣x−a∣ contributes ±1 to f′(x) depending on the sign of x−a; plugging in the four given x-values and simplifying gives the ratio 1.
Concept and Intuition
The derivative of ∣x−a∣ is +1 for x>a and −1 for x<a (undefined only exactly at x=a). So f′(x) for a sum of such terms is just the sum of these signs, evaluated at points away from the corners x=±4,±5.
Step-by-Step Solution
- f(x)=∣x−5∣+∣x+5∣+∣x−4∣+∣x+4∣, so f′(x)=sgn(x−5)+sgn(x+5)+sgn(x−4)+sgn(x+4).
- At x=1: signs of (1−5,1+5,1−4,1+4)=(−,+,−,+)⇒f′(1)=−1+1−1+1=0.
- At x=−6: signs of (−11,−1,−10,−2) all negative ⇒f′(−6)=−1−1−1−1=−4.
- At x=−1: signs of (−6,4,−5,3)=(−,+,−,+)⇒f′(−1)=−1+1−1+1=0. …
- AP EAPCET 2026Set eng-2026-05-14-FN1 markMCQQ.The set of all the points at which f(x)=∣2−∣x∣∣ is continuous but not differentiable is (A) {0,1,2} (B) {−1,0,2} (C) {−2,0,2} (D) {−2,1,2}
›Reveal solutionSolution
∣2−∣x∣∣ is continuous everywhere but fails to be differentiable exactly where an absolute value "folds" the graph — at x=0 and at x=±2 where 2−∣x∣=0.
Concept and Intuition
An absolute value ∣g(x)∣ is always continuous if g is continuous (composition with the continuous function ∣⋅∣). But it fails to be differentiable at any point where g itself is not differentiable, and additionally at any point where g(x)=0 with g′=0 there (because ∣g(x)∣ has a sharp corner/fold exactly where g crosses zero). We must check both sources of non-differentiability for f(x)=∣2−∣x∣∣.
Step-by-Step Solution
- Let g(x)=2−∣x∣. Then f(x)=∣g(x)∣.
- g(x) itself is not differentiable at x=0 because of the inner ∣x∣ (corner there), and g(0)=2=0, so near x=0, g(x)>0 and f(x)=g(x) — f inherits g's corner at x=0.
- g(x)=0 when ∣x∣=2, i.e. at x=2 and x=−2. Near these points g is differentiable (it's just 2−x or 2+x, linear pieces with nonzero slope ∓1), but since g changes sign there, f=∣g∣ has a "V"-shaped corner at each of x=2 and x=−2. …
- AP EAPCET 2023Set eng-2023-05-17-AN1 markMCQQ.If α∈R−{−1} and f(x)=(∣x∣+α)(∣x∣−1), then the number of points at which f(x) is not differentiable, is (A) 3, when α<0 (B) 5, when α>0 (C) 4, when α>0 (D) 5, when α<0
›Reveal solutionSolution
Writing f as ∣x2+(α−1)∣x∣−α∣ and counting its zero-crossings plus the origin kink shows f fails to be differentiable at exactly 5 points whenever α<0 (and only 3 points when α>0).
Concept and Intuition
f(x)=∣(∣x∣+α)(∣x∣−1)∣ is built by composing an absolute value of x (kink at x=0 unless its coefficient vanishes) with another outer absolute value (kinks wherever the inner expression crosses zero with nonzero slope). We must count both kinds of kink.
Step-by-Step Solution
- Expand: (∣x∣+α)(∣x∣−1)=∣x∣2+(α−1)∣x∣−α=x2+(α−1)∣x∣−α=g(x).
- Substituting u=∣x∣≥0: g=u2+(α−1)u−α. Its discriminant is (α−1)2+4α=(α+1)2, so roots are u=2(1−α)±∣α+1∣, giving u=1 and u=−α.
- u=1 is always a valid root (x=±1). u=−α is valid (i.e. ≥0) only when α≤0.
- For α<0: both roots valid, distinct from each other and from 0 (since α=0,−1), giving zero-crossings at x=1,−1,α,−α — four points. Checking g′ at each (using g′(x)=2x±(α−1) on the two branches) shows the slope is nonzero there in all cases, so each is a genuine corner of ∣g∣. …
- AP EAPCET 2026Set eng-2026-05-12-AN1 markMCQQ.A function f:R→R defined as f(x)=⎩⎨⎧∣x∣x,4x∣x∣,x∣x∣,x<−2−2≤x≤2x>2 is (A) Differentiable for all real x (B) Differentiable for all real x except for x=−2,0,2 (C) Continuous for all real x and differentiable for all real x except for x=−2,2 (D) Continuous for all real x except for x=0,−2,2 and differentiable at x=−2,0,2
›Reveal solutionSolution
The function is continuous everywhere (the pieces meet exactly at x=±2), but the slope jumps at x=±2 (constant slope 0 outside vs. slope ±1 from the middle piece) while it is smooth through x=0.
Concept and Intuition
Outside [−2,2] the function reduces to constants (x/∣x∣=∓1), while inside it is the smooth-looking x∣x∣/4, which is actually x2/4 for x≥0 and −x2/4 for x<0 — a function that is itself differentiable everywhere including at 0 (both one-sided derivatives are 0 there). The only risk of a kink is at the junctions x=±2 where the constant pieces meet the quadratic piece.
Step-by-Step Solution
- Continuity at x=−2: left piece value =−1 (constant); middle piece at x=−2: (−2)∣−2∣/4=(−2)(2)/4=−1. Equal — continuous.
- Continuity at x=2: middle piece at x=2: (2)(2)/4=1; right piece value =1. Equal — continuous. So f is continuous for all real x.
- Differentiability at x=0: for 0≤x≤2, f=x2/4, f′=x/2→0 as x→0+; for −2≤x≤0, f=−x2/4, f′=−x/2→0 as x→0−. Both one-sided derivatives are 0 — differentiable at x=0.
- Differentiability at x=−2: left piece (constant −1) has derivative 0; middle piece derivative at x=−2+ is −x/2=1. 0=1 — NOT differentiable. …
- AP EAPCET 2022Set eng-2022-07-07-FN1 markMCQQ.Which of the following is differentiable at x = 0 ? (A) f(x)=cos∣x∣+∣x∣ (B) f(x)=sin∣x∣+∣x∣ (C) f(x)=cos∣x∣−∣x∣ (D) f(x)=sin∣x∣−∣x∣
›Reveal solutionSolution
Writing each function separately for x>0 and x<0 and comparing the one-sided derivatives at 0, only f(x)=sin∣x∣−∣x∣ has equal left- and right-hand derivatives (both 0), making it the only one differentiable at x=0.
Concept and Intuition
A function built from ∣x∣ typically has a "kink" at x=0 because dxd∣x∣ jumps from −1 to +1. But if the other piece of the function also contributes a matching jump that exactly cancels this discontinuity in slope, the combination can become smooth at 0 even though ∣x∣ alone is not differentiable there. Since cos∣x∣≡cosx (cosine is even), only ∣x∣'s own kink matters in options (A) and (C). Since sin∣x∣ is itself non-smooth at 0 (behaving like ∣x∣ for options B and D), we must check each combination directly.
Step-by-Step Solution
- (A) f=cos∣x∣+∣x∣=cosx+∣x∣. Right derivative at 0: −sin(0)+1=1. Left derivative: −sin(0)−1=−1. Not equal — not differentiable.
- (B) f=sin∣x∣+∣x∣. For x>0: f=sinx+x,f′=cosx+1→2. For x<0: ∣x∣=−x,sin∣x∣=sin(−x)=−sinx, so f=−sinx−x,f′=−cosx−1→−2. Not equal.
- (C) f=cos∣x∣−∣x∣=cosx−∣x∣. Right derivative: −sin(0)−1=−1. Left derivative: −sin(0)+1=1. Not equal. …
- AP EAPCET 2026Set eng-2026-05-18-AN1 markMCQQ.If f(x)=∣x−2∣(34∣x∣−1) is a real valued function, then the set of points at which f is not differentiable, is (A) {0} (B) {2} (C) {0,2} (D) ∅
›Reveal solutionSolution
Both ∣x−2∣ and the ∣x∣ hidden inside the exponent create corners; check whether the other factor vanishes at each corner to see if it's smoothed away — here neither is, so both survive.
Concept and Intuition
∣g(x)∣-type expressions are non-differentiable exactly where g(x)=0 (a corner), unless multiplied by a factor that is itself zero there with enough smoothness to cancel the kink. Here there are two potential kink locations — x=2 from ∣x−2∣, and x=0 hidden inside 34∣x∣ — so each must be checked independently against the other factor.
Step-by-Step Solution
- At x=2: near x=2, f(x)=±(x−2)(34∣x∣−1), a corner from ∣x−2∣ times a smooth nonzero factor (34⋅2−1=38−1=0 at x=2). Computing one-sided derivatives: for x→2−, f′(2−)=−(38−1); for x→2+, f′(2+)=+(38−1). These differ, so f is not differentiable at 2.
- At x=0: here ∣x−2∣=2−x is smooth (equals 2 at x=0, nonzero). Expand 34∣x∣−1 near 0: for x>0, 34x−1≈4xln3; for x<0, 3−4x−1≈−4xln3=4∣x∣ln3. So 34∣x∣−1≈(4ln3)∣x∣ — itself a corner (like c∣x∣), not smoothed to a higher power. …
- AP EAPCET 2021Set eng-2021-08-25-AN1 markMCQQ.The set of all points where the function f(x)=2x∣x∣ is differentiable is ________ (A) (−∞,∞) (B) (−∞,0)∪(0,∞) (C) (0,∞) (D) [0,∞)
›Reveal solutionSolution
f(x)=2x∣x∣ is a smoothly-joined piecewise quadratic; it is differentiable at every real number, including x=0. Answer: all of R.
Concept and Intuition
Functions built from ∣x∣ often fail to be differentiable at 0 (like ∣x∣ itself), but multiplying by an extra factor of x can "soften" the corner into a genuine smooth point — that's exactly what happens here.
Step-by-Step Solution
- Write f(x)=2x∣x∣={2x2,−2x2,x≥0x<0.
- For x>0: f′(x)=4x. For x<0: f′(x)=−4x.
- Check differentiability at x=0 directly from the definition: f′(0)=limh→0hf(h)−f(0)=limh→0h2h∣h∣=limh→02∣h∣=0. …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.