Gaussian elimination is the general-purpose workhorse method for solving linear systems of any size, and understanding its two-phase structure — forward elimination followed by back-substitution — clarifies both how it works mechanically and why it's the method that scales to real, large-scale problems where Cramer's rule's determinant-based approach becomes impractical.
Forward elimination systematically transforms the original system into an equivalent upper-triangular form — a system where each successive equation involves one fewer variable than the one before it. The mechanism is straightforward: at each step, use the current pivot row to eliminate that column's variable from every row below it, by subtracting an appropriately scaled multiple of the pivot row from each row beneath. Working through this process column by column, top to bottom, eventually produces a system where the last equation involves only one variable, the second-to-last involves only two, and so on — a shape that's genuinely easy to solve directly, working from the bottom up.
Partial pivoting — the practice of swapping rows so that the row with the largest available coefficient in the current column becomes the pivot row, rather than mechanically using whichever row happens to be in that position already — is a genuine, deliberate refinement to the basic method, not an optional embellishment. Its purpose is numerical stability: dividing by a very small pivot value (even one that's technically nonzero) can dramatically amplify any small rounding errors already present in the calculation, producing a final answer that's numerically unreliable even though the underlying algebra was performed correctly. Choosing the largest available pivot at each step keeps these amplification effects much smaller, which is exactly why virtually every serious real-world implementation of Gaussian elimination (including this calculator) uses partial pivoting rather than the naive, no-pivoting version sometimes shown as a first introduction to the method.
Back-substitution, the second phase, works through the now-triangular system from the bottom equation upward. The last equation, involving only one variable, is solved directly by simple division. That known value then substitutes into the second-to-last equation, which now involves only one remaining unknown, solving it directly too. This process repeats, each step using the previously found values to reduce the next equation up to a single remaining unknown, until every variable has been found. This backward-substitution structure is exactly why the forward elimination phase's goal is specifically to produce an upper-triangular (not just simplified) system — that particular triangular shape is precisely what makes the subsequent back-substitution phase straightforward.
Gaussian elimination's genuine advantage over Cramer's rule for anything beyond small systems comes down to computational cost: Cramer's rule requires computing a number of determinants that grows very expensive very fast as the system size increases, while Gaussian elimination's computational cost grows much more moderately with system size, which is exactly why Gaussian elimination (or closely related row-reduction methods) is the practical, standard approach used in real-world numerical software for solving large linear systems, with Cramer's rule remaining more of a conceptually elegant, pedagogically useful method best suited to smaller systems worked by hand or used to illustrate the underlying determinant-based structure of a linear system's solution.



