Writing a system out equation by equation gets messy fast. There's a much more compact way: pack the whole thing into a single matrix equation.