Cramer's Rule Solver

Type a 2×2 or 3×3 system and get D, Dx, Dy and Dz expanded step by step, exact fraction answers, a graph of the two lines and a substitution check.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Choose the size

    Press 2 × 2 or 3 × 3 above the equation grid.

  2. 2
    Enter the system

    Type each coefficient and constant; fractions such as 3/4 are allowed.

  3. 3
    Read the results

    The figures show D, each Dx, Dy, Dz and the solution as exact fractions.

  4. 4
    Follow the working

    The worked solution expands every determinant and ends with a substitution check.

  5. 5
    Look at the graph

    For 2 × 2 systems check the two lines and the marked intersection.

  6. 6
    Practise and save

    Save systems by name, print the solution, or switch to Practice for generated questions.

Sobre aquesta eina

Cramer's rule solves a square system of linear equations with determinants alone: each unknown is a ratio of two determinants. It is a favourite exam method for two and three unknowns because the working is mechanical and easy to mark, but it is also easy to slip on a sign during the cofactor expansion. This solver lays out every determinant the way a teacher would, keeps all numbers as exact fractions, explains what happens when the main determinant is zero, and checks the answer by substituting it back into each equation. For two equations it also draws both lines and marks where they cross, and a practice tab generates fresh systems with whole-number solutions.

The rule

For a system Ax = b with a square coefficient matrix A, let D = det(A). Replace the first column of A with the constants b and take the determinant to get Dx; replace the second column for Dy, and so on. When D is not zero, the unique solution is x = Dx ÷ D, y = Dy ÷ D and z = Dz ÷ D. The rule follows from the adjugate formula for the inverse matrix, and it works for any size, though for large systems elimination is far faster.

Determinants written out

For a 2×2 matrix the determinant is ad − bc. For a 3×3 matrix the tool expands along the first row: the first entry times its 2×2 minor, minus the second entry times its minor, plus the third entry times its minor. Each line of the worked solution shows the minors in bars, then their values, then the total, so a sign error stands out. Inputs can be whole numbers, decimals or fractions such as 3/4; decimals are turned into exact fractions so the answer stays exact.

When D is zero

If D = 0 the lines or planes do not meet in a single point, and Cramer's rule cannot divide. For two equations the system is either inconsistent (parallel lines, no solution) or dependent (the same line, infinitely many solutions). With three equations all the Dx, Dy, Dz values can be zero and the system can still have no solution, so the tool decides by comparing the rank of A with the rank of the augmented matrix [A | b]. Equal ranks below the number of unknowns mean infinitely many solutions; unequal ranks mean none.

Worked example

Solve 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3. Expanding along the first row, D = 2(−1·2 − 2·1) − 1(−3·2 − 2·(−2)) + (−1)(−3·1 − (−1)(−2)) = 2(−4) − 1(−2) − 1(−5) = −1. Replacing columns gives Dx = −2, Dy = −3 and Dz = 1. So x = −2 ÷ −1 = 2, y = 3 and z = −1. Substituting: 2·2 + 3 − (−1) = 8, which matches the first constant, and the other two equations check as well.

Graph for two unknowns

With a 2×2 system each equation is a straight line. The graph tab draws both on axes scaled to include the solution and marks the intersection point with its exact coordinates. Parallel lines show at once why D = 0 gives no solution.

Limits

The solver handles 2×2 and 3×3 systems, which covers school and first-year courses. Very large coefficients or long decimals can produce unwieldy fractions. For bigger systems or numerical work use Gaussian elimination or a matrix calculator; Cramer's rule needs far more arithmetic as the size grows and is not the efficient method there.

Exemple resolt

2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3 → D = −1, Dx = −2, Dy = −3, Dz = 1 → (2, 3, −1).

En resum

Preguntes freqüents

When can I use Cramer's rule?

When the number of equations equals the number of unknowns and the coefficient determinant D is not zero.

Can I type fractions and decimals?

Yes. Fractions like −5/2 and decimals like 0.75 are converted to exact fractions, and the answers are given as fractions with a decimal approximation.

What does D = 0 mean?

There is no single solution. The tool compares ranks to tell you whether there are no solutions or infinitely many.

Why expand along the first row?

Any row or column gives the same value. The first row is the convention in most textbooks, so the working matches what students are taught.

Is Cramer's rule faster than elimination?

For two unknowns it is about the same. For three it needs four 3×3 determinants, and beyond that elimination is much quicker.

How does the practice mode create problems?

It picks random whole-number solutions and coefficients, rejects systems with D = 0 and asks for one unknown. Show working displays the full Cramer solution.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes