<< Chapter < Page Chapter >> Page >

Cramer’s rule

Introduction

Cramer’s Rule is a technique that can be used to solve simultaneous linear equations. It is most often utilized when one is required to solve the system by hand rather than by computer. This is due to the fact that there are quicker, more efficient procedures such as Gauss elimination that can be implemented on the computer. The approach is based upon the use of determinants.

Mathematical preliminaries

Before we describe the procedure known as Cramer’s Rule, we begin with some mathematical preliminaries. Let us consider a pair of two simultaneous linear equations in two unknowns ( x 1 and x 2 ). We can write these equations as

a 11 x 1 + a 12 x 2 = b 1 size 12{a rSub { size 8{"11"} } x rSub { size 8{1} } +a rSub { size 8{"12"} } x rSub { size 8{2} } =b rSub { size 8{1} } } {}

and

a 21 x 1 + a 22 x x = b 2 size 12{a rSub { size 8{"21"} } x rSub { size 8{1} } +a rSub { size 8{"22"} } x rSub { size 8{x} } =b rSub { size 8{2} } } {}

Here the coefficients a 11 , a 12 , a 21 , and a 22 are known constants.

Now, let us solve this system of equations via Gauss elimination. We should recall that the basic idea behind Gauss elimination is to reduce the original set of equations into an equivalent form which is triangular and to use back-substitution once the first unknown is discovered.

We begin by multiplying each side of equation (1) by the value (- a 21 / a 11 ). This yields an equivalent equation of the form

a 21 x 1 a 21 a 12 a 11 x 2 = a 21 a 11 b 1 size 12{ - a rSub { size 8{"21"} } x rSub { size 8{1} } - { {a rSub { size 8{"21"} } a rSub { size 8{"12"} } } over {a rSub { size 8{"11"} } } } x rSub { size 8{2} } = - { {a rSub { size 8{"21"} } } over {a rSub { size 8{"11"} } } } b rSub { size 8{1} } } {}

Next, we add equation (3) to equation (2). In doing so, we note that the term involving x 1 is removed. The result of the addition of the two equations is

a 22 a 21 a 12 a 11 x 2 = b 2 a 21 a 11 b 1 size 12{ left (a rSub { size 8{"22"} } - { {a rSub { size 8{"21"} } a rSub { size 8{"12"} } } over {a rSub { size 8{"11"} } } } right )`x rSub { size 8{2} } =b rSub { size 8{2} } - left ( { {a rSub { size 8{"21"} } } over {a rSub { size 8{"11"} } } } right )`b rSub { size 8{1} } } {}

The value for the unknown x 2 can be easily found using equation (4). The solution is

x 2 = a 11 b 2 a 21 b 1 a 11 a 22 a 12 a 21 size 12{x rSub { size 8{2} } = { {a rSub { size 8{"11"} } `b rSub { size 8{2} } - a rSub { size 8{"21"} } `b rSub { size 8{1} } } over {a rSub { size 8{"11"} } a rSub { size 8{"22"} } - a rSub { size 8{"12"} } a rSub { size 8{"21"} } } } } {}

This result can be substituted back into equation (1) to produce an equation that can be solved for the unknown x 1 .

a 11 x 1 + a 12 a 11 b 2 a 21 b 1 a 11 a 22 a 12 a 21 = b 1 size 12{a rSub { size 8{"11"} } `x rSub { size 8{1} } +a rSub { size 8{"12"} } left ( { {a rSub { size 8{"11"} } `b rSub { size 8{2} } - a rSub { size 8{"21"} } `b rSub { size 8{1} } } over {a rSub { size 8{"11"} } `a rSub { size 8{"22"} } - a rSub { size 8{"12"} } `a rSub { size 8{"21"} } } } right )`=b rSub { size 8{1} } } {}

The solution for the unknown, x 1 , proceeds as follows. The equation ( ) tells us

a 11 x 1 = b 1 a 12 a 11 b 2 a 21 b 1 a 11 a 22 a 12 a 21 size 12{a rSub { size 8{"11"} } x rSub { size 8{1} } =b rSub { size 8{1} } - a rSub { size 8{"12"} } left ( { {a rSub { size 8{"11"} } `b rSub { size 8{2} } - a rSub { size 8{"21"} } `b rSub { size 8{1} } } over {a rSub { size 8{"11"} } `a rSub { size 8{"22"} } - a rSub { size 8{"12"} } `a rSub { size 8{"21"} } } } right )} {}

which can be expressed as

a 11 x 1 = a 11 a 22 b 1 a 12 a 21 b 1 a 11 a 12 b 2 + a 12 a 21 b 1 a 11 a 22 a 12 a 21 size 12{a rSub { size 8{"11"} } `x rSub { size 8{1} } = { {a rSub { size 8{"11"} } `a rSub { size 8{"22"} } `b rSub { size 8{1} } - a rSub { size 8{"12"} } `a rSub { size 8{"21"} } `b rSub { size 8{1} } - a rSub { size 8{"11"} } `a rSub { size 8{"12"} } `b rSub { size 8{2} } +a rSub { size 8{"12"} } `a rSub { size 8{"21"} } `b rSub { size 8{1} } } over {a rSub { size 8{"11"} } `a rSub { size 8{"22"} } - a rSub { size 8{"12"} } `a rSub { size 8{"21"} } } } } {}

This can be reduced to the following equation

a 11 x 1 = a 11 a 22 b 1 a 11 a 12 b 2 a 11 a 22 a 12 a 21 size 12{a rSub { size 8{"11"} } `x rSub { size 8{1} } = { {a rSub { size 8{"11"} } `a rSub { size 8{"22"} } `b rSub { size 8{1} } - a rSub { size 8{"11"} } `a rSub { size 8{"12"} } `b rSub { size 8{2} } } over {a rSub { size 8{"11"} } `a rSub { size 8{"22"} } - a rSub { size 8{"12"} } `a rSub { size 8{"21"} } } } } {}

Dividing through by the constant a 11 yields an expression for x 1 .

x 1 = a 22 b 1 a 12 b 2 a 11 a 22 a 12 a 21 size 12{x rSub { size 8{1} } = { {a rSub { size 8{"22"} } `b rSub { size 8{1} } - a rSub { size 8{"12"} } `b rSub { size 8{2} } } over {a rSub { size 8{"11"} } `a rSub { size 8{"22"} } - a rSub { size 8{"12"} } `a rSub { size 8{"21"} } } } } {}

Equations (5) and (10) provide us the solution for the variables in terms of the set of constants associated with the original equations. Examination of equations (5) and (10) reveals that the solution for each variable includes the common term

Δ = a 11 a 22 a 12 a 21 size 12{Δ=a rSub { size 8{"11"} } `a rSub { size 8{"22"} } - a rSub { size 8{"12"} } `a rSub { size 8{"21"} } } {}

Suppose we write our original equations in matrix-vector form as follows

A x 1 x 2 = b 1 b 2 size 12{A` left [ matrix { x rSub { size 8{1} } {} ##x rSub { size 8{2} } } right ]= left [ matrix { b rSub { size 8{1} } {} ##b rSub { size 8{2} } } right ]} {}

where we define the coefficient matrix as

A = a 1,1 a 1,2 a 2,1 a 2,2 size 12{A= left [ matrix { a rSub { size 8{1,1} } {} # a rSub { size 8{1,2} } {} ##a rSub { size 8{2,1} } {} # a rSub { size 8{2,2} } {} } right ]} {}

Clearly, we see that the term Δ is equal to the determinant of the coefficient matrix

Δ = det ( A ) = A size 12{Δ="det"` \( A \) = lline A rline } {}

Next let us consider the numerator for the solution of the unknown x 1 as expressed in equation (10). We recognize that it, too, can be expressed by means of a determinant as is shown below

x 1 = a 2,2 b 1 a 1,2 b 2 = det b 1 a 1,2 b 2 a 2,2 size 12{x rSub { size 8{1} } =a rSub { size 8{2,2} } `b rSub { size 8{1} } - a rSub { size 8{1,2} } `b rSub { size 8{2} } ="det" left [ matrix { b rSub { size 8{1} } {} # a rSub { size 8{1,2} } {} ##b rSub { size 8{2} } {} # a rSub { size 8{2,2} } {} } right ]} {}

We note that the matrix in the equation can be obtained by merely replacing the first column of the original coefficient matrix with the vector

B = b 1 b 2 size 12{B= left [ matrix { b rSub { size 8{1} } {} ##b rSub { size 8{2} } } right ]} {}

So the solution for the unknown x 1 can be written as a ratio of determinants

x 1 = det b 1 a 1,2 b 2 a 2,2 Δ size 12{x rSub { size 8{1} } = { {"det" left [ matrix { b rSub { size 8{1} } {} # a rSub { size 8{1,2} } {} ##b rSub { size 8{2} } {} # a rSub { size 8{2,2} } {} } right ]} over {Δ} } } {}

Before we solve for the variable x2, we replace the second column of the original coefficient matrix with the vector B . With this replacement accomplished, we may write the solution for the unknown x 2 as a ratio of determinants

Questions & Answers

A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
Aislinn Reply
cm
tijani
what is titration
John Reply
what is physics
Siyaka Reply
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Jude Reply
Can you compute that for me. Ty
Jude
what is the dimension formula of energy?
David Reply
what is viscosity?
David
what is inorganic
emma Reply
what is chemistry
Youesf Reply
what is inorganic
emma
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
Krampah Reply
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
Sahid Reply
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
Samuel Reply
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Joseph Reply
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
Ryan
what's motion
Maurice Reply
what are the types of wave
Maurice
answer
Magreth
progressive wave
Magreth
hello friend how are you
Muhammad Reply
fine, how about you?
Mohammed
hi
Mujahid
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?
yasuo Reply
Who can show me the full solution in this problem?
Reofrir Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Math 1508 (laboratory) engineering applications of precalculus. OpenStax CNX. Aug 24, 2011 Download for free at http://cnx.org/content/col11337/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Math 1508 (laboratory) engineering applications of precalculus' conversation and receive update notifications?

Ask