Analysis of a beam-column system under varying axial forces of elliptic type: the exact solution of Lamé’s equation