# Find the products AB and BA for the diagonal matrices. A=begin{bmatrix}3 & 0 &0 0 & -5&0 0&0&0 end{bmatrix}, B=begin{bmatrix}-7 & 0 &0 0 &4&0 0&0&12 end{bmatrix}

Question
Matrices
Find the products AB and BA for the diagonal matrices.
$$A=\begin{bmatrix}3 & 0 &0\\ 0 & -5&0 \\ 0&0&0 \end{bmatrix}, B=\begin{bmatrix}-7 & 0 &0\\ 0 &4&0 \\ 0&0&12 \end{bmatrix}$$

2021-01-03
Step 1
Given the diagonal matrix:
$$A=\begin{bmatrix}3 & 0 &0\\ 0 & -5&0 \\ 0&0&0 \end{bmatrix}, B=\begin{bmatrix}-7 & 0 &0\\ 0 &4&0 \\ 0&0&12 \end{bmatrix}$$
Step 2
Multiply the given matrix:
$$AB=\begin{bmatrix}3 & 0 &0\\ 0 & -5&0 \\ 0&0&0 \end{bmatrix}\begin{bmatrix}-7 & 0 &0\\ 0 &4&0 \\ 0&0&12 \end{bmatrix}$$
$$=\begin{bmatrix}3(-7) + 0 \cdot 0+0\cdot0&3\cdot0+0\cdot4+0\cdot0 & 3\cdot0+0\cdot0+0\cdot12 \\ 0\cdot(-7)+(-5)\cdot0+0\cdot0 &0\cdot0+(-5)\cdot4+0\cdot0 & 0\cdot0+(-5)\cdot0+0\cdot12 \\ 0\cdot(-7)+0\cdot0+0\cdot0 &0\cdot0+0\cdot4+0\cdot0&0\cdot0+0\cdot0+0\cdot12 \end{bmatrix}$$

$$=\begin{bmatrix}-21 & 0 &0\\0&-20&0\\ 0&0&0 \end{bmatrix}$$ Since the multiplication of diagonal matrices is commutative.
That is
If A and B are diagonal matrices, then AB = BA.
Thus,
$$AB=BA=\begin{bmatrix}-21 & 0 &0\\0&-20&0\\ 0&0&0 \end{bmatrix}$$

### Relevant Questions

Find the products AB and BA for the diagonal matrices.
$$A=\begin{bmatrix}2 & 0 \\0 & -3 \end{bmatrix} , B=\begin{bmatrix}-5 & 0 \\0 & 4 \end{bmatrix}$$
Find the products AB and BA to determine whether B is the multiplicative inverse of A.
$$A=\begin{bmatrix}-4 & 0 \\1 & 3 \end{bmatrix}, B=\begin{bmatrix}-2 & 4 \\0 & 1 \end{bmatrix}$$
Given matrix A and matrix B. Find (if possible) the matrices: (a) AB (b) BA.
$$A=\begin{bmatrix}3 & -2 \\1 & 5\end{bmatrix} , B=\begin{bmatrix}0 & 0 \\5 & -6 \end{bmatrix}$$
Find if possible the matrices:
a) AB b) BA.
$$A=\begin{bmatrix}3 & -2 \\ 1 & 5 \end{bmatrix} , B=\begin{bmatrix}0 & 0 \\ 5 & -6 \end{bmatrix}$$
If $$A=\begin{bmatrix}1 & 1 \\3 & 4 \end{bmatrix} , B=\begin{bmatrix}2 \\1 \end{bmatrix} ,C=\begin{bmatrix}-7 & 1 \\0 & 4 \end{bmatrix},D=\begin{bmatrix}3 & 2 & 1 \end{bmatrix} \text{ and } E=\begin{bmatrix}2 & 3&4 \\1 & 2&-1 \end{bmatrix}$$
Find , if possible,
a) A+B , C-A and D-E b)AB, BA , CA , AC , DA , DB , BD , EB , BE and AE c) 7C , -3D and KE
Given matrix A and matrix B. Find (if possible) the matrices: (a) AB (b) BA.
A=\begin{bmatrix}-1 \\-2\\-3 \end{bmatrix} , B=\begin{bmatrix}1 & 2 & 3 \end{bmatrix}
Given matrix A and matrix B. Find (if possible) the matrices: (a) AB (b) BA. $$A=\begin{bmatrix}1 & 2 &3&4\end{bmatrix} , B=\begin{bmatrix}1 \\ 2 \\ 3 \\ 4 \end{bmatrix}$$
find the product of AB?
$$A=\begin{bmatrix}3 & 1 \\6 & 0 \\ 5&0 \end{bmatrix}$$
$$B=\begin{bmatrix}1 & 5 & 3 \\ -1 & 2 & -3 \end{bmatrix}$$
a) $$\begin{bmatrix}2 & 17& 6 \\6 & 30 &18 \\ 5&25&15 \end{bmatrix}$$
b) $$\begin{bmatrix}16 & 6& 18 \\-2 & 10 &-30 \\ 25&17&6 \end{bmatrix}$$
c) $$\begin{bmatrix}21 & 6& -23 \\2 & 30 &5 \\ -25&12&17 \end{bmatrix}$$
d) The product is not defined
$$A=\begin{bmatrix} -1 \\ -2 \\ -3 \end{bmatrix} , B=\begin{bmatrix}1 & 2 & 3 \end{bmatrix}$$
If $$A=\begin{bmatrix}2 & 0 &4 \end{bmatrix} \text{ and } B=\begin{bmatrix}1 \\ 3 \\ 7 \end{bmatrix}$$