Skip to content
Marlbridge

Study Guides

IB DP Mathematics: Applications and Interpretation – Matrices, eigenvalues and eigenvectors (HL) Study Guide

Study guide to IB DP Maths AI HL matrices: algebra, inverses, solving Ax = b, coding messages, eigenvalues, diagonalization and powers.

Level
IB
Topic
Matrices, eigenvalues and eigenvectors (HL)
Updated

Aligned to International Baccalaureate IB Diploma Programme Mathematics: Applications and Interpretation (DP Mathematics: Applications and Interpretation), First assessments for SL and HL—2021. Official specification .

Syllabus page (what it covers and how it is assessed): IB Diploma Programme Mathematics: Applications and Interpretation.

Syllabus points this page covers

DP Mathematics: Applications and Interpretation

  • 1.14 Matrices: definition, algebra, multiplication, determinants, inverses, solving linear systems (AHL only)
  • 1.15 Eigenvalues, eigenvectors, characteristic polynomial and diagonalization of 2×2 matrices (AHL only)

Found an error? Report a correction.

Need help with this topic? Request a free trial class for IB Diploma Programme Mathematics: Applications and Interpretation (DP Mathematics: Applications and Interpretation).

This study guide teaches the matrices unit of IB Diploma Programme Mathematics: Applications and Interpretation from scratch. It is aligned to the IB Mathematics: applications and interpretation guide, first assessment 2021, syllabus sections 1.14 and 1.15, and all of it is HL only (AHL). It follows the IB guide for first assessment 2021, which remains the examined syllabus until the new course is first assessed in May 2029, so it applies to the May and November 2026, 2027 and 2028 HL sessions.

When you have worked through it, condense it with the revision notes and test yourself with the practice questions. The IB DP Maths AI course hub and the printable syllabus checklist show where this unit sits in the course.

What this unit covers

Syllabus section What you must be able to do SL/HL
1.14 Use the terms element, row, column and order; add, subtract and scale matrices; multiply matrices, including in practical problems HL only
1.14 Know that matrix multiplication is associative and distributive but not commutative; use I and 0 HL only
1.14 Find determinants and inverses of n × n matrices with technology, and of 2 × 2 matrices by hand HL only
1.14 Write a linear system as Ax = b and solve it with the inverse matrix; code and decode messages HL only
1.15 Find eigenvalues and eigenvectors, and the characteristic polynomial of a 2 × 2 matrix HL only
1.15 Diagonalize a 2 × 2 matrix with distinct real eigenvalues and use Mⁿ = PDⁿP⁻¹ in applications HL only

All three HL papers require technology, so you will always have a GDC. The guide still expects the 2 × 2 determinant, inverse, characteristic polynomial and eigenvector calculations to be possible by hand, so practise them without the calculator.

1.14 Matrix definitions and algebra

A matrix is a rectangular array of numbers. Each number is an element. A matrix with m rows and n columns has order m × n (rows first). The element in row i, column j of A is written aᵢⱼ.

  • Equality: two matrices are equal only if they have the same order and every corresponding element is equal.
  • Addition and subtraction: only for matrices of the same order; add or subtract corresponding elements.
  • Scalar multiplication: kA multiplies every element by k.
  • Identity matrix I: a square matrix with 1s on the leading diagonal and 0s elsewhere. AI = IA = A.
  • Zero matrix 0: every element is 0. A + 0 = A.

Matrix multiplication

AB is defined only when the number of columns of A equals the number of rows of B. If A is m × n and B is n × p, then AB is m × p. Each element of AB is “row of A times column of B”: multiply pairs and add.

Properties you must know:

  • Associative: (AB)C = A(BC).
  • Distributive: A(B + C) = AB + AC and (A + B)C = AC + BC.
  • Not commutative: in general AB ≠ BA, even when both exist. The order matters.

Worked example 1

Let

A = | 2  -1 |      B = | 1   5 |
    | 3   4 |          | 0  -2 |

Find 2A − B, AB and BA.

2A − B = | 4-1   -2-5 |  = | 3  -7 |
         | 6-0    8+2 |    | 6  10 |

AB = | 2(1)+(-1)(0)   2(5)+(-1)(-2) |  = | 2  12 |
     | 3(1)+4(0)      3(5)+4(-2)    |    | 3   7 |

BA = | 1(2)+5(3)      1(-1)+5(4)    |  = | 17  19 |
     | 0(2)+(-2)(3)   0(-1)+(-2)(4) |    | -6  -8 |

AB ≠ BA, which shows non-commutativity.

Worked example 2: a practical product

A café records sales of coffee, tea and cake over two weeks. Prices are 2.50, 1.80 and 3.20 dollars.

          coffee tea cake            | 2.50 |
Q = wk1 |  120   80   45 |      p =  | 1.80 |
    wk2 |  150   60   50 |           | 3.20 |

Q is 2 × 3 and p is 3 × 1, so Qp is defined and is 2 × 1.

  • Week 1: 120(2.50) + 80(1.80) + 45(3.20) = 300 + 144 + 144 = 588 dollars
  • Week 2: 150(2.50) + 60(1.80) + 50(3.20) = 375 + 108 + 160 = 643 dollars

Always check that the labels line up: the columns of Q (products) must match the rows of p (products).

1.14 Determinants and inverses

For a 2 × 2 matrix

A = | a  b |      det A = |A| = ad − bc
    | c  d |

A⁻¹ = (1 / (ad − bc)) × |  d  -b |      provided ad − bc ≠ 0
                         | -c   a |

Swap the leading diagonal, change the signs of the other two, and divide by the determinant. AA⁻¹ = A⁻¹A = I. If det A = 0 the matrix is singular and has no inverse.

For 3 × 3 and larger matrices, find the determinant and inverse with technology. Enter the matrix, use the det and inverse (x⁻¹) functions, and copy exact fractions where the GDC gives them.

Worked example 3 (by hand)

Find the inverse of C, where the first row is (4, −2) and the second row is (3, 1).

det C = 4(1) − (−2)(3) = 4 + 6 = 10

C⁻¹ = (1/10) | 1   2 |  = | 0.1   0.2 |
             | -3  4 |    | -0.3  0.4 |

Check: C × C⁻¹ gives I. Always do this quick check on a 2 × 2 inverse.

A GDC example for n = 3: the matrix with rows (2, 1, 0), (1, 3, −1), (0, 2, 4) has determinant 24, so it is invertible.

1.14 Systems of equations: Ax = b

A system of linear equations can be written as Ax = b, where A is the coefficient matrix, x is the column of unknowns and b is the column of constants. If A is invertible, multiply both sides on the left by A⁻¹:

x = A⁻¹b

The guide states that in examinations A will always be invertible, except when you are solving for eigenvectors.

Worked example 4 (technology)

A cinema charges one price for an adult, one for a child and one for a senior. Three bookings cost:

  • 2 adults, 3 children, 1 senior: 54 dollars
  • 1 adult, 2 children, 2 seniors: 44 dollars
  • 3 adults, 1 child, 1 senior: 52 dollars

Let a, c and s be the prices.

| 2  3  1 | | a |   | 54 |
| 1  2  2 | | c | = | 44 |
| 3  1  1 | | s |   | 52 |

With the GDC, det A = 10 ≠ 0, so A⁻¹ exists. Then x = A⁻¹b gives a = 12, c = 7, s = 9: 12 dollars per adult, 7 per child and 9 per senior. Substitute back into one equation to check: 2(12) + 3(7) + 9 = 54.

Coding and decoding messages

Give each letter a number (A = 1, B = 2, …, Z = 26). Split the message into pairs and write each pair as a column vector. Multiply each column by an encoding matrix E. To decode, multiply each coded column by E⁻¹.

Worked example 5

Encode “MATH” with E, where E has rows (3, 1) and (5, 2).

M = 13, A = 1, T = 20, H = 8, so the columns are (13, 1) and (20, 8).

E | 13 | = | 3(13)+1(1) | = | 40 |      E | 20 | = | 68  |
  |  1 |   | 5(13)+2(1) |   | 67 |        |  8 |   | 116 |

The coded message is 40, 67, 68, 116. To decode, det E = 6 − 5 = 1, so E⁻¹ has rows (2, −1) and (−5, 3). Then E⁻¹(40, 67) = (80 − 67, −200 + 201) = (13, 1), which is “MA”. An encoding matrix with determinant ±1 keeps the decoded values as whole numbers.

1.15 Eigenvalues and eigenvectors

A non-zero vector v is an eigenvector of a square matrix M, with eigenvalue λ, if

Mv = λv

Multiplying v by M only stretches it by the factor λ; its direction line is unchanged. Rearranging gives (M − λI)v = 0. A non-zero solution exists only when M − λI is singular, so

det(M − λI) = 0

For a 2 × 2 matrix, det(M − λI) is a quadratic in λ called the characteristic polynomial. Its roots are the eigenvalues. For each eigenvalue, solve (M − λI)v = 0 to get an eigenvector. Any non-zero multiple of an eigenvector is also an eigenvector.

The guide expects these calculations by hand and with technology for 2 × 2 matrices only.

Worked example 6 (by hand)

Find the eigenvalues and eigenvectors of M, with rows (4, 1) and (2, 3).

det(M − λI) = (4 − λ)(3 − λ) − (1)(2)
            = λ² − 7λ + 10
            = (λ − 5)(λ − 2)

The eigenvalues are λ = 5 and λ = 2.

For λ = 5: M − 5I has rows (−1, 1) and (2, −2). The first row gives −x + y = 0, so y = x. An eigenvector is (1, 1).

For λ = 2: M − 2I has rows (2, 1) and (2, 1). So 2x + y = 0, giving y = −2x. An eigenvector is (1, −2).

Check: M(1, −2) = (4 − 2, 2 − 6) = (2, −4) = 2(1, −2). Correct.

1.15 Diagonalization and powers

If a 2 × 2 matrix M has two distinct real eigenvalues λ₁ and λ₂, with eigenvectors v₁ and v₂, then

M = PDP⁻¹

where P has the eigenvectors as its columns and D is the diagonal matrix with λ₁ and λ₂ on the leading diagonal, in the same order. It follows that

Mⁿ = PDⁿP⁻¹

and Dⁿ just raises each diagonal element to the power n. The syllabus restricts diagonalization to the case of distinct real eigenvalues.

Worked example 7

Using worked example 6, find an expression for Mⁿ.

P = | 1   1 |     D = | 5  0 |     P⁻¹ = (1/−3) | -2  -1 |  = (1/3) | 2   1 |
    | 1  -2 |         | 0  2 |                  | -1   1 |          | 1  -1 |
Mⁿ = PDⁿP⁻¹ = (1/3) | 2·5ⁿ + 2ⁿ      5ⁿ − 2ⁿ   |
                    | 2·5ⁿ − 2·2ⁿ    5ⁿ + 2·2ⁿ |

Check with n = 3: the top-left element is (2(125) + 8)/3 = 86, which matches M³ found directly on a GDC.

Worked example 8: movement between two towns

Each year 10% of the people in Aville move to Bton and 20% of the people in Bton move to Aville. Nobody else arrives or leaves. At the start there are 3000 people in Aville and 6000 in Bton.

Write the populations as a column (a, b). Then xₙ₊₁ = Txₙ, where

T = | 0.9  0.2 |      (column 1: from Aville, column 2: from Bton)
    | 0.1  0.8 |

Characteristic polynomial: (0.9 − λ)(0.8 − λ) − 0.02 = λ² − 1.7λ + 0.7 = (λ − 1)(λ − 0.7).

  • λ = 1: −0.1a + 0.2b = 0, so an eigenvector is (2, 1).
  • λ = 0.7: 0.2a + 0.2b = 0, so an eigenvector is (1, −1).

Write x₀ = 3000(2, 1) − 3000(1, −1). Since Tⁿ multiplies each eigenvector by λⁿ:

xₙ = 3000(2, 1) − 3000(0.7)ⁿ(1, −1)

So Aville has 6000 − 3000(0.7)ⁿ people and Bton has 3000 + 3000(0.7)ⁿ. After 5 years, Aville has 6000 − 3000(0.16807) ≈ 5496 and Bton ≈ 3504. As n grows, (0.7)ⁿ → 0, so the populations approach 6000 and 3000. The same method models predator/prey numbers when the matrix has distinct real eigenvalues.

Common errors

  • Writing the order as columns × rows. A matrix with 2 rows and 3 columns is 2 × 3.
  • Multiplying element by element instead of row by column.
  • Assuming AB = BA, or writing (A + B)² = A² + 2AB + B². The correct expansion is A² + AB + BA + B².
  • Writing x = bA⁻¹. The product bA⁻¹ is not even defined when b is a column; x = A⁻¹b.
  • Changing the signs of the leading diagonal in a 2 × 2 inverse instead of swapping them.
  • Giving (0, 0) as an eigenvector. Eigenvectors must be non-zero.
  • Putting eigenvalues in D in a different order from the eigenvector columns in P.
  • Writing Mⁿ = PⁿDⁿ(P⁻¹)ⁿ. Only D is raised to the power n.
  • Mixing up rows and columns of a transition matrix. State which column is “from” which town.

Where to go next

Related AI resources: the geometry and trigonometry study guide, the statistics and probability study guide, the AI syllabus guide, the AI subject guide and AI exam preparation.

For this unit, move on to the revision notes and then the practice questions.

Official syllabus

International Baccalaureate Organization, Diploma Programme, Mathematics: applications and interpretation guide, first assessment 2021. Sections AHL 1.14 and AHL 1.15.

Get free revision emails (optional)

Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.

Subjects (optional, up to 6)

Choose a qualification to see its subjects.

Related resources

Related articles

Studying this with a teacher

Working through Mathematics: Applications and Interpretation IB?

This page is free and stays free. If you would rather be taught it, Marlbridge runs Mathematics: Applications and Interpretation classes one-to-one, online in your own time zone. The first trial class is free. WhatsApp replies within an hour (8am–11pm Pakistan time, every day); email the same day.

IB Mathematics: Applications and Interpretation teachers at Marlbridge