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.

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

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Order of a matrix with 3 rows and 5 columns?
  2. 2.
    How many entries in a 4×34 \times 3 matrix?
  3. 3.
    Which matrices can have a determinant?
  4. 4.
    Possible orders for a matrix with 7 entries?

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

Try it yourself

If 2(a10b)+(1001)=(5207)2\begin{pmatrix} a & 1 \\ 0 & b \end{pmatrix} + \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 5 & 2 \\ 0 & 7 \end{pmatrix}, find aa and bb.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Can you add a 2×32\times3 and a 3×23\times2 matrix?
  2. 2.
    3(1021)3\begin{pmatrix}1&0\\2&1\end{pmatrix} — top-left entry?
  3. 3.
    If (x2)=(5y)\begin{pmatrix}x\\2\end{pmatrix} = \begin{pmatrix}5\\y\end{pmatrix}, find x, y.
  4. 4.
    Two matrices are equal when?

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

Try it yourself

If AA is 2×32\times3 and ABAB is 2×52\times5, what is the order of BB?

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Order of (2×4)(4×1)(2\times4)(4\times1)?
  2. 2.
    Can you compute (3×2)(3×2)(3\times2)(3\times2)?
  3. 3.
    Is AB=BAAB = BA in general?
  4. 4.
    Order of [x y z]1×3M3×3[x y z]3×1T[x\ y\ z]_{1\times3}\,M_{3\times3}\,[x\ y\ z]^T_{3\times1}?

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]

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

Try it yourself

Using all the prime numbers less than 30 as entries (each used once), how many different ORDERS of matrix are possible?

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Number of 2×22\times2 matrices with entries from {0,1}\{0,1\}?
  2. 2.
    Number of 3×33\times3 matrices with entries 0 or 1?
  3. 3.
    Orders possible for a matrix with 6 entries?
  4. 4.
    Number of 2×22\times2 matrices with entries from {1,2,3,4}\{1,2,3,4\}?

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}. Rules: (AT)T=A(A^T)^T = A; (A+B)T=AT+BT(A+B)^T = A^T + B^T; (kA)T=kAT(kA)^T = kA^T; and **(AB)T=BTAT(AB)^T = B^T A^T** (order reverses). ATA^T has the transposed order: an m×nm\times n matrix transposes to n×mn\times m.

Transpose of a product (reversal law)

(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

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    (AT)T=?(A^T)^T = ?
  2. 2.
    (AB)T=?(AB)^T = ?
  3. 3.
    Transpose order of a 2×52\times5 matrix?
  4. 4.
    (A+B)T=?(A + B)^T = ?

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]

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.

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

Try it yourself

If A=(2222)A = \begin{pmatrix}-2&2\\2&-2\end{pmatrix}, express A2A^2 in terms of AA.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    In=?I^n = ?
  2. 2.
    If A2=IA^2 = I, what is A10A^{10}?
  3. 3.
    Rotation by θ\theta, raised to power nn, is rotation by?
  4. 4.
    If A2=AA^2 = A, what is A5A^5?

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

Try it yourself

If A=(122212221)A = \begin{pmatrix}1&2&2\\2&1&2\\2&2&1\end{pmatrix}, find A24AA^2 - 4A.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Cayley–Hamilton constant in A2kA+A^2 - kA + \dots for 2×2 — k is the?
  2. 2.
    If A=IA = I, then A24AA^2 - 4A equals?
  3. 3.
    If A2=5IA^2 = 5I, what is A4A^4?
  4. 4.
    Trace of (2135)\begin{pmatrix}2&1\\3&5\end{pmatrix}?

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.

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

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Does AB=OAB = O imply A=OA = O or B=OB = O?
  2. 2.
    (A+B)(AB)=A2B2(A+B)(A-B) = A^2 - B^2 requires?
  3. 3.
    (A+B)2(A+B)^2 expands to?
  4. 4.
    Is AB=BAAB = BA generally true?

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.

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 (3)

Watch out for (1)

Mastery check — 5 interleaved questions

Try each one before clicking. Questions are interleaved across the concepts above, not grouped — interleaving sharpens transfer.

Example 1Matrices & DeterminantsMODERATE
Let XX be a matrix of order 3×33 \times 3, YY be a matrix of order 2×32 \times 3 and ZZ be a matrix of order 3×23 \times 2. Which of the following statements are correct? A. (ZY)X(ZY)X is defined and is a square matrix of order 3. B. Y(XZ)Y(XZ) is defined and is a square matrix of order 2. C. X(YZ)X(YZ) is not defined. Select the answer using the code given below.

[Q1 · Sep · 2024]

Example 2Matrices & DeterminantsMODERATE
How many matrices of different orders are possible with elements comprising all prime numbers less than 30?

[Q12 · Apr · 2021]

Example 3Matrices & DeterminantsEASY
If A=(2222)A = \begin{pmatrix}-2 & 2 \\ 2 & -2\end{pmatrix}, then which one of the following is correct?

[Q98 · Sep · 2017]

Example 4Matrices & DeterminantsHARD
Let A=(0220)A=\begin{pmatrix}0&2\\-2&0\end{pmatrix} and (mI+nA)2=A(mI+nA)^{2}=A where mm, nn are positive real numbers and II is the identity matrix. What is (m+n)(m+n) equal to?

[Q30 · Sep · 2021]

Example 5Matrices & DeterminantsMODERATE
Consider the following statements in respect of square matrices AA and BB of same order: 1. If ABAB is a null matrix, then at least one of AA and BB is a null matrix. 2. If ABAB is an identity matrix, then BA=ABBA=AB. Which of the above statements is/are correct?

[Q8 · Apr · 2022]

Drill every past-year question on this subtopic

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