There can be no continuous function that has these properties, as going toOriginally Posted by mick1337
as and as would imply that the function
crosses the x-axis an odd number of times, which it does not.
Here the first part of the function is a quadratic which provides the
required zero crossings and the required behaviour as ,
and the second part provides the required behaviour as .