Q.If f(x)=∣cosx−sinx∣, then f′(3π)= __________.
🔒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: Derivative Evaluation — The key is to first determine the sign of the expression inside the absolute value at the given point, then differentiate accordingly.
Step 1: Evaluate cosx−sinx at x=3π.
cos3π=21,sin3π=23⇒21−23<0.
Step 2: Since the expression is negative, f(x)=−(cosx−sinx)=sinx−cosx near x=3π. …
At x=3π, cosx−sinx<0, so f(x)=sinx−cosx locally; hence f′(3π)=21+3.
Fix the branch. At x=3π, cos3π=21 and sin3π=23, so
cosx−sinx=21−3<0.
Near this point ∣cosx−sinx∣=−(cosx−sinx)=sinx−cosx.
Differentiate that branch.
f′(x)=cosx+sinx. …
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 determining the sign of the expression inside the modulus at the given point, then differentiating the corresponding branch.
Steps
Step 1: Evaluate the inside expression at the given point
Compute g(a) — here g(x)=cosx−sinx — at the specific point where the derivative is asked for.
Step 2: Determine its sign
If g(a)>0, continuity of g guarantees it stays positive near a, so ∣g(x)∣=g(x) locally. If g(a)<0, it stays negative near a, so ∣g(x)∣=−g(x) (the negative of g) locally.
Step 3: Differentiate the branch that applies
f′(x)={g′(x),−g′(x),g(a)>0,g(a)<0. …
Common Mistakes
Mistake 1: Assuming the inside expression is positive by habit
Having just solved a similar problem where cosx>0 at the given point, a student may skip the sign check here and differentiate cosx−sinx directly as −sinx−cosx. Why it's wrong: at x=3π, cos3π−sin3π=21−3<0 — the expression is actually NEGATIVE here, so the absolute value flips its sign, not preserves it. Skipping the check gives −21+3, the wrong sign on the final answer. Correct approach: always evaluate the inside expression numerically at the given point before deciding which branch of ∣u∣ applies.
Mistake 2: Arithmetic slip comparing cos3π and sin3π …
- 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 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-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-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 …
- 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-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 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 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 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. …
🎓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.