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π …
- COMEDK 2026Set 2026-A1 markMCQQ.The function f(x)=∣x∣+∣x−1∣ is: (A) Neither differentiable at x=0 nor x=1 (B) Differentiable at x=0 but not at x=1 (C) Differentiable at x=1 but not at x=0 (D) Differentiable at x=0 and x=1
›Reveal solutionSolution
The function f(x)=∣x∣+∣x−1∣ has sharp corners (kinks) at both x=0 and x=1, so it is not differentiable at either point. The correct option is (A).
The key idea is that absolute value functions create V-shaped graphs with a corner at the point where the expression inside becomes zero. Differentiability fails at such corners because the left-hand and right-hand slopes differ. Here we have two absolute values, so we expect trouble at both x=0 and x=1.
Let’s work through it step by step.
-
Rewrite the function piecewise
The absolute value ∣x∣ changes behavior at x=0, and ∣x−1∣ changes at x=1. So the whole function has three natural intervals:
- For x<0: ∣x∣=−x and ∣x−1∣=−(x−1)=1−x. So f(x)=−x+(1−x)=1−2x.
- For 0≤x<1: ∣x∣=x and ∣x−1∣=1−x. So f(x)=x+(1−x)=1.
- For x≥1: ∣x∣=x and ∣x−1∣=x−1. So f(x)=x+(x−1)=2x−1.
Thus:
f(x)=⎩⎨⎧1−2x,1,2x−1,x<00≤x<1x≥1
-
Check differentiability at x=0
Differentiability requires that the left-hand derivative equals the right-hand derivative.
- Left-hand derivative at 0: For x<0, f′(x)=−2. So the slope from the left is −2.
- Right-hand derivative at 0: For 0<x<1, f(x)=1, so f′(x)=0. The slope from the right is 0. Since −2=0, the derivatives do not match. Hence f is not differentiable at x=0.
-
Check differentiability at x=1
- Left-hand derivative at 1: For 0≤x<1, f(x)=1, so f′(x)=0.
- Right-hand derivative at 1: For x>1, f′(x)=2. …
-
- COMEDK 2026Set 2026-M1 markMCQQ.The function y=∣∣x∣−1∣ is differentiable for all values of ' x ' except (A) {0,1} (B) {−1} (C) {−1,0,1} (D) {−1,1}
›Reveal solutionSolution
y=∣x∣−1 has a corner (non-differentiable point) wherever either absolute-value expression's argument is zero: at x=0 (inner) and at x=±1 (outer). The correct option is (C): {−1,0,1}.
1. Structure of the function
Think of y=∣x∣−1 in two layers: first ∣x∣ (a corner at x=0), then subtract 1 and take the absolute value again (a corner wherever ∣x∣−1=0, i.e. x=±1). So the candidate non-differentiable points are x=−1,0,1.
2. Check each point
-
At x=0: near 0, ∣x∣−1<0, so y=1−∣x∣. Left derivative (h→0−): dxd(1+x)=1. Right derivative (h→0+): dxd(1−x)=−1. They differ → not differentiable.
-
At x=1: for x slightly less than 1, ∣x∣−1<0 so y=1−x, slope −1. For x slightly more than 1, ∣x∣−1>0 so y=x−1, slope +1. They differ → not differentiable. …
-
- COMEDK 2021Set 2021-B1 markMCQQ.If f(x)=e−∣x−1∣,x∈(1,∞) then f(x) is (A) continuous but not differentiable (B) continuous and differentiable (C) not continuous but differentiable (D) not continuous and not differentiable
›Reveal solutionSolution
For x>1 the absolute value opens as x−1, giving f(x)=e−(x−1) — smooth on the open interval, hence continuous and differentiable.
The only non-differentiable point of e−∣x−1∣ is the corner at x=1. But the domain here is the open interval (1,∞), which excludes x=1. For every x>1:
f(x)=e−(x−1),f′(x)=−e−(x−1), …
🎓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.