Prove that

Question:

Prove that

f(x)=\left\{\begin{aligned} \cos x, & \text { when } x \geq 0 ; \\-\cos x, & \text { when } x<0 \end{aligned}\right. is discontinuous at $x=0$

Solution: