Here is Canvas object wihch demonstrate the problem.

As another illustration of the superposition method, consider a simply supported beam with a uniformly distributed load w and a concentrated load P applied at midspan.

The beam deflection at midspan and the beam slope at the support locations will be determined.