Here is Canvas object wihch demonstrate the problem.

First, consider the case consisting of the cantilever with only the distributed load w.

After the load is applied to the beam, the deflection at the free end of the beam is given by the expression:

and the slope of the neutral axis is: