Beam deflections by integration method

For the beam shown, derive the equation for the elastic curve and determine expressions for the slope and deflection of the beam at B. Use the double-integration method.

Here is Canvas object wihch demonstrate the problem.

Before beginning, it is helpful to visualize the deflected shape for the beam that will be produced by the loading.