Entry of a product
\[(AB)_{ij} = \sum_{k=1}^{n} a_{ik}\,b_{kj}\]
Multiply row \(i\) of \(A\) by column \(j\) of \(B\) term by term and add. Requires columns of \(A\) = rows of \(B\).
Matrices
Addition and subtraction are done entry by entry and need matrices of the same order. Scalar multiplication multiplies every entry by the scalar: \(kA = [k\,a_{ij}]\).
If \(A\) is \(m\times n\) and \(B\) is \(n\times p\), the product \(AB\) is the \(m\times p\) matrix whose \((i, j)\) entry is
\[(AB)_{ij} = a_{i1}b_{1j} + a_{i2}b_{2j} + \dots + a_{in}b_{nj}\]
For example, \(\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}\begin{bmatrix} 5 \\ 6 \end{bmatrix} = \begin{bmatrix} 1\cdot5+2\cdot6 \\ 3\cdot5+4\cdot6 \end{bmatrix} = \begin{bmatrix} 17 \\ 39 \end{bmatrix}\).
\[(AB)_{ij} = \sum_{k=1}^{n} a_{ik}\,b_{kj}\]
Multiply row \(i\) of \(A\) by column \(j\) of \(B\) term by term and add. Requires columns of \(A\) = rows of \(B\).
\[(m\times n)(n\times p) = (m\times p)\]
The inner dimensions must match; the outer ones give the order of the product.
Never assume matrices commute. Keep the order of factors in every step.
Even when both \(AB\) and \(BA\) exist, they may differ – and one may exist while the other does not.
\(AB = AC\) does not imply \(B = C\), and \(AB = O\) does not imply \(A = O\) or \(B = O\).
Writing \(\begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix}^2 = \begin{bmatrix} 4 & 1 \\ 0 & 9 \end{bmatrix}\).
Correct: \(A^2 = A\cdot A = \begin{bmatrix} 4 & 5 \\ 0 & 9 \end{bmatrix}\). Matrix powers use row × column multiplication.
Applying the number identity to matrices.
Correct: \((A+B)^2 = A^2 + AB + BA + B^2\). It reduces to the familiar form only if \(AB = BA\).
\(AB=O\) does not force \(A=O\) or \(B=O\), and \((A+B)^2=A^2+AB+BA+B^2\), not \(A^2+2AB+B^2\), unless \(AB=BA\).
For \(A = \begin{bmatrix} 1 & -2 \\ 3 & 0 \end{bmatrix}\) and \(B = \begin{bmatrix} 2 & 1 \\ -1 & 4 \end{bmatrix}\), find \(AB\) and \(BA\). Are they equal?
Final Answer: \(AB \ne BA\): matrix multiplication is not commutative.
A fresh set of questions from this topic. Change answers freely – solutions appear after you submit.
Start PracticeAdd/subtract entry-wise (same order). \(kA\) scales every entry. \((m\times n)(n\times p) = m\times p\), entries by row × column. \(AB \ne BA\) in general.
Create a free account to take practice sessions and tests, see detailed explanations and track your progress.