← 2019 Paper 1

UPSC 2019 Maths Optional Paper 1 Q2a — Step-by-Step Solution

15 marks · Section A

Differentiability · Calculus · asked 3× in 14 yrs · Read the full method →

Question

Is f(x)=∣cos⁡x∣+∣sin⁡x∣f(x)=|\cos x|+|\sin x| differentiable at x=π2x=\dfrac{\pi}{2}? If yes, then find its derivative at x=π2x=\dfrac{\pi}{2}. If no, then give a proof of it.

Technique

Piecewise removal of ∣⋅∣|\cdot| around the point; compute one-sided derivatives; differentiability   ⟺  \iff they agree.

Solution

Step 1 — Resolve the absolute values near x=π/2x=\pi/2

Near x=π2x=\dfrac{\pi}{2}, sin⁡x>0\sin x>0, so ∣sin⁡x∣=sin⁡x|\sin x|=\sin x on a neighbourhood. But cos⁡x\cos x changes sign at π2\dfrac{\pi}{2}:

cos⁡x>0 for x<π2,cos⁡x<0 for x>π2.\cos x>0\ \text{for } x<\tfrac{\pi}{2},\qquad \cos x<0\ \text{for } x>\tfrac{\pi}{2}.

Therefore, on a punctured neighbourhood of π2\dfrac{\pi}{2},

f(x)={cos⁡x+sin⁡x,x<π2−cos⁡x+sin⁡x,x>π2.f(x)=\begin{cases}\cos x+\sin x, & x<\tfrac{\pi}{2}\\[1mm] -\cos x+\sin x, & x>\tfrac{\pi}{2}.\end{cases}

Note f ⁣(π2)=0+1=1f\!\left(\frac{\pi}{2}\right)=0+1=1, and ff is continuous there (both branches →1\to1).

Step 2 — Left-hand derivative

For x<π2x<\dfrac{\pi}{2}, f′(x)=−sin⁡x+cos⁡xf'(x)=-\sin x+\cos x, so

f−′ ⁣(π2)=lim⁡x→π2−(−sin⁡x+cos⁡x)=−1+0=−1.f'_-\!\left(\tfrac{\pi}{2}\right)=\lim_{x\to\frac{\pi}{2}^-}(-\sin x+\cos x)=-1+0=-1.

Step 3 — Right-hand derivative

For x>π2x>\dfrac{\pi}{2}, f′(x)=sin⁡x+cos⁡xf'(x)=\sin x+\cos x, so

f+′ ⁣(π2)=lim⁡x→π2+(sin⁡x+cos⁡x)=1+0=1.f'_+\!\left(\tfrac{\pi}{2}\right)=\lim_{x\to\frac{\pi}{2}^+}(\sin x+\cos x)=1+0=1.

(Rigorously via difference quotients with x=π2+hx=\frac\pi2+h: f(π2+h)=∣ ⁣− ⁣sin⁡h∣+∣cos⁡h∣=∣sin⁡h∣+cos⁡hf\big(\frac\pi2+h\big)=|\!-\!\sin h|+|\cos h|=|\sin h|+\cos h for small hh, and f(π2)=1f(\frac\pi2)=1, so f(π2+h)−1h=∣sin⁡h∣+cos⁡h−1h\dfrac{f(\frac\pi2+h)-1}{h}=\dfrac{|\sin h|+\cos h-1}{h}. As h→0+h\to0^+ this →sin⁡hh+cos⁡h−1h→1+0=1\to\dfrac{\sin h}{h}+\dfrac{\cos h-1}{h}\to1+0=1; as h→0−h\to0^-, ∣sin⁡h∣=−sin⁡h|\sin h|=-\sin h gives →−1\to-1.)

Step 4 — Conclusion

The one-sided derivatives differ:

f−′ ⁣(π2)=−1≠1=f+′ ⁣(π2).f'_-\!\left(\tfrac{\pi}{2}\right)=-1\neq 1=f'_+\!\left(\tfrac{\pi}{2}\right).

Hence ff is not differentiable at x=π2x=\dfrac{\pi}{2} (there is a corner).

Answer

  f is NOT differentiable at x=π2;f−′=−1, f+′=+1.  \boxed{\;f \text{ is NOT differentiable at } x=\tfrac{\pi}{2};\quad f'_-=-1,\ f'_+=+1.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.