Consider the portion of the beam from A to B,
and determine the slope and deflection of the
beam at B due to the load P.

Here is Canvas object wihch demonstrate the problem.