In the derivation of the vector space the components of the versors, (cj's) were determined as the solutions to the sets of linear systems of equations. Linear systems of equations appear frequently and their solutions depend on the number of the unknowns and the number of the equations. In general, there may be a unique set of solutions, infinitely many or no solutions at all.
The simplest linear equation consists of one unknown:
where a and b are the known quantities
and x is the unknown. If a ≠ 0, then the unique solution is
,
where is the
multiplicative inverse of (its reciprocal).
If , then there are two possibilities:
if , then there are infinitely many solutions: x can be
any number. If, on the other hand, , then there is
no solution at all. So, the possibilities are: no solution, one solution
or infinitely many.
Next, consider a slightly more complicated case of a coupled
linear system of two equations and two unknowns:
where the coefficients
are the known quantities, with and
as the unknowns. It will be instructive to express the two
coupled equations compactly in a form that resembles the previous case
involving one unknown. To that end, the four known quantities on the left
hand side can be collected and arranged into a square array of two rows
and two columns:
.
Similarly, the two unknowns on the left, and the two known
quantities on the right, each, forms a column of length two:
.
Putting them all together, the linear system of two equations and
two unknowns can now be expressed in the following compact form:
.
These rectangular arrays of numbers are called matrices. A square matrix has equal number of rows and columns. In special cases where the matrix consists of only one row or one column they are called row/column matrices or equivalently row/column vectors. The original linear system of equations is thus transformed into an equivalent compact matrix equation.
The matrix equation also reveals an important property of matrices: they can
be multiplied just like numbers as indicated on the left hand side. The
product of the two matrices A and X is defined in the only natural way
possible: it is defined to reproduce the left hand side of the
original system of equations it was obtained from:
:=
.
The multiplication can be readily extended to arbitrary matrices
of compatible dimensions: the number of the columns of the first matrix
must always be equal to the number of the rows of the second matrix.
The following matrix
serves as the neutral element for the multiplication of 2×2
matrices: , for arbitrary 2×2 matrix M, the
same way 1 is the neutral element for multiplication among numbers:
, for arbitrary a. Note that the product
of matrices, in general, is not commutative: .
Matrices can also be added component wise:
+
=
.
Notice that for this to be possible, the two matrices must
be of the same dimensions.
Solving the matrix equation follows a similar
procedure to that of . When
the unique solution was obtained by multiplying both sides with its
multiplicative inverse (its reciprocal),
. Note that if
a number has inverse,
then
.
Analogously, if the coefficient matrix has multiplicative
inverse, , then
, where is the identity matrix, the
multiplicative neutral element. It behaves similar to number 1.
The solution to the matrix equation is now obtained as follows:
,
(multiplying from the left on both sides of the eq. by
)
.
When the coefficient matrix has no inverse,
(a singular matrix), it is similar to the case ;
there may be infinitely many or no solution at all.