Here is Canvas object wihch demonstrate the problem.

From beam tables, we can obtain expressions for the
slope at B for each of these simply supported cases: