Mathematics · also Control systems, Mechanical engineeringLevel 5 · Research Engineer
Ordinary differential equations and state space
An ordinary differential equation states how a quantity changes in terms of its current value. Linear first-order equations such as dx/dt = -kx have exponential solutions, and linear second-order equations such as the mass-spring-damper have solutions built from the roots of a characteristic equation, which may be real or a complex pair. Any higher-order equation can be rewritten as a first-order system by choosing a state vector, for example position and velocity, giving dx/dt = Ax. The eigenvalues of A then give every solution as a combination of exponential modes, and a phase portrait shows the whole family of trajectories at once.
Why it mattersWriting a drone's attitude dynamics as a state-space system is the first step towards checking that a controller keeps it stable.