Skip to content
Skip to page content
soylai.com

Matrices — chapter notes

7 sections 6 min readBeta

1. Matrices and their order

A matrix is a rectangular arrangement of numbers in rows and columns, written inside square brackets and named with a capital letter. Each number is an element; aija_{ij} is the element in row ii and column jj.

  • A matrix with mm rows and nn columns has order m×nm \times n (rows first) and mnmn elements.
  • [6−12]\begin{bmatrix} 6 & -1 & 2 \end{bmatrix} has order 1×31 \times 3; [49]\begin{bmatrix} 4 \\ 9 \end{bmatrix} has order 2×12 \times 1; [20−35]\begin{bmatrix} 2 & 0 \\ -3 & 5 \end{bmatrix} has order 2×22 \times 2.

Example: a canteen's sales over two days, with one row per day and one column per dish, form a 2×22 \times 2 matrix.

Order $=$ rows $\times$ columns, always rows first.
MatrixRowsColumnsOrder
[6−12]\begin{bmatrix} 6 & -1 & 2 \end{bmatrix}131×31 \times 3
[49]\begin{bmatrix} 4 \\ 9 \end{bmatrix}212×12 \times 1
[20−35]\begin{bmatrix} 2 & 0 \\ -3 & 5 \end{bmatrix}222×22 \times 2
[104−273]\begin{bmatrix} 1 & 0 & 4 \\ -2 & 7 & 3 \end{bmatrix}232×32 \times 3
Element positions in $\begin{bmatrix} 3 & -5 \\ 0 & 8 \end{bmatrix}$: row first, then column.
Column 1Column 2
Row 1a11=3a_{11} = 3a12=−5a_{12} = -5
Row 2a21=0a_{21} = 0a22=8a_{22} = 8
The same numbers as a matrix: $\begin{bmatrix} 30 & 18 \\ 25 & 22 \end{bmatrix}$, order $2 \times 2$.
DayIdliDosa
Monday3018
Tuesday2522

Formulas

  • Order and size
    order=m×n,number of elements=mn\text{order} = m \times n, \quad \text{number of elements} = mn

Key terms

Matrix

A rectangular arrangement of numbers in rows and columns.

Element

One number in a matrix; aija_{ij} is in row ii, column jj.

Order

Rows ×\times columns, written m×nm \times n.

2. Types of matrices

  • Row matrix: only one row, e.g. [3−2]\begin{bmatrix} 3 & -2 \end{bmatrix}.
  • Column matrix: only one column, e.g. [51]\begin{bmatrix} 5 \\ 1 \end{bmatrix}.
  • Square matrix: as many rows as columns, e.g. order 2×22 \times 2.
  • Zero (null) matrix OO: every element is 00 (any order).
  • Identity matrix II: a square matrix with 11 on the leading diagonal (top left to bottom right) and 00 elsewhere; of order 22 it is I=[1001]I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}.

Every identity matrix is square, but a square matrix need not be an identity matrix.

Five types of matrix used in this chapter.
TypeWhat makes itExample
Row matrixonly one row[3−2]\begin{bmatrix} 3 & -2 \end{bmatrix}
Column matrixonly one column[51]\begin{bmatrix} 5 \\ 1 \end{bmatrix}
Square matrixas many rows as columns[41−62]\begin{bmatrix} 4 & 1 \\ -6 & 2 \end{bmatrix}
Zero (null) matrixevery element is 00[0000]\begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}
Identity matrix IIsquare; 11 on the leading diagonal, 00 elsewhere[1001]\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}
Naming a matrix by its shape and its elements.

Formulas

  • Identity and zero matrices of order 2
    I=[1001],O=[0000]I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}, \quad O = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}

Key terms

Row matrix

A matrix with only one row (order 1×n1 \times n).

Column matrix

A matrix with only one column (order m×1m \times 1).

Square matrix

A matrix with as many rows as columns.

Zero (null) matrix

A matrix whose elements are all 00, written OO.

Identity matrix

A square matrix with 11 on the leading diagonal and 00 elsewhere, written II.

3. Equality of matrices

Two matrices are equal when they have the same order and equal corresponding elements. Equality gives one equation for each position, which is how unknowns are found.

Example: [x+y−26x−y]=[11−263]\begin{bmatrix} x + y & -2 \\ 6 & x - y \end{bmatrix} = \begin{bmatrix} 11 & -2 \\ 6 & 3 \end{bmatrix} gives x+y=11x + y = 11 and x−y=3x - y = 3, so x=7x = 7 and y=4y = 4.

[25]\begin{bmatrix} 2 & 5 \end{bmatrix} and [25]\begin{bmatrix} 2 \\ 5 \end{bmatrix} hold the same numbers but are not equal: their orders differ.

One equation for each position that holds an unknown.
PositionLeftRightEquation
Row 1, column 1x+yx + y1111x+y=11x + y = 11
Row 1, column 2−2-2−2-2already equal
Row 2, column 16666already equal
Row 2, column 2x−yx - y33x−y=3x - y = 3
Equal matrices: same order and equal corresponding elements.
PairEqual?Why
[25−10]\begin{bmatrix} 2 & 5 \\ -1 & 0 \end{bmatrix} and [25−10]\begin{bmatrix} 2 & 5 \\ -1 & 0 \end{bmatrix}yessame order, same element in every position
[25]\begin{bmatrix} 2 & 5 \end{bmatrix} and [25]\begin{bmatrix} 2 \\ 5 \end{bmatrix}noorders 1×21 \times 2 and 2×12 \times 1 differ
[3104]\begin{bmatrix} 3 & 1 \\ 0 & 4 \end{bmatrix} and [3014]\begin{bmatrix} 3 & 0 \\ 1 & 4 \end{bmatrix}nosame order, but the elements in two positions differ
The two equations from equal elements meet at $(7, 4)$.

Key terms

Equal matrices

Matrices of the same order whose corresponding elements are equal.

Corresponding elements

Elements in the same row and column of two matrices of the same order.

4. Compatibility for addition and multiplication

  • Addition and subtraction: A+BA + B and A−BA - B are defined only when AA and BB have the same order; the result has that order.
  • Multiplication: ABAB is defined only when the number of columns of AA equals the number of rows of BB. If AA is m×nm \times n and BB is n×pn \times p, then ABAB is m×pm \times p.

Examples: a 2×22 \times 2 matrix times a 2×12 \times 1 matrix gives a 2×12 \times 1 matrix; a 1×21 \times 2 matrix times a 2×22 \times 2 matrix gives a 1×21 \times 2 matrix; a 2×12 \times 1 matrix times a 2×22 \times 2 matrix is not defined.

Inner numbers must match; the outer numbers give the order.
First matrixSecond matrixProduct defined?Order of product
2×22 \times 22×22 \times 2yes2×22 \times 2
2×22 \times 22×12 \times 1yes2×12 \times 1
1×21 \times 22×22 \times 2yes1×21 \times 2
2×12 \times 12×22 \times 2nonot defined
2×22 \times 21×21 \times 2nonot defined
Compatibility for addition and subtraction.
Compatibility for multiplication.

Formulas

  • Order of a product
    (m×n)(n×p)→m×p(m \times n)(n \times p) \to m \times p

Key terms

Compatible for addition

Two matrices of the same order.

Compatible for multiplication

ABAB is defined when columns of AA == rows of BB.

5. Addition, subtraction and multiplication by a number

  • Sum and difference: add or subtract corresponding elements: [4−307]+[−253−6]=[2231]\begin{bmatrix} 4 & -3 \\ 0 & 7 \end{bmatrix} + \begin{bmatrix} -2 & 5 \\ 3 & -6 \end{bmatrix} = \begin{bmatrix} 2 & 2 \\ 3 & 1 \end{bmatrix}.
  • Scalar multiple: for a number kk (an integer or a non-zero rational number), kAkA multiplies every element by kk: 12[8−264]=[4−132]\dfrac{1}{2}\begin{bmatrix} 8 & -2 \\ 6 & 4 \end{bmatrix} = \begin{bmatrix} 4 & -1 \\ 3 & 2 \end{bmatrix}.
  • A+B=B+AA + B = B + A, A+O=AA + O = A, A+(−A)=OA + (-A) = O.
  • Matrix equations are solved like linear equations: 2A+X=B2A + X = B gives X=B−2AX = B - 2A; 12X+A=B\dfrac{1}{2}X + A = B gives X=2(B−A)X = 2(B - A).
Add or subtract position by position; watch the signs.
Element by elementResult
A+BA + B[4+(−2)−3+50+37+(−6)]\begin{bmatrix} 4 + (-2) & -3 + 5 \\ 0 + 3 & 7 + (-6) \end{bmatrix}[2231]\begin{bmatrix} 2 & 2 \\ 3 & 1 \end{bmatrix}
A−BA - B[4−(−2)−3−50−37−(−6)]\begin{bmatrix} 4 - (-2) & -3 - 5 \\ 0 - 3 & 7 - (-6) \end{bmatrix}[6−8−313]\begin{bmatrix} 6 & -8 \\ -3 & 13 \end{bmatrix}
Scalar multiples, the zero matrix and the negative of a matrix.
RuleExample
kAkA: multiply every element by kk3[2−104]=[6−3012]3\begin{bmatrix} 2 & -1 \\ 0 & 4 \end{bmatrix} = \begin{bmatrix} 6 & -3 \\ 0 & 12 \end{bmatrix}
kk may be any non-zero rational number12[8−264]=[4−132]\dfrac{1}{2}\begin{bmatrix} 8 & -2 \\ 6 & 4 \end{bmatrix} = \begin{bmatrix} 4 & -1 \\ 3 & 2 \end{bmatrix}
A+O=AA + O = A[1−432]+[0000]=[1−432]\begin{bmatrix} 1 & -4 \\ 3 & 2 \end{bmatrix} + \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} 1 & -4 \\ 3 & 2 \end{bmatrix}
A+(−A)=OA + (-A) = O[1−432]+[−14−3−2]=[0000]\begin{bmatrix} 1 & -4 \\ 3 & 2 \end{bmatrix} + \begin{bmatrix} -1 & 4 \\ -3 & -2 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}
Scalar multiples first, then subtract.
StepResult
3P3P[60−39]\begin{bmatrix} 6 & 0 \\ -3 & 9 \end{bmatrix}
12Q\dfrac{1}{2}Q[2−314]\begin{bmatrix} 2 & -3 \\ 1 & 4 \end{bmatrix}
3P−12Q3P - \dfrac{1}{2}Q[6−20−(−3)−3−19−4]=[43−45]\begin{bmatrix} 6 - 2 & 0 - (-3) \\ -3 - 1 & 9 - 4 \end{bmatrix} = \begin{bmatrix} 4 & 3 \\ -4 & 5 \end{bmatrix}
Treat the matrix equation like a linear equation.
StepWorking
Make XX the subjectX=B−2AX = B - 2A
2A2A[8−426]\begin{bmatrix} 8 & -4 \\ 2 & 6 \end{bmatrix}
X=B−2AX = B - 2A[5−81−(−4)−2−210−6]=[−35−44]\begin{bmatrix} 5 - 8 & 1 - (-4) \\ -2 - 2 & 10 - 6 \end{bmatrix} = \begin{bmatrix} -3 & 5 \\ -4 & 4 \end{bmatrix}
Check 2A+X2A + X[8−426]+[−35−44]=[51−210]\begin{bmatrix} 8 & -4 \\ 2 & 6 \end{bmatrix} + \begin{bmatrix} -3 & 5 \\ -4 & 4 \end{bmatrix} = \begin{bmatrix} 5 & 1 \\ -2 & 10 \end{bmatrix}
Adding the two weekly matrices: $\begin{bmatrix} 12 & 9 \\ 7 & 15 \end{bmatrix} + \begin{bmatrix} 10 & 6 \\ 11 & 8 \end{bmatrix} = \begin{bmatrix} 22 & 15 \\ 18 & 23 \end{bmatrix}$.
ClassFiction (week 1 + week 2)Non-fiction (week 1 + week 2)
Class 912+10=2212 + 10 = 229+6=159 + 6 = 15
Class 107+11=187 + 11 = 1815+8=2315 + 8 = 23

Formulas

  • Sum, difference, scalar multiple
    A±B=[aij±bij],kA=[kaij]A \pm B = [a_{ij} \pm b_{ij}], \quad kA = [k a_{ij}]

Key terms

Scalar multiple

kAkA: every element of AA multiplied by the number kk.

Negative of a matrix

−A-A: every element of AA with its sign changed; A+(−A)=OA + (-A) = O.

6. Multiplying matrices

Row-by-column rule: the element in row ii and column jj of ABAB is row ii of AA times column jj of BB (multiply in pairs and add):

[abcd][pqrs]=[ap+braq+bscp+drcq+ds]\begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} p & q \\ r & s \end{bmatrix} = \begin{bmatrix} ap + br & aq + bs \\ cp + dr & cq + ds \end{bmatrix}, and [abcd][pr]=[ap+brcp+dr]\begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} p \\ r \end{bmatrix} = \begin{bmatrix} ap + br \\ cp + dr \end{bmatrix}.

Example: [40255530][3050]=[24503150]\begin{bmatrix} 40 & 25 \\ 55 & 30 \end{bmatrix}\begin{bmatrix} 30 \\ 50 \end{bmatrix} = \begin{bmatrix} 2450 \\ 3150 \end{bmatrix} gives a stall's takings for two days.

Unknowns from a product: multiply out and equate: [311−2][xy]=[11−1]\begin{bmatrix} 3 & 1 \\ 1 & -2 \end{bmatrix}\begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 11 \\ -1 \end{bmatrix} gives 3x+y=113x + y = 11 and x−2y=−1x - 2y = -1, so x=3x = 3, y=2y = 2.

Each element of $AB$: a row of $A$ times a column of $B$.
Element of ABABRow of AAColumn of BBValue
Row 1, column 1a,ba, bp,rp, rap+brap + br
Row 1, column 2a,ba, bq,sq, saq+bsaq + bs
Row 2, column 1c,dc, dp,rp, rcp+drcp + dr
Row 2, column 2c,dc, dq,sq, scq+dscq + ds
Each row of $SP$ is one day's takings.
DayRow of SS times PPTakings (₹)
Saturday40×30+25×50=245040 \times 30 + 25 \times 50 = 24502450
Sunday55×30+30×50=315055 \times 30 + 30 \times 50 = 31503150
Same two matrices, different products.
ProductRow-by-column workingResult
ABAB[3×0+(−1)×13×2+(−1)×(−3)2×0+4×12×2+4×(−3)]\begin{bmatrix} 3 \times 0 + (-1) \times 1 & 3 \times 2 + (-1) \times (-3) \\ 2 \times 0 + 4 \times 1 & 2 \times 2 + 4 \times (-3) \end{bmatrix}[−194−8]\begin{bmatrix} -1 & 9 \\ 4 & -8 \end{bmatrix}
BABA[0×3+2×20×(−1)+2×41×3+(−3)×21×(−1)+(−3)×4]\begin{bmatrix} 0 \times 3 + 2 \times 2 & 0 \times (-1) + 2 \times 4 \\ 1 \times 3 + (-3) \times 2 & 1 \times (-1) + (-3) \times 4 \end{bmatrix}[48−3−13]\begin{bmatrix} 4 & 8 \\ -3 & -13 \end{bmatrix}
The two equations from the product meet at $(3, 2)$.

Formulas

  • Element of a product (order 2)
    (AB)ij=ai1b1j+ai2b2j(AB)_{ij} = a_{i1} b_{1j} + a_{i2} b_{2j}

Key terms

Row-by-column rule

Each element of ABAB is a row of AA times a column of BB.

7. Properties of matrix multiplication

  • Not commutative: in general AB≠BAAB \ne BA (and one of them may not even be defined).
  • Identity: AI=IA=AAI = IA = A for every square matrix AA of order 22.
  • Zero products: AB=OAB = O is possible with A≠OA \ne O and B≠OB \ne O.
  • Squares: A2=A×AA^2 = A \times A (row by column, not the square of each element), and (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2.

Example: for A=[23−11]A = \begin{bmatrix} 2 & 3 \\ -1 & 1 \end{bmatrix}, A2=[19−3−2]A^2 = \begin{bmatrix} 1 & 9 \\ -3 & -2 \end{bmatrix} and A2−3A+5I=OA^2 - 3A + 5I = O.

Not in the ICSE 2027 syllabus: adding, subtracting or multiplying matrices of order larger than 2×22 \times 2; in this chapter all such working stays within order 2×22 \times 2.

Rules from algebra that change for matrices.
For numbersFor square matrices of order 2
ab=baab = baAB≠BAAB \ne BA in general
ab=0ab = 0 means a=0a = 0 or b=0b = 0AB=OAB = O is possible with A≠OA \ne O and B≠OB \ne O
(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2(A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2
1×a=a×1=a1 \times a = a \times 1 = aIA=AI=AIA = AI = A
$AI = IA = A$: the identity matrix acts like the number $1$.
ProductWorkingResult
AIAI[5×1+(−2)×05×0+(−2)×13×1+7×03×0+7×1]\begin{bmatrix} 5 \times 1 + (-2) \times 0 & 5 \times 0 + (-2) \times 1 \\ 3 \times 1 + 7 \times 0 & 3 \times 0 + 7 \times 1 \end{bmatrix}[5−237]\begin{bmatrix} 5 & -2 \\ 3 & 7 \end{bmatrix}
IAIA[1×5+0×31×(−2)+0×70×5+1×30×(−2)+1×7]\begin{bmatrix} 1 \times 5 + 0 \times 3 & 1 \times (-2) + 0 \times 7 \\ 0 \times 5 + 1 \times 3 & 0 \times (-2) + 1 \times 7 \end{bmatrix}[5−237]\begin{bmatrix} 5 & -2 \\ 3 & 7 \end{bmatrix}
Two non-zero matrices with $AB = O$.
ProductWorkingResult
ABAB[1×3+(−1)×31×1+(−1)×1(−2)×3+2×3(−2)×1+2×1]\begin{bmatrix} 1 \times 3 + (-1) \times 3 & 1 \times 1 + (-1) \times 1 \\ (-2) \times 3 + 2 \times 3 & (-2) \times 1 + 2 \times 1 \end{bmatrix}[0000]\begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}
BABA[3×1+1×(−2)3×(−1)+1×23×1+1×(−2)3×(−1)+1×2]\begin{bmatrix} 3 \times 1 + 1 \times (-2) & 3 \times (-1) + 1 \times 2 \\ 3 \times 1 + 1 \times (-2) & 3 \times (-1) + 1 \times 2 \end{bmatrix}[1−11−1]\begin{bmatrix} 1 & -1 \\ 1 & -1 \end{bmatrix}
Square first, then combine element by element.
StepResult
A2A^2[2×2+3×(−1)2×3+3×1(−1)×2+1×(−1)(−1)×3+1×1]=[19−3−2]\begin{bmatrix} 2 \times 2 + 3 \times (-1) & 2 \times 3 + 3 \times 1 \\ (-1) \times 2 + 1 \times (-1) & (-1) \times 3 + 1 \times 1 \end{bmatrix} = \begin{bmatrix} 1 & 9 \\ -3 & -2 \end{bmatrix}
3A3A[69−33]\begin{bmatrix} 6 & 9 \\ -3 & 3 \end{bmatrix}
5I5I[5005]\begin{bmatrix} 5 & 0 \\ 0 & 5 \end{bmatrix}
A2−3A+5IA^2 - 3A + 5I[1−6+59−9+0−3−(−3)+0−2−3+5]=[0000]\begin{bmatrix} 1 - 6 + 5 & 9 - 9 + 0 \\ -3 - (-3) + 0 & -2 - 3 + 5 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}
In general $AB \ne BA$: the order of the factors matters.
PositionABABBABA
Row 1, column 1−1-144
Row 1, column 29988
Row 2, column 144−3-3
Row 2, column 2−8-8−13-13

Formulas

  • Identity
    AI=IA=AAI = IA = A
  • Square of a sum
    (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2

Key terms

Non-commutative

ABAB and BABA are in general different.

A2A^2

The product A×AA \times A of a square matrix with itself.

Exam tips

How marks are awarded

  • Order, type and equality (1–2 marks): order rows by columns 1; each unknown 1.
  • Sums, differences and matrix equations (2–3 marks): rearranged 1; scalar multiple 1; answer 1.
  • Products (2–4 marks): orders checked and working shown 1; each correct row or element 1.
  • "Show that" with A2A^2 (3–4 marks): A2A^2 1–2; other terms 1; conclusion 1.
  • 10-mark structured question: parts (a), (b), (c) usually 3 + 3 + 4; show all working.

Common mistakes

  1. Writing the order as columns by rows.
  2. Adding matrices of different orders, or multiplying when columns of the first ≠\ne rows of the second.
  3. Multiplying corresponding elements instead of rows by columns.
  4. Squaring each element to find A2A^2.
  5. Assuming AB=BAAB = BA, or that AB=OAB = O forces A=OA = O or B=OB = O.
  6. Sign slips when subtracting negative elements.