∑ Mathematics LabLinear Algebra and Matrices · v2.0 Beta

Linear Algebra and Matrices

Explore matrices, linear systems, vectors, vector spaces, eigenvalues and linear transformations, including Gram-Schmidt, LU, QR, SVD and the pseudoinverse. Exact calculations include step-by-step working whenever available.

Version 2.0 Beta. Core features have been tested: numerical approximations are clearly distinguished from exact results. Always verify results before using them for important work.

Scroll horizontally to see all sections.

INTERACTIVE LAB

Set up the calculation

v2.0 Beta · Matrices

The determinant is defined only for square matrices.

Matrix A
2 × 2

Gaussian elimination is also suitable for larger matrices.

Accepted values: integers, decimals (a comma is also accepted) and fractions such as -3/4. Matrix dimensions range from 1×1 to 8×8. Scroll horizontally for larger matrices.

Try these examples:
Interpreting the result · Determinant, rank and invertibility

For a square matrix, det(A) ≠ 0 means full rank and the existence of an inverse. Rectangular matrices have a rank, but no overall determinant. Swapping two rows changes the sign of the determinant; adding a multiple of one row to another leaves it unchanged.

How does the calculator work?

Exact calculations. Algebraic operations use fractions: a value such as 1/3 remains a fraction. Norms and distances are shown with radicals when necessary; angles are approximated in degrees.

Matrices and systems. Determinants can be evaluated using Gaussian elimination, Sarrus’s rule or Laplace expansion. Linear systems support Gauss, Gauss-Jordan, Cramer and Rouché–Capelli; the last classifies systems by comparing ranks without calculating the solution. Parameter-dependent systems identify critical parameter values.

Vectors. You can add vectors and calculate products, norms, distances, projections, angles and linear independence. Operations show individual component calculations, with geometric diagrams in the plane.

Vector Spaces. Find bases, dimensions, membership, null spaces and images, and verify the rank–nullity theorem using exact Gauss-Jordan steps.

2D Transformations. The SVG graph displays squares, grids, basis vectors and draggable vectors before and after transformation, illustrating the geometric significance of the determinant and invertibility.

Eigenvalues. Study 2×2 and 3×3 matrices, characteristic polynomials, eigenspaces, multiplicities and diagonalization. Results are exact for rational roots and supported quadratic radicals; non-factorable cubics are reported explicitly as approximations.

Advanced Methods. Gram-Schmidt, pivoted LU, reduced QR and full-column-rank least squares use exact fractions. Compact SVD and the Moore–Penrose pseudoinverse also support orthogonal projectors, rank-deficient least squares and underdetermined systems. SVD is numerical; rational pseudoinverses are labelled exact only after certification. A rotatable 3D diagram shows projections and residuals onto subspaces of R³.