The Gateway to Computer Science Excellence

+9 votes

Consider the following two statements about the function $f(x)=\left\vert x\right\vert$:

- P. $f(x)$ is continuous for all real values of $x$.
- Q. $f(x)$ is differentiable for all real values of $x$ .

Which of the following is **TRUE**?

- $P$ is true and $Q$ is false.
- $P$ is false and $Q$ is true.
- Both $P$ and $Q$ are true.
- Both $P$ and $Q$ are false.

+19 votes

Best answer

+5

+10

at x=0 Left hand limit and Right hand limit are equal , for derivability we check LHD(left hand derivative) and RHD(Right hand derivative) , those are not equal so function at x=0 is not differentiable.

$LHD $ = $f'(a^{-})$ = $\frac{f(a+h)-f(a)}{h}$ where $h->0^{-}$

$RHD$ = $f'(a^{+})$ = $\frac{f(a+h)-f(a)}{h}$ where $h->0^{+}$

LHD = $f'(0^{-})$ = $\frac {f(0+h)-f(0)}{h}$ = $\frac {\left | 0+h \right | -\left | 0 \right |}{h}$ = $\lim_{h->0^{-}} \frac{\left | h \right |}{h} = \frac{-h}{h}=-1$

RHD = $f'(0^{+})$ = $\frac {f(0+h)-f(0)}{h}$=$\frac {\left | 0+h \right | -\left | 0 \right |}{h}$ = $\lim_{h->0^{+}} \frac{\left | h \right |}{h} = \frac{h}{h}=1$

$LHD\neq RHD$

52,218 questions

59,877 answers

201,074 comments

118,121 users