# Cramer’s Rule

Matrices are one of the important topics in mathematics. Matrices and determinants are used to find the solutions to different systems of equations. Cramer’s Rule is used to find the unknowns in the given system of linear equations. Let’s how to apply Cramer’s Rule and its explanation. It requires some prior knowledge of matrices, determinants, and the system of linear equations.

### Cramer’s Rule

Cramer’s rule is a rule which is used to find the unknowns from the given set of linear equations. This rule is valid only if the given system of equations has a unique solution. It doesn’t work with the system of equations with infinitely many solutions or no solution. This rule is used to find solutions for any number of variables with the same number of equations. This rule uses determinants to find the solution of the given equations or the value of unknowns.

### Cramer’s Rule Formula

Cramer’s Rule Formula to solve system AX = B ( where, A= coefficient matrix, B =column matrix of constants (RHS), X = column matrix of unknowns) or to find the values of the variables involves the following steps,

**Steps of Cramer’s Rule Formula **

- Write the given system of equations in AX = B form.
- Find the value of determinant (
**D**) of matrix A. (**Note:**If the determinant is zero, then a system of equations does not have a unique solution, which is invalid in Cramer’s Rule). - Now, find the value D
_{x}which is the determinant of matrix A in which constants of the given linear equations replace the coefficient of x. - Now, find the value D
_{y}which is the determinant of matrix A in which the coefficient of y is replaced by constants of the given linear equations. - Now, find the value D
_{z}which is the determinant of matrix A in which the coefficient of z is replaced by constants of the given linear equations. (find this determinant only if 3 variables present in the given equation). - Similarly, find determinants for all the unknowns if more than three unknowns are present.
- Find the values of x = D
_{x}/D , y = D_{y}/D , z = D_{z}/D.

### Sample Questions

**Question 1: Solve: **

**Solution: **

The given equations in the form of AX = B

A = , B = , X =

Then, the determinant D of matrix A = = 12 × 20 – 3 × (-10) = 240 + 30 = 270

Now, find D

_{x}and D_{y }D

_{x }= = [46×20 – (-10)×(-11)] = 920 – 110 = 810D

_{y}= =[12×(-11) – 3×46] = -132 -138 = -270Now, find x = D

_{x}/D, y = D_{y}/Dx = 810/270 = 3, y = -270/270 = -1

x = 3, y = -1

**Question 2: Solve: **

**Solution: **

The given equations in the form of AX = B

A = , B = , X =

Then, the determinant D of matrix A = = 6.6×8.6 – 4.2×0.95 = 56.76 – 3.99 =52.77

Now, find D

_{x}and D_{y}D

_{x}= = 5.2 × 8.6 – 19.3 × 0.95 = 44.72 – 18.335 = 26.385D

_{y}= = 6.6×19.3 – 4.2×5.2 = 127.38 – 21.84 = 105.54Now, find x = D

_{x}/D , y = D_{y}/Dx = 26.385/52.77 = 0.5, y = 105.54/52.77 = 2

x = 0.5, y = 2

**Question 3: Solve: **

**Solution: **

Let x

^{2 }= a, y^{2}= bThen, the equation can be written as :

The given equations in the form of AX = B

A = , B = , X =

Then, the determinant D of matrix A = = 3×(-1) – 6×4 = -3-24 = -27

Now, find D

_{a}and D_{b}D

_{a}= = 91×(-1) – 38×4 = – 91 – 152 = -243D

_{b}= = 3×38 – 6×91 = 114 – 546 = -432Now, find a = D

_{a}/D, b = D_{b}/Da = -243/-27 = 9, b = -432/-27 = 16

a = 9, b = 16

Now x

^{2}= a = 9,x = √9 = 3y

^{2}= b = 16,y = √16 = 4

**Question 4: Solve: **

**Solution: **

The given equations in the form of AX = B

A = , B = , X =

Then, the determinant D of matrix A = = 3(20 – 26) – (-4)(80 – 12) + 8(-52-(-6)) = 3×(-6) + 4×68 – 46×8 = -18 + 272 – 368

= -114

Now, find D

_{x}, D_{y}and D_{z}D

_{x }= = 34(20 – 26) – (-4)(20 + 122) + 8(-13 – 61)= 34 × (-6) + 4 × 142 + 8 × (-74) = -204 + 568 – 592 = -228

D

_{y}= = 3(20 + 2 × 61) – 34(80 – 12) + 8(61 × 4 + 6)= 3 × 142 – 34 × 68 + 8 × 250 = 426 – 2312 + 2000 = 114

D

_{z}= = 3(61+13) – (-4)(61×4 + 6) + 34(-52+6)= 3 × 74 + 4 × 250 + 34 × (-46) = 222 + 1000 -1564 = -342

Now, find x = D

_{x}/D, y = D_{y}/D, z = D_{z}/Dx = -228/-114 = 2, y = 114/-114 = -1, z = -342/-114 = 3

x = 2, y = -1, z = 3

**Question 5: Solve: **

**Solution: **

The given equations in the form of AX = B

A = , B = , X =

Then, the determinant D of matrix A = = 3(10+54) + 8(-1-18) +10(6-20)

= 3 × 64 – 8 × 19 + 10 × (-14) = 192 -152 – 140 = -100

Now, find D

_{x}, D_{y }and D_{z }D

_{x}= = 8(10+54) + 8(-15-99) + 10(90 -110)= 8 × 64 + 8 × (-114) + 10 × (-20) = 512 – 912 – 200 = -600

D

_{y}= = 3(-15-99) – 8(-1-18) + 10(-11+30)= 3 × (-114) + 8 × 19 + 10 × 19 = -342 + 152 +190 = 0

D

_{z}= = 3(110-90) + 8(-11+30) + 8(6-20)= 3 × 20 + 8 × 19 + 8 × (-14) = 60 + 152 – 112 = 100

Now, find x = D

_{x}/D, y = D_{y}/D, z = D_{z}/Dx = -600/-100 = 6, y = 0/-100 = 0, z = 100/-100 = -1

x = 6, y = 0, z = -1

**Question 6: Solve: **

**Solution: **

The given equations in the form of AX = B

A =

, B = , X =Then, the determinant D of matrix A = = 2(6 – 63) – 4(3 + 36) – 6(-21 – 24) = 2 × (-57) – 4 × 39 – 6 × (-45) = -114 – 156 + 270 = 0

Since |D| = 0, which means the given system of equations does not have a unique solution, which is invalid in Cramer’s Rule as it is defined only for the system of equations that have a unique solution. This means that the given system of equations either has an infinite solution or no solution.

**Question 7: Solve: **

**Solution: **

The given equations in the form of AX = B

A = , B = , X =

Then, the determinant D of matrix A = = 1(6 – 24) – 1(-5 – 16) + 1(15 + 12)

= -18 + 21 + 27 = 30

Now, find D

_{x}, D_{y}and D_{z}D

_{x}= = 6(6-24) -1(-17-40) +1(51+30)= 6(-18) + 57 + 81 = -108 + 138 = 30

D

_{y}= = 1(-17 – 40) – 6(-5 – 16) + 1(25 – 34) = -57 + 126 – 9 = 60D

_{z}= = 1(-30 – 51) – 1(25 – 34) + 6(15 + 12) = -81 + 9 + 162 = 90Now, find x = D

_{x}/D, y = D_{y}/D, z = D_{z}/Dx = 30/30 = 1, y = 60/30 = 2, z = 90/30 = 3

x = 1, y = 2, z = 3