solving system of two equations

35
Solving System of Two equations Graphical Method y=x+1 (1) y= -x+5 (2)

Upload: others

Post on 25-Apr-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Solving System of Two equations

Solving System of Two equationsGraphical Method

y = x + 1 (1)

y = −x + 5 (2)

are the same equations as:

x− y = −1 (3)

x + y = 5 (4)

Page 2: Solving System of Two equations

Solving System of Two equationsGraphical Method

y = x + 1 (1)

y = −x + 5 (2)

are the same equations as:

x− y = −1 (3)

x + y = 5 (4)

Page 3: Solving System of Two equations

Solving System of Two equationsGraphical Method

Graphical Method

Solve by graphing equations and finding all common points.

x

y

+0.4 +0.8 +1.2 +1.6 +2.0 +2.4 +2.8 +3.2 +3.6−0.4−0.8−1.2−1.6

−0.8

−0.6

−0.4

−0.2

+0.2

+0.4

+0.6

+0.8

+1.0

+1.2

+1.4

+1.6

+1.8

+2.0

+2.2

+2.4

+2.6

+2.8

+3.0

+3.2

+3.4

+3.6

+3.8

+4.0

+4.2

+4.4

+4.6

+4.8

+5.0

+5.2

+5.4

+5.6

+5.8

+6.0

+6.2

+6.4

+6.6

+6.8

Page 4: Solving System of Two equations

Solving System of Two equationsSubstitution Method (1)

SubstitutionMethod

x− y = −1 (5)

x + y = 5 (6)

Substitution Method

solve for x in first equation

use to eliminate x in second equation

solve for remaining variable

use found variable in any equation to find other variable.

Page 5: Solving System of Two equations

Solving System of Two equationsSubstitution Method (1)

SubstitutionMethod

x− y = −1 (5)

x + y = 5 (6)

Substitution Method

solve for x in first equation

use to eliminate x in second equation

solve for remaining variable

use found variable in any equation to find other variable.

Page 6: Solving System of Two equations

Solving System of Two equationsSubstitution Method (1)

SubstitutionMethod

x− y = −1 (5)

x + y = 5 (6)

Substitution Method

solve for x in first equation

use to eliminate x in second equation

solve for remaining variable

use found variable in any equation to find other variable.

Page 7: Solving System of Two equations

Solving System of Two equationsSubstitution Method (1)

SubstitutionMethod

x− y = −1 (5)

x + y = 5 (6)

Substitution Method

solve for x in first equation

use to eliminate x in second equation

solve for remaining variable

use found variable in any equation to find other variable.

Page 8: Solving System of Two equations

Solving System of Two equationsSubstitution Method (2)

x− y = −1 (7)

x + y = 5 (8)

Substitution Method:

From first equation

x = y − 1 (9)

substitute for x in second equation gives:

(y − 1) + y = 5 (10)

2y = 6 (11)

y = 3 (12)

Now back substitute to find x:

x = y − 1 = 3− 1 = 2 (13)

Giving (x, y) = (2, 3) as the only solution.

Page 9: Solving System of Two equations

Solving System of Two equationsSubstitution Method (2)

x− y = −1 (7)

x + y = 5 (8)

Substitution Method: From first equation

x = y − 1 (9)

substitute for x in second equation gives:

(y − 1) + y = 5 (10)

2y = 6 (11)

y = 3 (12)

Now back substitute to find x:

x = y − 1 = 3− 1 = 2 (13)

Giving (x, y) = (2, 3) as the only solution.

Page 10: Solving System of Two equations

Solving System of Two equationsSubstitution Method (2)

x− y = −1 (7)

x + y = 5 (8)

Substitution Method: From first equation

x = y − 1 (9)

substitute for x in second equation gives:

(y − 1) + y = 5 (10)

2y = 6 (11)

y = 3 (12)

Now back substitute to find x:

x = y − 1 = 3− 1 = 2 (13)

Giving (x, y) = (2, 3) as the only solution.

Page 11: Solving System of Two equations

Solving System of Two equationsSubstitution Method (2)

x− y = −1 (7)

x + y = 5 (8)

Substitution Method: From first equation

x = y − 1 (9)

substitute for x in second equation gives:

(y − 1) + y = 5 (10)

2y = 6 (11)

y = 3 (12)

Now back substitute to find x:

x = y − 1 = 3− 1 = 2 (13)

Giving (x, y) = (2, 3) as the only solution.

Page 12: Solving System of Two equations

Solving System of Two equationsElimination Method

Elimination Method

x− y = −1 (14)

x + y = 5 Add to eliminate y (15)

2x + 0 = 4 (16)

x = 2 (17)

Back Substitute to get (18)

2− y = −1 (19)

y = 3 (20)

⇒ (x, y) = (2, 3) (21)

Page 13: Solving System of Two equations

Solving System of Two equationsElimination Method

Elimination Method

x− y = −1 (14)

x + y = 5 Add to eliminate y (15)

2x + 0 = 4 (16)

x = 2 (17)

Back Substitute to get (18)

2− y = −1 (19)

y = 3 (20)

⇒ (x, y) = (2, 3) (21)

Page 14: Solving System of Two equations

Gauss-Jordan Eliminationnew example

Gauss− Jordan Elimination

2x + 3y = 8 (22)

6x− 2y = 2 (23)

Use the first elementary row operation: interchange two rows

2x + 3y = 8 R1 ↔ R2 (24)

6x− 2y = 2 (25)

Gives Equivalent System:

6x− 2y = 2 (26)

2x + 3y = 8 (27)

Page 15: Solving System of Two equations

Gauss-Jordan Eliminationnew example

Gauss− Jordan Elimination

2x + 3y = 8 (22)

6x− 2y = 2 (23)

Use the first elementary row operation: interchange two rows

2x + 3y = 8 R1 ↔ R2 (24)

6x− 2y = 2 (25)

Gives Equivalent System:

6x− 2y = 2 (26)

2x + 3y = 8 (27)

Page 16: Solving System of Two equations

Gauss-Jordan Eliminationnew example

Gauss− Jordan Elimination

2x + 3y = 8 (22)

6x− 2y = 2 (23)

Use the first elementary row operation: interchange two rows

2x + 3y = 8 R1 ↔ R2 (24)

6x− 2y = 2 (25)

Gives Equivalent System:

6x− 2y = 2 (26)

2x + 3y = 8 (27)

Page 17: Solving System of Two equations

Gauss-Jordan Elimination

6x− 2y = 2 (28)

2x + 3y = 8 (29)

Use the second elementary row operation: Multiply a row by anumber

6x− 2y = 2 R1 →1

2R1 (30)

2x + 3y = 8 (31)

Gives Equivalent System:

3x− y = 1 (32)

2x + 3y = 8 (33)

Page 18: Solving System of Two equations

Gauss-Jordan Elimination

6x− 2y = 2 (28)

2x + 3y = 8 (29)

Use the second elementary row operation: Multiply a row by anumber

6x− 2y = 2 R1 →1

2R1 (30)

2x + 3y = 8 (31)

Gives Equivalent System:

3x− y = 1 (32)

2x + 3y = 8 (33)

Page 19: Solving System of Two equations

Gauss-Jordan Elimination

6x− 2y = 2 (28)

2x + 3y = 8 (29)

Use the second elementary row operation: Multiply a row by anumber

6x− 2y = 2 R1 →1

2R1 (30)

2x + 3y = 8 (31)

Gives Equivalent System:

3x− y = 1 (32)

2x + 3y = 8 (33)

Page 20: Solving System of Two equations

Gauss-Jordan Elimination

3x− y = 1 (34)

2x + 3y = 8 (35)

Use the third elementary row operation: add to a row somemultiple of another row

3x− y = 1 R1 → R1 + () · R2 (36)

2x + 3y = 8 (37)

3x− y = 1 R1 → R1 + (−1) · R2 (38)

2x + 3y = 8 (39)

Gives Equivalent System:

x− 4y = −7 (40)

2x + 3y = 8 (41)

Page 21: Solving System of Two equations

Gauss-Jordan Elimination

3x− y = 1 (34)

2x + 3y = 8 (35)

Use the third elementary row operation: add to a row somemultiple of another row

3x− y = 1 R1 → R1 + () · R2 (36)

2x + 3y = 8 (37)

3x− y = 1 R1 → R1 + (−1) · R2 (38)

2x + 3y = 8 (39)

Gives Equivalent System:

x− 4y = −7 (40)

2x + 3y = 8 (41)

Page 22: Solving System of Two equations

Gauss-Jordan Elimination

3x− y = 1 (34)

2x + 3y = 8 (35)

Use the third elementary row operation: add to a row somemultiple of another row

3x− y = 1 R1 → R1 + () · R2 (36)

2x + 3y = 8 (37)

3x− y = 1 R1 → R1 + (−1) · R2 (38)

2x + 3y = 8 (39)

Gives Equivalent System:

x− 4y = −7 (40)

2x + 3y = 8 (41)

Page 23: Solving System of Two equations

Gauss-Jordan Elimination

3x− y = 1 (34)

2x + 3y = 8 (35)

Use the third elementary row operation: add to a row somemultiple of another row

3x− y = 1 R1 → R1 + () · R2 (36)

2x + 3y = 8 (37)

3x− y = 1 R1 → R1 + (−1) · R2 (38)

2x + 3y = 8 (39)

Gives Equivalent System:

x− 4y = −7 (40)

2x + 3y = 8 (41)

Page 24: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (42)

2x + 3y = 8 (43)

Use the third elementary row operation

x− 4y = −7 (44)

2x + 3y = 8 R2 → R2 + (−2) · R1 (45)

Gives Equivalent System:

x− 4y = −7 (46)

0x + 11y = 22 (47)

Page 25: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (42)

2x + 3y = 8 (43)

Use the third elementary row operation

x− 4y = −7 (44)

2x + 3y = 8 R2 → R2 + (−2) · R1 (45)

Gives Equivalent System:

x− 4y = −7 (46)

0x + 11y = 22 (47)

Page 26: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (42)

2x + 3y = 8 (43)

Use the third elementary row operation

x− 4y = −7 (44)

2x + 3y = 8 R2 → R2 + (−2) · R1 (45)

Gives Equivalent System:

x− 4y = −7 (46)

0x + 11y = 22 (47)

Page 27: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (48)

0x + 11y = 22 (49)

System is in Triangular Form or Row-Echelon Form

At this point typically use one of two methods to continue:

1 Gaussian Elimination

use last row to solve for yback-substitute to solve for x

2 Gauss-Jordan Elimination

continue to reduce to Reduced Row Echelon Form (rref)solve for leading variables in terms of non-leading variables.

Page 28: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (48)

0x + 11y = 22 (49)

System is in Triangular Form or Row-Echelon FormAt this point typically use one of two methods to continue:

1 Gaussian Elimination

use last row to solve for yback-substitute to solve for x

2 Gauss-Jordan Elimination

continue to reduce to Reduced Row Echelon Form (rref)solve for leading variables in terms of non-leading variables.

Page 29: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (48)

0x + 11y = 22 (49)

System is in Triangular Form or Row-Echelon FormAt this point typically use one of two methods to continue:

1 Gaussian Elimination

use last row to solve for y

back-substitute to solve for x

2 Gauss-Jordan Elimination

continue to reduce to Reduced Row Echelon Form (rref)solve for leading variables in terms of non-leading variables.

Page 30: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (48)

0x + 11y = 22 (49)

System is in Triangular Form or Row-Echelon FormAt this point typically use one of two methods to continue:

1 Gaussian Elimination

use last row to solve for yback-substitute to solve for x

2 Gauss-Jordan Elimination

continue to reduce to Reduced Row Echelon Form (rref)solve for leading variables in terms of non-leading variables.

Page 31: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (48)

0x + 11y = 22 (49)

System is in Triangular Form or Row-Echelon FormAt this point typically use one of two methods to continue:

1 Gaussian Elimination

use last row to solve for yback-substitute to solve for x

2 Gauss-Jordan Elimination

continue to reduce to Reduced Row Echelon Form (rref)solve for leading variables in terms of non-leading variables.

Page 32: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (48)

0x + 11y = 22 (49)

System is in Triangular Form or Row-Echelon FormAt this point typically use one of two methods to continue:

1 Gaussian Elimination

use last row to solve for yback-substitute to solve for x

2 Gauss-Jordan Elimination

continue to reduce to Reduced Row Echelon Form (rref)

solve for leading variables in terms of non-leading variables.

Page 33: Solving System of Two equations

Gauss-Jordan Elimination

x− 4y = −7 (48)

0x + 11y = 22 (49)

System is in Triangular Form or Row-Echelon FormAt this point typically use one of two methods to continue:

1 Gaussian Elimination

use last row to solve for yback-substitute to solve for x

2 Gauss-Jordan Elimination

continue to reduce to Reduced Row Echelon Form (rref)solve for leading variables in terms of non-leading variables.

Page 34: Solving System of Two equations

Gauss-Jordan Elimination

Continue with Gauss-Jordan Elimination

x− 4y = −7 (50)

0x + 11y = 22 R2 →1

11R2 (51)

x− 4y = −7 R1 → R1 + (4) · R2 (52)

0x + y = 2 (53)

x− 0y = 1 (54)

0x + y = 2 (55)

Giving (x, y) = (1, 2)

Page 35: Solving System of Two equations

Gauss-Jordan Elimination

Continue with Gauss-Jordan Elimination

x− 4y = −7 (50)

0x + 11y = 22 R2 →1

11R2 (51)

x− 4y = −7 R1 → R1 + (4) · R2 (52)

0x + y = 2 (53)

x− 0y = 1 (54)

0x + y = 2 (55)

Giving (x, y) = (1, 2)