news:32336935-650a-47ae...@m5g2000yqk.googlegroups.com...
Right. Others have supplied definitions of precise functions doing what I
was describing, but in all cases the motivation for them is as I described.
It definitely helps to draw it all out. E.g. taking c=0 :
1) draw an enveloping function above and below the x-axis.
e.g. first try y = |x|, along with it's reflection below the x-axis
(this won't work, but is instructive)
2) then draw in the oscillating function f between the positive and
negative branches of the enveloping function. The function needs
to oscillate quicker as it approaches 0...
With the suggested enveloping function, observe that f is forced to be
continuous at 0 because it is between the two branches of the enveloping
function that meet at (0,0). However this example fails to work because f
will not be differentiable at x=0. (Check you understand why...)
We can mend this with a better enveloping function...
So now try y = x^2 (and it's reflection below the x-axis) as the enveloping
function. This is better, because regardless of how you draw f, the
envelope forces f to be both continuous and differentiable at x=0. (with
f'(0) = 0. Again make sure you see why...)
However, now there's a danger that f' will turn out to be continuous at 0 if
you've drawn the oscillations so that it's not oscillating quickly enough
(compared to the envelope approaching zero)!
So as you suspect, the general approach gives many possible behaviours
depending on the enveloping function and the oscillating rate. To get a
function that oscillates quicker as it approaches zero, sin(x^-n) is a
standard approach, for a suitable positive n. [Note this is undefined at
x=0, so when defining f you will have to specify the value at zero
separately]. Just multiply this by your choice of envelope function and
play with the alternatives to get the behaviour you're after... :)
Mike.