Need an example of piece wise function continuous but not differentiable

116 Views Asked by At

I Need an example of piece wise function continuous but not differentiable. One of the functions has to be trigonometric and the other has to be exponential. Please

4

There are 4 best solutions below

0
On

Hint: Let $f(x)=\cos x$ for $x\le 0$ and let $f(x)=e^x$ for $x\gt 0$.

0
On

$$f(x)=\left\{\begin{array}{ll}\cos(x)& x\leq 0\\e^x &x>0\end{array}\right.$$

0
On

$$ \sin(|x|) $$ $$ \mathrm{e}^{-|x|} $$

5
On

You may consider the function$$f(x)=\sin x$$ for $x<0$ and $$f(x)=e^{2x}-1$$ for $x>0$