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