5

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]$?

Anne
  • 59

5 Answers5

35

$$\Large\dot{}\!\!\underline{\qquad\qquad\qquad}\!\!\Large\dot{}$$

$$$$

Did
  • 279,727
6

$$f(x)=\frac1{(x-a)(x-b)},\qquad f(a)=f(b)=0.$$

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
  • @Timbuc How did you think of it (I mean, rationale)? – hola Nov 26 '14 at 14:53
  • @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