Matrices -- Diagnostic Tests | IB
Matrices — Diagnostic Tests
Section titled “Matrices — Diagnostic Tests”flowchart TD
A[Diag Matrices] --> B[Key Concepts]
A --> C[Core Principles]
A --> D[Practical Applications]
B --> E[Fundamental definitions]
C --> F[Design patterns]
D --> G[Real-world usage]Intuition
Section titled “Intuition”Matrices are like spreadsheets of numbers with their own arithmetic — they can represent transformations, systems of equations, and data structures: Matrices encode linear transformations — they can rotate, scale, shear, and project space, making them fundamental to computer graphics and data science
Why it matters: From 3D graphics to machine learning to quantum computing, matrices are the workhorses of modern computation
The key insight: Matrices encode linear transformations — they can rotate, scale, shear, and project space, making them fundamental to computer graphics and data science
Unit Tests
Section titled “Unit Tests”Tests edge cases, boundary conditions, and common misconceptions for matrices.
UT-1: Non-Commutativity and the Commutator Equation
Section titled “UT-1: Non-Commutativity and the Commutator Equation”Question:
Let and .
(a) Show that .
(b) Find all matrices such that Where is as defined above.
(c) A student claims that since and do not commute, no matrix can commute with . Explain the error.
[Difficulty: hard. Tests understanding of matrix non-commutativity and solving the commutator equation.]
Solution:
(a)
Since The matrices do not commute.
(b) Let . Then:
Setting :
- :
- : (consistent)
- :
- : And therefore .
So for any .
(c) The student”s error is a logical fallacy: the fact that does not commute with does not imply that no matrix commutes with . The identity matrix The zero matrix And all scalar multiples of commute with every matrix. Part (b) shows that there is in fact a one-parameter family of matrices commuting with .
UT-2: 3x3 Eigenvalues with Complex Roots
Section titled “UT-2: 3x3 Eigenvalues with Complex Roots”Question:
Let .
(a) Find the eigenvalues and eigenvectors of .
(b) A student claims that since is triangular, the eigenvalues are the diagonal entries, so there should be three linearly independent eigenvectors. Is this correct?
[Difficulty: hard. Tests eigenvalue computation for a matrix with a repeated eigenvalue and the concept of defective matrices.]
Solution:
(a) The characteristic equation is :
Eigenvalues: (repeated, algebraic multiplicity 2), .
For : :
This gives and With free. So the eigenvectors are times any scalar. There is only one linearly independent eigenvector for .
For : :
This gives , so With free. Eigenvector: .
(b) The student is incorrect. While it is true that the eigenvalues of a triangular matrix are the diagonal entries, the number of linearly independent eigenvectors is not necessarily equal to the number of eigenvalues (counting multiplicity). Here has algebraic multiplicity but geometric multiplicity . The matrix is defective — it cannot be diagonalised.
Integration Tests
Section titled “Integration Tests”Tests synthesis of matrices with other topics.
IT-1: Diagonalisation for Computing Matrix Powers
Section titled “IT-1: Diagonalisation for Computing Matrix Powers”Question:
Let .
(a) Find the eigenvalues and eigenvectors of .
(b) Write where is a diagonal matrix.
(c) Hence find .
(d) A student claims that since has two distinct eigenvalues, can always be computed as for any positive integer . Is this correct? What conditions must be verified?
[Difficulty: hard. Combines eigenvalue computation, diagonalisation, and matrix exponentiation.]
Solution:
(a) Characteristic equation:
For : :
Eigenvector: .
For : :
Eigenvector: .
(b)
Verify:
(c)
(d) The student’s claim is correct with the caveat that the matrix must be diagonalisable. Two distinct eigenvalues are a sufficient condition for diagonalisability, since each eigenvalue contributes at least one eigenvector and eigenvectors corresponding to distinct eigenvalues are linearly independent. So with two distinct eigenvalues for a matrix, we are guaranteed two linearly independent eigenvectors, meaning is invertible.
However, the student should verify that is indeed invertible (i.e., ) before using this method. If the eigenvectors were accidentally computed incorrectly (e.g., picking a dependent pair), would not exist.
Common Mistakes
Section titled “Common Mistakes”Assuming matrix multiplication is commutative: AB ≠ BA as a rule. Order matters in matrix multiplication. Don’t assume you can swap the order of matrices.
Confusing determinant with trace: Determinant is the product of eigenvalues (or ad-bc for 2×2). Trace is the sum of eigenvalues (or a+d for 2×2). They measure different things.
Forgetting that not all matrices are diagonalisable: A matrix is diagonalisable only if it has enough linearly independent eigenvectors. Repeated eigenvalues don’t guarantee diagonalisability.
Cross-References
Section titled “Cross-References”- Number and Algebra: Algebra is foundational
- Functions: Functions are central
- Calculus: Calculus is a major topic