Skip to main content

Mathematics AI · HL · Unit 1: Number and Algebra

Unit 1Topic 1.14Key Concepts99 min read

Matrices

Reading progress0%
Back to course
On this page

Matrix meaning and notation

A matrix is a rectangular array of numbers or algebraic expressions arranged in rows and columns. Matrices organize data, represent linear rules and encode relationships compactly.

Capital letters such as AA, BB and MM usually name matrices. The element in row ii, column jj of AA is written aija_{ij}. The first subscript always identifies the row.

A row matrix has one row, a column matrix has one column, and a square matrix has the same number of rows and columns. A column matrix is often used as a state vector or coordinate vector.

Brackets contain the entire array. Commas are normally omitted inside a matrix because position separates the elements.

Key terms

Matrix
A rectangular array of elements arranged in rows and columns.
Element
A single entry in a matrix, identified by its row and column.
Row matrix
A matrix with exactly one row.
Column matrix
A matrix with exactly one column.

Worked examples

Read an element

For A=(4−13250)A=\begin{pmatrix}4&-1&3\\2&5&0\end{pmatrix}, find a12a_{12} and a23a_{23}.

  1. 1Row 1, column 2 contains −1-1.
  2. 2Row 2, column 3 contains 0.

Answer: a12=−1a_{12}=-1 and a23=0a_{23}=0.

Construct a matrix from a rule

Construct the 2×32\times3 matrix with aij=2i−ja_{ij}=2i-j.

  1. 1Evaluate the rule for i=1,2i=1,2 and j=1,2,3j=1,2,3.
  2. 2Place each result in its specified position.

Answer: A=(10−1321)A=\begin{pmatrix}1&0&-1\\3&2&1\end{pmatrix}.

Represent contextual data

Rows represent two stores and columns represent sales of three products. Store 1 sold 12, 8 and 5 units; Store 2 sold 9, 11 and 7 units. Form the sales matrix.

  1. 1Keep the stated row and column meanings consistent.

Answer: S=(12859117)S=\begin{pmatrix}12&8&5\\9&11&7\end{pmatrix}.

Rules and formulas

General matrix notation

A=(aij)m×nA=(a_{ij})_{m\times n}

Example element

aij=entry in row i and column ja_{ij}=\text{entry in row }i\text{ and column }j

Matrix dimensions and equality

The dimensions, order or size of a matrix are written rows by columns. An m×nm\times n matrix has mm rows and nn columns.

Two matrices are equal only when they have the same dimensions and every pair of corresponding elements is equal.

Equality of matrices can create several scalar equations. Equate corresponding positions, then solve those real equations.

Dimensions are the first compatibility check before any matrix operation. Write them beside the matrices before calculating.

Key terms

Dimensions
The number of rows followed by the number of columns.
Square matrix
A matrix of order n by n.
Matrix equality
Same dimensions and equal corresponding entries.

Worked examples

State matrix dimensions

State the dimensions of B=(102−345)B=\begin{pmatrix}1&0\\2&-3\\4&5\end{pmatrix}.

  1. 1Count three rows.
  2. 2Count two columns.

Answer: BB is a 3×23\times2 matrix.

Use matrix equality

If (x+12y34)=(5634)\begin{pmatrix}x+1&2y\\3&4\end{pmatrix}=\begin{pmatrix}5&6\\3&4\end{pmatrix}, find xx and yy.

  1. 1Equate the top-left entries: x+1=5x+1=5.
  2. 2Equate the top-right entries: 2y=62y=6.

Answer: x=4x=4 and y=3y=3.

Detect impossible equality

Can a 2×32\times3 matrix equal a 3×23\times2 matrix?

  1. 1Compare their dimensions before comparing entries.

Answer: No. Equal matrices must have identical dimensions.

Rules and formulas

Dimensions

Am×n=matrix with m rows and n columnsA_{m\times n}=\text{matrix with }m\text{ rows and }n\text{ columns}

Matrix addition and subtraction

Matrices can be added or subtracted only when they have the same dimensions. Combine corresponding entries in the same positions.

Addition is commutative and associative: A+B=B+AA+B=B+A and (A+B)+C=A+(B+C)(A+B)+C=A+(B+C), provided all matrices have compatible dimensions.

Subtraction is not commutative. Distribute the negative sign to every element of the second matrix.

In models, addition can combine data tables with identical row and column meanings; subtraction can measure change between two time periods.

Key terms

Compatible for addition
Matrices having exactly the same dimensions.
Corresponding entries
Entries occupying the same row and column positions.

Worked examples

Add two matrices

Calculate (2−143)+(52−41)\begin{pmatrix}2&-1\\4&3\end{pmatrix}+\begin{pmatrix}5&2\\-4&1\end{pmatrix}.

  1. 1Add entries position by position.

Answer: (7104)\begin{pmatrix}7&1\\0&4\end{pmatrix}.

Subtract two data matrices

Find A−BA-B for A=(129815)A=\begin{pmatrix}12&9\\8&15\end{pmatrix} and B=(1011612)B=\begin{pmatrix}10&11\\6&12\end{pmatrix}.

  1. 1Subtract every entry of BB from the matching entry of AA.

Answer: A−B=(2−223)A-B=\begin{pmatrix}2&-2\\2&3\end{pmatrix}.

Reject incompatible addition

Explain why a 2×32\times3 matrix cannot be added to a 3×23\times2 matrix.

  1. 1The arrays do not have matching positions.

Answer: The addition is undefined because the dimensions differ.

Rules and formulas

Matrix addition

(A+B)ij=aij+bij(A+B)_{ij}=a_{ij}+b_{ij}

Matrix subtraction

(A−B)ij=aij−bij(A-B)_{ij}=a_{ij}-b_{ij}

Scalar multiplication and zero matrices

A scalar is an ordinary number. Multiplying a matrix by a scalar multiplies every element by that number without changing the dimensions.

The zero matrix Om×nO_{m\times n} has zero in every position. It is the additive identity because A+O=AA+O=A for matching dimensions.

Scalar multiplication distributes over matrix addition: k(A+B)=kA+kBk(A+B)=kA+kB.

In applications, scalar multiplication changes every entry by the same scale factor, such as converting costs from dollars to thousands of dollars.

Key terms

Scalar
A single number multiplying every matrix entry.
Zero matrix
A matrix whose entries are all zero.
Additive identity
An object that leaves another object unchanged under addition.

Worked examples

Multiply by a scalar

Calculate −3(2−104)-3\begin{pmatrix}2&-1\\0&4\end{pmatrix}.

  1. 1Multiply all four entries by −3-3.

Answer: (−630−12)\begin{pmatrix}-6&3\\0&-12\end{pmatrix}.

Combine scalar multiplication and addition

For A=(12−13)A=\begin{pmatrix}1&2\\-1&3\end{pmatrix} and B=(042−2)B=\begin{pmatrix}0&4\\2&-2\end{pmatrix}, find 2A−B2A-B.

  1. 1Calculate 2A2A.
  2. 2Subtract corresponding entries of BB.

Answer: 2A−B=(20−48)2A-B=\begin{pmatrix}2&0\\-4&8\end{pmatrix}.

Use a zero matrix

Find 5O2×35O_{2\times3}.

  1. 1Every zero remains zero after scalar multiplication.

Answer: 5O2×3=O2×35O_{2\times3}=O_{2\times3}.

Rules and formulas

Scalar multiplication

(kA)ij=kaij(kA)_{ij}=k a_{ij}

Additive identity

A+O=AA+O=A

Matrix multiplication: row by column

The product ABAB exists when the number of columns of AA equals the number of rows of BB. If AA is m×nm\times n and BB is n×pn\times p, then ABAB is m×pm\times p.

Each entry of the product is a row-column dot product. Multiply corresponding entries of a row of AA and a column of BB, then add the results.

Matrix multiplication is generally not commutative: ABAB may differ from BABA, and one order may exist when the other does not.

Multiplication represents composition or aggregation. In a model, the units and meanings of the inner dimensions must match, not just their numerical sizes.

Key terms

Conformable matrices
Matrices whose inner dimensions match for multiplication.
Row-column product
The sum of products of matching entries from one row and one column.
Non-commutative
Changing the order can change the result or make a product undefined.

Worked examples

Multiply two 2 by 2 matrices

Calculate ABAB for A=(1234)A=\begin{pmatrix}1&2\\3&4\end{pmatrix} and B=(20−15)B=\begin{pmatrix}2&0\\-1&5\end{pmatrix}.

  1. 1First row by first column gives 1(2)+2(−1)=01(2)+2(-1)=0.
  2. 2Complete the remaining three row-column products.

Answer: AB=(010220)AB=\begin{pmatrix}0&10\\2&20\end{pmatrix}.

Multiply a matrix by a column vector

Calculate (120−134)(2−13)\begin{pmatrix}1&2&0\\-1&3&4\end{pmatrix}\begin{pmatrix}2\\-1\\3\end{pmatrix}.

  1. 1The product has dimensions 2×12\times1.
  2. 2Use one dot product for each row.

Answer: (07)\begin{pmatrix}0\\7\end{pmatrix}.

Check product dimensions

If CC is 3×43\times4 and DD is 4×24\times2, state the dimensions of CDCD and whether DCDC exists.

  1. 1For CDCD, the inner dimensions 4 match.
  2. 2For DCDC, the inner dimensions 2 and 3 do not match.

Answer: CDCD is 3×23\times2; DCDC is undefined.

Rules and formulas

Product dimensions

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

Product entry

(AB)ij=∑k=1naikbkj(AB)_{ij}=\sum\limits_{k=1}^{n}a_{ik}b_{kj}

Identity matrices and matrix powers

The identity matrix InI_n is the square matrix with ones on its main diagonal and zeros elsewhere. It leaves compatible matrices unchanged: AI=IA=AAI=IA=A.

For a square matrix, A2=AAA^2=AA and AnA^n means repeated matrix multiplication. It does not mean raising each element separately.

Matrix powers describe repeated transformations or repeated state transitions. Technology is especially useful for large exponents.

The zero power of an invertible square matrix is A0=IA^0=I, matching ordinary exponent conventions.

Key terms

Identity matrix
A square matrix with 1 on the main diagonal and 0 elsewhere.
Main diagonal
Entries running from the top-left to the bottom-right of a square matrix.
Matrix power
Repeated multiplication of a square matrix by itself.

Worked examples

Use an identity matrix

Verify AI2=AAI_2=A for A=(2−134)A=\begin{pmatrix}2&-1\\3&4\end{pmatrix}.

  1. 1Multiply AA by I2=(1001)I_2=\begin{pmatrix}1&0\\0&1\end{pmatrix}.

Answer: The product is (2−134)=A\begin{pmatrix}2&-1\\3&4\end{pmatrix}=A.

Calculate a matrix square

Find A2A^2 for A=(1101)A=\begin{pmatrix}1&1\\0&1\end{pmatrix}.

  1. 1Calculate AAAA using row-column products.

Answer: A2=(1201)A^2=\begin{pmatrix}1&2\\0&1\end{pmatrix}.

Recognize a power pattern

Conjecture AnA^n for A=(1101)A=\begin{pmatrix}1&1\\0&1\end{pmatrix}.

  1. 1Compare AA, A2A^2 and A3A^3.
  2. 2The upper-right entry increases by 1 each time.

Answer: An=(1n01)A^n=\begin{pmatrix}1&n\\0&1\end{pmatrix} for positive integers nn.

Rules and formulas

Identity matrix

I2=(1001)I_2=\begin{pmatrix}1&0\\0&1\end{pmatrix}

Identity property

AI=IA=AAI=IA=A

Matrix power

An=AA⋯A⏟n factorsA^n=\underbrace{AA\cdots A}_{n\text{ factors}}

Determinants and singular matrices

The determinant is a scalar associated with a square matrix. For A=(abcd)A=\begin{pmatrix}a&b\\c&d\end{pmatrix}, the determinant is ad−bcad-bc.

A square matrix is singular when its determinant is zero. A singular matrix has no inverse and collapses area or volume in its geometric interpretation.

For a two-dimensional transformation, ∣det⁡A∣|\det A| is the area scale factor. A negative determinant also reverses orientation.

For larger matrices, use the approved GDC when permitted and report enough working to identify the matrix and operation.

Key terms

Determinant
A scalar measuring invertibility and signed scale change of a square matrix.
Singular matrix
A square matrix with determinant zero and no inverse.
Non-singular matrix
A square matrix with non-zero determinant.

Worked examples

Find a 2 by 2 determinant

Find the determinant of A=(4725)A=\begin{pmatrix}4&7\\2&5\end{pmatrix}.

  1. 1Calculate 4(5)−7(2)4(5)-7(2).

Answer: det⁡A=6\det A=6.

Find a singular parameter

Find kk if A=(k236)A=\begin{pmatrix}k&2\\3&6\end{pmatrix} is singular.

  1. 1Set the determinant equal to zero.
  2. 2Solve 6k−6=06k-6=0.

Answer: k=1k=1.

Interpret determinant as area scale

A linear transformation has matrix M=(2103)M=\begin{pmatrix}2&1\\0&3\end{pmatrix}. By what factor are areas scaled?

  1. 1Calculate ∣det⁡M∣=∣2(3)−1(0)∣|\det M|=|2(3)-1(0)|.

Answer: Areas are multiplied by 6.

Rules and formulas

Two-by-two determinant

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

Invertibility condition

A−1 exists  ⟺  det⁡(A)≠0A^{-1}\text{ exists}\iff\det(A)\ne0

Product determinant

det⁡(AB)=det⁡(A)det⁡(B)\det(AB)=\det(A)\det(B)

Inverse matrices

The inverse A−1A^{-1} reverses the effect of a non-singular square matrix: AA−1=A−1A=IAA^{-1}=A^{-1}A=I.

For a 2×22\times2 matrix, swap the diagonal entries, change the signs of the off-diagonal entries, and divide by the determinant.

The inverse exists only when the determinant is non-zero. Never divide by a zero determinant.

Order remains important with inverses: (AB)−1=B−1A−1(AB)^{-1}=B^{-1}A^{-1}. The order reverses because the last transformation must be undone first.

Key terms

Inverse matrix
A matrix that produces the identity when multiplied on either side of its original matrix.
Invertible
Having a matrix inverse.
Singular
Not invertible because the determinant is zero.

Worked examples

Find a 2 by 2 inverse

Find the inverse of A=(3152)A=\begin{pmatrix}3&1\\5&2\end{pmatrix}.

  1. 1The determinant is 3(2)−1(5)=13(2)-1(5)=1.
  2. 2Apply the two-by-two inverse formula.

Answer: A−1=(2−1−53)A^{-1}=\begin{pmatrix}2&-1\\-5&3\end{pmatrix}.

Verify an inverse

Verify that B=16(5−7−24)B=\frac16\begin{pmatrix}5&-7\\-2&4\end{pmatrix} is the inverse of A=(4725)A=\begin{pmatrix}4&7\\2&5\end{pmatrix}.

  1. 1Calculate ABAB.
  2. 2Check that the result is I2I_2.

Answer: AB=I2AB=I_2, so B=A−1B=A^{-1}.

Reject a singular inverse

Explain why C=(2412)C=\begin{pmatrix}2&4\\1&2\end{pmatrix} has no inverse.

  1. 1Calculate det⁡C=2(2)−4(1)=0\det C=2(2)-4(1)=0.

Answer: CC is singular, so C−1C^{-1} does not exist.

Rules and formulas

Two-by-two inverse

(abcd)−1=1ad−bc(d−b−ca)\begin{pmatrix}a&b\\c&d\end{pmatrix}^{-1}=\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}

Inverse definition

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

Inverse of a product

(AB)−1=B−1A−1(AB)^{-1}=B^{-1}A^{-1}

Matrix equations and order-sensitive rearrangement

Matrix equations resemble algebraic equations, but multiplication order must be preserved. From AX=BAX=B, premultiply by A−1A^{-1} to obtain X=A−1BX=A^{-1}B.

From XA=BXA=B, postmultiply by A−1A^{-1} to obtain X=BA−1X=BA^{-1}. These answers are generally different.

An equation may also be solved elementwise by assigning unknown entries to XX and equating corresponding elements.

Always state the invertibility condition for any matrix whose inverse is used.

Key terms

Premultiply
Multiply both sides on the left by the same matrix.
Postmultiply
Multiply both sides on the right by the same matrix.
Unknown matrix
A matrix whose entries or full array must be determined.

Worked examples

Solve AX equals B

Solve AX=BAX=B where A=(2111)A=\begin{pmatrix}2&1\\1&1\end{pmatrix} and B=(5130)B=\begin{pmatrix}5&1\\3&0\end{pmatrix}.

  1. 1Calculate A−1=(1−1−12)A^{-1}=\begin{pmatrix}1&-1\\-1&2\end{pmatrix}.
  2. 2Use X=A−1BX=A^{-1}B.

Answer: X=(211−1)X=\begin{pmatrix}2&1\\1&-1\end{pmatrix}.

Solve XA equals B

If XA=BXA=B, state the solution for invertible AA.

  1. 1Postmultiply both sides by A−1A^{-1}.

Answer: X=BA−1X=BA^{-1}.

Solve elementwise

Find xx and yy if (x1)(2034)=(74y)\begin{pmatrix}x&1\end{pmatrix}\begin{pmatrix}2&0\\3&4\end{pmatrix}=\begin{pmatrix}7&4y\end{pmatrix}.

  1. 1The product is (2x+34)\begin{pmatrix}2x+3&4\end{pmatrix}.
  2. 2Equate corresponding entries.

Answer: x=2x=2 and y=1y=1.

Rules and formulas

Left-sided unknown

AX=B  ⟹  X=A−1BAX=B\implies X=A^{-1}B

Right-sided unknown

XA=B  ⟹  X=BA−1XA=B\implies X=BA^{-1}

Solving systems of equations using matrices

A linear system can be written compactly as Ax=bA\mathbf{x}=\mathbf{b}, where AA is the coefficient matrix, x\mathbf{x} is the unknown column vector and b\mathbf{b} is the constants vector.

If AA is square and invertible, the unique solution is x=A−1b\mathbf{x}=A^{-1}\mathbf{b}. This is efficient for several right-hand sides with the same coefficient matrix.

If det⁡A=0\det A=0, the inverse method fails. The system may be inconsistent or dependent, so use row reduction, graphs or contextual reasoning to distinguish the cases.

In an application, interpret every component of the solution and reject values that violate physical constraints such as non-negativity.

Key terms

Coefficient matrix
The matrix containing the coefficients of the unknowns.
Constants vector
The column vector containing values on the right sides of the equations.
Augmented matrix
The coefficient matrix with the constants vector appended.

Worked examples

Solve a two-variable system

Solve 2x+y=72x+y=7 and x−y=2x-y=2 using matrices.

  1. 1Write (211−1)(xy)=(72)\begin{pmatrix}2&1\\1&-1\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}7\\2\end{pmatrix}.
  2. 2Multiply by the inverse of the coefficient matrix.

Answer: x=3x=3 and y=1y=1.

Recognize a dependent system

Classify x+2y=5x+2y=5 and 2x+4y=102x+4y=10.

  1. 1The coefficient determinant is zero.
  2. 2The second equation is exactly twice the first.

Answer: The system has infinitely many solutions.

Recognize an inconsistent system

Classify x+2y=5x+2y=5 and 2x+4y=122x+4y=12.

  1. 1The coefficient determinant is zero.
  2. 2Doubling the first left side would require the constant 10, not 12.

Answer: The system has no solution.

Rules and formulas

Matrix form of a system

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

Unique inverse solution

x=A−1b,det⁡(A)≠0\mathbf{x}=A^{-1}\mathbf{b},\qquad\det(A)\ne0

Augmented matrix

[A∣b][A\mid\mathbf{b}]

Larger systems and row reduction

Three-variable systems use the same structure Ax=bA\mathbf{x}=\mathbf b. On a GDC, inverse, solve or reduced-row-echelon-form commands can obtain the solution.

Row operations preserve the solution set: swap rows, multiply a row by a non-zero scalar, or add a multiple of one row to another.

In reduced row-echelon form, a row (000∣c)\begin{pmatrix}0&0&0&|&c\end{pmatrix} with c≠0c\ne0 signals inconsistency. A missing pivot with no contradiction signals at least one free variable and infinitely many solutions.

Technology output must be translated back into the original variables and context. A calculator matrix is not a complete written conclusion.

Key terms

Row operation
A reversible operation used to simplify an augmented matrix.
Pivot
A leading non-zero entry used to eliminate other entries in its column.
Free variable
A variable not fixed by a pivot, leading to a family of solutions.

Worked examples

Solve a three-variable system

Solve x+y+z=6x+y+z=6, 2x−y+z=32x-y+z=3, and x+2y−z=2x+2y-z=2.

  1. 1Enter the coefficient matrix and constants vector or row-reduce the augmented matrix.
  2. 2Read the three pivot values.

Answer: x=1x=1, y=2y=2, z=3z=3.

Interpret an inconsistent RREF

An augmented matrix reduces to a row (000∣1)\begin{pmatrix}0&0&0&|&1\end{pmatrix}. What does this mean?

  1. 1The row represents the false equation 0=10=1.

Answer: The system is inconsistent and has no solution.

Interpret a free variable

An augmented 3×43\times4 matrix has pivots in only the first two variable columns and no contradiction. Classify the system.

  1. 1One variable is free.

Answer: The consistent system has infinitely many solutions.

Rules and formulas

Elementary row replacement

Ri←Ri+kRjR_i\leftarrow R_i+kR_j

Row scaling

Ri←kRi,k≠0R_i\leftarrow kR_i,\qquad k\ne0

Matrix transformations in two dimensions

A 2×22\times2 matrix transforms a coordinate vector by x′=Ax\mathbf{x}'=A\mathbf{x}. The columns of AA are the images of the standard basis vectors (10)\begin{pmatrix}1\\0\end{pmatrix} and (01)\begin{pmatrix}0\\1\end{pmatrix}.

Common matrices represent stretches, reflections, rotations and shears. A horizontal shear S=(1k01)S=\begin{pmatrix}1&k\\0&1\end{pmatrix} maps (x,y)(x,y) to (x+ky,y)(x+ky,y).

Composing transformations corresponds to matrix multiplication. With column vectors, BAxBA\mathbf{x} means apply AA first and then BB.

The determinant describes area scaling. If the determinant is zero, a two-dimensional region collapses onto a line or point.

A square transformed into a parallelogram by a horizontal shear matrix.A horizontal shear S=(1k01)S=\begin{pmatrix}1&k\\0&1\end{pmatrix}, with k>0k>0, keeps horizontal levels fixed while shifting points to the right in proportion to their height.

Open graph full size (opens in a new tab)

Key terms

Linear transformation
A mapping represented by matrix multiplication that preserves vector addition and scalar multiplication.
Shear
A transformation that shifts one coordinate in proportion to another.
Composition
Applying transformations one after another.

Worked examples

Apply a shear

Apply S=(1201)S=\begin{pmatrix}1&2\\0&1\end{pmatrix} to p=(13)\mathbf p=\begin{pmatrix}1\\3\end{pmatrix}.

  1. 1Calculate SpS\mathbf p.

Answer: Sp=(73)S\mathbf p=\begin{pmatrix}7\\3\end{pmatrix}.

Reflect in the y-axis

Find the image of (4,−2)(4,-2) under R=(−1001)R=\begin{pmatrix}-1&0\\0&1\end{pmatrix}.

  1. 1Multiply R(4−2)R\begin{pmatrix}4\\-2\end{pmatrix}.

Answer: The image is (−4,−2)(-4,-2).

Compose two transformations

A reflection RR is followed by a rotation QQ. Write the composite matrix.

  1. 1With column vectors, the first transformation is closest to the vector.

Answer: The composite matrix is QRQR, not RQRQ.

Rules and formulas

Coordinate transformation

x′=Ax\mathbf{x}'=A\mathbf{x}

Horizontal shear

(x′y′)=(1k01)(xy)=(x+kyy)\begin{pmatrix}x'\\y'\end{pmatrix}=\begin{pmatrix}1&k\\0&1\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}x+ky\\y\end{pmatrix}

Composition order

x′′=B(Ax)=(BA)x\mathbf{x}''=B(A\mathbf{x})=(BA)\mathbf{x}

Applications: matrix models and transition matrices

Matrices can turn repeated rules into a compact state model. With a column-state convention, xn+1=Txn\mathbf{x}_{n+1}=T\mathbf{x}_n, so xn=Tnx0\mathbf{x}_n=T^n\mathbf{x}_0.

For a transition matrix acting on probability or population columns, each column records where one current category moves next. Under this convention, non-negative transition proportions in each column sum to 1.

A steady state satisfies Ts=sT\mathbf{s}=\mathbf{s}. It is unchanged by another transition. The total population or total probability supplies an additional equation when needed.

Matrices also model production resources, input-output relationships and weighted totals. Always check dimensions, units, non-negativity and whether the model assumptions remain reasonable over repeated steps.

Key terms

State vector
A column matrix describing the system at a particular step.
Transition matrix
A matrix that maps one state to the next.
Steady state
A state vector left unchanged by the transition matrix.

Worked examples

One transition step

Let T=(0.80.30.20.7)T=\begin{pmatrix}0.8&0.3\\0.2&0.7\end{pmatrix} and x0=(800200)\mathbf{x}_0=\begin{pmatrix}800\\200\end{pmatrix}. Find x1\mathbf{x}_1.

  1. 1Calculate Tx0T\mathbf{x}_0.
  2. 2Check that the total remains 1000.

Answer: x1=(700300)\mathbf{x}_1=\begin{pmatrix}700\\300\end{pmatrix}.

Find a steady-state distribution

Find the probability steady state for T=(0.80.30.20.7)T=\begin{pmatrix}0.8&0.3\\0.2&0.7\end{pmatrix}.

  1. 1Solve Ts=sT\mathbf{s}=\mathbf{s}.
  2. 2Use s1+s2=1s_1+s_2=1.

Answer: s=(0.60.4)\mathbf{s}=\begin{pmatrix}0.6\\0.4\end{pmatrix}.

Production-resource model

A product vector is q=(5020)\mathbf q=\begin{pmatrix}50\\20\end{pmatrix} and the resource matrix is R=(2134)R=\begin{pmatrix}2&1\\3&4\end{pmatrix}. Find total resource use.

  1. 1Calculate RqR\mathbf q.
  2. 2Interpret the two output components using the stated resource units.

Answer: Rq=(120230)R\mathbf q=\begin{pmatrix}120\\230\end{pmatrix}.

Rules and formulas

One-step state model

xn+1=Txn\mathbf{x}_{n+1}=T\mathbf{x}_n

Repeated state model

xn=Tnx0\mathbf{x}_n=T^n\mathbf{x}_0

Steady-state condition

Ts=sT\mathbf{s}=\mathbf{s}

Calculator/GDC matrix methods

On an approved GDC, create a matrix with the correct dimensions before entering its elements. Check row and column order directly from the display.

Use matrix commands for addition, multiplication, determinant, inverse, powers and reduced row-echelon form. Menu names vary, so practise the exact workflow on the permitted model.

For a system, either calculate A−1bA^{-1}\mathbf b, use a simultaneous-equation solver, or row-reduce [A∣b][A|\mathbf b]. Choose a method consistent with the question and show mathematical setup.

Retain full calculator precision. Small displayed decimals near zero may be round-off rather than exact zeros, so use exact inputs whenever possible.

Technology verifies arithmetic but does not replace dimension checks, determinant conditions, model interpretation or an explicit final conclusion.

Key terms

Matrix editor
The calculator screen used to define dimensions and enter elements.
RREF
Reduced row echelon form, used to solve or classify linear systems.
Numerical round-off
Small error caused by finite calculator precision.

Worked examples

GDC inverse workflow

Use a GDC to find the inverse of A=(4725)A=\begin{pmatrix}4&7\\2&5\end{pmatrix}.

  1. 1Store AA as a 2×22\times2 matrix.
  2. 2Evaluate A−1A^{-1}.
  3. 3Check by calculating AA−1AA^{-1}.

Answer: A−1=16(5−7−24)A^{-1}=\frac16\begin{pmatrix}5&-7\\-2&4\end{pmatrix}.

GDC solve for three variables

Describe how to solve and classify a three-variable linear system using an augmented matrix on a GDC.

  1. 1Store [A∣b][A|\mathbf b].
  2. 2Apply RREF.
  3. 3First inspect for a contradictory row 0=c0=c, c≠0c\ne0; that means no solution.
  4. 4If consistent, three variable-column pivots give a unique solution. Otherwise use the free variables as parameters and express the pivot variables in terms of them.

Answer: Report either no solution, all three unique values, or a parameterized family of solutions, in the original variable order and context.

GDC repeated transition

Evaluate T20x0T^{20}\mathbf{x}_0 for a transition model.

  1. 1Store TT and x0\mathbf{x}_0.
  2. 2Calculate the power before multiplying by the initial state.
  3. 3Check totals and round only the final contextual result.

Answer: Use the displayed state as a prediction, with units and appropriate rounding.

Rules and formulas

Technology system check

A(A−1b)=bA(A^{-1}\mathbf b)=\mathbf b

Repeated GDC model

xn=Tnx0\mathbf{x}_n=T^n\mathbf{x}_0

Common mistakes and IB AI HL exam strategy

The most frequent errors are incompatible dimensions, entrywise multiplication, reversing matrix order, missing a negative sign in the inverse, and using an inverse when the determinant is zero.

For every product, write the dimension chain. For every inverse, check the determinant. For every system, define the coefficient matrix, unknown vector and constants vector.

In modelling questions, label state-vector components, state the transition convention and interpret the final vector with units. A mathematically correct array without context is incomplete.

Use exact arithmetic for small matrices when requested. Use technology for larger calculations, but include the mathematical structure and a reasonableness check.

Key terms

Reasonableness check
A dimension, determinant, total, sign or substitution check supporting an answer.
Exact matrix
A matrix containing exact integers, fractions or radicals rather than premature decimals.

Worked examples

Diagnose an order error

A student replaces ABAB by BABA. Why is this unsafe?

  1. 1Matrix multiplication is not generally commutative.

Answer: The products may differ, and BABA may not even exist.

Diagnose an inverse error

A student finds an inverse without calculating the determinant. What check is missing?

  1. 1An inverse exists only if the determinant is non-zero.

Answer: Calculate and state det⁡A≠0\det A\ne0 before using A−1A^{-1}.

Communicate a model answer

A transition calculation returns (650350)\begin{pmatrix}650\\350\end{pmatrix}. What else should be stated?

  1. 1Identify what the two components represent.
  2. 2Include units or population meaning and the time step.

Answer: Interpret the vector in a complete contextual sentence.

Rules and formulas

Core workflow

dimensions→operation→condition→calculation→interpretation\text{dimensions}\to\text{operation}\to\text{condition}\to\text{calculation}\to\text{interpretation}

IB AI HL-style practice with worked solutions

Attempt each question before reading its steps. The set progresses from notation and arithmetic to inverses, systems, transformations and repeated-state models.

Show dimension checks, determinant conditions and contextual interpretation where relevant. Use exact values unless an approximation is requested.

Key terms

Retrieval practice
Attempting a question from memory before checking its solution.
Matrix verification
Checking dimensions, multiplication, substitution, totals or an identity product.

Worked examples

Practice 1: dimensions and elements

For A=(2−14035)A=\begin{pmatrix}2&-1&4\\0&3&5\end{pmatrix}, state its dimensions and find a23a_{23}.

  1. 1Count rows and columns.
  2. 2Read row 2, column 3.

Answer: AA is 2×32\times3 and a23=5a_{23}=5.

Practice 2: combined arithmetic

Given A=(12−13)A=\begin{pmatrix}1&2\\-1&3\end{pmatrix} and B=(042−2)B=\begin{pmatrix}0&4\\2&-2\end{pmatrix}, find 2A−B2A-B.

  1. 1Calculate 2A2A.
  2. 2Subtract matching entries.

Answer: (20−48)\begin{pmatrix}2&0\\-4&8\end{pmatrix}.

Practice 3: rectangular product

Calculate (120−134)(2−13)\begin{pmatrix}1&2&0\\-1&3&4\end{pmatrix}\begin{pmatrix}2\\-1\\3\end{pmatrix}.

  1. 1The answer must be 2×12\times1.
  2. 2Use two row-column products.

Answer: (07)\begin{pmatrix}0\\7\end{pmatrix}.

Practice 4: non-commutativity

For A=(1101)A=\begin{pmatrix}1&1\\0&1\end{pmatrix} and B=(2013)B=\begin{pmatrix}2&0\\1&3\end{pmatrix}, calculate ABAB and BABA.

  1. 1Calculate both products independently.

Answer: AB=(3313)AB=\begin{pmatrix}3&3\\1&3\end{pmatrix} and BA=(2214)BA=\begin{pmatrix}2&2\\1&4\end{pmatrix}.

Practice 5: determinant

Find det⁡(4725)\det\begin{pmatrix}4&7\\2&5\end{pmatrix}.

  1. 1Use ad−bcad-bc.

Answer: 66.

Practice 6: inverse

Find (3152)−1\begin{pmatrix}3&1\\5&2\end{pmatrix}^{-1}.

  1. 1The determinant is 1.
  2. 2Swap diagonal entries and negate off-diagonal entries.

Answer: (2−1−53)\begin{pmatrix}2&-1\\-5&3\end{pmatrix}.

Practice 7: singular parameter

Find kk if (k236)\begin{pmatrix}k&2\\3&6\end{pmatrix} is singular.

  1. 1Set 6k−6=06k-6=0.

Answer: k=1k=1.

Practice 8: solve a two-variable system

Solve 2x+y=72x+y=7 and x−y=2x-y=2 using matrices.

  1. 1Write Ax=bA\mathbf{x}=\mathbf b.
  2. 2Use x=A−1b\mathbf{x}=A^{-1}\mathbf b.

Answer: x=3x=3, y=1y=1.

Practice 9: solve a three-variable system

Solve x+y+z=6x+y+z=6, 2x−y+z=32x-y+z=3, and x+2y−z=2x+2y-z=2.

  1. 1Form the augmented matrix.
  2. 2Use row reduction or a GDC solve command.

Answer: (x,y,z)=(1,2,3)(x,y,z)=(1,2,3).

Practice 10: solve a matrix equation

Solve AX=BAX=B for A=(2111)A=\begin{pmatrix}2&1\\1&1\end{pmatrix} and B=(5130)B=\begin{pmatrix}5&1\\3&0\end{pmatrix}.

  1. 1Use X=A−1BX=A^{-1}B.

Answer: X=(211−1)X=\begin{pmatrix}2&1\\1&-1\end{pmatrix}.

Practice 11: apply a shear

Apply S=(1201)S=\begin{pmatrix}1&2\\0&1\end{pmatrix} to (3−1)\begin{pmatrix}3\\-1\end{pmatrix}.

  1. 1Multiply the matrix by the column vector.

Answer: (1−1)\begin{pmatrix}1\\-1\end{pmatrix}.

Practice 12: compose transformations

A reflection in the y-axis is followed by a 90-degree counterclockwise rotation. Find the image of (2,1)(2,1).

  1. 1Use R=(−1001)R=\begin{pmatrix}-1&0\\0&1\end{pmatrix} and Q=(0−110)Q=\begin{pmatrix}0&-1\\1&0\end{pmatrix}.
  2. 2Apply QRQR to the vector.

Answer: The image is (−1,−2)(-1,-2).

Practice 13: one transition

Let T=(0.80.30.20.7)T=\begin{pmatrix}0.8&0.3\\0.2&0.7\end{pmatrix} and x0=(800200)\mathbf{x}_0=\begin{pmatrix}800\\200\end{pmatrix}. Find x1\mathbf{x}_1.

  1. 1Calculate Tx0T\mathbf{x}_0.

Answer: x1=(700300)\mathbf{x}_1=\begin{pmatrix}700\\300\end{pmatrix}.

Practice 14: two transitions

Using the same TT and x0\mathbf{x}_0, find x2\mathbf{x}_2.

  1. 1Use T2x0T^2\mathbf{x}_0 or apply TT to x1\mathbf{x}_1.

Answer: x2=(650350)\mathbf{x}_2=\begin{pmatrix}650\\350\end{pmatrix}.

Practice 15: production model

A resource matrix is R=(2134)R=\begin{pmatrix}2&1\\3&4\end{pmatrix} and production is q=(5020)\mathbf q=\begin{pmatrix}50\\20\end{pmatrix}. Find total resource use.

  1. 1Calculate RqR\mathbf q.
  2. 2Interpret both output components.

Answer: Rq=(120230)R\mathbf q=\begin{pmatrix}120\\230\end{pmatrix}.

Rules and formulas

Practice workflow

check size→choose operation→calculate→verify→interpret\text{check size}\to\text{choose operation}\to\text{calculate}\to\text{verify}\to\text{interpret}

Topic summary and cheat sheet

Matrices are reliable when dimensions, multiplication order and invertibility conditions are checked before calculating. In applications, a final matrix must be interpreted as labeled data, a transformation or a state.

Use the formulas below as a quick reference, then practise choosing the correct operation without looking at the section title.

Key terms

Cheat sheet
A compact reference for revision, not a replacement for worked practice.

Worked examples

Final checklist

What should be checked before submitting a matrix answer?

  1. 1Dimensions and order.
  2. 2Determinant before inversion.
  3. 3Units, labels or state meaning in context.
  4. 4Substitution, identity product or conserved total.

Answer: Submit the exact matrix and a complete contextual interpretation where required.

Rules and formulas

Product compatibility

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

Determinant

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

Inverse

A−1=1ad−bc(d−b−ca)A^{-1}=\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}

System solution

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

Transformation

x′=Ax\mathbf{x}'=A\mathbf{x}

Repeated model

xn=Tnx0\mathbf{x}_n=T^n\mathbf{x}_0

Topic summary

  • A matrix is a rectangular array of elements arranged in rows and columns.
  • The element aija_{ij} lies in row ii, column jj.
  • An m×nm\times n matrix has mm rows and nn columns.
  • Equal matrices have identical dimensions and equal corresponding entries.
  • Addition and subtraction require matching dimensions and operate entrywise.
  • Scalar multiplication multiplies every matrix entry by the scalar.
  • The zero matrix is the additive identity: A+O=AA+O=A.
  • For ABAB, the columns of AA must equal the rows of BB.
  • If AA is m×nm\times n and BB is n×pn\times p, then ABAB is m×pm\times p.
  • Matrix multiplication uses row-column dot products, not entrywise multiplication.
  • Matrix multiplication is generally non-commutative: AB≠BAAB\ne BA.
  • The identity matrix satisfies AI=IA=AAI=IA=A.
  • A matrix power such as A2A^2 means AAAA.
  • For A=(abcd)A=\begin{pmatrix}a&b\\c&d\end{pmatrix}, det⁡A=ad−bc\det A=ad-bc.
  • A matrix is singular exactly when its determinant is zero.
  • A square matrix has an inverse exactly when its determinant is non-zero.
  • The inverse satisfies AA−1=A−1A=IAA^{-1}=A^{-1}A=I.
  • For AX=BAX=B, the solution is X=A−1BX=A^{-1}B when AA is invertible.
  • For XA=BXA=B, the solution is X=BA−1X=BA^{-1}; order matters.
  • A linear system is written Ax=bA\mathbf{x}=\mathbf b.
  • If the coefficient matrix is invertible, the unique solution is x=A−1b\mathbf{x}=A^{-1}\mathbf b.
  • A singular system may have no solution or infinitely many solutions.
  • RREF reveals pivots, contradictions and free variables in larger systems.
  • A transformation maps a vector by x′=Ax\mathbf{x}'=A\mathbf{x}.
  • With column vectors, BAxBA\mathbf{x} applies AA first and BB second.
  • The absolute determinant is the area scale factor of a two-dimensional transformation.
  • A repeated state model has the form xn=Tnx0\mathbf{x}_n=T^n\mathbf{x}_0.
  • A steady state satisfies Ts=sT\mathbf{s}=\mathbf{s}.
  • Under a column-state transition convention, each transition-matrix column sums to 1.
  • GDC output must be supported by setup, exact conditions, verification and contextual interpretation.