Closed-form solutions of non-uniform axially loaded beams using Lie symmetry analysis