Gaussian elimination solves a linear system by changing its equations until the variables appear directly. Scalar multiplication, addition, and row swapping preserve the solution while transforming the coefficient matrix toward triangular or identity form. section 3.6 section 3.6.3
The two-trains system
For Vp − 2Va = 0 and Vp + Va = 450, multiply the second equation by −2, subtract to obtain 3Vp = 900, then continue eliminating until −2Vp = −600 and −2Va = −300. Dividing by the remaining coefficients gives Vp = 300 and Va = 150; substituting these values back verifies both original equations. section 3.6.1
The procedure follows a small set of reversible row operations:
- Scale an equation, multiplying both its coefficients and its free coefficient by the same number. section 3.6.1
- Add or subtract a scaled equation from another to eliminate one variable or coefficient. section 3.6.1
- Swap equations when a needed pivot coefficient is zero; if no suitable coefficient exists, the system may lack that variable or contain dependent equations. section 3.6.2
- Continue until the matrix becomes triangular or, with further normalization, the identity matrix and the right-hand vector becomes the solution. section 3.6.1 section 3.6.2
Use the two-trains figure to connect the original pair of equations with their geometric line intersection before following the row operations. section 3.6.1
LU-decomposition uses the closely related idea of factoring a matrix into lower- and upper-triangular matrices. Gaussian elimination, LU-decomposition, and matrix factorization share the same basic approach, while naive implementations have O(N³) theoretical complexity. section 3.6.2 section 3.6.3
