Docsity

Lecture Slides - Gaussian Elimination Method | MATH 101, Study notes of Algebra

Partial preview of the text

Download Lecture Slides - Gaussian Elimination Method | MATH 101 and more Study notes Algebra in PDF only on Docsity!

Gaussian Elimination Method

MATH 101

College Algebra

S. Rook

2

Overview

• Section 7.1 in the textbook:

– Introduction to Matrices

– Elementary Row Operations

– Gaussian Elimination Method by Hand

– Gaussian Elimination Using a Calculator

– Review of Inconsistent & Dependent Systems

of Equations

Introduction to Matrices

4

Matrix Terminology

  • Matrix: a rectangular grouping

of numbers. Each number is an

element classified by the row and

column where it is located

  • Row: a horizontal line of elements

in a matrix

  • Column: a vertical line of elements in a matrix
  • Dimension: # of rows X (by) # of columns
  • Square Matrix: a matrix with the same number of rows

and columns

  • Main Diagonal: the diagonal line of elements that are

located in the same row and column (e.g. a 22 , a 55 )

m m m mn

n

n

n

a a a a

a a a a

a a a a

a a a a

L
M M M O M
L
L
L

1 2 3

31 32 33 3

21 22 23 2

11 12 13 1

5

Matrices & Systems of Equations

• One important aspect of matrices is they lend a

simple & compact process to solving systems of

equations

• Coefficient Matrix: a matrix comprised of the

numbers in front of each variable in the

comparable system of equations

  • Each row represents a different equation in the system and each column represents a different variable

• Constant Matrix: a matrix comprised of the

constants in the comparable system of

equations

  • Each row represents a different equation in the system

6

Matrices & Systems of Equations

(Continued)

  • Augmented Matrix: the matrix that results by

combining the coefficient and constant matrices

  • Ex: Given the following system of equations:

Coefficient

Matrix :

Constant Matrix :

  • Augmented Matrix :

y z

x y z

x y

−

−

0 2 1

4 3 2

2 1 0

− 1

3

7

− −

−

0 2 1 | 1

4 3 2 | 3

2 1 0 | 7

10

Elementary Row Operations

(Example)

Ex 2: Use matrix shorthand to describe the elementary row

operation that was used to transform the left matrix into the

right matrix:

a)

→

b)

→

c)

→

− −

− −

6 2 1 5

3 1 5 10

2 4 1 2

− −

− −

2 4 1 2

3 1 5 10

6 2 1 5

−

− − −

−

4 1 2 1

8 15 3 3

1 3 2 5

−

− −

−

4 1 2 1

0 9 19 43

1 3 2 5

−

−

−

5 5 1 1

0 4 812

2 4 3 0

−

−

−

5 5 1 1

0 1 2 3

2 4 3 0

Gaussian Elimination Method

by Hand

Gaussian Elimination Method

  • Gaussian Elimination: the process where we transform

an augmented matrix into row echelon form by using

elementary row operations

  • Row Echelon form:
    • The FIRST NONZERO

number in any row is a 1

  • Rows are arranged so that

the column containing the

first 1 is to the LEFT of the

column containing the first 1 in the NEXT row

  • Elements along the main diagonal are 1
  • All rows consisting ENITRELY OF ZEROS appear at the bottom of the matrix
  • More on this when we discuss inconsistent and dependent systems of equations for matrices

12

mn

n

n

n

a

a a

a a a

a a a a

34 3

23 24 2

12 13 14 1

L
M M M O M M
L
L
L

13

Solving a System of Equations

Using Gaussian Elimination

  • To solve a system of equations, using

Gaussian Elimination:

  • Translate the system of equations into an

augmented matrix A

  • Use elementary row operations to put A in

row echelon form :

  • We need a 1 in element a 11

14

Solving a System of Equations Using

Gaussian Elimination (Continued)

  • If a 11 does not have a 1 , but another row below a 11

does have a coefficient of 1 in the first column ,

exchange the two rows ( Property 1 )

  • Do this to avoid fractions, but sometimes it isn’t

always possible

  • Otherwise, we must divide the first row by a 11

to get a 1 ( Property 2 )

  • Multiply the first row by the appropriate constant

and add it to each row below a 11 to get a 0 in each

row below a 11 ( Property 3 )

15

Solving a System of Equations Using

Gaussian Elimination (Continued)

  • Repeat the process for a 22
    • Coefficients of 1 along the “diagonal”
  • Stop when amm is a 1
  • Will get a better idea after we do a few

examples

19

Gaussian Elimination Using a

Calculator

  • NOTE: The specific instructions are for a TI-

or TI-83 Plus graphing calculator

  • Please consult the manual for other models
  • First, translate the system of equations into an

augmented matrix

  • Write the augmented matrix on a piece of paper
  • Enter the Matrix Menu
  • For TI-83s, press the MATRIX button located next to the MATH button
  • Move the cursor over to the EDIT option, scroll

down to find an empty matrix and press ENTER

20

Gaussian Elimination Using a

Calculator (Continued)

  • Enter the dimensions of the augmented matrix in

row X column format

  • Rows are horizontal
  • Columns are vertical
  • DO NOT forget the constants as a column!
  • Enter the elements of the augmented matrix

into the calculator exactly as shown on your

paper by using ENTER & the arrow keys

  • Press 2 nd^ and then QUIT
    • The matrix is now stored in the calculator

21

Gaussian Elimination Using a

Calculator (Continued)

  • Press the MATRIX button and move the

cursor to the MATH option

  • Scroll down and select RREF
    • Stands for Reduced Row Echelon Form
      • In addition to all elements being 0 below the main

diagonal , all elements above the main diagonal

will be 0 as well

  • No backsolving is necessary when in RREF
  • RREF is option B: in the MATH options on the

TI-

22

Gaussian Elimination Using a

Calculator (Continued)

  • Press the MATRIX button, select the

matrix where you entered the data and

press ENTER

  • Press ENTER one more time and the

system of equations will be solved!

  • NOTE: We are only using the calculator

to reduce tedious computations. We

should know the steps the calculator uses

to compute the final answer

23

Gaussian Elimination Using a

Calculator (Example)

Ex 4: Solve the system of equations USING A

CALCULATOR :

a) b)

x y z

x y z

x y z

1 3 4

2 3

1 2 4

1 2 3 4

x x x

x x

x x x

x x x x

Review of Inconsistent &

Dependent Systems of Equations