Symmetry analysis of an elastic beam with axial load