• No results found

Gauss Jordan Method

N/A
N/A
Protected

Academic year: 2021

Share "Gauss Jordan Method"

Copied!
19
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

Linear

Linear Sy

Sy

stems

stems

y

y

Solve Ax=b, where A is an

Solve Ax=b, where A is an

nn

v

v

nn mm

atrix and

atrix and

b is an

b is an

nn

v

v

11

colu

colu

mm

n vector

n vector

y

y CC

an also talk about non-

an also talk about non-square syste

square syste

mm

s where

s where

 A is

 A is

mm

v

v

nn

, b is

, b is

mm

v

v

11

, and x is

, and x is

nn

v

v

11 y

y Overdetermined Overdetermined if if mm>>nn::

mmore equations than unknownsore equations than unknowns

y

y U U nderdetermined nderdetermined if if nn>>mm::

mmore unknowns than equationsore unknowns than equations

C

(3)

Singular Systems

Singular Systems

y

y

 A is singular if so

 A is singular if so

mm

e row is

e row is

linear co

linear co

mm

binatio

bination

n

of

of other rows

other rows

y

y

Singul

Singular

ar

syste

syste

mm

s can be underdeter

s can be underdeter

mm

ined:

ined:

or inconsistent:

or inconsistent:

(4)

G

G

auss-Jordan Elimination

auss-Jordan Elimination

y

y FF

unda

unda

mm

ental operations:

ental operations:

1.

1. R R eplace one equation with lineaeplace one equation with linear cr coommbinationbination

of other equations

of other equations

2

2.. IInterchange two equationsnterchange two equations 3

3.. R R e-label two variablese-label two variables

y

y CC

o

o

mm

bine to reduce to trivial syste

bine to reduce to trivial syste

mm y

y

Si

Si

mm

plest variant only uses #

plest variant only uses #

11

operations,

operations,

but get better

but get better

stabil

stabil

ity by adding

ity by adding

#2 (partial pivoting) or #2 and #3 (

(5)

G

G

auss-Jordan Elimination

auss-Jordan Elimination

y

y

Solve:

Solve:

y

y

Only care about nu

Only care about nu

mm

be

bers

rs

f

for

or

mm

tableau or

tableau or

aug

(6)

G

G

auss-Jordan Elimination

auss-Jordan Elimination

y

y GG

iven:

iven:

y

y GG

oal: reduce this to trivial syste

oal: reduce this to trivial syste

mm

and read off a

(7)

G

G

auss-Jordan Elimination

auss-Jordan Elimination

y

y BB

asic operation

asic operation

11

: replace any row by 

: replace any row by 

linear co

linear co

mm

binatio

bination with any other r

n with any other row

ow

y

(8)

G

G

auss-Jordan Elimination

auss-Jordan Elimination

y

y R R 

eplace

eplace

ro

row2 w

w2 w

ith r

ith row2 

ow2 

4 * row

4 * row

11

y

(9)

G

G

auss-Jordan Elimination

auss-Jordan Elimination

y

y R R 

epla

eplace ro

ce ro

w

w

11

with row

with row

11

33//22

* row2

* row2

y

(10)

G

G

auss-Jordan Elimination

auss-Jordan Elimination

y

y FF

or each row i:

or each row i:

y

y Multiply row i by Multiply row i by 1/1/aaiiii y

y FFor each other row j:or each other row j:

y

y  Add a Add a ji ji titimmes row i to row jes row i to row j

y

y

 At the end, left part of 

 At the end, left part of 

mm

atrix is

atrix is identity

identity

,

,

answer in right part

answer in right part

y

(11)

R ecall that we'd like to use row operations on an augecall that we'd like to use row operations on an augmmentedented

m

matrix to get it into the following foratrix to get it into the following formm::

This is not always possibl

This is not always possible thoughe though.. The following areThe following are

m

matrices that cannot be put into this foratrices that cannot be put into this form.m.

1 1 2 2 3 3 1 1 1 1 00 00 00 00 0 0 11 00 00 00 0 0 00 11 00 00 0 0 00 00 11 00 0 0 00 00 00 11 n n n n b b b b b b b b b b   « « »» ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ - - ½½ L L M M O O MM L L L L 1 1 2 2 3 3 77 1 1 0 0 5 5 22 0 0 0 0 0 0 00 0 0 1 1 6 6 33 0 0 0 0 0 0 00 « « »» « « »» ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ - - ½½ ¬ ¬ ¼¼ - - ½½

(12)

R ecognize that if we cant get ourecognize that if we cant get our mmatrix to the desired foratrix to the desired formm,,

then it wont be as easy to see what the solution to the

then it wont be as easy to see what the solution to the

syste

systemm of equations will beof equations will be..

F

For exaor exammple, thisple, this mmatrix has a solution that is easy atrix has a solution that is easy 

to

to see, see, ((11, 3, 5), b, 3, 5), because tecause thehe mmatrix is in the finalatrix is in the final

for

formm that we wantthat we want..

1 1 0 0 0 0 11 0 0 1 1 0 0 33 0 0 0 0 1 1 55

«

«

»»

¬

¬

¼¼

¬

¬

¼¼

¬

¬

¼¼

-

-

½½

(13)

1 1 2 2 3 3 77 0 0 0 0 0 0 00 0 0 0 0 0 0 00

« «

»»

¬ ¬

¼¼

¬ ¬

¼¼

¬ ¬

¼¼

- -

½½

1

1 0

0 5

5 2

2

0

0 1

1 6

6 3

3

« «

»»

¬ ¬

¼¼

- -

½½

This

This mmatrix (on the right) has a solution but isatrix (on the right) has a solution but is

not as clear what the solution is

not as clear what the solution is.. What we canWhat we can

conclude about the solution, (

conclude about the solution, ( x x,, y y,, zz), ), is is thatthat

the co

the commponentsponents x x,, y y, and, and zz mmust obey theust obey the

equation

equation x x + 2+ 2 y y + 3+ 3zz = 7= 7..

This

This mmatrix (on the right) has a solution, butatrix (on the right) has a solution, but

again it is not as clear what it is

again it is not as clear what it is.. What we canWhat we can

conclude about the solution, (

conclude about the solution, ( x x,, y y,, zz), ), is is thatthat

the co

the commponentsponents x x,, y y, and, and zz mmust obey the twoust obey the two

equations

(14)

These last two

These last two mmatrices represent systeatrices represent systemms that do nos that do not have at have a

unique solution

unique solution.. Whenever aWhenever a mmatrix does not have a uniqueatrix does not have a unique

solution (if it has inf

solution (if it has infinitelinitely y mmany solutions or no solution at all)any solutions or no solution at all)

 we will not be able to get our aug

 we will not be able to get our augmmentedented mmatrix into the foratrix into the formm

that we really want

that we really want.. When this happens, we want to at least getWhen this happens, we want to at least get

our

our mmatrix as close as possibatrix as close as possible to le to this forthis formm that we would really that we would really 

like it to be in

like it to be in.. When it When it is as close as it can posis as close as it can possibly get, we sibly get, we say say 

it is in reduced row echelon for

it is in reduced row echelon form.m.

1 1 2 2 3 3 1 1 1 1 00 00 00 00 0 0 11 00 00 00 0 0 00 11 00 00 0 0 00 00 11 00 0 0 00 00 00 11 n n n n b b b b b b b b b b   « « »» ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ ¬ ¬ ¼¼ - - ½½ L L M M O O MM L L L L

(15)
(16)

PIVOTING

PIVOTING

y

y CC

onsider this syste

onsider this syste

mm

:

:

y

y ImmImm

ediately run into proble

ediately run into proble

mm

:

:

algorith

algorith

mm

wants us to divide by zero!

wants us to divide by zero!

y

(17)

P

P

artial

artial

P

P

ivoting

ivoting

y

y

Swap rows

Swap rows

11

and 2:

and 2:

y

(18)

F

F

ull

ull

P

P

ivoting

ivoting

y

y

Swap largest ele

Swap largest ele

mm

ent onto diag

ent onto diag

onal

onal by swapping rows

by swapping rows

11

and 2 and colu

and 2 and colu

mm

ns

ns

11

and 2:

and 2:

y

y CC

ritical: when swapping colu

ritical: when swapping colu

mm

ns,

ns,

mm

ust re

ust re

mm

e

e

mm

ber to

ber to

swap r

(19)

F

F

ull

ull

P

P

ivoting

ivoting

y

References

Related documents

Basic  If costs are not separated, only a combined total can be given.  However a plan with timelines to implement the necessary cost recording structure will have

As health care entities manage their businesses, they enter into various types of agreements with technology vendors to support the provision of care, including: software

The MEP must provide the registry manager with the required metering information for each metering installation the MEP is responsible for, and update the registry metering records

We’re fortunate to bring on Zurick as an owner of Mason Morse Ranch Company and continue our services helping clients with their farms, ranches and recreational land real estate

Variation in the ITS1 and ITS2 rRNA genomic regions of Cytauxzoon felis from bobcats and pumas in the eastern United States and comparison with sequences from domestic cats.

Alexandre Dgebuadze vs Alexandre Dgebuadze vs Ludwig Stahnecker, Ludwig Stahnecker, Schwaebisch Gmund, 2012 Schwaebisch Gmund, 2012.. Marin Bosiocic vs Marin Bosiocic vs Ivan

3.3.3.4 Proses 5.0 Proses Pembayaran Pada diagram rinci sistem proses 5.0 tentang pembayaran ini yang mengakses adalah operator yang tadinya telah didaftarkan oleh admin,

management standard is in place, an approach to the transition of any residual project data to alternative systems at project close will be determined, and notified to all Project