Automatic Discontinuity Handling

    
Solve a differential equation with discontinuities:
Plot the solution and its derivative: