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. …
- TG EAPCET 2026Set eng-2026-05-09-AN1 markMCQQ.The domain of the derivative of the real valued function f(x)=(x2−x−2)∣x2+x−6∣ is (A) R (B) R−{−3} (C) R−{−3,2} (D) R−{−3,−1,2}
›Reveal solutionSolution
The derivative exists everywhere except at points where the absolute value expression changes sign and the overall function is not differentiable. The domain of f′(x) is R−{−3,2}, so option (C) is correct.
The function is f(x)=(x2−x−2)∣x2+x−6∣. The absolute value makes the function piecewise, and the derivative may fail to exist at points where the expression inside the absolute value is zero — because that's where the "kink" or corner can appear. But we also need to check whether the factor outside the absolute value cancels that kink, making the function smooth there.
Let’s find the critical points.
-
Factor everything.
x2−x−2=(x−2)(x+1)
x2+x−6=(x+3)(x−2)
So f(x)=(x−2)(x+1)∣(x+3)(x−2)∣.
-
Identify where the absolute value changes behaviour.
The expression inside the absolute value is zero at x=−3 and x=2. These are the only points where the definition of ∣⋅∣ switches between + and −.
-
Check differentiability at x=−3.
Near x=−3, the factor (x−2) is non-zero, and (x+1) is non-zero. The absolute value part behaves like ∣(x+3)(x−2)∣. Since (x−2) is non-zero and constant in sign near −3, the kink from ∣x+3∣ survives. The product (x−2)(x+1) is non-zero at x=−3, so the function has a corner there — the left and right derivatives will differ. Hence f is not differentiable at x=−3.
-
Check differentiability at x=2.
Here the factor (x−2) appears both outside the absolute value and inside it. Write f(x)=(x−2)(x+1)∣(x+3)(x−2)∣.
For x near 2, (x+3) is positive, so ∣(x+3)(x−2)∣=(x+3)∣x−2∣.
Thus f(x)=(x−2)(x+1)(x+3)∣x−2∣=(x+1)(x+3)(x−2)∣x−2∣. …
-
- TG EAPCET 2021Set eng-2021-08-06-FN1 markMCQQ.If f:R→R is defined as f(x)=∣x+1∣+∣x−1∣, then f(x) is (A) not differentiable at every real number (B) not differentiable at −1 and 1 only (C) not differentiable at −1, 0 and 1 (D) differentiable on R
›Reveal solutionSolution
The function f(x)=∣x+1∣+∣x−1∣ is a sum of two absolute value functions, each with a corner at a different point. The sum is not differentiable at the points where either absolute value has a corner, which are x=−1 and x=1. The correct option is (B).
The key idea here is that an absolute value function ∣x−a∣ has a sharp corner (a cusp) at x=a, where its left-hand and right-hand derivatives differ. When you add two such functions, the sum inherits the non-differentiability at each of those corner points, unless the corners somehow cancel each other out — which they don't here.
Let’s see why step by step.
-
Identify the critical points.
The function f(x)=∣x+1∣+∣x−1∣ has two absolute value expressions. The first, ∣x+1∣, changes its behaviour at x=−1. The second, ∣x−1∣, changes at x=1. So the natural points to check for differentiability are x=−1 and x=1.
-
Write the piecewise definition.
For x<−1, both x+1 and x−1 are negative, so ∣x+1∣=−(x+1) and ∣x−1∣=−(x−1).
For −1≤x<1, x+1≥0 but x−1<0, so ∣x+1∣=x+1 and ∣x−1∣=−(x−1).
For x≥1, both are non-negative, so ∣x+1∣=x+1 and ∣x−1∣=x−1.
This gives:
f(x)=⎩⎨⎧−(x+1)−(x−1)=−2x,(x+1)−(x−1)=2,(x+1)+(x−1)=2x,x<−1−1≤x<1x≥1
-
Check differentiability at x=−1.
The left-hand derivative (from x<−1) is the derivative of −2x, which is −2.
The right-hand derivative (from x>−1, but still x<1) is the derivative of the constant 2, which is 0.
Since −2=0, the left and right derivatives are different. Therefore f is not differentiable at x=−1.
-
Check differentiability at x=1.
The left-hand derivative (from x<1, but x>−1) is the derivative of the constant 2, which is 0.
The right-hand derivative (from x>1) is the derivative of 2x, which is 2.
Again, 0=2, so f is not differentiable at x=1.
-
Check any other point.
For x<−1, f(x)=−2x is a straight line, differentiable everywhere in that open interval. …
-
- TG EAPCET 2025Set eng-2025-05-04-FN1 markMCQQ.If f(x)={x2cosxπ,0,x=0x=0, then at x=2, f(x) is (A) Differentiable (B) Right differentiable only (C) Continuous but not differentiable (D) Left differentiable only
›Reveal solutionSolution
Near x=2 (away from the special point x=0), f(x)=x2cos(π/x) is a smooth product/composition, hence differentiable at x=2 — option (A).
Concept. A piecewise function can only lose continuity or differentiability where its defining formula changes or blows up — here, only at x=0. Everywhere else f(x)=x2cosxπ is a product of the polynomial x2 with cos(π/x), both infinitely differentiable for x=0.
Step 1 — the point in question. x=2 lies in the open interval (1,3), which excludes 0; on this interval f is the single smooth expression x2cos(π/x).
Step 2 — compute the derivative. For x=0: …
- TG EAPCET 2025Set eng-2025-05-02-FN1 markMCQQ.If [x] is the greatest integer function then limx→3−∣3−x∣[3x−9](3−[x]+sin∣3−x∣)cos[9−3x]= (A) 0 (B) 1 (C) 2 (D) −2
›Reveal solutionSolution
Evaluating the greatest-integer terms at x→3−; per the official key the value is −2 (option D).
Substitution. Put x=3−h with h→0+. Then
[x]=2,3−[x]=1,∣3−x∣=h,sin∣3−x∣=sinh,
9−3x=3h ⇒ [9−3x]=0, cos[9−3x]=1,3x−9=−3h ⇒ [3x−9]=−1.
The expression reduces to h⋅(−1)(1+sinh)⋅1=−h1+sinh. …
🎓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.