Is there any function $f$ which is differentiable on an open interval $(a,b)$ but is not continuous on (and also cannot be extended continuously to) the closed interval $[a,b]$?
Asked
Active
Viewed 1,984 times
5
5 Answers
35
$$\Large\dot{}\!\!\underline{\qquad\qquad\qquad}\!\!\Large\dot{}$$
$$$$
Did
- 279,727
Zubin Mukerjee
- 17,832
4
The easiest function I can think of is
$$f(x)=\begin{cases}\sqrt x&,\;\;x\in (0,1]\\{}\\18&,\;\;x=0\end{cases}$$
Timbuc
- 34,191
-
-
@pushpen.paul, the square root is my box example of function defined and continuous on a certain interval but not differentiable in one point there. – Timbuc Nov 26 '14 at 15:10
2
Consider $f(x)=x-\lfloor x\rfloor$ at any interval $(n,n+1)$ with integer endpoints.
ajotatxe
- 65,084
0
Differentiability implies continuity, but the intervals $(a,b)$ and $[a,b]$ were not the same; the first was open second was closed. This means at the points $a$ and $b$ it can be not continuous and it will still be differentiable on open $a,b$.
Thusly you can have a function that does what you said.
For example, you could have $f(a) = 5$ and $f(x) =2$ otherwise (when $x \neq a$). This function will have a discontinuity at $x=a$.
terrace
- 2,017
- 2
- 16
- 26
an example of the latter kind: $sin(1/x)$ on $(0,1)$
– Dániel G. Nov 26 '14 at 15:26