Free Cramer's Rule Calculator
Enter coefficients to solve
Solving Linear Equations with Cramer's Rule
Systems of linear equations appear frequently in mathematics, engineering, and everyday problem solving. This online system of equations solver applies Cramer's rule—a technique that works for both 2×2 and 3×3 cases and relies purely on arithmetic (addition, subtraction, multiplication, and division). No substitution, elimination, or graphing is involved. Whether you need a Cramers rule 2x2 or a Cramers rule 3x3 solution, the calculator provides the answer quickly by using matrix determinants.
What Is a System of Equations?
In algebra, an equation relates an unknown quantity to known numbers. When there are multiple unknowns and multiple relationships among them, we write several equations that must be satisfied simultaneously. For instance, if you know that two different purchases lead to different totals, you can set up equations such as:
Here and represent unknown prices, and solving the system means finding the pair that makes both equalities true. The simplest systems have one equation per variable; the method of Cramer's rule handles exactly such situations when the equations are linear.
Using Matrices to Represent a System
A linear system can be compactly represented with matrices. The coefficients of the variables fill a matrix called the coefficient matrix. For a system with three equations and three unknowns, the coefficient matrix has three rows and three columns. Adding the constants from the right sides yields the augmented coefficient matrix, which is often displayed with a vertical separator.
Consider a travel-themed example where (bikes), (cars), and (planes) represent unknown counts:
\begin{cases} x + y + z = 26,\$$2pt] y - 2z = 6,\$$2pt] 2x - z = 12. \end{cases}The coefficient matrix is
and the augmented matrix is
Cramer's Rule Explained
Cramer's rule gives the solution of a square linear system as a ratio of determinants. For the system (where is the coefficient matrix and is the column of constants), the value of the variable is
where is the matrix obtained by replacing the -th column of with .
Determinant of a 2×2 Matrix
For a matrix ,
Determinant of a 3×3 Matrix
For ,
A handy way to remember this is Sarrus' rule: write the first two columns again to the right of the matrix, sum the three downward diagonals, and subtract the three upward diagonals.
Applying Cramer's Rule
To solve a system:
- Compute the main determinant .
- For each variable, replace the corresponding column of with the constants to form a new matrix, and compute its determinant.
- Divide the variable determinant by the main determinant.
If the main determinant equals zero, the system has either no solution or infinitely many solutions; this tool will report which situation holds, and in the 2×2 case with many solutions it can also show the form of the solution set.
Cramer's Rule for 2×2 Systems
A 2×2 system
has coefficient matrix . Then
Worked Example: 3×3 System
Now we apply Cramer's rule to the travel problem.
Step 1: Main determinant.
Step 2: Determinant for (replace column 1 with constants).
Step 3: Determinant for (replace column 2).
Step 4: Determinant for (replace column 3).
Step 5: Solution ratios.
Thus there are 8 bikes, 14 cars, and 4 planes. Substituting these back into the original equations confirms they satisfy all three equalities.
Using the Linear Equations Calculator
This tool is a convenient matrix determinant solver that handles both 2×2 and 3×3 systems. Simply enter the coefficients from your equations into the designated fields (the calculator accepts only linear equations—no quadratic terms or square roots of variables). It automatically computes the four determinants required by Cramer's rule and displays the solution. This makes it an ideal linear equations calculator for students, engineers, and anyone who needs to solve linear equations with matrices quickly.
FAQ
1. How do I use Cramer's rule to solve a 2×2 system?
Write the two equations in standard form, form a 2×2 coefficient matrix, compute its determinant (ad – bc). Then replace the first column with constants to get a new determinant Dx, and the second column to get Dy. The solutions are x = Dx / D and y = Dy / D.
2. What happens if the main determinant is zero?
If the determinant of the coefficient matrix is zero, the system either has no solution or infinitely many solutions. The calculator tells you which case it is; for 2×2 systems with infinite solutions it can also describe the solution set.
3. Can Cramer's rule be used for systems larger than 3×3?
In theory yes, but the number of terms in the determinant formula grows quickly (24 terms for 4×4, 120 for 5×5). This calculator is designed for 2×2 and 3×3 systems.
4. What kinds of equations does this solver accept?
It only accepts linear equations. Expressions like x² or √x are not allowed.
5. How is the determinant of a 3×3 matrix calculated?
The formula is aei + bfg + cdh – ceg – bdi – afh, where a through i are the entries in order. The calculator performs this computation automatically.
How to Use
- Select the number of equations - choose 2 for a 2×2 system or 3 for a 3×3 system.
- Enter the coefficients for each equation. The first columns are the variable coefficients (x, y, z), and the last column is the constant on the right-hand side.
- The determinant values and solution appear instantly. If the main determinant is zero, the system has either no solution or infinitely many solutions.