Consider a short length of the beam just to the left of B. Let the length of this segment be Δx.