Docsity

Lecture Notes: System of Linear Equation | MATH 166, Study notes of Mathematics

Toggle sidebar
bg1
Math 166 Lecture Notes 4.3
Section 4.3 Systems of Linear Equations: Unique Solutions
The Gauss-Jordan elimination method involves a sequence of operations on a system
of linear equations to obtain equivalent systems until a solution is found. In linear algebra,
Gauss–Jordan elimination is a version of Gaussian elimination that puts zeros both above
and below each pivot element, bringing a matrix to reduced row echelon form, whereas
Gaussian elimination takes it only as far as row echelon form.
Operations of Gauss-Jordan elimination:
1. Interchange any two equations.
2. Replace an equation by a nonzero constant multiple of itself.
3. Replace an equation by the sum of that equation and a constant multiple of any
other equation.
Example 1: Start with: Divide the 1st equation by 2:
2x + 4y +2z = – 4 x + 2y + z = – 2
3x + 8y – z = –18 3x + 8y – z = –18
2x + y +5z = 8 2x + y + 5z = 8
Multiply the 1st equation by -3, Multiply the 1st equation by -2,
add the result to the 2nd equation, add the result to the 3rd equation
to get a new 2nd equation. to get a new 3rd equation.
x + 2y + z = – 2 x + 2y + z = – 2
2y – 4z = – 12 2y – 4z = – 12
2x + y + 5z = 8 –3y + 3z = 12
Divide the 2nd equation by 2:
x + 2y + z = – 2
y – 2z = – 6
–3y + 3z = 12
Multiply the 2nd equation by -2, Multiply the 2nd equation by 3,
add the result to the 1st equation add the result to the 3rd equation
to get a new 1st equation. to get a new 3rd equation.
x + 5z = 10 x + 5z = 10
y – 2z = –6 y – 2z = –6
–3y + 3z = 12 – 3z = –6
Divide the 3rd equation by -3:
x + 5z = 10
y – 2z = –6
z = 2
Multiply the 3rd equation by -5, Multiply the 3rd equation by 2,
add the result to the 1st equation add the result to the 2nd equation
to get a new 1st equation. to get a new 2nd equation.
x = 0 x = 0
y – 2z = –6 y = –2
z = 2 z = 2
pf3
pf4

Partial preview of the text

Download Lecture Notes: System of Linear Equation | MATH 166 and more Study notes Mathematics in PDF only on Docsity!

Math 166 Lecture Notes 4.

Section 4.3 Systems of Linear Equations: Unique Solutions

The Gauss-Jordan elimination method involves a sequence of operations on a system of linear equations to obtain equivalent systems until a solution is found. In linear algebra, Gauss–Jordan elimination is a version of Gaussian elimination that puts zeros both above and below each pivot element, bringing a matrix to reduced row echelon form, whereas Gaussian elimination takes it only as far as row echelon form.

Operations of Gauss-Jordan elimination:

  1. Interchange any two equations.
  2. Replace an equation by a nonzero constant multiple of itself.
  3. Replace an equation by the sum of that equation and a constant multiple of any other equation.

Example 1: Start with: Divide the 1st^ equation by 2: 2 x + 4y +2z = – 4 x + 2y + z = – 2 3x + 8y – z = –18 3x + 8y – z = – 2 x + y +5z = 8 2 x + y + 5z = 8

Multiply the 1st^ equation by -3, Multiply the 1st^ equation by -2, add the result to the 2nd^ equation, add the result to the 3rd^ equation to get a new 2nd^ equation. to get a new 3rd^ equation. x + 2y + z = – 2 x + 2y + z = – 2 2y – 4z = – 12 2y – 4z = – 12 2 x + y + 5z = 8 –3y + 3z = 12

Divide the 2nd^ equation by 2: x + 2y + z = – 2 y – 2z = – 6 –3y + 3z = 12

Multiply the 2nd^ equation by -2, Multiply the 2nd^ equation by 3, add the result to the 1st^ equation add the result to the 3rd^ equation to get a new 1st^ equation. to get a new 3rd^ equation. x + 5z = 10 x + 5z = 10 y – 2z = –6 y – 2z = – –3y + 3z = 12 – 3z = –

Divide the 3rd^ equation by -3: x + 5z = 10 y – 2z = – z = 2

Multiply the 3rd^ equation by -5, Multiply the 3rd^ equation by 2, add the result to the 1st^ equation add the result to the 2nd^ equation to get a new 1st^ equation. to get a new 2nd^ equation. x = 0 x = 0 y – 2z = –6 y = – z = 2 z = 2

It turns out that these operations are a little easier to keep track of if, assuming we are careful to maintain the order of the coefficients and constant, we strip out the variables and work with the coefficients only in the form of an augmented matrix. When we do this, the sequence of steps looks like this:

What we are doing is systematically creating an identity matrix on the left side of the augmented matrix. When we are able to do this, the solutions are in the column at the far right.

Your calculator has a function that will do this for you.

First, you will have to enter the values into a matrix in your calculator.

Press the matrix button (2nd^ x−^1 ), cursor to the name you want to select (A will do).

Cursor over to EDIT, and enter. Cursor over to change the dimensions of the matrix (rows x columns), and enter. Enter your values into the matrix. It will fill them in across, row by row.

Then, you will have to enter the command to create the “row-reduced “ matrix. Getting back to the home screen with QUIT (2nd, mode) is a good idea here.

Press the matrix button (2nd^ x−^1 ), cursor over to MATH, and cursor down to B: rref,

and enter. You should see rref(. You need to enter the matrix you want it to operate on.

Press the matrix button (2nd^ x−^1 ), on NAMES cursor down to your matrix (A for us),

and enter. You should find the [A] has now popped in to your rref function call. Close the ) and enter.

Now, you can simply read off the solutions to your original system of equations.

The two examples shown above each had a unique solution. Not all systems of equations have unique solutions. We will have to learn to recognize when we have an “infinite solutions” case or a “no solution” case.

For now, though, using your calculator, solve a few systems that have unique solutions. Practice these on your own, and make sure you understand how to enter the matrices and solve the systems.

Example 3: 30x + 20y = 600 10x + 20y = 400 Answer: (x, y) = (10, 15)

Example 4: x + y + z = 1000 80 x + 60y + 50z = 62, x + y − 2z = 400 Answer: (x, y, z) = (240, 560 , 200)

Example 5: 30 x + 10y + 20z = 340 10 x + 10y + 20z = 180 10 x + 30y +20z = 220 Answer: (x, y, z) = ( 8, 2 , 4)

Example 6: 0.5x + 1.0y + 1.5z = 380 0.6x + 0.9y + 1.2z = 330 0.2x + 0.3y + 0.5z = 120 Answer: (x, y, z) = (20, 220 ,100)

Example 7:

6 w + 9 x + 7y + 5z = 250 6 w + 4 x + 7y + 3z = 195 4 w + 5 x + 3y + 2z = 145 4 w + 3 x + 8y + 2z = 125 Answer: (w, x, y, z) = (24, 5, –2 ,15)