Q.If f(x)=∣x∣3, show that f′′(x) exists for all real x and find it.
🔒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 …
Idea: write ∣x∣3 as a piecewise cubic, differentiate twice, and check x=0 from the limit definition.
Since ∣x∣=x for x≥0 and ∣x∣=−x for x<0,
f(x)={x3,−x3,x≥0x<0.
First derivatives (x=0): f′(x)=3x2 for x>0 and f′(x)=−3x2 for x<0; both give f′(x)=3x∣x∣. At x=0, f′(0)=limh→0h∣h∣3=limh→0∣h∣h=0. So f′(x)=3x∣x∣ everywhere. …
Writing ∣x∣3 piecewise and differentiating gives f′(x)=3x∣x∣ and f′′(x)=6∣x∣; the cube smooths the corner, so f′′ exists for every real x (including x=0, where it is 0).
The plain absolute value ∣x∣ has a corner at x=0 and is not differentiable there. But cubing it smooths that corner, so ∣x∣3 turns out to be twice differentiable everywhere. We show this by splitting into cases and checking x=0 carefully with the limit definition.
Step 1 — write f piecewise
Since ∣x∣=x for x≥0 and ∣x∣=−x for x<0, and (−x)3=−x3,
f(x)={x3,−x3,x≥0x<0.
Step 2 — first derivative for x=0
f′(x)={3x2,−3x2,x>0x<0.
Both cases are captured by f′(x)=3x∣x∣ (since x∣x∣=x2 for x>0 and −x2 for x<0).
Step 3 — check f′(0)
f′(0)=limh→0hf(h)−f(0)=limh→0h∣h∣3=limh→0∣h∣⋅h=0.
So f′(x)=3x∣x∣ holds for all x, including 0.
Step 4 — second derivative for x=0
Differentiate each piece:
f′′(x)={6x,−6x,x>0x<0. …
Method: Differentiating an Absolute-Value Function Piecewise, and Checking the Seam
Whenever a function is built from ∣x∣, split it into cases based on the sign of x, differentiate each case with the ordinary rules, and then check the transition point (x=0) separately using the limit definition of the derivative — never just by evaluating the piecewise formula there, since the two one-sided formulas might disagree.
Steps
Step 1: Rewrite the function piecewise using ∣x∣=x for x≥0 and ∣x∣=−x for x<0
Step 2: Differentiate each piece using ordinary rules (for x=0)
Step 3: Combine the two pieces into a single formula if they match a common pattern (e.g. involving ∣x∣ again)
Step 4: Check the point where the pieces meet using the limit definition
f′(0)=limh→0hf(h)−f(0). …
Common Mistakes
Mistake 1: Assuming ∣x∣3 inherits the non-differentiability of ∣x∣ at x=0 without checking.
Why it's wrong: ∣x∣ itself has a sharp corner at 0 (left/right derivatives disagree), but cubing it smooths that corner out — the extra power changes the behaviour entirely, and this must be verified, not assumed by analogy. Correct approach: always run the limit-definition check at the seam point rather than pattern-matching to a simpler related function.
Mistake 2: Evaluating the piecewise formula at x=0 instead of using the limit definition. …
- KEAM 2024Set eng-2024-06084 marksMCQQ.If f(x)=x∣x∣, then f′(−1)+f′(1) is equal to (A) 2 (B) −2 (C) 0 (D) −4 (E) 4
›Reveal solutionSolution
f(x)=x∣x∣ equals x2 for x≥0 and −x2 for x<0; its derivative is 2∣x∣, so f′(−1)+f′(1)=2+2=4.
Write the function piecewise:
f(x)={x2,−x2,x≥0x<0.
Differentiate each branch:
- For x>0: f′(x)=2x, so f′(1)=2. …
- KEAM 2026Set eng-2026-04224 marksMCQQ.If f(x)=x2∣x∣, then f′(2) is equal to (A) 21 (B) 41 (C) −21 (D) −41 (E) −61
›Reveal solutionSolution
Simplify f near x=2 (where x>0) before differentiating.
For x>0, ∣x∣=x, so f(x)=x2x=x1=x−1. …
- KEAM 2025Set eng-2025-04274 marksMCQQ.If f(x)=x∣x∣, then f′(−10)= (A) −20 (B) −10 (C) −40 (D) 20 (E) 40
›Reveal solutionSolution
On x<0, f(x)=x∣x∣=−x2, giving f′(x)=−2x, so f′(−10)=20.
Write f(x)=x∣x∣ piecewise. For x<0 we have ∣x∣=−x, so
f(x)=x(−x)=−x2. …
- KEAM 2024Set eng-2024-06094 marksMCQQ.If f(x)=∣cosx−sinx∣, x∈(4π,2π), then f′(3π) is equal to (A) 3+1 (B) 43+1 (C) 23+1 (D) 23−1 (E) 43−1
›Reveal solutionSolution
On (4π,2π) we have sinx>cosx, so f(x)=sinx−cosx and f′(x)=cosx+sinx; evaluating at 3π gives 23+1.
For x∈(4π,2π), sinx>cosx, so cosx−sinx<0 and
f(x)=∣cosx−sinx∣=sinx−cosx.
Then f′(x)=cosx+sinx. …
- KEAM 2025Set eng-2025-04294 marksMCQQ.If f(x)=∣x2−1∣, then f′(23) is equal to (A) 3 (B) 1 (C) 4 (D) 23 (E) 2
›Reveal solutionSolution
Near x=23, x2−1>0, so f(x)=x2−1 and f′(x)=2x=3.
At x=23, x2−1=49−1=45>0, so locally ∣x2−1∣=x2−1. Then …
- KEAM 2025Set eng-2025-04274 marksMCQQ.The function f(x)=∣x2−3x+2∣, x∈R is not differentiable at (A) x=1 and x=3 (B) x=1 and x=2 (C) x=2 and x=4 (D) x=4 and x=5 (E) x=−1 and x=−2
›Reveal solutionSolution
f(x)=∣x2−3x+2∣ fails to be differentiable only at the roots of the quadratic inside the modulus, namely x=1 and x=2.
The quadratic factors as x2−3x+2=(x−1)(x−2), so f(x)=∣(x−1)(x−2)∣.
A modulus function ∣g(x)∣ is differentiable everywhere g is differentiable except at simple zeros of g, where the graph is reflected upward and forms a sharp corner. Here g(x)=(x−1)(x−2) is a polynomial (differentiable everywhere) with simple roots at x=1 and x=2. …
- KEAM 2025Set eng-2025-04294 marksMCQQ.If f(x)=∣cosx−sinx∣, then f′(6π) is equal to (A) 2−(3+1) (B) 2(3+1) (C) 23 (D) 32 (E) 3+12
›Reveal solutionSolution
Near x=6π, cosx−sinx>0, so f(x)=cosx−sinx and f′(x)=−sinx−cosx, giving −23+1.
At x=6π: cos6π=23, sin6π=21, so cosx−sinx=23−1>0. Thus locally ∣cosx−sinx∣=cosx−sinx, and
f′(x)=−sinx−cosx. …
- KEAM 2026Set eng-2026-04194 marksMCQQ.Let y=∣x∣3x3−2x2+x,x=0. Then dxdy at x=−2 is equal to (A) 14 (B) -12 (C) -14 (D) 12 (E) 10
›Reveal solutionSolution
Near x=−2 (negative), ∣x∣=−x, giving y=−3x2+2x−1; its derivative at −2 is 14.
Simplify for x<0. With ∣x∣=−x,
y=−x3x3−2x2+x=−(3x2−2x+1)=−3x2+2x−1. …
- KEAM 2026Set eng-2026-04194 marksMCQQ.Which one of the following is not true? (A) f(x)=x∣x∣ is differentiable in (−1,1) (B) g(x)=∣x∣ is differentiable in (4,5) (C) h(x)=∣x−2∣+∣x+3∣ is differentiable in (3,2) (D) k(x)=∣x+1∣+∣x−6∣ is differentiable in (−1,6) (E) t(x)=x+[x], [x] is the greatest integer less than or equal to x, is differentiable at x=0
›Reveal solutionSolution
t(x)=x+[x] has a jump discontinuity at x=0 from the greatest-integer part, so it cannot be differentiable there. Statement (E) is untrue.
Check the claims:
- (A) f(x)=x∣x∣ has f′(x)=2∣x∣, differentiable on (−1,1) including 0. True.
- (B) ∣x∣=x on (4,5) (positive x), smooth. True.
- (C) On (2,3) both ∣x−2∣,∣x+3∣ are linear — differentiable. True. …
- KEAM 2025Set eng-2025-04234 marksMCQQ.If f(x)=∣x2+x−6∣ is not differentiable at x=a and x=b, then a2+b2= (A) 11 (B) 14 (C) 12 (D) 13 (E) 16
›Reveal solutionSolution
The corners of |x^2+x-6| sit at its roots x=-3 and x=2, so a^2+b^2 = 9+4 = 13.
Concept and Intuition
An absolute value |g(x)| develops a sharp corner (non-differentiability) exactly where g(x) changes sign, i.e. at the simple real roots of g. There the left and right derivatives are equal in magnitude but opposite in sign, so f'(x) does not exist.
Step-by-Step Solution
- Factor the inside: x^2 + x - 6 = (x+3)(x-2).
- The quadratic changes sign at its simple roots x = -3 and x = 2, so f(x) = |x^2+x-6| has corners there.
- Thus a = -3, b = 2 (in either order). …
- KEAM 2025Set eng-2025-04264 marksMCQQ.Let f(x)=10−∣x−5∣,x∈R, Then f(x) is not differentiable at (A) x=10 (B) x=15 (C) x=−5 (D) x=5 (E) x=−15
›Reveal solutionSolution
f(x)=10−∣x−5∣ has a sharp corner where x−5=0, i.e. at x=5.
The absolute-value function ∣x−5∣ is differentiable everywhere except at x=5, where it has a corner (left slope −1, right slope +1). Subtracting it from the constant 10 preserves that no …
🎓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.