Construct a function which is continuous in $[1,5]$ but not differentiable at $2, 3, 4$

34.9k Views Asked by At

Construct a function which is continuous in $[1,5]$ but not differentiable at $2, 3, 4$.

This question is just after the definition of differentiation and the theorem that if $f$ is finitely derivable at $c$, then $f$ is also continuous at $c$. Please help, my textbook does not have the answer.

3

There are 3 best solutions below

1
On BEST ANSWER

$|x|$ is continuous, and differentiable everywhere except at 0. Can you see why?

From this we can build up the functions you need: $|x-2| + |x-3| + |x-4|$ is continuous (why?) and differentiable everywhere except at 2, 3, and 4.

2
On

How about $f(x) = \max(\sin(n\pi x),0)$ or perhaps $g(x) = |\sin(n\pi x)|$?

2
On

$$\ \ \ \ \mathsf{W}\ \ \ \ $$