Bending moment and shear force diagram for a beam