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 …
- 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 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 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 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 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.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 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 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 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.