Matrices Guide

What should I know about Matrix Operations?

A matrix is a rectangular array of numbers. For a 2×2 matrix A = [[a,b],[c,d]]: determinant det(A) = ad − bc. Inverse A⁻¹ = (1/det(A)) × [[d,−b],[−c,a]] (only exists if det(A) ≠ 0). Transpose Aᵀ: swap rows and columns — row 1 becomes column 1, etc. Matrix multiplication AB: element (i,j) = row i of A dotted with column j of B. Note: AB ≠ BA in general (matrix multiplication is not commutative).

What should I know about The Determinant and Geometric Meaning?

For a 2×2 matrix, the determinant equals the signed area of the parallelogram formed by the column vectors. det = 0 means the matrix is singular (rows/columns are linearly dependent, the parallelogram has collapsed to a line or point). The matrix cannot be inverted. For a 3×3 matrix: det = a₁₁(a₂₂a₃₃ − a₂₃a₃₂) − a₁₂(a₂₁a₃₃ − a₂₃a₃₁) + a₁₃(a₂₁a₃₂ − a₂₂a₃₁) — expansion along the first row. A 3×3 determinant gives the signed volume of the parallelepiped formed by the three column vectors.

What should I know about Solving Linear Systems with Matrices?

A system of linear equations can be written as Ax = b. If det(A) ≠ 0, the unique solution is x = A⁻¹b. For 2 equations: 2x + y = 5, x + 3y = 7. Matrix form: A = [[2,1],[1,3]], b = [[5],[7]]. det(A) = 6−1 = 5. A⁻¹ = (1/5)[[3,−1],[−1,2]]. x = A⁻¹b = (1/5)[[3×5 + (−1)×7],[( −1)×5 + 2×7]] = (1/5)[[8],[9]] = [[1.6],[1.8]]. Check: 2(1.6)+1.8 = 5 ✓.

What should I know about Applications of Matrices?

Matrices appear throughout applied mathematics and engineering. Computer graphics: transformation matrices rotate, scale, and translate 3D objects. Quantum mechanics: quantum states are represented as vectors, operators as matrices. Statistics: variance-covariance matrices in multivariate analysis. Network analysis: adjacency matrices represent connections. Machine learning: neural networks process data through sequential matrix multiplications. Economics: the Leontief input-output model uses matrices to represent how different sectors of an economy depend on each other's output.

What should I know about the Identity Matrix and Matrix Inverse?

The identity matrix, denoted I, is the matrix equivalent of the number 1 in ordinary multiplication: for a 2×2 identity matrix, I = [[1,0],[0,1]], and multiplying any matrix A by I (in either order) leaves A unchanged, just as multiplying any number by 1 leaves it unchanged. The inverse of a matrix A, written A⁻¹, is the matrix that undoes A's transformation, defined by the property that A × A⁻¹ = A⁻¹ × A = I. For a 2×2 matrix [[a,b],[c,d]], the inverse is (1/det(A)) × [[d,−b],[−c,a]], where det(A) = ad − bc is the determinant. This formula immediately shows why a matrix is only invertible when its determinant is non-zero — dividing by a zero determinant is undefined, which is exactly why a matrix with determinant 0 is called singular and has no inverse. Matrix inverses are essential for solving systems of linear equations in matrix form (Ax = b implies x = A⁻¹b) and for reversing geometric transformations like rotation or scaling.

What's the key thing to understand about Eigenvalues of a 2×2 Matrix?

An eigenvalue of a matrix A is a special scalar λ for which there exists a non-zero vector v (the eigenvector) satisfying Av = λv — in other words, a direction in space that the matrix transformation only stretches or shrinks, without rotating. For a 2×2 matrix [[a,b],[c,d]], the eigenvalues are found by solving the characteristic equation λ² − (a+d)λ + (ad−bc) = 0, where (a+d) is the trace (sum of diagonal elements) and (ad−bc) is the determinant. For example, for A = [[4,1],[2,3]], the trace is 7 and the determinant is 10, giving λ² − 7λ + 10 = 0, which factors to (λ−5)(λ−2) = 0, so the eigenvalues are 5 and 2. Eigenvalues reveal fundamental properties of a matrix transformation: in population models, structural engineering (vibration modes), and principal component analysis in statistics, they identify the directions and rates of the system's most significant behaviour, making them one of the most widely applied concepts in applied linear algebra.

What's the key thing to understand about Matrix Multiplication Not Being Commutative?

Unlike multiplying ordinary numbers, matrix multiplication generally does not commute — AB does not usually equal BA, even when both products are defined (which itself requires the matrices' dimensions to be compatible in both orders). For example, multiplying a rotation matrix by a scaling matrix in one order can produce a different combined transformation than multiplying them in the reverse order, because each matrix represents a specific transformation (rotate, scale, reflect) applied to whatever comes after it, and the order those transformations happen in changes the final result. This is a fundamental difference from scalar arithmetic that trips up many students first learning matrices, and it has real consequences in computer graphics and robotics, where rotating an object and then translating it produces a visibly different result from translating it and then rotating it.

Worked Example: Multiplying Two Matrices Step by Step

Multiplying matrices means taking the dot product of each row of the first matrix with each column of the second. Let A = [[2, 3], [1, 4]] and B = [[5, 0], [2, 6]]. The entry in row 1, column 1 of the product AB comes from row 1 of A dotted with column 1 of B: (2 × 5) + (3 × 2) = 10 + 6 = 16. Row 1, column 2 uses row 1 of A and column 2 of B: (2 × 0) + (3 × 6) = 0 + 18 = 18. Row 2, column 1: (1 × 5) + (4 × 2) = 5 + 8 = 13. Row 2, column 2: (1 × 0) + (4 × 6) = 0 + 24 = 24. So AB = [[16, 18], [13, 24]]. Notice that for this multiplication to even be defined, the number of columns in A must equal the number of rows in B — here both matrices are 2×2, so the product is also 2×2. A quick way to check the work by hand is to verify each entry uses exactly as many multiplications as there are shared rows/columns (two, in this case), and that the result has the number of rows of A and the number of columns of B.

StepRow of AColumn of BCalculationResult
Entry (1,1)[2, 3][5, 2]2×5 + 3×216
Entry (1,2)[2, 3][0, 6]2×0 + 3×618
Entry (2,1)[1, 4][5, 2]1×5 + 4×213
Entry (2,2)[1, 4][0, 6]1×0 + 4×624

Solving a System by Gaussian Elimination: A Full Walkthrough

Gaussian elimination turns a system of equations into row-reduced form by systematically eliminating variables, and it's the method most matrix solvers use under the hood instead of computing a full inverse. Take the system 2x + y = 5 and x + 3y = 10. Written as an augmented matrix, that's [[2, 1 | 5], [1, 3 | 10]]. Swap the rows so the leading coefficient is easiest to work with, or simply solve the second equation for x: x = 10 − 3y. Substituting into the first equation gives 2(10 − 3y) + y = 5, which expands to 20 − 6y + y = 5, so −5y = −15 and y = 3. Back-substituting, x = 10 − 3(3) = 10 − 9 = 1. Checking both original equations: 2(1) + 3 = 5 ✓ and 1 + 3(3) = 1 + 9 = 10 ✓. For larger systems (3×3 and up), the same idea scales: pick a pivot row, use it to zero out the entries below it in that column, move to the next column, and repeat until the matrix is in upper-triangular form, then back-substitute from the bottom row upward. This is more numerically stable for a computer than finding an inverse matrix directly, especially for large or nearly-singular systems.

Table: Common Matrix Operations and When They Apply

Not every operation is defined for every pair of matrices — dimensions have to line up in specific ways, and it's one of the most common sources of calculator error messages. The table below is a fast reference for the dimension rules and what each operation is typically used for.

OperationDimension RequirementResult SizeTypical Use
Addition/SubtractionBoth matrices same sizeSame as inputsCombining data sets, vector sums
Scalar multiplicationAny sizeSame as inputScaling a system, unit conversion
Matrix multiplication ABColumns of A = Rows of BRows of A × Columns of BTransformations, solving systems
TransposeAny sizeColumns and rows swappedSymmetry checks, normal equations
DeterminantSquare matrix onlySingle numberChecking invertibility, area/volume scaling
InverseSquare matrix, det ≠ 0Same size as inputSolving Ax = b directly

2×2 and 3×3 Matrix Calculator

Results update automatically as you type

Enter values above to calculate