The equation of motion for a Harmonic oscillator with linear drag is, by Newton's second law, $$m \ddot{x}(t)+b \dot{x}(t)+kx(t)=0.\tag{1}$$ This is a linear differential equation that can be solved analytically by well known techniques and this system is studied in all undergraduate classical mechanics courses. My question is, what happens when we cannot longer assume that drag is linear and we have to use some other drag force, in fluids of low viscosity, like air or water?
In the case of quadratic drag, the equation of motion changes to $$m \ddot{x}(t)+c\dot{x}(t)|\dot{x}(t)|+kx(t)=0,\tag{2}$$ where $c$ is the drag coefficient for quadratic drag. This case is rarely treated in textbooks and I assume that no closed-form analytical solution to this nonlinear differential equation is possible, but what can be said about the motion and/or behaviour of the system? How can at least be solved numerically? Also, is there a Lagrangian formulation for this system?