Bending and shearing stresses in beams