We begin by considering a free-body diagram of a short portion of the beam.
This element of the beam has a length Δx.

On the left side of the beam element, we will assume a shear force V and a bending moment M.
On the right side of the beam element, the shear force and bending moment are just slightly different: V+ΔV and M+ΔM.