Perform elementary row operations (swap, scale, row addition) on a 3×3 matrix and instantly see the elementary matrix that encodes the operation. Understand Gaussian elimination, matrix inversion, and linear transformations with interactive feedback.
Apply an operation to the current matrix. The corresponding elementary matrix E (size 3x3) is shown, and the new matrix becomes A' = E·A.
No operation yet
In linear algebra, an elementary matrix is a square matrix that differs from the identity matrix by a single elementary row operation. For any 3×3 matrix A, applying the same row operation to A is equivalent to left-multiplying A by the corresponding elementary matrix E. These matrices form the foundation of Gaussian elimination, LU decomposition, and algorithmic matrix inversion.
Three types of elementary row operations:
Elementary matrices are always invertible, and their inverses correspond to the inverse row operation. For example, swapping rows is its own inverse; scaling by k is inverted by scaling by 1/k; adding k times row j to row i is undone by adding –k times row j to row i.
Given a 3×3 matrix A, each operation directly corresponds to an elementary matrix obtained by applying the same operation to the 3×3 identity matrix. For instance, swapping rows 1 and 2 yields:
E_swap = [[0,1,0],[1,0,0],[0,0,1]]
Scaling row 2 by k (non-zero) gives: E_scale = diag(1, k, 1). Row addition: adding k times row 1 to row 3 yields an elementary matrix with (3,1) entry = k and ones on diagonal. Left multiplication reproduces the row operation exactly. This calculator computes both the resulting matrix and the elementary matrix used, helping you develop algebraic intuition.
Elementary matrices represent shears, scaling, and reflections in 3D graphics pipelines. In robotics, forward kinematics uses sequences of elementary transformations (homogeneous coordinates). By understanding row operations as elementary matrices, engineers design stable numerical algorithms for solving inverse kinematics and sensor calibration.
The tool respects all algebraic rules. If you attempt scaling by zero, a warning will appear and the operation is blocked to preserve matrix invertibility.
The concept of elementary matrices emerged from early 20th-century matrix theory, but the systematic use of row operations was popularized by Gauss and later formalized in the context of vector spaces. Elementary matrices provide a direct link between row operations and matrix multiplication, which is essential for proving that every invertible matrix is a product of elementary matrices — a cornerstone result used in numerical linear algebra packages (LAPACK, MATLAB, NumPy). Our calculator makes this abstract theorem tangible.