Enrichment · STEM Explorations · Linear algebra

Take a 2 by 2 matrix
apart, piece
by piece.

Type the four entries. The calculator gives the determinant and trace, the eigenvalues from the characteristic equation, the LU factors and the inverse.

The matrix decomposition calculator

The worked example is the matrix with rows 4, 3 and 6, 3. Nothing you type leaves this browser.

Loading the calculator. If nothing appears, turn on JavaScript.

What you get

Enrichment · STEM ExplorationsOpen to everyone · no sign-in

What you finish with
The determinant, trace, eigenvalues (real or a complex pair), the L and U factors without row swaps and the inverse of a two by two matrix, with the steps written out and a table as one entry changes.
Who it is for
Students in linear algebra, engineering and computer science courses, tutors checking homework and anyone who wants to see the steps once before using software.
Format
Browser calculator for a phone, tablet or computer, by touch or keyboard. Prints a summary; downloads a spreadsheet (.csv); export and import a file.
Access
Open to everyone with the link: no account, no sign-in, nothing to buy and nothing to install. Everything you type stays in this browser; nothing is sent to Caveat.
Where it lives
The STEM Explorations space in Caveat Enrichment.
Support
Questions, a correction or a request: team@caveatacademic.com.

How to use it

  1. Type the four entries of the matrix.
  2. Read the determinant and trace first.
  3. Check the eigenvalues against the characteristic equation.
  4. Multiply L by U to get the matrix back.
  5. Multiply the matrix by its inverse to get the identity.

Decompose my matrix

How the figures are worked out

Two by two, by hand.

The worked example: rows 4 3 and 6 3Trace, determinant7, −64 + 3 and 12 − 18Larger eigenvalue7.77(7 + √73) ÷ 2Eliminatel21 = 1.56 ÷ 4Factorsu22 = −1.53 − 1.5 × 3The worked example: rows 4 3 and 6 3Trace, determinant7, −64 + 3 and 12 − 18Larger eigenvalue7.77(7 + √73) ÷ 2Eliminatel21 = 1.56 ÷ 4Factorsu22 = −1.53 − 1.5 × 3
The trace and determinant give the characteristic equation; its roots are the eigenvalues. Elimination gives L and U.

Eigenvalues come from one equation

An eigenvalue λ of a matrix A satisfies det(A − λI) = 0. For a two by two matrix that is λ² − (trace)λ + (determinant) = 0, so the eigenvalues are the roots of a quadratic. A negative discriminant gives a complex pair.

LU is elimination written down

Row elimination turns A into an upper triangular matrix U. The multipliers used go into a lower triangular matrix L, so A = LU. Without row swaps it needs a nonzero pivot, and a zero in the top left entry means swapping rows first, which gives PA = LU.

Sources

  1. Strang, G. (2016). Introduction to Linear Algebra (5th ed.). Wellesley-Cambridge Press: elimination, LU factorization and eigenvalues.
  2. Lay, D. C., Lay, S. R., & McDonald, J. J. (2021). Linear Algebra and Its Applications (6th ed.). Pearson: determinants, eigenvalues and the characteristic equation.
  3. Trefethen, L. N., & Bau, D. (1997). Numerical Linear Algebra. SIAM: LU factorization and pivoting.
  4. MIT OpenCourseWare. 18.06 Linear Algebra (G. Strang): lectures on elimination, factorization and eigenvalues. ocw.mit.edu.

Two by two matrices with real entries; the answers are rounded for display. Larger matrices need software. The worked example is made up. Your entries stay in this browser. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.