Ellipsoidal methods for dynamics and control. Part I