A General Theory for Linear Systems