Give me a function that is piecewise continuous but not piecewise smooth

  • #1

Main Question or Discussion Point

Give me a function that is piecewise continuous but not piecewise smooth
 

Answers and Replies

  • #2
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
9,970
131
The Weierstrass function should fit the bill, in being everywhere continuous, but nowhere differentiable.
 
  • #3
jmm
26
0
|x| is defined piecewise as abs(x)={-x,x<0; x,x>0} which is continuous but not smooth at x=0. And is perhaps a little bit easier to visualize than a fractal :D
 
  • #4
22,097
3,279
|x| is defined piecewise as abs(x)={-x,x<0; x,x>0} which is continuous but not smooth at x=0. And is perhaps a little bit easier to visualize than a fractal :D
Yeah, but this IS piecewise smooth.
 
  • #5
pwsnafu
Science Advisor
1,080
85
|x| is defined piecewise as abs(x)={-x,x<0; x,x>0} which is continuous but not smooth at x=0. And is perhaps a little bit easier to visualize than a fractal :D
jmm, the domain of of the function you wrote down is the reals minus 0. So it is irrelevant what the function is doing at the origin.

Further as micromass has noted, even if you define abs(0) = 0, the function will still be piecewise smooth. This is because you can split the domain into [itex](-\infty,0) \cup [0,\infty)[/itex], and so abs has one sided derivatives of all orders at x = 0.
 
  • #6
lavinia
Science Advisor
Gold Member
3,170
575
The path of a particle following continuous Brownian motion is nowhere differentiable. You can think of this as a continuous random walk Many stochastic models for practical problems use continuous Brownian motion.

For a weird example, I was told that there is a continuous map of the sphere into the plane that is everywhere distance preserving. Such a map can not be differentiable anywhere.
 

Related Threads on Give me a function that is piecewise continuous but not piecewise smooth

Replies
1
Views
2K
Replies
3
Views
4K
Replies
4
Views
3K
Replies
3
Views
668
Replies
1
Views
2K
Replies
1
Views
4K
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
7
Views
2K
Replies
5
Views
6K
Top