1.7. Matrix algebra#
Having defined the rules for addition, scalar multiplication and matrix multiplication, we can now consider solving equations involving matrices. Let \(X\) be an \(m \times n\) matrix, whose value we want to find. The basic procedure for solving \(X\) is similar to standard algebra, for any operation we apply to one side of the equation we must apply the equivalent operation to the other side. This is easy for addition, subtraction and scalar multiplication since the rules governing matrices are the same as those for variables. For example, consider the algebraic equation
where \(a, b \in \mathbb{R}\). To solve for \(x\) we subtract \(a\) from both sides of the equation and multiply both sides by \(\dfrac{1}{2}\), i.e.,
Now consider a similar matrix equation
where \(A\) and \(B\) are \(m \times n\) matrices. Solving for \(X\) is the same procedure as before, i.e.,
When the unknown matrix is multiplied by another matrix things get slightly more complicated. Using an algebraic example
where \(a,b,c \in \mathbb{R}\) then its easy to see that the solution is
However, the equivalent matrix equation
where \(A, B, C\) are \(n \times n\) matrices. You cannot divide by a matrix but you can multiply by an inverse matrix, if one exists.
Note that for a solution to exist \(C\) must be invertible.
Solve the following matrix equations for \(X\):
(i) \(2X + \begin{pmatrix} 1 & 3 \\ 6 & 4 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}\)
Solution
(ii) \(\begin{pmatrix} 4 & 1 \\ 2 & 5 \end{pmatrix} X - \begin{pmatrix} 5 & -3 \\ 2 & 4 \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 3 & 2 \end{pmatrix}\)
Solution
(iii) \(X^2 = \begin{pmatrix} 4 & 3 \\ 0 & 1 \end{pmatrix}\)
Solution
Let \(X = \begin{pmatrix} a & b \\ c & d \end{pmatrix}\) then
Taking the element in row 2 column 1 we have \(c(a+d)=0\) so either \(c=0\) or \(a + d = 0\). When \(c = 0\)
So there are four possible solutions
When \(a + d = 0\):
which is a contradiction so \(a + d=0\) yields no solutions.