Skip to content
Skip to page content
soylai.com

Matrices — chapter notes

7 sections 6 min readBeta

1. Matrices, order and the general element

A matrix is a rectangular arrangement of numbers in rows and columns. A matrix with mm rows and nn columns has order m×nm \times n and mnmn elements. The element in row ii, column jj is aija_{ij}; we write A=[aij]m×nA = [a_{ij}]_{m \times n}.

Matrices organise information. The stock of two shop branches across three items is a 2×32 \times 3 matrix, and each entry's position tells you its meaning.

From a rule: to construct AA with aij=3i−ja_{ij} = 3i - j (2×32 \times 3), fix the row and run through the columns: A=[210543]A = \begin{bmatrix} 2 & 1 & 0 \\ 5 & 4 & 3 \end{bmatrix}.

$a_{ij}$: row $i$ first, column $j$ second.
Column 1Column 2Column 3
Row 1a11a_{11}a12a_{12}a13a_{13}
Row 2a21a_{21}a22a_{22}a23a_{23}
The same data as the $2 \times 3$ matrix $\begin{bmatrix} 25 & 40 & 15 \\ 30 & 20 & 35 \end{bmatrix}$.
BatsBallsHelmets
Branch P252540401515
Branch Q303020203535

Formulas

  • General matrix
    A=[aij]m×nA = [a_{ij}]_{m \times n}

Key terms

Matrix

A rectangular array of numbers in rows and columns.

Order

m×nm \times n: number of rows, then number of columns.

Element aija_{ij}

The entry in row ii and column jj.

2. Types of matrices

  • Row matrix: one row (1×n1 \times n). Column matrix: one column (m×1m \times 1).
  • Square matrix: m=nm = n. Its main diagonal is a11,a22,…,anna_{11}, a_{22}, \dots, a_{nn}.
  • Diagonal matrix: square, with aij=0a_{ij} = 0 whenever i≠ji \ne j.
  • Scalar matrix: diagonal with all diagonal entries equal to some kk; it equals kIkI.
  • Identity matrix InI_n: diagonal entries 11, others 00.
  • Zero matrix OO: every entry 00 (any order).

Every identity matrix is scalar, and every scalar matrix is diagonal.

Every identity matrix is scalar, and every scalar matrix is diagonal.
TypeConditionExample
Row matrixone row[4−17]\begin{bmatrix} 4 & -1 & 7 \end{bmatrix}
Column matrixone column[29]\begin{bmatrix} 2 \\ 9 \end{bmatrix}
Square matrixm=nm = n[1503]\begin{bmatrix} 1 & 5 \\ 0 & 3 \end{bmatrix}
Diagonal matrixsquare, aij=0a_{ij} = 0 for i≠ji \ne j[600−2]\begin{bmatrix} 6 & 0 \\ 0 & -2 \end{bmatrix}
Scalar matrixdiagonal, equal diagonal entries[3003]\begin{bmatrix} 3 & 0 \\ 0 & 3 \end{bmatrix}
Identity matrixdiagonal entries all 11I2=[1001]I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}
Zero matrixevery entry 00O=[0000]O = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}
Square → diagonal → scalar → identity: each is a special case of the one before.

Formulas

  • Identity of order 2
    I2=[1001]I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

Key terms

Diagonal matrix

A square matrix whose off-diagonal entries are all zero.

Scalar matrix

A diagonal matrix with equal diagonal entries, kIkI.

Identity matrix

The scalar matrix with 11 on the diagonal, written II.

3. Equality, addition and scalar multiplication

Equality: A=BA = B when they have the same order and aij=bija_{ij} = b_{ij} for every ii, jj. One matrix equation gives one equation per position, e.g. [2ab+1c−24]=[6−37d]\begin{bmatrix} 2a & b + 1 \\ c - 2 & 4 \end{bmatrix} = \begin{bmatrix} 6 & -3 \\ 7 & d \end{bmatrix} gives a=3a = 3, b=−4b = -4, c=9c = 9, d=4d = 4.

Addition (same order only): A+B=[aij+bij]A + B = [a_{ij} + b_{ij}]. Scalar multiple: kA=[kaij]kA = [k a_{ij}]. Difference: A−B=A+(−1)BA - B = A + (-1)B.

Properties: A+B=B+AA + B = B + A; (A+B)+C=A+(B+C)(A + B) + C = A + (B + C); A+O=AA + O = A; A+(−A)=OA + (-A) = O; k(A+B)=kA+kBk(A + B) = kA + kB; (k+l)A=kA+lA(k + l)A = kA + lA.

Adding matrices adds corresponding entries.
SamosaIdliJuice
Monday606045453030
Tuesday555550503535
Total11511595956565
Addition behaves just like addition of numbers, entry by entry.
PropertyStatement
CommutativeA+B=B+AA + B = B + A
Associative(A+B)+C=A+(B+C)(A + B) + C = A + (B + C)
Additive identityA+O=AA + O = A
Additive inverseA+(−A)=OA + (-A) = O
Scalar distributesk(A+B)=kA+kBk(A + B) = kA + kB, (k+l)A=kA+lA(k + l)A = kA + lA
Two matrices are equal only when they have the same order and the same entries.

Formulas

  • Addition and scalar multiple
    A+B=[aij+bij],kA=[k aij]A + B = [a_{ij} + b_{ij}], \quad kA = [k\,a_{ij}]

Key terms

Equal matrices

Same order and equal corresponding entries.

Scalar multiplication

Multiplying every entry of a matrix by the same number.

4. Multiplication of matrices

If AA is m×nm \times n and BB is n×pn \times p, then ABAB is the m×pm \times p matrix with cik=ai1b1k+ai2b2k+⋯+ainbnk,c_{ik} = a_{i1}b_{1k} + a_{i2}b_{2k} + \dots + a_{in}b_{nk}, i.e. row ii of AA times column kk of BB. If the inner numbers differ, ABAB is not defined.

Laws that hold: (AB)C=A(BC)(AB)C = A(BC); A(B+C)=AB+ACA(B + C) = AB + AC; (A+B)C=AC+BC(A + B)C = AC + BC; AI=IA=AAI = IA = A for square AA.

Laws that fail: AB≠BAAB \ne BA in general (e.g. A=[1102]A = \begin{bmatrix} 1 & 1 \\ 0 & 2 \end{bmatrix}, B=[3011]B = \begin{bmatrix} 3 & 0 \\ 1 & 1 \end{bmatrix}); AB=OAB = O is possible with A≠OA \ne O, B≠OB \ne O; (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2.

Matrix polynomials: for f(x)=x2−5x+7f(x) = x^2 - 5x + 7, f(A)=A2−5A+7If(A) = A^2 - 5A + 7I. For A=[31−12]A = \begin{bmatrix} 3 & 1 \\ -1 & 2 \end{bmatrix} this is OO.

A 2×22 \times 2 matrix times a column [xy]\begin{bmatrix} x \\ y \end{bmatrix} moves the point (x,y)(x, y): the picture shows the unit square under [2101]\begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix}.

Multiplying each corner by $M = \begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix}$ stretches and slants the square into a parallelogram.
Inner numbers must match; outer numbers give the order.
$A = \begin{bmatrix} 1 & 1 \\ 0 & 2 \end{bmatrix}$, $B = \begin{bmatrix} 3 & 0 \\ 1 & 1 \end{bmatrix}$: order matters.
ProductResult
ABAB[4122]\begin{bmatrix} 4 & 1 \\ 2 & 2 \end{bmatrix}
BABA[3313]\begin{bmatrix} 3 & 3 \\ 1 & 3 \end{bmatrix}
Three rules carry over from numbers; three do not.
PropertyTrue for matrices?
(AB)C=A(BC)(AB)C = A(BC)Yes (associative)
A(B+C)=AB+ACA(B + C) = AB + ACYes (distributive)
AI=IA=AAI = IA = AYes (AA square)
AB=BAAB = BANot in general
AB=O⇒A=OAB = O \Rightarrow A = O or B=OB = ONo
(A+B)2=A2+2AB+B2(A + B)^2 = A^2 + 2AB + B^2Only if AB=BAAB = BA

Formulas

  • Row-by-column rule
    (AB)ik=∑j=1naijbjk(AB)_{ik} = \sum_{j=1}^{n} a_{ij} b_{jk}

Key terms

Conformable for multiplication

Columns of the first matrix = rows of the second.

Commuting matrices

Matrices with AB=BAAB = BA.

5. Transpose

The transpose of A=[aij]m×nA = [a_{ij}]_{m \times n} is AT=[aji]n×mA^T = [a_{ji}]_{n \times m}: rows of AA become columns of ATA^T.

Properties: (AT)T=A(A^T)^T = A; (kA)T=kAT(kA)^T = kA^T; (A+B)T=AT+BT(A + B)^T = A^T + B^T; (AB)T=BTAT(AB)^T = B^TA^T (reversal law).

Example: for A=[1230]A = \begin{bmatrix} 1 & 2 \\ 3 & 0 \end{bmatrix}, B=[2−114]B = \begin{bmatrix} 2 & -1 \\ 1 & 4 \end{bmatrix}, both (AB)T(AB)^T and BTATB^TA^T equal [467−3]\begin{bmatrix} 4 & 6 \\ 7 & -3 \end{bmatrix}.

Rows of $A$ become columns of $A^T$.
AAATA^T
[140−235]\begin{bmatrix} 1 & 4 & 0 \\ -2 & 3 & 5 \end{bmatrix}[1−24305]\begin{bmatrix} 1 & -2 \\ 4 & 3 \\ 0 & 5 \end{bmatrix}
The order reverses only for products.
PropertyRule
Transpose twice(AT)T=A(A^T)^T = A
Scalar(kA)T=kAT(kA)^T = kA^T
Sum(A+B)T=AT+BT(A + B)^T = A^T + B^T
Product (reversal law)(AB)T=BTAT(AB)^T = B^TA^T

Formulas

  • Reversal law
    (AB)T=BTAT(AB)^T = B^T A^T

Key terms

Transpose

The matrix obtained by interchanging rows and columns.

Reversal law

(AB)T=BTAT(AB)^T = B^TA^T.

6. Symmetric and skew-symmetric matrices

A square matrix is symmetric if AT=AA^T = A (aji=aija_{ji} = a_{ij}) and skew-symmetric if AT=−AA^T = -A (aji=−aija_{ji} = -a_{ij}). A skew-symmetric matrix has every diagonal entry 00. Only OO is both.

Theorem. For any square AA, A+ATA + A^T is symmetric and A−ATA - A^T is skew-symmetric, so A=12(A+AT)⏟P symmetric+12(A−AT)⏟Q skew-symmetric.A = \underbrace{\tfrac12(A + A^T)}_{P\ \text{symmetric}} + \underbrace{\tfrac12(A - A^T)}_{Q\ \text{skew-symmetric}}.

Example: [1625]=[1445]+[02−20]\begin{bmatrix} 1 & 6 \\ 2 & 5 \end{bmatrix} = \begin{bmatrix} 1 & 4 \\ 4 & 5 \end{bmatrix} + \begin{bmatrix} 0 & 2 \\ -2 & 0 \end{bmatrix}.

Every square matrix splits into a symmetric part and a skew-symmetric part.
Mirror the matrix in its main diagonal: equal partners or opposite partners.
KindConditionExample
SymmetricAT=AA^T = A, i.e. aji=aija_{ji} = a_{ij}[2−14−103435]\begin{bmatrix} 2 & -1 & 4 \\ -1 & 0 & 3 \\ 4 & 3 & 5 \end{bmatrix}
Skew-symmetricAT=−AA^T = -A, i.e. aji=−aija_{ji} = -a_{ij}[02−6−2016−10]\begin{bmatrix} 0 & 2 & -6 \\ -2 & 0 & 1 \\ 6 & -1 & 0 \end{bmatrix}

Formulas

  • Symmetric and skew-symmetric parts
    P=12(A+AT),Q=12(A−AT)P = \tfrac12(A + A^T), \quad Q = \tfrac12(A - A^T)

Key terms

Symmetric matrix

AT=AA^T = A.

Skew-symmetric matrix

AT=−AA^T = -A; its diagonal is zero.

7. Invertible matrices

A square matrix AA of order nn is invertible if there is a square matrix BB of order nn with AB=BA=IAB = BA = I; BB is the inverse A−1A^{-1}. Non-square matrices are never invertible, and some square matrices (such as OO, or [1224]\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}) are not.

Uniqueness. If BB and CC are inverses of AA: B=BI=B(AC)=(BA)C=IC=CB = BI = B(AC) = (BA)C = IC = C.

Finding or checking an inverse (this chapter):

  • Verify a given BB: show AB=IAB = I and BA=IBA = I.
  • Solve AB=IAB = I for unknown entries p,q,r,sp, q, r, s: two pairs of linear equations, e.g. [2513]−1=[3−5−12]\begin{bmatrix} 2 & 5 \\ 1 & 3 \end{bmatrix}^{-1} = \begin{bmatrix} 3 & -5 \\ -1 & 2 \end{bmatrix}.
  • From a relation: if A2−5A+7I=OA^2 - 5A + 7I = O then A(5I−A)=7IA(5I - A) = 7I, so A−1=17(5I−A)A^{-1} = \frac17(5I - A).

(The adjoint method comes in the chapter on determinants; elementary row operations are not in the 2026–27 syllabus.)

Four short steps prove the inverse is unique.
So the inverse is $\begin{bmatrix} 3 & -5 \\ -1 & 2 \end{bmatrix}$.
Column of IIEquationsSolution
First: [10]\begin{bmatrix} 1 \\ 0 \end{bmatrix}2p+5r=12p + 5r = 1, p+3r=0p + 3r = 0r=−1r = -1, p=3p = 3
Second: [01]\begin{bmatrix} 0 \\ 1 \end{bmatrix}2q+5s=02q + 5s = 0, q+3s=1q + 3s = 1s=2s = 2, q=−5q = -5
A matrix that sends a non-zero column to $O$ cannot be undone, so it has no inverse.
AACandidate BBABABBABAInverse?
[4311]\begin{bmatrix} 4 & 3 \\ 1 & 1 \end{bmatrix}[1−3−14]\begin{bmatrix} 1 & -3 \\ -1 & 4 \end{bmatrix}IIIIYes
[1224]\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}none exists[1224][2−1]=O\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}\begin{bmatrix} 2 \\ -1 \end{bmatrix} = O—No

Formulas

  • Definition of the inverse
    AA−1=A−1A=IAA^{-1} = A^{-1}A = I

Key terms

Invertible (non-singular) matrix

A square matrix with an inverse.

Inverse

A−1A^{-1} with AA−1=A−1A=IAA^{-1} = A^{-1}A = I.

Exam tips

How marks are awarded

  • Construct a matrix / equality (1–2 marks): entries row by row; one equation per position.
  • Products and polynomials (2–5 marks): order check, each row-by-column sum, final matrix; constant term as a multiple of II.
  • Symmetric + skew-symmetric (3–5 marks): ATA^T, PP, QQ, checks that PT=PP^T = P, QT=−QQ^T = -Q and P+Q=AP + Q = A.
  • Inverse (2–5 marks): both products ABAB and BABA; in relation questions show the rearrangement A(… )=IA(\dots) = I.
  • Proofs (2–3 marks): uniqueness of the inverse; A+ATA + A^T symmetric, A−ATA - A^T skew-symmetric.

Common mistakes

  1. Writing the order as columns × rows, or reading aija_{ij} as column ii, row jj.
  2. Adding matrices of different orders.
  3. Squaring each entry instead of computing AAAA.
  4. Assuming AB=BAAB = BA, or expanding (A+B)2(A + B)^2 with 2AB2AB.
  5. Concluding A=OA = O or B=OB = O from AB=OAB = O.
  6. (AB)T=ATBT(AB)^T = A^TB^T (the order must reverse).
  7. Forgetting the 12\frac12 when splitting into symmetric and skew-symmetric parts.
  8. Writing a number instead of a multiple of II in a matrix polynomial.