Clastify logo
Clastify logo
Exam prep
Exemplars
Review
HOT

Matrices

Master IB Math AI Matrices with notes created by examiners and strictly aligned with the syllabus.

IB Syllabus Requirements for Matrices

1.14

Matrix algebra, inverses and systems of equations

HL

1.15

Eigenvalues, eigenvectors and diagonalization

HL

1.14

MATRIX ALGEBRA, INVERSES AND SYSTEMS OF EQUATIONS

HL

Matrix language

A matrix is a rectangular array of values set out in rows and columns. We write

A=(aij)A=(a_{ij})

:

An element is a single value in a specified matrix position. A row runs horizontally; a column runs vertically.

The order of a matrix gives the number of rows first, followed by the number of columns. Thus, an m×nm\times n matrix has mm rows and nn columns, where mm and nn are positive integers with no units. Read the order as “rows by columns”. Entries may be dimensionless, or they may have the units of the quantities they represent.

Image

A row matrix has one row, whereas a column matrix has one column. When the number of rows equals the number of columns, the matrix is a square matrix.

Equality, addition, subtraction and scalar multiplication

Two matrices are equal if they have the same order and their corresponding elements are equal. Matching totals or determinants isn’t sufficient. Every entry must agree with the entry in the same position.

Addition and subtraction are possible only for matrices of the same order.

These operations work element by element:

A+B=(aij+bij),AB=(aijbij)A+B=(a_{ij}+b_{ij}),\qquad A-B=(a_{ij}-b_{ij})

A scalar is one number used to multiply every element in a matrix.

kA=(kaij)kA=(ka_{ij})

Technology can carry out each of these operations, but check the matrix order before entering a calculation. An error message often indicates that the operation is not dimensionally compatible; it doesn’t necessarily mean the calculator has failed.

Matrix multiplication

Matrix multiplication represents a sequence of linear combinations. Suppose AA has order m×nm\times n and BB has order n×pn\times p, where pp is the positive integer giving the number of columns of BB. The product ABAB then exists and has order m×pm\times p. The inner dimensions must match, and the outer dimensions determine the order of the product.

If C=ABC=AB, where CC is the product matrix, then

cij=r=1nairbrjc_{ij}=\sum_{r=1}^{n}a_{ir}b_{rj}

In practical terms, choose a row from the first matrix and a column from the second. Multiply corresponding elements, then add those products.

Image

Matrix multiplication is useful when several categories interact. For instance, multiplying a matrix of product quantities by a matrix of prices or unit profits allows revenue or profit to be compared across several weeks. Units offer a quick check: quantities multiplied by price per item give money.

Properties of multiplication

For matrices with compatible orders, multiplication is associative:

(AB)C=A(BC)(AB)C=A(BC)

Multiplication is also distributive over addition:

A(B+C)=AB+AC,(A+B)C=AC+BCA(B+C)=AB+AC,\qquad (A+B)C=AC+BC

Matrix multiplication is generally non-commutative, however, so reversing the order may change the result:

ABBAAB\ne BA

In some cases, only one product exists. In others, both exist but differ, though they may occasionally be equal. Never reverse the order without justification. In applications, that order also records which process takes place first.

Identity and zero matrices

An identity matrix is square, with ones along its main diagonal and zeros everywhere else. We denote it by InI_n

ImA=A=AInI_mA=A=AI_n

A zero matrix has zero in every position. It is written as 00, or as 0m×n0_{m\times n} when the order must be shown explicitly

It acts as the additive identity:

A+0m×n=AA+0_{m\times n}=A

Don’t confuse the number zero with a zero matrix. Its intended order must be clear from the context.

Determinants and inverses

The determinant is a scalar calculated from a square matrix. Among other things, it shows whether that matrix is invertible. For

A=(abcd)A=\begin{pmatrix}a&b\\c&d\end{pmatrix}
det(A)=adbc\det(A)=ad-bc

An inverse matrix is a square matrix that gives the identity matrix when multiplied by the original matrix. The inverse of AA is denoted by A1A^{-1} and satisfies

AA1=A1A=I2AA^{-1}=A^{-1}A=I_2

For a 2×22\times 2 matrix,

A1=1adbc(dbca)A^{-1}=\frac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}

provided adbc0ad-bc\ne0. When the determinant is zero, no inverse exists. Such a matrix is singular, meaning that it is a square matrix with no multiplicative inverse. The inverse method can be remembered as “swap the diagonal entries, change the signs of the other two, then divide by the determinant”. Calculate the determinant first.

For larger n×nn\times n matrices, use technology to find determinants and inverses. Enter the matrix carefully and calculate its determinant to check that it is invertible before using the inverse command. With 2×22\times 2 matrices, be ready to do the calculation either by hand or with technology.

Systems in matrix form

A system of linear equations can be written compactly as

Ax=bA\mathbf{x}=\mathbf{b}

The units of the components depend on the model. Order is significant: each row represents one equation, while each column of AA corresponds to one unknown.

If AA is invertible, multiply on the left by A1A^{-1}:

x=A1b\mathbf{x}=A^{-1}\mathbf{b}

This approach can model mixtures, production plans, prices or other situations with simultaneous constraints. In the assessed inverse-matrix setting, the coefficient matrix is taken to be invertible, except when a different condition is deliberately imposed while finding eigenvectors.

Coding and decoding

A numerical message can be placed in a column matrix, then encoded by multiplying it by an invertible matrix. If

y=Aq\mathbf{y}=A\mathbf{q}

To decode the message, reverse the operation:

q=A1y\mathbf{q}=A^{-1}\mathbf{y}

The block size must match the order of the coding matrix, and the multiplication order cannot be changed. This gives a clear example of why invertibility matters. A singular coding matrix loses information, so the original message cannot always be recovered uniquely.

Matrices also link naturally to transition matrices and Markov chains, where multiplication updates a state. In phase portraits, matrix-based systems describe change in several variables. Their ability to represent higher-dimensional relationships raises a wider question: do these successful connections reveal an underlying mathematical structure in reality, or do they result from the representations humans choose? Algebra can also describe spaces beyond direct perception, but a consistent solution in a higher dimension does not by itself establish that such a physical space exists.

1.15

EIGENVALUES, EIGENVECTORS AND DIAGONALIZATION

HL

Eigenvalues and eigenvectors

An eigenvector is a non-zero column vector that keeps the same direction when multiplied by a square matrix. The scalar factor that scales the matching eigenvector is its eigenvalue. Let MM be a square matrix representing a transformation, with entries dimensionless unless the model assigns units. Its defining equation is

Mv=λvM\mathbf{v}=\lambda\mathbf{v}

In a purely numerical model, both are dimensionless.

The vector might be stretched, compressed or reversed. If λ>1\lambda>1, its magnitude grows. If 0<λ<10<\lambda<1, it shrinks; if λ<0\lambda<0, it is scaled and its direction reverses. Multiplying an eigenvector by any non-zero scalar produces another eigenvector with the same eigenvalue, so eigenvectors aren't normally unique.

Image

For a known eigenvalue, find an eigenvector by rearranging the defining equation:

(MλI2)v=0(M-\lambda I_2)\mathbf{v}=\mathbf{0}

This homogeneous system must have a non-zero solution. Therefore, MλI2M-\lambda I_2 has to be singular.

Characteristic polynomial

The characteristic polynomial is the polynomial whose roots give the eigenvalues of a square matrix. For a 2×22\times2 matrix,

χM(λ)=det(MλI2)\chi_M(\lambda)=\det(M-\lambda I_2)

The eigenvalues satisfy

χM(λ)=0\chi_M(\lambda)=0

For

M=(abcd)M=\begin{pmatrix}a&b\\c&d\end{pmatrix}

this becomes

λ2(a+d)λ+(adbc)=0\lambda^2-(a+d)\lambda+(ad-bc)=0

Solve the quadratic to get the eigenvalues. Then substitute each one into (MλI2)v=0(M-\lambda I_2)\mathbf{v}=\mathbf{0} and find a corresponding eigenvector. Only 2×22\times2 matrices require hand calculations and technology here. When using technology, retain enough precision to tell genuinely equal values apart from those that only appear close after rounding.

Diagonalization

A matrix is diagonalizable if it can be written using an invertible matrix of eigenvectors and a diagonal matrix containing the corresponding eigenvalues. The required case here involves two distinct real eigenvalues.

Let λ1\lambda_1 and λ2\lambda_2 be the distinct real eigenvalues of MM. Let v1\mathbf{v}_1 and v2\mathbf{v}_2 be their corresponding non-zero eigenvectors, with the subscripts showing the matched eigenvalue–eigenvector pairs. Define

P=(v1v2),D=(λ100λ2)P=\begin{pmatrix}\vert&\vert\\\mathbf{v}_1&\mathbf{v}_2\\\vert&\vert\end{pmatrix}, \qquad D=\begin{pmatrix}\lambda_1&0\\0&\lambda_2\end{pmatrix}

Then

M=PDP1M=PDP^{-1}

The order matters. If the columns of PP are swapped, the diagonal entries of DD must be swapped too. Distinct real eigenvalues produce linearly independent eigenvectors, making PP invertible.

Diagonalization can also be viewed as a change of coordinates. First, P1P^{-1} converts a vector into eigenvector coordinates. Next, DD scales those coordinates independently, before PP converts the result back.

Image

Powers of a matrix

Repeated matrix multiplication quickly becomes cumbersome, whereas powers of a diagonal matrix are immediate. If tt is a non-negative integer representing the number of repeated steps, then

Mt=PDtP1M^t=PD^tP^{-1}

with

Dt=(λ1t00λ2t)D^t=\begin{pmatrix}\lambda_1^t&0\\0&\lambda_2^t\end{pmatrix}

The formula works because each intermediate pair P1PP^{-1}P collapses to the identity. It also reveals long-term behaviour: the eigenvalue with the greatest absolute value usually determines the dominant direction, provided the initial state has a component in its eigenvector direction.

Discrete models

Suppose st\mathbf{s}_t is a state column at step tt, and its components carry the units of the quantities being modelled. The state one step later is st+1\mathbf{s}_{t+1}. For a two-category model, the recurrence is

st+1=Mst\mathbf{s}_{t+1}=M\mathbf{s}_t

If s0\mathbf{s}_0 is the initial state column, then

st=Mts0=PDtP1s0\mathbf{s}_t=M^t\mathbf{s}_0=PD^tP^{-1}\mathbf{s}_0

This structure can model a population moving between two locations, predator and prey population interactions, stochastic transitions, or changes in two related financial values. Interpret the components and their units after calculating. A negative population usually shows that the model or its assumptions are unsuitable; it isn't a meaningful prediction.

Image

An invariant state is a state vector left unchanged by the transformation. If s\mathbf{s}_* is an invariant state, with the star labelling the unchanged state, then

Ms=sM\mathbf{s}_*=\mathbf{s}_*

So an invariant state is an eigenvector associated with eigenvalue 11. This idea plays a central role in the long-run behaviour of stochastic processes and ranking methods.

The same matrix structure occurs in coupled differential equations and their phase portraits. Continuous models, however, describe change at every instant rather than at separate steps. Matrices can also represent transformations of conics and help analyse linked market values and trends.

Why eigenvalues matter

Eigenvalues reveal the characteristic modes of a system. Engineers use them to analyse vibration and damping, detect structural defects, interpret subsurface measurements and avoid destructive resonance. Large-scale ranking algorithms rely on dominant eigenvectors to assign relative importance within a network. There is an ethical dimension to these uses: a model may influence safety decisions or the visibility of information, so its assumptions and limitations matter.

In data analysis, principal component methods use eigenvectors to find important directions of variation. Factor methods instead seek a smaller collection of underlying influences. These are useful extensions, not additional calculation requirements here.

Eigenvalues also link discrete updates to continuous dynamical systems. Repeated multiplication gives powers such as λt\lambda^t, while continuous growth naturally uses Euler’s number ee, where ee is the dimensionless base of the natural logarithm. This close fit between matrix models and observed processes raises a broader question: was mathematics designed to describe the world, or does its success suggest that the world itself has an intrinsically mathematical structure?

Were those notes helpful?

financial-mathematics Financial Mathematics

number-skills Number Skills