Worked example
Example: Three unknowns. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Number of unknowns | Three (x, y, z) |
| Equation 1: coefficient of x | 2.0000 - |
| Equation 1: coefficient of y | 1.0000 - |
| Equation 1: coefficient of z | -1.0000 - |
| Equation 1: coefficient of the right-hand side | 8.0000 - |
| Equation 2: coefficient of x | -3.0000 - |
| Equation 2: coefficient of y | -1.0000 - |
| Equation 2: coefficient of z | 2.0000 - |
| Equation 2: coefficient of the right-hand side | -11.000 - |
| Equation 3: coefficient of x | -2.0000 - |
| Equation 3: coefficient of y | 1.0000 - |
| Equation 3: coefficient of z | 2.0000 - |
| Equation 3: coefficient of the right-hand side | -3.0000 - |
Applying the formula below gives:
| Result | Value |
|---|---|
| x | 2.0000 |
| y | 3.0000 |
| z (0 for two unknowns) | -1.0000 |
| Determinant | -1.0000 |
Open this example in the calculator and change any input.
Formula
\(x_k = \frac{\det A_k}{\det A}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(n\) | Number of unknowns | - |
| \(a_{11}\) | Equation 1: coefficient of x | - |
| \(a_{12}\) | Equation 1: coefficient of y | - |
| \(a_{13}\) | Equation 1: coefficient of z | - |
| \(a_{14}\) | Equation 1: coefficient of the right-hand side | - |
| \(a_{21}\) | Equation 2: coefficient of x | - |
| \(a_{22}\) | Equation 2: coefficient of y | - |
| \(a_{23}\) | Equation 2: coefficient of z | - |
| \(a_{24}\) | Equation 2: coefficient of the right-hand side | - |
| \(a_{31}\) | Equation 3: coefficient of x | - |
| \(a_{32}\) | Equation 3: coefficient of y | - |
| \(a_{33}\) | Equation 3: coefficient of z | - |
| \(a_{34}\) | Equation 3: coefficient of the right-hand side | - |
| \(x\) | x | - |
| \(y\) | y | - |
| \(z\) | z (0 for two unknowns) | - |
| \(\det A\) | Determinant | - |
Method and standards
Cramer's rule.
Where it is used
- Small balances and circuit loops.
- Examinations.
Common mistakes
- Sign errors entering coefficients.
- Near-zero determinants.
Assumptions and limits
- Linear equations.
- The system is treated as singular when |det A| is below 10⁻¹² times the product of the row lengths of A (the largest the determinant can be), so the test does not depend on the scale of the coefficients.
References
- Cramer's rule
Questions and answers
2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3?
x = 2, y = 3, z = −1.
Zero determinant?
The equations are dependent or inconsistent.
Engineering use?
Mass and energy balances with a few unknowns.
Method and article reviewed by FireCAD engineering on 12 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.