NDA Maths · Matrices & Determinants

Matrices: Order, Algebra, Powers & Equations

A matrix is a rectangular array of numbers; you add, scalar-multiply, multiply, transpose, raise to powers, and solve matrix equations — all governed by conformability and the fact that AB ≠ BA.

Why this matters

Thirty-three PYQs, mostly EASY–MODERATE — the foundation the whole chapter stands on. Questions test matrix order and multiplication conformability, counting matrices, powers and matrix polynomials (A² − kA − I = O), and the algebra traps that catch students who assume matrices behave like numbers. Master the eight concepts below and you bank the easy marks and stop losing the trap ones.

Test yourself — a quick 14-question Matrices & Determinants recall quiz, instant score.

Concept 1 of 8

What a matrix is — order and types

Intuition

A matrix is just a grid of numbers arranged in rows and columns. Its order is (rows × columns), read rows-first. The shape decides almost everything — which matrices can be added, which can be multiplied, and which can have a determinant or inverse.

Definition

A matrix of order m×nm \times n has mm rows and nn columns. Key types:

  • Row / column matrix: a single row (1×n1\times n) or single column (m×1m\times 1).
  • Square matrix: m=nm = n — only these have a determinant and (possibly) an inverse.
  • **Null (zero) matrix OO:** every entry 0.
  • Diagonal / scalar / identity: square matrices with entries only on the main diagonal (identity II has 1s there).

Worked example

A matrix has 12 entries. What orders are possible for it?
  1. The order m×nm \times n must satisfy mn=12mn = 12.
  2. Factor pairs of 12: 1×12, 2×6, 3×4, 4×3, 6×2, 12×11\times12,\ 2\times6,\ 3\times4,\ 4\times3,\ 6\times2,\ 12\times1.
  3. That is 6 possible orders.
Answer:6 possible orders (one per ordered factor pair of 12).
Practice this concept4 quick reps

Concept 2 of 8

Equality, addition, and scalar multiplication

Intuition

Two matrices are equal only if they have the same order AND every corresponding entry matches — which turns a matrix equation into a set of ordinary equations. Addition and scalar multiplication are entry-by-entry, so they need the same order.

Definition

Matrices are equal iff same order and aij=bija_{ij} = b_{ij} for all i,ji, j. Addition is defined only for the same order, done entrywise. Scalar multiplication kAkA multiplies every entry by kk. Equating matrices entrywise is the standard way to solve for unknown entries.

Worked example

If 3AB=(4591)3A - B = \begin{pmatrix} 4 & 5 \\ 9 & 1 \end{pmatrix}, where A=(x231)A = \begin{pmatrix} x & 2 \\ 3 & 1 \end{pmatrix} and B=(210y)B = \begin{pmatrix} 2 & 1 \\ 0 & y \end{pmatrix}, find xx and yy.
  1. Scalar-multiply: 3A=(3x693)3A = \begin{pmatrix} 3x & 6 \\ 9 & 3 \end{pmatrix}.
  2. Subtract entrywise: 3AB=(3x2593y)3A - B = \begin{pmatrix} 3x - 2 & 5 \\ 9 & 3 - y \end{pmatrix}.
  3. Equate with (4591)\begin{pmatrix} 4 & 5 \\ 9 & 1 \end{pmatrix}: 3x2=43x - 2 = 4 and 3y=13 - y = 1.
  4. Solve: x=2, y=2x = 2,\ y = 2. (The off-diagonal entries 5 and 9 already match — a built-in consistency check.)
Answer:x=2, y=2x = 2,\ y = 2.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2Matrices & DeterminantsMODERATE
If A=(4i610i14i6+4i)A = \begin{pmatrix}4i-6 & 10i \\ 14i & 6+4i\end{pmatrix} and k=12ik = \dfrac{1}{2i}, where i=1i = \sqrt{-1}, then kAkA is equal to

[Q11 · Sep · 2017]

Concept 3 of 8

Matrix multiplication and conformability

Intuition

To multiply AA by BB, the inner dimensions must match: an m×nm\times n times an n×pn\times p gives an m×pm\times p. Each entry of the product is a row of AA dotted with a column of BB. Crucially, matrix multiplication is not commutativeABAB and BABA can differ, or one may not even exist.

Definition

Am×nBn×p=(AB)m×pA_{m\times n}\,B_{n\times p} = (AB)_{m\times p}; the product is defined only when AA's column count equals BB's row count. Entry (AB)ij=kaikbkj(AB)_{ij} = \sum_k a_{ik}b_{kj}. In general ABBAAB \neq BA. The quadratic form [x y z]M[x y z]T[x\ y\ z]\,M\,[x\ y\ z]^T is 1×11\times1 (a scalar).

Order of a product

Am×nBn×p=(AB)m×pA_{m\times n}\, B_{n\times p} = (AB)_{m\times p}

Worked example

If AA is 4×34\times3 and BB is 3×23\times2, find the orders of ABAB and BABA (or state if undefined).
  1. ABAB: inner dims 3=33 = 3 match → order = outer dims = 4×24\times2.
  2. BABA: inner dims would be 2 (BB's columns) vs 4 (AA's rows) — 242 \neq 4, so BABA is undefined.
  3. ABAB exists but BABA does not — another way ABBAAB \neq BA.
Answer:ABAB is 4×24\times2; BABA is undefined.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3Matrices & DeterminantsEASY
If AA is a matrix of order 3×53\times5 and BB is a matrix of order 5×35\times3, then the order of ABAB and BABA will respectively be

[Q41 · Apr · 2020]

Matrix multiplication is NOT commutative — ABBAAB \neq BA

Order matters: ABAB and BABA are generally different matrices (and one may not even exist). Never reorder factors inside a product. If a question gives ABAB, compute ABAB — answering with BABA is the classic trap.

Concept 4 of 8

Counting matrices

Intuition

If each of the NN entries of a matrix can independently take one of kk values, there are kNk^N matrices. If instead you're asked how many ORDERS a matrix with NN entries can have, count the factor pairs of NN.

Definition

By entries: an m×nm\times n matrix has mnmn entries; if each is chosen from a set of kk values, there are kmnk^{mn} such matrices. By order: the number of possible orders for a matrix with exactly NN entries equals the number of (ordered) factor pairs of NN, i.e. the number of divisors of NN.

Worked example

How many distinct 2×22\times2 matrices have every entry from {1,2}\{1, 2\}?
  1. A 2×22\times2 matrix has 4 entries.
  2. Each entry independently is 1 or 2 → 2 choices each.
  3. Total =24=16= 2^4 = 16.
Answer:16 matrices.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 4Matrices & DeterminantsEASY
How many distinct 2×22\times2 matrices exist with all four entries taken from {1,2}\{1,2\}?

[Q47 · Sep · 2021]

Concept 5 of 8

Transpose and its rules

Intuition

The transpose ATA^T (or AA') flips rows into columns. The one rule that trips people up is the reversal law: the transpose of a product reverses the order — (AB)T=BTAT(AB)^T = B^T A^T.

Definition

(AT)ij=aji(A^T)_{ij} = a_{ji} — an m×nm\times n matrix transposes to n×mn\times m. Rules:

  • Self-inverse: (AT)T=A(A^T)^T = A
  • Sum: (A+B)T=AT+BT(A+B)^T = A^T + B^T
  • Scalar: (kA)T=kAT(kA)^T = kA^T
  • Reversal: (AB)T=BTAT(AB)^T = B^T A^T (order reverses)

Transpose rules

(AB)T=BTAT(AB)^T = B^T A^T

Worked example

Which of these are correct for matrices A,B,CA, B, C of the same order: (1) (A+B+C)T=AT+BT+CT(A+B+C)^T = A^T+B^T+C^T; (2) (AB)T=ATBT(AB)^T = A^T B^T?
  1. (1) Transpose distributes over addition → TRUE.
  2. (2) Transpose of a product REVERSES order: (AB)T=BTAT(AB)^T = B^T A^T, not ATBTA^T B^T → FALSE.
Answer:Only (1) is correct; (2) violates the reversal law.
Practice this concept4 quick reps

From the bank · past-year question

Example 5Matrices & DeterminantsMODERATE
Consider the following in respect of matrices A, B and C of same order: 1. (A+B+C)=A+B+C(A+B+C)' = A' + B' + C' 2. (AB)=AB(AB)' = A'B' 3. (ABC)=CBA(ABC)' = C'B'A' where A' is the transpose of the matrix A. Which of the above are correct?

[Q28 · Sep · 2018]

(AB)T=BTAT(AB)^T = B^T A^T — the order REVERSES

The transpose of a product flips the factors: (AB)T=BTAT(AB)^T = B^T A^T, not ATBTA^T B^T. Sum and scalar transposes keep their order ((A+B)T=AT+BT(A+B)^T = A^T+B^T); only the PRODUCT reverses. Writing ATBTA^T B^T is the trap.

Concept 6 of 8

Powers of a matrix

Intuition

AnA^n means AA multiplied by itself nn times (only square matrices). The exam trick is to compute A2A^2, spot a pattern (it repeats, or equals a multiple of AA or II), and ride that pattern instead of grinding all nn products.

Definition

For square AA: A2=AAA^2 = A\cdot A, An=An1AA^n = A^{n-1}A. Look for cycles: e.g. a swap matrix (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix} squares to II, so even powers are II. A rotation by θ\theta to the nnth power is rotation by nθn\theta.

Powers of a matrix

A2=AAAn=An1AA^2 = A\cdot A \qquad A^n = A^{n-1}A

Worked example

If A=(1101)A = \begin{pmatrix}1&1\\0&1\end{pmatrix}, find A3A^3.
  1. A2=(1101)(1101)=(1201)A^2 = \begin{pmatrix}1&1\\0&1\end{pmatrix}\begin{pmatrix}1&1\\0&1\end{pmatrix} = \begin{pmatrix}1&2\\0&1\end{pmatrix}.
  2. A3=A2A=(1201)(1101)=(1301)A^3 = A^2 A = \begin{pmatrix}1&2\\0&1\end{pmatrix}\begin{pmatrix}1&1\\0&1\end{pmatrix} = \begin{pmatrix}1&3\\0&1\end{pmatrix}.
  3. (Pattern: An=(1n01)A^n = \begin{pmatrix}1&n\\0&1\end{pmatrix}.)
Answer:A3=(1301)A^3 = \begin{pmatrix}1&3\\0&1\end{pmatrix}.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 6Matrices & DeterminantsEASY
If A=(0110)A = \begin{pmatrix}0&1\\1&0\end{pmatrix}, then the value of A4A^4 is

[Q38 · Apr · 2017]

Concept 7 of 8

Matrix polynomials and equations

Intuition

A matrix can satisfy a polynomial equation like A2kAI=OA^2 - kA - I = O. Compute A2A^2, write the equation entrywise (or use the Cayley–Hamilton shortcut for 2×22\times2: every matrix satisfies A2(trace)A+(det)I=OA^2 - (\text{trace})A + (\det)I = O), and read off the unknown.

Definition

Expressions like A24AA^2 - 4A, 23A319A24A23A^3 - 19A^2 - 4A are evaluated by substituting powers of AA. For a 2×22\times2 matrix, Cayley–Hamilton gives A2(a+d)A+(adbc)I=OA^2 - (a+d)A + (ad-bc)I = O where a+da+d is the trace and adbcad-bc the determinant — the fastest route to the constant kk in A2kA+cI=OA^2 - kA + cI = O problems.

Cayley–Hamilton (2×2)

A2(a+d)A+(adbc)I=OA^2 - (a+d)\,A + (ad - bc)\,I = O

Worked example

If A=(3124)A = \begin{pmatrix}3&1\\2&4\end{pmatrix} and A2kA+10I2=OA^2 - kA + 10I_2 = O, find kk.
  1. Trace =3+4=7= 3 + 4 = 7; determinant =3412=10= 3\cdot4 - 1\cdot2 = 10.
  2. Cayley–Hamilton: A2(trace)A+(det)I=OA^2 - (\text{trace})A + (\det)I = O, i.e. A27A+10I=OA^2 - 7A + 10I = O.
  3. Compare with A2kA+10I=OA^2 - kA + 10I = O: k=7k = 7.
Answer:k=7k = 7 (the trace).
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 7Matrices & DeterminantsMODERATE
If A=(1223)A = \begin{pmatrix}1 & 2 \\ 2 & 3\end{pmatrix} and A2kAI2=OA^2 - kA - I_2 = O, then what is k?

[Q26 · Apr · 2018]

Concept 8 of 8

Matrix algebra — where numbers' rules break

Intuition

Matrices look like numbers but don't always obey number-algebra. Three classics: AB=OAB = O does NOT force AA or BB to be zero; (A+B)(AB)A2B2(A+B)(A-B) \neq A^2 - B^2 unless A,BA, B commute; and (A+B)2A2+2AB+B2(A+B)^2 \neq A^2 + 2AB + B^2 for the same reason.

Definition

Because ABBAAB \neq BA in general:

  • (A+B)(AB)=A2AB+BAB2(A+B)(A-B) = A^2 - AB + BA - B^2, which equals A2B2A^2 - B^2 only if AB=BAAB = BA.
  • (A+B)2=A2+AB+BA+B2(A+B)^2 = A^2 + AB + BA + B^2.
  • AB=OAB = O is possible with both AOA \neq O and BOB \neq O (zero divisors exist).

Transpose/adjoint/inverse of a product all reverse order.

Non-commutative expansions

(A+B)2=A2+AB+BA+B2(A+B)(AB)=A2AB+BAB2(A+B)^2 = A^2 + AB + BA + B^2 \qquad (A+B)(A-B) = A^2 - AB + BA - B^2

Worked example

For matrices A,BA, B of the same order, is (A+B)(AB)=A2B2(A+B)(A-B) = A^2 - B^2 always true?
  1. Expand: (A+B)(AB)=A2AB+BAB2(A+B)(A-B) = A^2 - AB + BA - B^2.
  2. This equals A2B2A^2 - B^2 only if AB+BA=O-AB + BA = O, i.e. AB=BAAB = BA.
  3. Since matrices generally don't commute, the identity fails in general.
Answer:No — only when AA and BB commute (AB=BAAB = BA).
Practice this concept4 quick reps

From the bank · past-year question

Example 8Matrices & DeterminantsMODERATE
Consider the following in respect of matrices A and B of same order: 1. A2B2=(A+B)(AB)A^2-B^2=(A+B)(A-B) 2. (AI)(I+A)=OA2=I(A-I)(I+A)=O \Leftrightarrow A^2=I where I is the identity matrix and O is the null matrix. Which of the above is/are correct?

[Q35 · Sep · 2018]

Don't import a2b2=(a+b)(ab)a^2 - b^2 = (a+b)(a-b) into matrices

Every number identity that secretly uses commutativity can break for matrices. (A+B)(AB)(A+B)(A-B), (A+B)2(A+B)^2, (AB)2=A2B2(AB)^2 = A^2B^2 all FAIL unless AB=BAAB = BA. When an option assumes one of these, it's almost always the trap answer.

AB=OAB = O does NOT force A=OA = O or B=OB = O

Unlike numbers, matrices have zero divisors: two non-zero matrices can multiply to the zero matrix (e.g. (1000)(0001)=O\begin{pmatrix}1&0\\0&0\end{pmatrix}\begin{pmatrix}0&0\\0&1\end{pmatrix} = O). So you may NOT 'cancel' a matrix; concluding A=OA=O or B=OB=O from AB=OAB=O is the trap.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (5)

Watch out for (4)

Drill every past-year question on this subtopic

33 questions from the bank — paginated, with cart and Word-export support.