Here is Canvas object wihch demonstrate the problem.

As the two subproblems are recombined, the beam deflection at midspan can be found from:

and the slope of the beam at the supports is given by: