IB Maths Help logoIB Maths Help

Eigenvalues and eigenvectors

Find the eigenvalues and eigenvectors of a 2×22\times2 matrix, with the exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, plus what to write in the exam.

Used inAI HL

To find eigenvalues, solve the characteristic equation λ2−(trace)λ+det=0\lambda^2 - (\text{trace})\lambda + \det = 0; to find an eigenvector for each λ\lambda, row-reduce M−λIM - \lambda I and read the solution of the equation it gives. The TI-Nspire has direct eigVl and eigVc commands. The TI-84 Plus CE, Casio fx-CG50 and fx-CG100 have none, so use the polynomial solver and the rref or Rref command.

Example

Find the eigenvalues of M=(6215)M = \begin{pmatrix}6 & 2\\1 & 5\end{pmatrix}, and an eigenvector for each eigenvalue.

The trace is 1111 and the determinant is 2828, so the characteristic equation is λ2−11λ+28=0\lambda^2 - 11\lambda + 28 = 0, which factorises as (λ−4)(λ−7)=0(\lambda - 4)(\lambda - 7) = 0. The eigenvalues are 44 and 77. Row-reducing M−7IM - 7I gives the eigenvector (21)\begin{pmatrix}2\\1\end{pmatrix}, and M−4IM - 4I gives (1−1)\begin{pmatrix}1\\-1\end{pmatrix}. Check one: M(21)=(147)=7(21)M\begin{pmatrix}2\\1\end{pmatrix} = \begin{pmatrix}14\\7\end{pmatrix} = 7\begin{pmatrix}2\\1\end{pmatrix}.

Choose your calculator

How to find eigenvalues and eigenvectors on a TI-84 Plus CE

No eigenvalue command: characteristic equation and rref

Press 2nd x⁻¹ (MATRIX), press ▶ to the EDIT menu and choose 1:[A]. Enter the size, 2 enter 2 enter, then the entries row by row, pressing enter after each: 6, 2, 1, 5. Press 2nd mode (QUIT) to leave the editor.

MATRIX[A] 2 ×2
[ 6 2 ]
[ 1 5 ]

The manual lists no eigenvalue or eigenvector command for this calculator, so the eigenvalues come from the characteristic equation. For a 2×22\times2 matrix it is λ2−(trace)λ+det=0\lambda^2 - (\text{trace})\lambda + \det = 0. Here the trace is 6+5=116+5 = 11 and the determinant is 6×5−2×1=286\times5 - 2\times1 = 28, so it is λ2−11λ+28=0\lambda^2 - 11\lambda + 28 = 0.

Press apps and choose PlySmlt2, press any key, then choose 1:Polynomial Root Finder. Set ORDER to 2, press graph under NEXT, and enter the coefficients 1 enter, (−) 1 1 enter, 2 8 enter. Press graph under SOLVE.

The eigenvalues are λ=4\lambda = 4 and λ=7\lambda = 7.

X1=4
X2=7

For an eigenvector, row-reduce M−λIM - \lambda I. Quit the app, then on the home screen press 2nd x⁻¹ (MATRIX), ▶ to MATH, and choose B:rref(. Type [A] from 2nd x⁻¹ (MATRIX) 1:[A], then − 7 ×, and choose 5:identity( from the same MATH menu, followed by 2 ) ) and enter. This is rref([A]-7*identity(2)) for λ=7\lambda = 7.

Each row of the result is an equation in xx and yy. (1−200)\begin{pmatrix}1 & -2\\0 & 0\end{pmatrix} means x−2y=0x - 2y = 0, so x=2yx = 2y and an eigenvector for λ=7\lambda = 7 is (21)\begin{pmatrix}2\\1\end{pmatrix}. Repeat with 44 in place of 77: the result (1100)\begin{pmatrix}1 & 1\\0 & 0\end{pmatrix} means x+y=0x + y = 0, so an eigenvector is (1−1)\begin{pmatrix}1\\-1\end{pmatrix}.

rref([A]-7*identity(2))
[[1 -2]
[0 0]]

Any non-zero multiple of an eigenvector is also an eigenvector, so (2, 1) and (4, 2) are equally correct. The identity size must match the matrix: identity(2) for a 2 by 2.

How to find eigenvalues and eigenvectors on a Casio fx-CG50

No eigenvalue command: characteristic equation and Rref

Press MENU and choose Run-Matrix. Type the matrix with SHIFT ( ([) and SHIFT ) (]) as [[6,2][1,5]], then press →, OPTN, F2 (MAT/VCT), F1 (Mat), type the letter A with ALPHA, and press EXE. This stores the matrix as Mat A.

[[6,2][1,5]]→Mat A

The manual lists no eigenvalue or eigenvector command for this calculator, so the eigenvalues come from the characteristic equation. For a 2×22\times2 matrix it is λ2−(trace)λ+det=0\lambda^2 - (\text{trace})\lambda + \det = 0. Here the trace is 6+5=116+5 = 11 and the determinant is 6×5−2×1=286\times5 - 2\times1 = 28, so it is λ2−11λ+28=0\lambda^2 - 11\lambda + 28 = 0.

Press MENU and choose Equation, press F2 (POLY), then F1 (2) for degree 2. Enter the coefficients, pressing EXE after each: 1, (−) 1 1, 2 8. Press F1 (SOLVE).

The eigenvalues are λ=4\lambda = 4 and λ=7\lambda = 7.

x1=4
x2=7

For an eigenvector, row-reduce M−λIM - \lambda I. Back in Run-Matrix, press OPTN, F2 (MAT/VCT), F6, F5 (Rref), then F6, F1 (Mat), type A with ALPHA, and continue − 7, OPTN, F2, F6, F1 (Identity) 2. Press EXE. This is Rref (Mat A-7 Identity 2) for λ=7\lambda = 7.

Each row of the result is an equation in xx and yy. (1−200)\begin{pmatrix}1 & -2\\0 & 0\end{pmatrix} means x−2y=0x - 2y = 0, so x=2yx = 2y and an eigenvector for λ=7\lambda = 7 is (21)\begin{pmatrix}2\\1\end{pmatrix}. Repeat with 44 in place of 77: the result (1100)\begin{pmatrix}1 & 1\\0 & 0\end{pmatrix} means x+y=0x + y = 0, so an eigenvector is (1−1)\begin{pmatrix}1\\-1\end{pmatrix}.

Rref (Mat A-7 Identity 2)
[[1,-2]
[0,0]]

Row reduction can lose accuracy through dropped digits, so use exact eigenvalues like these, or check the eigenvector by multiplying: M times the vector should be the eigenvalue times the vector.

How to find eigenvalues and eigenvectors on a Casio fx-CG100

No eigenvalue command: characteristic equation and Rref

The manual lists no eigenvalue or eigenvector command for this calculator, so the eigenvalues come from the characteristic equation. For a 2×22\times2 matrix it is λ2−(trace)λ+det=0\lambda^2 - (\text{trace})\lambda + \det = 0. Here the trace is 6+5=116+5 = 11 and the determinant is 6×5−2×1=286\times5 - 2\times1 = 28, so it is λ2−11λ+28=0\lambda^2 - 11\lambda + 28 = 0.

Press HOME and choose Equation. On the Type tab choose Polynomial and press OK. On the Degree tab choose the quadratic form, press OK, and on the Editor tab type the coefficients, pressing EXE after each: 1, SHIFT − 1 1, 2 8. Press OK to solve.

The eigenvalues are λ=4\lambda = 4 and λ=7\lambda = 7.

x=4
x=7

For an eigenvector, row-reduce M−λIM - \lambda I. For λ=7\lambda = 7, subtract 7 from each entry on the leading diagonal of (6215)\begin{pmatrix}6 & 2\\1 & 5\end{pmatrix} to get (−121−2)\begin{pmatrix}-1 & 2\\1 & -2\end{pmatrix}. Press HOME and choose Calculate, then press CATALOG and choose Matrix → Rref. Choose the m×n template from the TOOLS menu, give 2 rows and 2 columns, and fill it in with the four entries. Press EXE.

Each row of the result is an equation in xx and yy. (1−200)\begin{pmatrix}1 & -2\\0 & 0\end{pmatrix} means x−2y=0x - 2y = 0, so x=2yx = 2y and an eigenvector for λ=7\lambda = 7 is (21)\begin{pmatrix}2\\1\end{pmatrix}. Repeat with 44 in place of 77: the result (1100)\begin{pmatrix}1 & 1\\0 & 0\end{pmatrix} means x+y=0x + y = 0, so an eigenvector is (1−1)\begin{pmatrix}1\\-1\end{pmatrix}.

Rref([[-1,2][1,-2]])
[[1,-2]
[0,0]]

The Rref command takes a matrix, so subtract the eigenvalue from the leading diagonal first. Check an eigenvector by multiplying: M times the vector should be the eigenvalue times the vector.

How to find eigenvalues and eigenvectors on a TI-Nspire CX

eigVl and eigVc (direct commands)

On a Calculator page type eigVl(, or choose eigVl( from the Catalog. Press template and choose the matrix template, then enter the entries 6, 2, 1, 5, moving between cells with tab. Close the bracket and press enter.

The eigenvalues are λ=4\lambda = 4 and λ=7\lambda = 7.

eigVl([6 2;1 5])
{4,7}

Type eigVc( and enter the same matrix. The result is a matrix with one column for each eigenvalue, in the order eigVl gave them.

The columns are scaled so that the squares of their entries add to 1, so the eigenvector for λ=7\lambda = 7 appears as about 0.8940.894 and 0.4470.447, and the eigenvector for λ=4\lambda = 4 as about 0.7070.707 and −0.707-0.707. Only the direction matters: divide a column by its smaller entry to get a whole-number vector, (21)\begin{pmatrix}2\\1\end{pmatrix} and (1−1)\begin{pmatrix}1\\-1\end{pmatrix}.

From the characteristic equation

The eigenvalues are also the roots of λ2−11λ+28=0\lambda^2 - 11\lambda + 28 = 0. Find them with polyRoots(x^2-11x+28,x), as in solving a polynomial equation, and use the result to check what eigVl returns.

Check the order: the first column of eigVc belongs to the first eigenvalue in the eigVl list. The columns may come with the opposite sign to the one you expect, which is still the same eigenvector direction.

Sources. Key presses follow the manufacturers' documentation: the TI-84 Plus CE eGuide, the TI-Nspire eGuide, the Casio fx-CG50 Software User's Guide (version 3.30) and the Casio fx-CG100 online manual.

What to write in the exam

  • Write the characteristic equation. Show det(M−λI)=0\det(M - \lambda I) = 0, or λ2−(trace)λ+det=0\lambda^2 - (\text{trace})\lambda + \det = 0, then the eigenvalues. Do not write the key presses.
  • Show the equation behind each eigenvector. For example x−2y=0x - 2y = 0 leads to (21)\begin{pmatrix}2\\1\end{pmatrix}. Any non-zero multiple of an eigenvector is correct.
  • Check each pair by multiplying: MvM\mathbf{v} should equal λv\lambda\mathbf{v}.
  • Keep the order straight. Match each eigenvector to its own eigenvalue, particularly from the TI-Nspire's eigVc, where column 1 belongs to the first eigenvalue in the eigVl list.
  • Check which papers allow a calculator. In AI HL a calculator is allowed on every paper (check your syllabus).

Long-run state of a transition matrix

For a transition matrix the eigenvalue 1 gives the long-run state. Find its eigenvector, then divide each entry by their total so that the entries add to 1. To see the long-run state by multiplying instead, see matrix powers and Markov chains. For the matrix entry steps, see matrix operations and solving systems.

Error messages and what to do

CalculatorMessageUsual causeWhat to try
TI-84 Plus CEERR:DIMENSION MISMATCHThe identity matrix is a different size from the matrix, for example identity(3) with a 2 by 2 matrix.Use identity(2) for a 2 by 2 matrix.
TI-84 Plus CENO REAL ROOTS FOUNDThe characteristic equation has no real root, so the eigenvalues are complex, and the Polynomial Root Finder is in Real mode.Change the mode to a+bi to see the complex eigenvalues.
Casio fx-CG50Dimension ERRORThe identity matrix is a different size from the matrix, for example Identity 3 with a 2 by 2 matrix.Use Identity 2 for a 2 by 2 matrix.

Common mistakes

  • Using the wrong coefficients in the characteristic equation. The middle coefficient is minus the trace, not the trace. For trace 11 it is −11-11.
  • Subtracting λ\lambda from every entry. Subtract it only from the leading diagonal: M−λIM - \lambda I, not M−λM - \lambda.
  • Mixing up which eigenvector goes with which eigenvalue. Row-reduce once for each eigenvalue and label the results.
  • Expecting the same vector as the mark scheme. Eigenvectors can be scaled, and a calculator may give a normalised one. Only the direction matters.
  • Writing key presses as working. Write the characteristic equation, the eigenvalues and the eigenvectors. The examiner needs the method, not the keys.

Try it yourself

Real questions from the IB Maths Help question bank. Type your answer and press Mark it: the worked solution and mark scheme then appear. Use your calculator to find the eigenvalues.

Practise with your calculator

Choose your course to see the practice sets that use this skill. You can also try practice mode or browse every GDC guide.

Quick questions

How do I find eigenvalues on a calculator?

On the TI-Nspire type eigVl( followed by the matrix. On the TI-84 Plus CE, Casio fx-CG50 and Casio fx-CG100 there is no eigenvalue command, so find the trace and determinant, then solve λ2−(trace)λ+det=0\lambda^2 - (\text{trace})\lambda + \det = 0 with the polynomial solver.

How do I find an eigenvector on a calculator?

On the TI-Nspire use eigVc( followed by the matrix: each column belongs to an eigenvalue. On the other calculators, row-reduce M−λIM - \lambda I with rref or Rref for each eigenvalue, then solve the first row for the vector.

Why is my eigenvector different from the mark scheme?

An eigenvector can be multiplied by any non-zero number. The TI-Nspire scales its eigenvectors so that the squares of the entries add to 1. Both are correct if they point in the same direction.

Do I write the calculator steps in my exam working?

No. Write the characteristic equation, the eigenvalues and the eigenvectors, and say you used your calculator. Examiners look for the method, not the key presses.