Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Cramers Rule Method for Solving Linear Equations

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

Cramers Rule formula steps and solved examples for 2x2 and 3x3 systems

The concept of Cramer's Rule plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. It helps students solve systems of linear equations, especially 2×2 and 3×3 systems, quickly and efficiently using determinants and matrices. Cramer's Rule is an important topic for competitive exams like JEE and a core part of linear algebra.


What Is Cramer's Rule?

Cramer's Rule is a mathematical technique used to solve a system of linear equations using determinants. It applies when the number of equations equals the number of unknowns, and the system has a unique solution. You’ll find this concept applied in areas such as determinants, matrix algebra, and systems of linear equations. In Cramer's Rule, you set up the coefficient matrix, replace columns with the constants from the right side of your equations, calculate determinants, and then use those values to find each variable.


Key Formula for Cramer's Rule

Here’s the standard formula to solve a system of n linear equations with n variables using Cramer's Rule:
For AX = B, where A is a square matrix:
\( x_i = \frac{D_{x_i}}{D} \) for i = 1, 2, ..., n

  • D = Determinant of the coefficient matrix A
  • Dxi = Determinant of A with the i-th column replaced by the constants (matrix B)
The rule can be applied only when D ≠ 0. If D = 0, use other methods.
For 2×2: If the system is
\( a_1x + b_1y = c_1 \)
\( a_2x + b_2y = c_2 \)
then, \( D = \begin{vmatrix} a_1 & b_1 \\ a_2 & b_2 \end{vmatrix} \)
\( D_x = \begin{vmatrix} c_1 & b_1 \\ c_2 & b_2 \end{vmatrix} \)
\( D_y = \begin{vmatrix} a_1 & c_1 \\ a_2 & c_2 \end{vmatrix} \)
\( x = \frac{D_x}{D},\ y = \frac{D_y}{D} \)


Step-by-Step Illustration

Let's solve a 2×2 linear equation system using Cramer's Rule:

Example:
\( 2x - y = 5 \)
\( x + y = 4 \)

1. Write in matrix form: AX = B

2. Set up coefficient matrix A:

A = \(\begin{bmatrix} 2 & -1 \\ 1 & 1 \end{bmatrix}\)

3. Calculate D:
D = 2×1 - (−1)×1 = 2 + 1 = 3

4. Find Dx by replacing first column with constants:
Dx = \(\begin{vmatrix} 5 & -1 \\ 4 & 1 \end{vmatrix}\) = 5×1 - (−1)×4 = 5 + 4 = 9

5. Find Dy by replacing second column with constants:
Dy = \(\begin{vmatrix} 2 & 5 \\ 1 & 4 \end{vmatrix}\) = 2×4 - 1×5 = 8 - 5 = 3

6. Solve for x and y:
\( x = D_x/D = 9/3 = 3 \)
\( y = D_y/D = 3/3 = 1 \)

In a similar way, you can solve 3×3 systems using determinants and replacing columns with the constant column for each unknown.


Special Cases: Infinite, No, and Unique Solutions

Condition What Happens? Solution
D ≠ 0 System is consistent and independent Unique solution exists for all variables
D = 0,
Dx = Dy = ... = 0
System is dependent Infinite number of solutions
D = 0,
At least one (Dx, Dy, ...) ≠ 0
System is inconsistent No solution exists

Cross-Disciplinary Usage

Cramer's Rule is not only useful in Maths but also plays an important role in Physics, Computer Science, and daily logical reasoning. Students preparing for JEE or NEET will see its relevance in circuit analysis, force balancing, programming, and more. Understanding it can also make matrix and determinant problems much easier.


Speed Trick or Vedic Shortcut

When checking if you can use Cramer's Rule, quickly look at the determinant of the coefficient matrix. If it’s zero, don’t bother with the rule—choose another method like the Gauss elimination method or matrix inversion.


Quick Check: Calculate D first. If D ≠ 0, use Cramer's Rule without hesitation.


Vedantu covers more time-saving tips in live classes to boost your computation speed for competitive exams.


Try These Yourself

  • Solve using Cramer's Rule: \( x + y = 7 \), \( 2x - y = 3 \)
  • For the system \( 3x + 2y - z = 1, x - y + z = 4, 2x + y + z = 6 \), determine Dx, Dy, Dz and find x, y, z.
  • Check what happens if the determinant D is zero for the system \( x - y = 2, 2x - 2y = 4 \).

Frequent Errors and Misunderstandings

  • Forgetting that D ≠ 0 is needed for a unique solution.
  • Swapping the wrong columns when constructing Dx, Dy, or Dz.
  • Confusing determinants with matrix multiplication.
  • Applying Cramer's Rule to non-square systems (more variables than equations or vice versa).

Relation to Other Concepts

The idea of Cramer's Rule connects closely with topics such as determinants and matrices and matrix inversion. Mastering this helps with understanding solution sets of linear equation systems, consistency conditions, and helps prepare for higher-level matrix algebra problems.


Classroom Tip

A quick way to remember Cramer's Rule is to recall: "Replace the column of the unknown, find the determinant, divide by the main determinant." Drawing each step helps reduce mistakes. Vedantu’s teachers often use visual matrix grids and color-coding in live lessons to cement this understanding.


We explored Cramer's Rule—from definition, formula, solved examples, special cases, and its connections to other maths topics. Practice more with determinant and matrix questions on Vedantu, and become confident at solving any linear system using this method.


Determinant of a 3x3 Matrix
Matrices
Inverse Matrix
Properties of Determinants

FAQs on Cramers Rule Method for Solving Linear Equations

1. What is Cramer's Rule in linear algebra?

Cramer's Rule is a method for solving a system of linear equations using determinants of matrices. It applies to a system of n linear equations in n variables where the coefficient matrix has a non-zero determinant.

  • If the coefficient matrix is A and det(A) ≠ 0, then each variable is found using a ratio of determinants.
  • For a variable xi: xi = det(Ai) / det(A).
  • Ai is formed by replacing the i-th column of A with the constants column.
Cramer's Rule is commonly used in matrix algebra and determinant-based solution methods.

2. What is the formula for Cramer's Rule?

The formula for Cramer's Rule is xi = det(Ai) / det(A), provided that det(A) ≠ 0.

  • A = coefficient matrix
  • det(A) = determinant of the coefficient matrix
  • Ai = matrix formed by replacing the i-th column of A with the constants column
  • xi = value of the i-th variable
This formula is valid only when the determinant of the coefficient matrix is non-zero.

3. How do you solve a 2×2 system using Cramer's Rule?

To solve a 2×2 system using Cramer's Rule, compute determinants and divide accordingly. For the system:

  • a1x + b1y = c1
  • a2x + b2y = c2
Step 1: Compute the main determinant: D = a1b2 − a2b1
Step 2: Compute determinants for x and y:
  • Dx = c1b2 − c2b1
  • Dy = a1c2 − a2c1
Step 3: Find the solution:
  • x = Dx / D
  • y = Dy / D
This method works only if D ≠ 0.

4. When can you use Cramer's Rule?

You can use Cramer's Rule only when the system has the same number of equations as variables and det(A) ≠ 0.

  • The system must be a square system (n equations, n variables).
  • The determinant of the coefficient matrix must not be zero.
  • If det(A) = 0, the system has either no solution or infinitely many solutions.
Therefore, Cramer's Rule applies only to systems with a unique solution.

5. Why does Cramer's Rule not work when the determinant is zero?

Cramer's Rule does not work when the determinant is zero because division by det(A) = 0 is undefined.

  • The formula requires xi = det(Ai) / det(A).
  • If det(A) = 0, you would divide by zero.
  • This indicates the coefficient matrix is singular.
When det(A) = 0, the system has either no solution or infinitely many solutions, so Cramer's Rule cannot determine a unique answer.

6. How do you apply Cramer's Rule to a 3×3 system?

To apply Cramer's Rule to a 3×3 system, compute four determinants: one main determinant and three variable determinants. Steps:

  • Step 1: Compute det(A) of the 3×3 coefficient matrix.
  • Step 2: Form A1, A2, and A3 by replacing each column with the constants column.
  • Step 3: Compute det(A1), det(A2), det(A3).
  • Step 4: Find variables using:
    x = det(A1) / det(A)
    y = det(A2) / det(A)
    z = det(A3) / det(A)
This method requires careful determinant calculation using expansion or shortcuts.

7. What is an example of Cramer's Rule?

An example of Cramer's Rule is solving the system x + y = 5 and 2x − y = 1. Step 1: Compute the main determinant: D = (1)(−1) − (2)(1) = −1 − 2 = −3
Step 2: Compute determinants:

  • Dx = (5)(−1) − (1)(1) = −5 − 1 = −6
  • Dy = (1)(1) − (2)(5) = 1 − 10 = −9
Step 3: Divide:
  • x = −6 / −3 = 2
  • y = −9 / −3 = 3
So the solution is x = 2, y = 3.

8. What are the advantages and disadvantages of Cramer's Rule?

The main advantage of Cramer's Rule is its clear determinant-based formula, while its disadvantage is computational inefficiency for large systems.

  • Advantages:
    • Simple formula for small systems (2×2 or 3×3).
    • Useful for theoretical proofs in linear algebra.
  • Disadvantages:
    • Requires multiple determinant calculations.
    • Inefficient for large matrices.
    • Works only when det(A) ≠ 0.
For larger systems, Gaussian elimination is usually preferred.

9. What is the difference between Cramer's Rule and Gaussian elimination?

The difference between Cramer's Rule and Gaussian elimination is that Cramer's Rule uses determinants, while Gaussian elimination uses row operations.

  • Cramer's Rule applies only when det(A) ≠ 0.
  • Gaussian elimination works for all systems, including those with no or infinite solutions.
  • Cramer's Rule is simpler for small systems.
  • Gaussian elimination is more efficient for large systems.
Both methods solve systems of linear equations but use different approaches in linear algebra.

10. Is Cramer's Rule used in real life?

Yes, Cramer's Rule is used in real life in areas that involve solving small systems of linear equations.

  • Electrical circuit analysis (Kirchhoff’s laws).
  • Economics models with supply and demand equations.
  • Engineering problems involving forces and equilibrium.
Although practical computations often use software or matrix methods, Cramer's Rule provides a clear theoretical foundation in linear algebra applications.