← 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+sinxf(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}, sinx>0\sin x>0, so sinx=sinx|\sin x|=\sin x on a neighbourhood. But cosx\cos x changes sign at π2\dfrac{\pi}{2}:

cosx>0 for x<π2,cosx<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)={cosx+sinx,x<π2cosx+sinx,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)=sinx+cosxf'(x)=-\sin x+\cos x, so

f ⁣(π2)=limxπ2(sinx+cosx)=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)=sinx+cosxf'(x)=\sin x+\cos x, so

f+ ⁣(π2)=limxπ2+(sinx+cosx)=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)= ⁣ ⁣sinh+cosh=sinh+coshf\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=sinh+cosh1h\dfrac{f(\frac\pi2+h)-1}{h}=\dfrac{|\sin h|+\cos h-1}{h}. As h0+h\to0^+ this sinhh+cosh1h1+0=1\to\dfrac{\sin h}{h}+\dfrac{\cos h-1}{h}\to1+0=1; as h0h\to0^-, sinh=sinh|\sin h|=-\sin h gives 1\to-1.)

Step 4 — Conclusion

The one-sided derivatives differ:

f ⁣(π2)=11=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 — 13 years, mapped. Get the take-away PDF free.