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