Pre-Calculus Lesson 7-3 Solving Systems of Equations Using Gaussian Elimination
What you’ll learn about Triangular Forms for Linear Systems Gaussian Elimination Elementary Row Operations and Row Echelon Form Reduced Row Echelon Form Applications … and why Many applications in business and science are modeled by systems of linear equations in three or more variables.
What is a Dimension? Flat: (x, y coordinate plane) 2 Dimensions x y x y z Solid: (x, y, z coordinate space) 3 Dimensions
Flat: (x, y coordinate plane) 2 Dimensions x y (3, 0) (0, 2)
1. Draw the 3 dimensional coordinate Plane below on your paper. x z Solid: (x, y, z coordinate space) 3 Dimensions y (0, 3, 0) (2, 0, 0) 2. Plot the following 3 points on your graph. (0, 0, -2) 3. Connect the dots 4. What geometric “thing” do three dots make? Plane: a simple 3-dimensional shape.
What shape does an Equation Make? Ax + By = D Ax + By + Cz = D 3x + 2y = 6 line (in “2” space) plane (in “3” space) 2x + 3y + 4z = 6
Categories of solutions in “3 space” Exactly one point, an “ordered triple” (x, y, z)
Along a Line: INFINITELY many solutions (x, y, z) triples Categories of solutions in “3 space”
2 parallel planes intersected by a 3 rd plane no common solution for all 3 planes
Categories of solutions in “3 space” 3 parallel planes No intersection No solution
Categories of solutions in “3 space” Another possibility: No planes are parallel NO POINT SATISFIES ALL 3 EQUATIONS No solution (too hard to draw)
Categories of solutions in “3 space” 1. One ordered triple (x, y, z) one solution 3. Infinitely many ordered triples 2. No solution
Categories of Solutions in “2-space” Ways 2 lines can be graphed: Cross one solution Parallel no solutions Same line infinite number of number of solutions solutions
Solving Systems of Linear Equations (30 April 1777 – 23 February 1855) Charles Fredrick Gauss Gaussian Elimination
Re-writing a system of equations as a “matrix”. 1x + 4y = 2 2x + 5y =
Where does a “matrix” come from? 2x – 3y 7x + 2y Expressions Not equations since no equal sign 2x – 3y = 8 7x + 2y = 2 Equations Are equations since there is an equal sign
Where does a “matrix” come from? 2x – 3y 7x + 2y 2 –3 7 2 Matrix of coefficients 2x – 3y = 8 7x + 2y = 2 2 –
Big Picture We will perform “row operations” to turn the left side matrix into the matrix on the right side x + 0y = -4 x + 0y = -4 0x + 1y = 3 3x + 5y = 3 -x + 2y = 10 x = -4 x = -4 y = 3 y = 3
We call this reduced row eschelon form ’s on the main diagonal 0’s above/below the main diagonal
How do I do that? Similar to elimination, we add multiples of one row to another row. BUT, unlike elimination, we only change one row at a time and we end up with the same number of rows that we started with.
Some important principles about systems of equations. Are the graphs of these two systems different from each other? Principle 1: you can exchange rows of a matrix.
Some important principles about systems of equations. Are the graphs of these two systems different from each other? Principle 2: you multiply (or divide) any row by a number and it won’t change the graph (or the matrix)
1 st step: we want a zero in the bottom left corner. But, you will see later that this will be easier if the top left number is a one or a negative one Swap rows
st step: we still want a zero in the bottom left corner. Forget about all the numbers but the 1 st column (for a minute).
st step: we still want a zero in the bottom left corner. Forget about all the numbers but the 1 st column (for a minute). What multiple of the 1 st row should we add or subtract from row 2 to turn the 3 into a zero? # in 2 nd row # in 1 st row This gives us the pattern of what to do to each other number in row 2.
st step: we still want a zero in the bottom left corner. New Row 2 + 3( ) +3(-1) 0 +3(2) 11 +3(10) 33
st step: we still want a zero in the bottom left corner. New Row 2 + 3( ) +3(-1) 0 +3(2) 11 +3(10)
2 nd step: we want a one in 2 nd position of the 2 nd row. New Row
New Row nd step: we want a one in 2 nd position of the 2 nd row.
rd step: we want a zero in 2 nd position of the 1 st row. Forget about all the numbers but the 2 nd column (for a minute).
rd step: we want a zero in 2 nd position of the 1 st row. # in 1 st row # in 2 nd row Forget about all the numbers but the 2 nd column (for a minute). What multiple of the 2 nd row should we add or subtract from the 1 st row to turn the 2 into a zero? This gives us the pattern of what to do to each other number in row 1.
New Row 1 -2(0 1 3) -2(0) -2(1) 0 -2(3) 4 3 rd step: we want a zero in 2 nd position of the 1 st row.
New Row 1 -2(0 1 3) -2(0) -2(1) 0 -2(3) rd step: we want a zero in 2 nd position of the 1 st row.
4 th step: we want a one in the top left corner
New Row th step: we want a one in the top left corner
Look at the circular pattern Don’t freak out: this goes faster than you think
Look at the circular pattern Don’t freak out: this goes faster than you think
Look at the circular pattern Don’t freak out: this goes faster than you think
Look at the circular pattern Don’t freak out: this goes faster than you think
Look at the circular pattern Don’t freak out: this goes faster than you think
Look at the circular pattern Don’t freak out: this goes faster than you think
Look at the circular pattern Don’t freak out: this goes faster than you think
Look at the circular pattern Don’t freak out: this goes faster than you think
Systems of linear equations in Three Variables 2x + y – z = 5 3x – 2y + z = 16 4x + 3y – 5z = 3
Row Echelon Form of a Matrix A matrix is in row echelon form if the following conditions are satisfied. 1. Rows consisting entirely of 0’s (if there are any) occur at the bottom of the matrix. 2. The first entry in any row with nonzero entries is The column subscript of the leading 1 entries increases as the row subscript increases. (this means the ones lie on a diagonal)
Row Echelon Form of a Matrix z = 5 z = 5 y + 7z = 2 (1) plug z = 5 into 2 nd equation and solve for ‘y’ x – 3y + 2z = -3 x – 3y + 2z = -3 (2) plug z = 5 and the value of ‘y’ found in step 1 into 1 st equation and solve for ‘x’ equation and solve for ‘x’
Reduced ow Echelon Form of a Matrix We are going to perform “row operations” on a matrix to change it into this form. on a matrix to change it into this form. z = -5 z = -5 y = 4 x = -2 x = -2
Finding the Row Echelon Form x – y + 2z = -3 x – y + 2z = -3 2x + y – z = 0 -x + 2y – 3z = 7 -x + 2y – 3z = 7 1.Convert to “Augmented” matrix form. matrix form The right most column are the numbers on the right side of the equal sign. The dotted line is not usually drawn in textbooks, usually drawn in textbooks, but I like to draw it, to show but I like to draw it, to show where the equal sign is. where the equal sign is.
Row Operations -- the “big picture” We are going to rewrite the matrix numerous times. Each rewrite will change one row only. Our objective is to eliminate the will change one row only. Our objective is to eliminate the x-variables below the 1 st row like this. x-variables below the 1 st row like this Next: eliminate the y-variables below the 2 nd row like this. Next: eliminate the Z-variables above the 3 rd row like this Next: eliminate the y-variables above the 2 nd row like this.
Row Operations Then: turn the major diagonal into 1’s This final matrix represents the following system of equations: x + 0y + 0z = -3 1x + 0y + 0z = -3 0x + 1y + 0z = 2 0x + 1y + 0z = 2 0x + 0y + 1z = -3 0x + 0y + 1z = -3 x = -3 y = 2 y = 2 z = -3 z = -3 The solution to the system of equations:
Solve the following system using Row Operations x - y + 2z = -3 x - y + 2z = -3 2x + y - z = 0 2x + y - z = 0 -x + 2y - 3z = 7 -x + 2y - 3z = 7 Convert to a matrix
Row Operations The new Row #2 = (-2)Row #1 + Old Row # A small explanation below the new below the new matrix will help matrix will help to avoid confusion. to avoid confusion (-2)(1 -1 2) (-3)(-2) (1) Eliminate the x-variable on the second row.
Row Operations (2) Eliminate the x-variable in the 3 rd row The new Row #3 = Row #1 + Old Row #
Row Operations (3) Eliminate the y-variable on the third row. Can only use 2 nd row (or you will introduce a number other than “0” in the x-position of the 3 rd row)!!! other than “0” in the x-position of the 3 rd row)!!! For example: New row 3 = row 1 + old row Can only use rows 2 and 3 at this point!!!
Row Operations (3) Eliminate the y-variable on the third row. Yuck: fractions!! (-1/3)(0 3 -5) (6)(-1/3) + Wouldn’t it be nice if the 2 nd and 3 rd rows where switched? Then we could just multiply row two by -3 and then add to row 3. Let’s do it!!! Short way of saying this saying this
Row Operations (3) Eliminate the y-variable on the 3 rd row (-3)(0 1 -1) (4)(-3) (-3)(0 1 -1) (4)(-3)
Row Operations (4) Eliminate the z-variable on the 2 nd row (-0.5)(0 0 -2) (-6)(-0.5) (-0.5)(0 0 -2) (-6)(-0.5) Can only use 3 rd row (or you will introduce a number other than “0” in the x-position of the 2 nd row)!!! other than “0” in the x-position of the 2 nd row)!!!
Row Operations (5) Eliminate the z-variable on the 1st row
Row Operations (6) Eliminate the y-variable on the 1st row Can only use 2 nd row (or you will introduce a number other than “0” in the z-position of the 1 st row)!!! other than “0” in the z-position of the 1 st row)!!!
Row Operations (7) Get all “1’s” on the main diagonal x + 0y + 0z = -2 1x + 0y + 0z = -2 0x + 1y + 0z = 7 0x + 1y + 0z = 7 0x + 0y + 1z = -3 0x + 0y + 1z = -3 x = -2 y = 7 y = 7 z = 3 z = 3 The solution to the system of equations:
Classes of Solutions for 3 Equations with 3 unknowns Gaussian Elimination results in: - a unique solution (the planes intersect at a point) -something silly like: 3 = 3 (Infinitely many solutions) -Again something silly like: 5 = -9 (there are no solutions)
Your turn: x - y + z = 0 2x – 3z = -1 -x - y + 2z = Solve using Gaussian Elimination
HOMEWORK 7-3