Docsity

Gaussian Elimination and Fuel Usage Rates: Solving Linear Equations and Real-Life Problems, Slides of Algebra

Partial preview of the text

Download Gaussian Elimination and Fuel Usage Rates: Solving Linear Equations and Real-Life Problems and more Slides Algebra in PDF only on Docsity!

§3.3b 3-Var

System Apps

Review §

ļ‚§ Any QUESTIONS About

  • §3.3a → 3 Variable Linear Systems

ļ‚§ Any QUESTIONS About HomeWork

  • §3.3a → HW-

3.3 MTH 55

Gaussian Elimination

  • An algebraic method used to solve systems in three (or more) variables.
  • The original system is transformed to an equivalent one of the form: Ax + By + Cz = D Ey + Fz = G Hz = K
  • The third eqn is solved for z and back- substitution is used to find y and then x

Gaussian Elimination

  1. Rearrange, or InterChange , the equations, if necessary, to obtain the Largest (in absolute value) x -term coefficient in the first equation. The Coefficient of this large x -term is called the leading-coefficient or pivot- value.
  2. By adding appropriate multiples of the other equations, eliminate any x -terms from the second and third equations

Gaussian Elimination

  1. Back-substitute the values of z from Steps 3 into one of the equations in Step 3 that contain only y and z , and solve for y.
  2. Back-substitute the values of y and z from Steps 3 and 4 in any equation containing x , y , and z , and solve for x
  3. Write the solution set (Soln Triple)
  4. Check soln in the original equations

Example ļƒ† Gaussian Elim

  • Solve System by Gaussian Elim ( )

( )

( ) 3 5 2 6 14

x y z

x y z

x y z

ļ‚§ INTERCHANGE, or Swap, positions of Eqns (1) & (2) to get largest x -coefficient in the top equation

ļ‚§ Next SCALE by using Eqn (1) as the PIVOT To Multiply

  • (2) by 12/
  • (3) by 12/[āˆ’5]

( ) ( ) ( ) 3 5 2 6 14

x y z

x y z

x y z

Example ļƒ† Gaussian Elim

  • The Replacement Operation Yields ( ) ( ) ( ) 3 0 9. 8 7. 4 7. 6

2 0 11 15 108

1 12 5 7 26

āˆ’ āˆ’ = āˆ’

āˆ’ + =

  • āˆ’ = āˆ’

x y z

x y z

x y z

Or

ļ‚§ Note that the x-variable has been ELIMINATED below the Pivot Row

  • Next Eliminate in the ā€œyā€ Column ļ‚§ We can use for the y-Pivot either of āˆ’ 11 or āˆ’9.
  • For the best numerical accuracy choose the LARGEST pivot

( ) ( ) ( ) 3 9. 8 7. 4 7. 6

2 11 15 108

1 12 5 7 26

āˆ’ āˆ’ = āˆ’

āˆ’ + =

  • āˆ’ = āˆ’

y z

y z

x y z

Example ļƒ† Gaussian Elim

  • Our Reduced Sys

( )

( ) ( ) 3 9. 8 7. 4 7. 6

2 11 15 108

1 12 5 7 26

āˆ’ āˆ’ = āˆ’

āˆ’ + =

  • āˆ’ = āˆ’

y z

y z

x y z

ļ‚§ Since | āˆ’11| > | āˆ’9.8| we do NOT need to interchange (2)↔(3) ļ‚§ Scale by Pivot against Eqn-(3)

( ) ( )

( ) [ 9. 8 7. 4 7. 6 ]

  1. 8

3 11

2 11 15 108

1 12 5 7 26

āˆ’ āˆ’ = āˆ’ āˆ’

āˆ’

āˆ’ + =

  • āˆ’ = āˆ’

y z

y z

x y z

Or ( ) ( ) ( ) 3 11 8. 306 8. 531

2 11 15 108

1 12 5 7 26

āˆ’ āˆ’ = āˆ’

āˆ’ + =

  • āˆ’ = āˆ’

y z

y z

x y z

Example ļƒ† Gaussian Elim

  • BackSub into (1)

2 12

24 12

35 15 26

12

7 5 26

12 5 7 26

= + āˆ’ = =

⇒ = āˆ’ āˆ’

  • āˆ’ = āˆ’

x

x z y

x y z

ļ‚§ Thus the Solution Set for Our Linear System

( ) ( ) ( ) 3 5 2 6 14

x y z

x y z

x y z

ļ‚§ x = 2 ļ‚§ y = āˆ’ 3 ļ‚§ z = 5

Example ļƒ† Fuel Useage Rates

  • A food service distributor conducted a study to predict fuel usage for new delivery routes, for a particular truck. Use the chart to find the rates of fuel consumption in rush hour traffic, city traffic, and on the highway.

6

3

3

Highway Hours

Week 3 6 18 34

Week 2 7 8 24

Week 1 2 9 15

Total Fuel Used (gal)

City Traffic Hours

Rush Hour Hours

Example ļƒ† Fuel Usage Rates

  • Translate : Use Data Table

6z

3 z

3 z

Highway Gallons

Week 3 6 x 18 y 34

Week 2 7 x 8 y 24

Week 1 2 x 9 y 15

Total Fuel Used (gal)

City Traffic Gallons

Rush Hour Gallons

ļ‚§ Thus the System of Equations

( ) ( ) 6 18 6 34 ( ) 3

7 8 3 24 2

2 9 3 15 1

    • =
    • =
    • =

x y z

x y z

x y z

Example ļƒ† Fuel Usage Rates

  • Solve by Guassian Elimination: Interchange to place largest x -Coefficient on top ( ) ( ) 6 18 6 34 ( ) 3

2 9 3 15 1

7 8 3 24 2

    • =
    • =
    • =

x y z

x y z

x y z

ļ‚§ Scale

  • Multiply Eqn (1) by āˆ’7/
  • Multiply Eqn (2) by āˆ’7/

Example ļƒ† Fuel Usage Rates

  • The new, equivalent system (^) ( )

( )

( ) 7 3

13 4 47

6 2

57 2

15 2

47

7 8 3 24 2

  • āˆ’ + āˆ’ = āˆ’

  • āˆ’ + āˆ’ = āˆ’

    • =

y z

y z

x y z

ļ‚§ Notice how x has been Eliminated below the top Eqn ļ‚§ Clear Fractions by multiplying Eqn (6) by āˆ’ 2

Example ļƒ† Fuel Usage Rates

  • The new, equivalent system (^) ( )

( ) ( ) 7 3

13 4 47

47 15 57 8

7 8 3 24 2

  • āˆ’ + āˆ’ = āˆ’

    • =
    • =

y z

y z

x y z

ļ‚§ Now Scale Eqn (7) by the factor 47/



  = ^ āˆ’ āˆ’ = āˆ’ 

 

 (^) āˆ’ āˆ’ = āˆ’ 39

2209 13

47 188 3

13 4 47 13

(^47) y z y z