Write an example of a function which is everywhere continuous but fails to be differentiable exactly at five points.

As we know that polynomial functions are always continuous and differentiable, we also know that the point of derivability is a sharp corner or a stop on the on going curve.

Hence f(x) = │x│ is a function which is non-derivable at a point which is the sharp corner, at that point, there are more than one slopes possible due to this it is non-derivable but the modulus function is always continuous.


So a function which is non derivable at exactly 5 points and continuous always is,


f(x) = │x - 1│ + │x - 2│ + │x - 3│ + │x - 4│ + │x - 5│


this can be done by drawing the graph of the function or by algebraic method also.


We can choose any value along with x in the modulus function as we only need the points.


To draw the graph, we will solve the function by taking some points or intervals to open the modulus one by one.


1