Parametric Solution of Stresses in Beams