Here is Canvas object wihch demonstrate the problem.

Begin this problem by considering the distributed load w on the beam.