Adding the two cases, we can derive the expression for the slope at B:
Substituting our earlier results gives: