Quadratic invariance in linear systems.