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 …
Showing the 12 most recent of 22 on this concept.
- AP EAPCET 2023Set eng-2023-05-15-AN1 markMCQQ.If f(x)=∣x−5∣+∣x+5∣+∣x−4∣+∣x+4∣, then f′(−1)+f′(6)f′(1)−f′(−6)= (A) 1 (B) 0 (C) 4/5 (D) 3/2
›Reveal solutionSolution
Each ∣x−a∣ contributes ±1 to f′(x) depending on the sign of x−a; plugging in the four given x-values and simplifying gives the ratio 1.
Concept and Intuition
The derivative of ∣x−a∣ is +1 for x>a and −1 for x<a (undefined only exactly at x=a). So f′(x) for a sum of such terms is just the sum of these signs, evaluated at points away from the corners x=±4,±5.
Step-by-Step Solution
- f(x)=∣x−5∣+∣x+5∣+∣x−4∣+∣x+4∣, so f′(x)=sgn(x−5)+sgn(x+5)+sgn(x−4)+sgn(x+4).
- At x=1: signs of (1−5,1+5,1−4,1+4)=(−,+,−,+)⇒f′(1)=−1+1−1+1=0.
- At x=−6: signs of (−11,−1,−10,−2) all negative ⇒f′(−6)=−1−1−1−1=−4.
- At x=−1: signs of (−6,4,−5,3)=(−,+,−,+)⇒f′(−1)=−1+1−1+1=0. …
- AP EAPCET 2022Set eng-2022-07-07-FN1 markMCQQ.Which of the following is differentiable at x = 0 ? (A) f(x)=cos∣x∣+∣x∣ (B) f(x)=sin∣x∣+∣x∣ (C) f(x)=cos∣x∣−∣x∣ (D) f(x)=sin∣x∣−∣x∣
›Reveal solutionSolution
Writing each function separately for x>0 and x<0 and comparing the one-sided derivatives at 0, only f(x)=sin∣x∣−∣x∣ has equal left- and right-hand derivatives (both 0), making it the only one differentiable at x=0.
Concept and Intuition
A function built from ∣x∣ typically has a "kink" at x=0 because dxd∣x∣ jumps from −1 to +1. But if the other piece of the function also contributes a matching jump that exactly cancels this discontinuity in slope, the combination can become smooth at 0 even though ∣x∣ alone is not differentiable there. Since cos∣x∣≡cosx (cosine is even), only ∣x∣'s own kink matters in options (A) and (C). Since sin∣x∣ is itself non-smooth at 0 (behaving like ∣x∣ for options B and D), we must check each combination directly.
Step-by-Step Solution
- (A) f=cos∣x∣+∣x∣=cosx+∣x∣. Right derivative at 0: −sin(0)+1=1. Left derivative: −sin(0)−1=−1. Not equal — not differentiable.
- (B) f=sin∣x∣+∣x∣. For x>0: f=sinx+x,f′=cosx+1→2. For x<0: ∣x∣=−x,sin∣x∣=sin(−x)=−sinx, so f=−sinx−x,f′=−cosx−1→−2. Not equal.
- (C) f=cos∣x∣−∣x∣=cosx−∣x∣. Right derivative: −sin(0)−1=−1. Left derivative: −sin(0)+1=1. Not equal. …
- AP EAPCET 2025Set eng-2025-05-22-FN1 markMCQQ.If y=∣cosx−sinx∣+∣tanx−cotx∣, then (dxdy)x=3π+(dxdy)x=6π= (A) 1 (B) −1 (C) 2 (D) 0
›Reveal solutionSolution
Removing the moduli using the correct sign of each expression near x=π/3 and x=π/6 gives two derivative expressions that are exact negatives of one another, so their sum is 0.
Concept and Intuition
With modulus terms, always check the sign of the inner expression at the point in question (and its neighbourhood) before differentiating — the derivative formula only applies to the branch that is actually active there.
Step-by-Step Solution
- At x=π/3: cosx=21, sinx=23, so cosx−sinx=21−3<0⇒∣cosx−sinx∣=sinx−cosx. Also tanx=3, cotx=31, so tanx−cotx=32>0⇒∣tanx−cotx∣=tanx−cotx.
- So near x=π/3: y=(sinx−cosx)+(tanx−cotx), and dxdy=(cosx+sinx)+(sec2x+csc2x) (using dxd(−cotx)=csc2x).
- At x=π/6: cosx=23, sinx=21, so cosx−sinx>0⇒∣cosx−sinx∣=cosx−sinx. Also tanx=31, cotx=3, so tanx−cotx<0⇒∣tanx−cotx∣=cotx−tanx.
- So near x=π/6: y=(cosx−sinx)+(cotx−tanx), and dxdy=−(sinx+cosx)−(sec2x+csc2x). …
- AP EAPCET 2026Set eng-2026-05-12-AN1 markMCQQ.A function f:R→R defined as f(x)=⎩⎨⎧∣x∣x,4x∣x∣,x∣x∣,x<−2−2≤x≤2x>2 is (A) Differentiable for all real x (B) Differentiable for all real x except for x=−2,0,2 (C) Continuous for all real x and differentiable for all real x except for x=−2,2 (D) Continuous for all real x except for x=0,−2,2 and differentiable at x=−2,0,2
›Reveal solutionSolution
The function is continuous everywhere (the pieces meet exactly at x=±2), but the slope jumps at x=±2 (constant slope 0 outside vs. slope ±1 from the middle piece) while it is smooth through x=0.
Concept and Intuition
Outside [−2,2] the function reduces to constants (x/∣x∣=∓1), while inside it is the smooth-looking x∣x∣/4, which is actually x2/4 for x≥0 and −x2/4 for x<0 — a function that is itself differentiable everywhere including at 0 (both one-sided derivatives are 0 there). The only risk of a kink is at the junctions x=±2 where the constant pieces meet the quadratic piece.
Step-by-Step Solution
- Continuity at x=−2: left piece value =−1 (constant); middle piece at x=−2: (−2)∣−2∣/4=(−2)(2)/4=−1. Equal — continuous.
- Continuity at x=2: middle piece at x=2: (2)(2)/4=1; right piece value =1. Equal — continuous. So f is continuous for all real x.
- Differentiability at x=0: for 0≤x≤2, f=x2/4, f′=x/2→0 as x→0+; for −2≤x≤0, f=−x2/4, f′=−x/2→0 as x→0−. Both one-sided derivatives are 0 — differentiable at x=0.
- Differentiability at x=−2: left piece (constant −1) has derivative 0; middle piece derivative at x=−2+ is −x/2=1. 0=1 — NOT differentiable. …
- AP EAPCET 2022Set eng-2022-07-06-AN1 markMCQQ.Let f(x)={∣x∣,∣2x−4∣,−∞<x<22≤x≤20. x=a is a point where f(x) is continuous but not differentiable and x=b is a point where f(x) is not differentiable (a=b). Then a+b= (A) 1 (B) 2 (C) -2 (D) 0
›Reveal solutionSolution
The piecewise function has exactly one genuine "corner" (continuous but non-differentiable) at x=0 from the ∣x∣ piece, and a jump discontinuity (hence non-differentiable) at the junction x=2; their sum is 2.
Concept and Intuition
A function can fail to be differentiable at a point either because it has a sharp corner while still being continuous there (like ∣x∣ at 0), or because it's outright discontinuous there (any jump automatically kills differentiability too, but that's a stronger failure). This problem asks us to identify one of each type.
Step-by-Step Solution
- For −∞<x<2: f(x)=∣x∣. This has its classic corner at x=0 — continuous there (f(0)=0 from both sides) but the left and right derivatives are −1 and +1, unequal, so not differentiable. This is our point a=0.
- Check continuity at the junction x=2: from the left, using the first piece, limx→2−∣x∣=2. From the definition at x=2 (second piece applies since 2≤x≤20): f(2)=∣2(2)−4∣=∣0∣=0.
- Since 2=0, f has a jump discontinuity at x=2 — so f is not differentiable there (discontinuity is a stronger failure than a mere corner). This is our point b=2. …
- AP EAPCET 2023Set eng-2023-05-16-FN1 markMCQQ.Let f(x)=Max{cosx,sinx,0}. If the number of points at which f(x) is not differentiable in (0,2024π) is 1012k, then k= (A) 3/2 (B) 6 (C) 3 (D) 2
›Reveal solutionSolution
Careful case analysis of max(sinx,cosx,0) over one period shows exactly 3 genuine corners per 2π; over 1012 periods that's 3036=1012k, giving k=3.
Concept and Intuition
f(x)=max(sinx,cosx,0) is non-differentiable only where the identity of the maximum actually switches from one function to another (a mere crossing of two functions underneath the current maximum causes no corner). We must track, across one period, which of the three functions is on top, and find only the switch-points.
Step-by-Step Solution
- Critical crossing points in [0,2π): sinx=cosx at π/4,5π/4; sinx=0 at 0,π; cosx=0 at π/2,3π/2.
- (0,π/4): cosx is the max (positive, larger than sinx and 0).
- (π/4,π): sinx becomes the max (it overtakes cosx at π/4, and stays >0>cosx or >0 through to π; cosx=0 at π/2 doesn't matter since sinx is already on top). Corner at π/4 (slopes −sin(π/4) vs cos(π/4) differ).
- At x=π: sinx=0 crosses down to negative while cosx=−1<0, so the max switches to the constant 0. Corner at π (slope cosπ=−1 vs slope 0 differ).
- (π,3π/2): both sinx,cosx<0 throughout this open interval, so max=0 flat — the crossing sinx=cosx at 5π/4 happens underneath the max and causes no corner.
- At x=3π/2: cosx crosses up through 0 becoming positive while sinx stays negative, so the max switches from 0 to cosx. Corner at 3π/2 (slope 0 vs slope −sin(3π/2)=1 differ). …
- AP EAPCET 2026Set eng-2026-05-18-AN1 markMCQQ.If f(x)=∣x−2∣(34∣x∣−1) is a real valued function, then the set of points at which f is not differentiable, is (A) {0} (B) {2} (C) {0,2} (D) ∅
›Reveal solutionSolution
Both ∣x−2∣ and the ∣x∣ hidden inside the exponent create corners; check whether the other factor vanishes at each corner to see if it's smoothed away — here neither is, so both survive.
Concept and Intuition
∣g(x)∣-type expressions are non-differentiable exactly where g(x)=0 (a corner), unless multiplied by a factor that is itself zero there with enough smoothness to cancel the kink. Here there are two potential kink locations — x=2 from ∣x−2∣, and x=0 hidden inside 34∣x∣ — so each must be checked independently against the other factor.
Step-by-Step Solution
- At x=2: near x=2, f(x)=±(x−2)(34∣x∣−1), a corner from ∣x−2∣ times a smooth nonzero factor (34⋅2−1=38−1=0 at x=2). Computing one-sided derivatives: for x→2−, f′(2−)=−(38−1); for x→2+, f′(2+)=+(38−1). These differ, so f is not differentiable at 2.
- At x=0: here ∣x−2∣=2−x is smooth (equals 2 at x=0, nonzero). Expand 34∣x∣−1 near 0: for x>0, 34x−1≈4xln3; for x<0, 3−4x−1≈−4xln3=4∣x∣ln3. So 34∣x∣−1≈(4ln3)∣x∣ — itself a corner (like c∣x∣), not smoothed to a higher power. …
- AP EAPCET 2025Set eng-2025-05-27-FN1 markMCQQ.The domain of the derivative of the function f(x)=1+∣x∣x is (A) [0,∞) (B) (−∞,0) (C) (−∞,∞) (D) (0,∞)
›Reveal solutionSolution
f(x)=x/(1+∣x∣) is smooth on each side of 0, and the one-sided derivatives at 0 actually agree, so it is differentiable everywhere. Answer: domain of f′ is R.
Concept and Intuition
Functions involving ∣x∣ are often not differentiable at x=0 (like ∣x∣ itself), so the natural first suspicion is that the derivative fails to exist there. But here the two branches of f are constructed so that they meet not just in value but in slope at x=0 — the modulus is "softened" by the 1+∣x∣ denominator, so this particular function turns out to be differentiable at every point.
Step-by-Step Solution
- For x≥0: f(x)=1+xx. Quotient rule: f′(x)=(1+x)2(1+x)(1)−x(1)=(1+x)21.
- For x<0: f(x)=1−xx. Quotient rule: f′(x)=(1−x)2(1−x)(1)−x(−1)=(1−x)21−x+x=(1−x)21.
- Check differentiability at x=0: right-hand derivative =(1+0)21=1; left-hand derivative =(1−0)21=1. They match, so f′(0)=1 exists. …
- AP EAPCET 2022Set eng-2022-07-08-AN1 markMCQQ.If f(x)=∣x2−3x+2∣, then dxdf= (A) 2x−3, when 1<x<2 (B) 3−2x, when x>2 (C) 2x−3, when x>2 (D) 3+2x, when 1<x<2
›Reveal solutionSolution
Removing the modulus needs the sign of (x−1)(x−2) on each interval, which flips between (1,2) and x>2.
Concept and Intuition
∣g(x)∣=g(x) where g≥0 and =−g(x) where g<0; differentiating a modulus requires splitting the domain by the sign of the inside expression.
Step-by-Step Solution
- x2−3x+2=(x−1)(x−2); this is negative exactly on (1,2) and positive for x<1 or x>2.
- On (1,2): f(x)=−(x2−3x+2)=−x2+3x−2⇒f′(x)=−2x+3=3−2x.
- On x>2: f(x)=x2−3x+2⇒f′(x)=2x−3. …
- AP EAPCET 2024Set eng-2024-05-22-FN1 markMCQQ.The function f(x)=∣x−24∣ is (A) Differentiable on [0,25] (B) not continuous at x=24 (C) neither continuous nor differentiable on [0,25] (D) Continuous on [0,25], but not differentiable on [0,25]
›Reveal solutionSolution
The absolute value function is always continuous, but fails to be differentiable exactly at its "kink" — here x=24, which lies inside the given interval.
Concept and Intuition
∣x−a∣ equals −(x−a) for x<a and (x−a) for x>a; both pieces are continuous and their values agree at x=a, so the whole function is continuous. But the left derivative there is −1 and the right derivative is +1 — they disagree, so the function is not differentiable at x=a.
Step-by-Step Solution
- f(x)=∣x−24∣ is a composition of continuous functions, hence continuous for all real x, in particular on [0,25].
- Check differentiability at x=24 (which lies in [0,25]): left derivative =limh→0−h∣24+h−24∣−0=limh→0−h∣h∣=−1.
- Right derivative =limh→0+h∣h∣=1.
- Since −1=1, f is not differentiable at x=24. …
- AP EAPCET 2025Set eng-2025-05-26-FN1 markMCQQ.If f(x)=2+∣sin−1x∣ and A={x∈R∣f′(x) exists}, then A= (A) {0} (B) [−1,1] (C) (−∞,−1)∪(1,∞) (D) (−1,0)∪(0,1)
›Reveal solutionSolution
f(x)=2+∣sin−1x∣ fails to be differentiable at x=0 (a corner from the absolute value) and at x=±1 (vertical tangent of sin−1x); it's differentiable everywhere else in its domain.
Concept and Intuition
An absolute value ∣g(x)∣ is non-differentiable wherever g(x)=0 and g changes sign there (a corner point), unless g′ also vanishes there smoothly. Also, sin−1x itself is only defined on [−1,1] and has an infinite (vertical) derivative at the endpoints, so no extension of it can be differentiable there.
Step-by-Step Solution
- The domain of f is the domain of sin−1x, namely [−1,1].
- On (0,1], sin−1x>0, so f(x)=2+sin−1x, and f′(x)=1−x21 — defined for x∈(0,1) but →∞ as x→1−.
- On [−1,0), sin−1x<0, so f(x)=2−sin−1x, and f′(x)=−1−x21 — defined for x∈(−1,0) but →−∞ as x→−1+.
- At x=0: left derivative =−1−01=−1, right derivative =1−01=1. These disagree, so f′(0) does not exist (a corner, exactly like ∣x∣). …
- AP EAPCET 2022Set eng-2022-07-08-FN1 markMCQQ.If f(x)=⎩⎨⎧tan−1x,21(∣x∣−1),when ∣x∣≤1when ∣x∣>1, then the domain of dxdf(x) is (A) R−{−1,1} (B) R−(−1,1) (C) R−[−1,1] (D) R−{−1}
›Reveal solutionSolution
f is discontinuous at x=±1, so its derivative exists everywhere except there: domain R−{−1,1} — option (A).
Concept and Intuition
A function must at least be continuous to be differentiable. At the points where the piecewise definition switches (x=±1), check whether the two pieces meet. If the left and right values differ, there is a jump discontinuity and the derivative cannot exist there.
Step-by-Step Solution
- At x=1: inner branch tan−1(1)=π/4; outer branch 21(1−1)=0. Since π/4=0, f is discontinuous at x=1.
- At x=−1: inner branch tan−1(−1)=−π/4; outer branch 21(∣−1∣−1)=0. Since −π/4=0, f is discontinuous at x=−1.
- Discontinuity ⇒ non-differentiability at both x=1 and x=−1.
- Everywhere else (∣x∣<1 smooth tan−1x; ∣x∣>1 smooth linear pieces) the derivative exists.
- Hence the domain of dxdf(x) is R−{−1,1} → option (A).
Common Mistakes …
🎓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.