A matrix equation is an equation in which the variable is a matrix or a vector. The general form of a matrix equation is Ax=b, where A is a matrix and x and b are vectors. Matrix equations are used to rewrite systems of equations by following the steps below.
Group the coefficients of the system into matrix A, called the coefficient matrix.
Group the variables into vector x, called the variable matrix.
Group the constants into vector b, called the constant matrix.
Note that before writing a system using matrices, the variables must be written in the same order in all the equations. Further, the constants must be on the right-hand side of their respective equations.