Q.If f(x)=∣cosx∣, then f′(4π)= __________.
🔒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 …
The key idea is that ∣⋅∣ is differentiable except where its argument is zero. Here, cosx is positive near x=4π, so the absolute value can be dropped locally.
Step 1: For x near 4π, cosx>0, so f(x)=cosx.
Step 2: Then f′(x)=−sinx in that neighbourhood. …
The derivative of ∣cosx∣ at x=π/4 is found by first noting that cos(π/4)>0, so the absolute value can be dropped locally. Differentiating cosx gives −sinx, and evaluating at π/4 yields −21.
The key to differentiating an absolute value function like f(x)=∣cosx∣ is understanding where the expression inside the absolute value is positive, negative, or zero. The absolute value function ∣u∣ has derivative u′ when u>0, derivative −u′ when u<0, and is not differentiable when u=0 (unless u′ is also zero, which is a special case).
Here, u=cosx. At x=π/4, we have cos(π/4)=21>0. So near x=π/4, the absolute value does nothing — ∣cosx∣=cosx locally. That means the derivative at that point is simply the derivative of cosx.
Let’s work through it step by step.
-
Check the sign of cosx at x=π/4.
cos(π/4)=22>0. Since cosx is continuous, it remains positive in a small interval around π/4. Therefore, in that neighbourhood, f(x)=∣cosx∣=cosx.
-
Differentiate the simplified function.
For x near π/4, f(x)=cosx, so f′(x)=−sinx.
-
Evaluate at x=π/4.
f′(π/4)=−sin(π/4)=−22. …
Method: Differentiating an Absolute Value Function at a Specific Point (Sign-Check Method)
This method solves "find f′(a) where f(x)=∣g(x)∣" problems by removing the absolute value locally, using the sign of g at the given point.
Steps
Step 1: Evaluate the inside expression at the given point
Compute g(a), the quantity inside the modulus, at the point where the derivative is required.
Step 2: Determine its sign
If g(a)>0, then by continuity of g, the expression stays positive in a small neighbourhood of a, so ∣g(x)∣=g(x) locally — the modulus does nothing there. If g(a)<0, then g stays negative nearby, so ∣g(x)∣=−g(x) locally.
Step 3: Differentiate the branch that applies …
Common Mistakes
Mistake 1: Differentiating without checking the sign of cosx first
Students often jump straight to f′(x)=−sinx (or, worse, sinx) without confirming whether cosx is positive or negative near x=4π. Why it's wrong: ∣cosx∣ equals cosx only where cosx≥0, and equals −cosx where cosx<0 — using the wrong branch flips the sign of the final answer. Correct approach: evaluate cos4π=22>0 first, confirming the absolute value can be dropped locally, THEN differentiate.
Mistake 2: Misapplying the general ∣u∣-derivative formula …
- 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 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 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 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.