← 2019 Paper 1
UPSC 2019 Maths Optional Paper 1 Q2a — Step-by-Step Solution
15 marks · Section A
Differentiability · Calculus · asked 3× in 13 yrs · Read the full method →
Question
Is f(x)=∣cosx∣+∣sinx∣ differentiable at x=2π? If yes, then find its derivative at x=2π. If no, then give a proof of it.
Technique
Piecewise removal of ∣⋅∣ around the point; compute one-sided derivatives; differentiability ⟺ they agree.
Solution
Step 1 — Resolve the absolute values near x=π/2
Near x=2π, sinx>0, so ∣sinx∣=sinx on a neighbourhood. But cosx changes sign at 2π:
cosx>0 for x<2π,cosx<0 for x>2π.
Therefore, on a punctured neighbourhood of 2π,
f(x)={cosx+sinx,−cosx+sinx,x<2πx>2π.
Note f(2π)=0+1=1, and f is continuous there (both branches →1).
Step 2 — Left-hand derivative
For x<2π, f′(x)=−sinx+cosx, so
f−′(2π)=x→2π−lim(−sinx+cosx)=−1+0=−1.
Step 3 — Right-hand derivative
For x>2π, f′(x)=sinx+cosx, so
f+′(2π)=x→2π+lim(sinx+cosx)=1+0=1.
(Rigorously via difference quotients with x=2π+h: f(2π+h)=∣−sinh∣+∣cosh∣=∣sinh∣+cosh for small h, and f(2π)=1, so hf(2π+h)−1=h∣sinh∣+cosh−1. As h→0+ this →hsinh+hcosh−1→1+0=1; as h→0−, ∣sinh∣=−sinh gives →−1.)
Step 4 — Conclusion
The one-sided derivatives differ:
f−′(2π)=−1=1=f+′(2π).
Hence f is not differentiable at x=2π (there is a corner).
Answer
f is NOT differentiable at x=2π;f−′=−1, f+′=+1.