+ All Categories
Home > Education > Gauss elimination & Gauss Jordan method

Gauss elimination & Gauss Jordan method

Date post: 05-Apr-2017
Category:
Upload: naimesh-bhavsar
View: 237 times
Download: 19 times
Share this document with a friend
27
Transcript
Page 1: Gauss elimination & Gauss Jordan method
Page 2: Gauss elimination & Gauss Jordan method
Page 3: Gauss elimination & Gauss Jordan method

Solve the following equations.

πŸπ’™ + πŸ‘π’š = πŸ”

𝒙 + πŸπ’š = 𝟐

A𝐧𝐬𝐰𝐞𝐫

𝒙 = πŸ” & π’š = βˆ’πŸ

Page 4: Gauss elimination & Gauss Jordan method

Methods of Solution of Linear

Equations

Traditional Method Matrix Method

Page 5: Gauss elimination & Gauss Jordan method

Methods of Solution of Linear

Equations… Continue…

Traditional Method Matrix Method

Row Echelon

Method

Reduce Row

Echelon Method

Get the Upper

Triangle

Get the Identity

Matrix

Page 6: Gauss elimination & Gauss Jordan method

Methods of Solution of Linear

Equations…Continue…

Row Echelon

Method

Reduce Row

Echelon Method

Get the Upper

Triangle

Get the Identity

Matrix

Gauss Elimination

Method

Gauss Jordan

Method

Derived at AD1850 Derived in AD1880

Why I’m

Happy Today?

Page 7: Gauss elimination & Gauss Jordan method

Don’t think Jordan was Smarter than

Gauss.!!

Related Field

1.Number Theory,

2. algebra,

3. statistics,

4. analysis,

5. differential geometry,

6. geodesy,

7. geophysics,

8. electrostatics,

9. astronomy,

10. Matrix theory and

11. optics

Related Field

1. geodesy

Page 8: Gauss elimination & Gauss Jordan method

Methods of Solution of Linear

Equations…Continue…

Now all we need is to construct a matrix from

given problem or set of equations.

This matrix is known as Augmented matrix.

Page 9: Gauss elimination & Gauss Jordan method

Methods of Solution of Linear

Equations…Continue… Are you able to get Augmented matrix from set of equations?

2π‘₯ + 𝑦 βˆ’ 𝑧 = 8 βˆ’3π‘₯ βˆ’ 𝑦 + 2𝑧 = βˆ’11 βˆ’2π‘₯ + 𝑦 + 2𝑧 = βˆ’3

2π‘₯ + 𝑦 βˆ’ 𝑧 = 3 𝑦 + 𝑧 = 10 π‘₯ + 2𝑧 = 9

π‘₯ βˆ’ 𝑦 + 2 = 0 𝑦 + 𝑧 = 7 π‘₯ + 2𝑧 = 𝑦

2 1 βˆ’1βˆ’3 βˆ’1 2βˆ’2 1 2

|||

8βˆ’11βˆ’3

2 1 βˆ’10 1 11 0 2

|||

3109

1 βˆ’1 00 1 11 βˆ’1 2

||| βˆ’270

Set of Equations Augmented matrix

Page 10: Gauss elimination & Gauss Jordan method

Example of Gauss Elimination Method

Ex.1 Solve the following equations by Gauss Elimination or

Backward Substitution.

2𝑦 + 𝑧 = βˆ’8 π‘₯ βˆ’ 2𝑦 βˆ’ 3𝑧 = 0 βˆ’π‘₯ + 𝑦 + 2𝑧 = 3

Solution:

Augmented Matrix

0 2 11 βˆ’2 βˆ’3

βˆ’1 1 2

|||

βˆ’803

Page 11: Gauss elimination & Gauss Jordan method

Augmented Matrix

0 2 11 βˆ’2 βˆ’3

βˆ’1 1 2

|||

βˆ’803

Interchange 𝑅1& 𝑅2

1 βˆ’2 βˆ’30 2 1

βˆ’1 1 2

|||

0βˆ’83

𝑅3 + 𝑅1

1 βˆ’2 βˆ’30 2 10 βˆ’1 βˆ’1

|||

0βˆ’83

Interchange 𝑅2& 𝑅3

1 βˆ’2 βˆ’30 βˆ’1 βˆ’10 2 1

|||

03

βˆ’8

Page 12: Gauss elimination & Gauss Jordan method

1 βˆ’2 βˆ’30 βˆ’1 βˆ’10 2 1

|||

03

βˆ’8

𝑅3 + 𝑅2(2)

1 βˆ’2 βˆ’30 βˆ’1 βˆ’10 0 βˆ’1

|||

03

βˆ’2

Therefore, π‘₯ βˆ’ 2𝑦 βˆ’ 3𝑧 = 0 … 1

βˆ’π‘¦ βˆ’ 𝑧 = 3 … 2 βˆ’π‘§ = βˆ’2 β‡’ 𝒛 = 𝟐 … (πŸ‘)

By using (3) in (2) βˆ’π‘¦ βˆ’ 2 = 3 β‡’ βˆ’π‘¦ = 5 β‡’ π’š = βˆ’πŸ“ … (πŸ’)

By using (3), (4) in (1) π‘₯ βˆ’ 2 βˆ’5 βˆ’ 3 2 = 0

β‡’ π‘₯ + 10 βˆ’ 6 = 0 β‡’ 𝒙 = βˆ’πŸ’ … (πŸ“)

Page 13: Gauss elimination & Gauss Jordan method

Thus the solution of given equations

2𝑦 + 𝑧 = βˆ’8 π‘₯ βˆ’ 2𝑦 βˆ’ 3𝑧 = 0 βˆ’π‘₯ + 𝑦 + 2𝑧 = 3

are 𝒙 = βˆ’πŸ’, π’š = βˆ’πŸ“

& 𝒛 = 𝟐

Page 14: Gauss elimination & Gauss Jordan method

Example of Gauss Jordan Method

Ex.1 Solve the following equations by Gauss Jordan

Method.

2𝑦 + 𝑧 = βˆ’8 π‘₯ βˆ’ 2𝑦 βˆ’ 3𝑧 = 0 βˆ’π‘₯ + 𝑦 + 2𝑧 = 3

Solution:

Augmented Matrix

0 2 11 βˆ’2 βˆ’3

βˆ’1 1 2

|||

βˆ’803

Page 15: Gauss elimination & Gauss Jordan method

Augmented Matrix

0 2 11 βˆ’2 βˆ’3

βˆ’1 1 2

|||

βˆ’803

Interchange 𝑅1& 𝑅2

1 βˆ’2 βˆ’30 2 1

βˆ’1 1 2

|||

0βˆ’83

𝑅3 + 𝑅1

1 βˆ’2 βˆ’30 2 10 βˆ’1 βˆ’1

|||

0βˆ’83

Interchange 𝑅2& 𝑅3

1 βˆ’2 βˆ’30 βˆ’1 βˆ’10 2 1

|||

03

βˆ’8

Page 16: Gauss elimination & Gauss Jordan method

1 βˆ’2 βˆ’30 βˆ’1 βˆ’10 2 1

|||

03

βˆ’8

𝑅3 + 𝑅2(2)

1 βˆ’2 βˆ’30 βˆ’1 βˆ’10 0 βˆ’1

|||

03

βˆ’2

𝑅1 βˆ’ 𝑅2(2)

1 0 βˆ’10 βˆ’1 βˆ’10 0 βˆ’1

|||

βˆ’63

βˆ’2

𝑅2 βˆ’ 𝑅3 & 𝑅1 βˆ’ 𝑅3

1 0 00 βˆ’1 00 0 βˆ’1

|||

βˆ’45

βˆ’2

Page 17: Gauss elimination & Gauss Jordan method

Therefore, 𝒙 = βˆ’πŸ’, π’š = βˆ’πŸ“ & 𝒛 = 𝟐

Thus the solution of given equations

2𝑦 + 𝑧 = βˆ’8 π‘₯ βˆ’ 2𝑦 βˆ’ 3𝑧 = 0 βˆ’π‘₯ + 𝑦 + 2𝑧 = 3

are 𝒙 = βˆ’πŸ’, π’š = βˆ’πŸ“

& 𝒛 = 𝟐

1 0 00 βˆ’1 00 0 βˆ’1

|||

βˆ’45

βˆ’2

Multiply 𝑅2 & 𝑅3 both by (βˆ’1)

1 0 00 1 00 0 1

|||

βˆ’4βˆ’52

Page 18: Gauss elimination & Gauss Jordan method

Which Method is Better for solution

purpose?

Why?

Traditional

or

Gaussian Elimination Method

Gauss Jordan Method

or

Page 19: Gauss elimination & Gauss Jordan method

Can we extend these methods one

step ahead?

Rocket Velocity

The upward velocity of a rocket is

given at three different times

The velocity data is approximated by a polynomial as:

Find: The Velocity at 𝑑 = 5,7, 7.5 and 8 seconds.

𝒗 𝒕 = π’‚π’•πŸ + 𝒃𝒕 + 𝒄 , 𝟐 ≀ 𝒕 ≀ πŸ–

Page 20: Gauss elimination & Gauss Jordan method

Problem: Given is not linear equation.

Question: Can we treat it as a linear?

Page 21: Gauss elimination & Gauss Jordan method

Let me Help you,…

𝒗 𝒕 = π’‚π’•πŸ + 𝒃𝒕 + 𝒄 , 𝟐 ≀ 𝒕 ≀ πŸ–

In this equation 𝑣 𝑑 = π‘Žπ‘‘2 + 𝑏𝑑 + 𝑐 … 1 ; 𝑑 & 𝑣 are given so

don’t worry about it. Time (𝑑)

In second (unit)

Velocity (𝑣)

In 𝐾.π‘š.

π‘ π‘’π‘π‘œπ‘›π‘‘ (unit)

𝑑1 = 2 𝑣1 = 1

𝑑2 = 4 𝑣2 = 2

𝑑3 = 6 𝑣3 = 4

So, from 1st equation we have

𝑣1 = π‘Žπ‘‘12 + 𝑏𝑑1 + 𝑐 … 2

𝑣2 = π‘Žπ‘‘22 + 𝑏𝑑2 + 𝑐 … 3

𝑣3 = π‘Žπ‘‘32 + 𝑏𝑑3 + 𝑐 … 4

Do you think equations 2β€² , 3β€² & 4β€² are linear equations?

1 = 4π‘Ž + 2𝑏 + 𝑐 … 2β€²

2 = 16π‘Ž + 4𝑏 + 𝑐 … 3β€²

4 = 36π‘Ž + 6𝑏 + 𝑐 … 4β€²

Page 22: Gauss elimination & Gauss Jordan method

Will You Generate Matrix from this…?

4 2 116 4 136 6 1

|||

124

Have you got this…!

Okay, then solve…

Answer is 𝒂 = 𝟎. πŸπŸπŸ“ 𝒃 = βˆ’πŸŽ. πŸπŸ“πŸŽ 𝒄 = 𝟏. 𝟎𝟎𝟎

1 = 4π‘Ž + 2𝑏 + 𝑐 … 2β€² 2 = 16π‘Ž + 4𝑏 + 𝑐 … 3β€²

4 = 36π‘Ž + 6𝑏 + 𝑐 … 4β€²

Page 23: Gauss elimination & Gauss Jordan method

From the above values π‘Ž = 0.125

𝑏 = βˆ’0.250

𝑐 = 1.000 & equation_(1) 𝑣 𝑑 = π‘Žπ‘‘2 + 𝑏𝑑 + 𝑐 we have

𝒗 𝒕 = 𝟎. πŸπŸπŸ“π’•πŸ βˆ’ 𝟎. πŸπŸ“π’• + 𝟏 … πŸ“

Equation_(5) Shows the Rocket Velocity equation in the time interval

of [2 8] seconds.

Now can you answer for these:

Find The Velocity at 𝑑 = 5,7, 7.5 and 8 seconds.

From equation_(5) 𝑣 𝑑 = 0.125𝒕2 βˆ’ 0.25𝒕 + 1

Put 𝑑 = 5 β‡’ 𝑣 5 = 0.125 Γ— πŸ“2 βˆ’ 0.25 Γ— πŸ“ + 1 β‡’ 𝒗 πŸ“ = 𝟐. πŸ–πŸ•πŸ“ π’Œπ’Ž

𝒔

𝑑 = 7 β‡’ 𝑣 7 = 0.125 Γ— πŸ•2 βˆ’ 0.25 Γ— πŸ• + 1 β‡’ 𝒗 πŸ• = πŸ“. πŸ‘πŸ•πŸ“ π’Œπ’Ž

𝒔

𝑑 = 7.5 β‡’ 𝑣 7.5 = 0.125 Γ— πŸ•. πŸ“2 βˆ’ 0.25 Γ— πŸ•. πŸ“ + 1 β‡’ 𝒗 πŸ•. πŸ“ = πŸ”. πŸπŸ“πŸ” π’Œπ’Ž

𝒔

𝑑 = 8 β‡’ 𝑣 8 = 0.125 Γ— πŸ–2 βˆ’ 0.25 Γ— πŸ– + 1 β‡’ 𝒗 πŸ– = πŸ•. 𝟎𝟎 π’Œπ’Ž

𝒔

Page 24: Gauss elimination & Gauss Jordan method

Would you balance the following

chemical reactions for me?

𝐢𝐻4 + 𝑂2 β†’ 𝐢𝑂2 + 𝐻2𝑂

π‘π‘Žπ»πΆπ‘‚3 + 𝐻2𝑆𝑂4 β†’ π‘π‘Ž2𝑆𝑂4 + 𝐢𝑂2 + 𝐻2𝑂

𝑍𝑛(𝐢2𝐻3𝑂2)2+π»π΅π‘Ÿ β†’ π‘π‘›π΅π‘Ÿ2 + 𝐻𝐢2𝐻3𝑂2

𝐻2 + 𝑂2 β†’ 2𝐻2𝑂

Page 25: Gauss elimination & Gauss Jordan method

Can We Generate Matrix for each

reaction?

We will see in next lecture…

If Yes then β€œHOW???”

Think & Come with pre-reading

What will be in next Lecture?

Page 26: Gauss elimination & Gauss Jordan method

Can we solve Gauss Elimination &

Gauss Jordan Method in Mat-lab?

We will see in coming Lab.

If Yes then β€œHow???”

Think & Come with pre-reading

For Lab. …

Page 27: Gauss elimination & Gauss Jordan method

Recommended