Professional Documents
Culture Documents
Dr K
Department of Mathematics and Applied Mathemathematics
University of Johannesburg
1 Linear Equations
3 Augmented Matrices
Goals:
To introduce matrices
Develop a way to solve matrices
To interpret the solution (if it exists)
Linear Equations
In two dimensions a line is given by:
ax + by = c.
ax + by + cz = d.
a1 x1 + a2 x2 + . . . + an xn = b.
Linear Equations
In two dimensions a line is given by:
ax + by = c.
ax + by + cz = d.
a1 x1 + a2 x2 + . . . + an xn = b.
Linear Equations
In two dimensions a line is given by:
ax + by = c.
ax + by + cz = d.
a1 x1 + a2 x2 + . . . + an xn = b.
Linear Equations
a1 x1 + a2 x2 + . . . + an xn = 0.
Linear Equations
a1 x1 + a2 x2 + . . . + an xn = 0.
Linear Equations
a1 x1 + a2 x2 + . . . + an xn = 0.
Example
Which of the following are linear equations in the variables
x, y , z, w, x1 , x2 , x3 ?
x − 3y + 4z − 17w = 6 Linear
sin x + 7y = 6 Not linear
xy + 6z = 4 Not linear
−3x 2 +y =0 Not linear
5x3 + 4x1 − x2 = 1 Linear
πx1 − x2 = 6 Linear
Example
Which of the following are linear equations in the variables
x, y , z, w, x1 , x2 , x3 ?
x − 3y + 4z − 17w = 6 Linear
sin x + 7y = 6 Not linear
xy + 6z = 4 Not linear
−3x 2 +y =0 Not linear
5x3 + 4x1 − x2 = 1 Linear
πx1 − x2 = 6 Linear
Example
Which of the following are linear equations in the variables
x, y , z, w, x1 , x2 , x3 ?
x − 3y + 4z − 17w = 6 Linear
sin x + 7y = 6 Not linear
xy + 6z = 4 Not linear
−3x 2 +y =0 Not linear
5x3 + 4x1 − x2 = 1 Linear
πx1 − x2 = 6 Linear
Example
Which of the following are linear equations in the variables
x, y , z, w, x1 , x2 , x3 ?
x − 3y + 4z − 17w = 6 Linear
sin x + 7y = 6 Not linear
xy + 6z = 4 Not linear
−3x 2 +y =0 Not linear
5x3 + 4x1 − x2 = 1 Linear
πx1 − x2 = 6 Linear
Example
Which of the following are linear equations in the variables
x, y , z, w, x1 , x2 , x3 ?
x − 3y + 4z − 17w = 6 Linear
sin x + 7y = 6 Not linear
xy + 6z = 4 Not linear
−3x 2 +y =0 Not linear
5x3 + 4x1 − x2 = 1 Linear
πx1 − x2 = 6 Linear
Example
Which of the following are linear equations in the variables
x, y , z, w, x1 , x2 , x3 ?
x − 3y + 4z − 17w = 6 Linear
sin x + 7y = 6 Not linear
xy + 6z = 4 Not linear
−3x 2 +y =0 Not linear
5x3 + 4x1 − x2 = 1 Linear
πx1 − x2 = 6 Linear
Example
Which of the following are linear equations in the variables
x, y , z, w, x1 , x2 , x3 ?
x − 3y + 4z − 17w = 6 Linear
sin x + 7y = 6 Not linear
xy + 6z = 4 Not linear
−3x 2 +y =0 Not linear
5x3 + 4x1 − x2 = 1 Linear
πx1 − x2 = 6 Linear
Definition
A system of linear equations or linear system is a finite
collection of linear equations.
Example
x +y −z +w =1
2x − y + 4z = 11
−3x + 4w = −6
m equations in n unknowns
a1 x + b1 y = c1
a2 x + b2 y = c2
a1 x + b1 y = c1
a2 x + b2 y = c2
a1 x + b1 y = c1
a2 x + b2 y = c2
The lines may intersect at only one point, in which case the
system has exactly one solution.
The lines may intersect at only one point, in which case the
system has exactly one solution.
The lines may intersect at only one point, in which case the
system has exactly one solution.
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2
a3 x + b3 y + c3 z = d3
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2
a3 x + b3 y + c3 z = d3
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2
a3 x + b3 y + c3 z = d3
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2
a3 x + b3 y + c3 z = d3
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2
a3 x + b3 y + c3 z = d3
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2
a3 x + b3 y + c3 z = d3
Example
Solve the linear systems:
x +y =1
2x − y = 11
x =4
y = −3
or (x, y ) = (4, −3).
Example
Solve the linear systems:
x +y =4
3x + 3y = 6
no solution
Example
Solve the linear systems:
4x − 2y = 1
16x − 8y = 4
Augmented Matrices
Definition
The linear system
Augmented matrices
Example
The system of linear equations
x1 + x2 + 2x3 = 9
2x1 + 4x2 − 3x3 = 1
3x1 + 6x2 − 5x3 =0
1 1 2 9
has the augmented matrix 2 4
−3 1
3 6 −5 0
These operations do not alter the solution set and that produce
a succession of increasingly simpler systems, until a point is
reached where it can be ascertained whether the system is
consistent, and if so, what its solutions are.
These operations do not alter the solution set and that produce
a succession of increasingly simpler systems, until a point is
reached where it can be ascertained whether the system is
consistent, and if so, what its solutions are.
These operations do not alter the solution set and that produce
a succession of increasingly simpler systems, until a point is
reached where it can be ascertained whether the system is
consistent, and if so, what its solutions are.
These operations do not alter the solution set and that produce
a succession of increasingly simpler systems, until a point is
reached where it can be ascertained whether the system is
consistent, and if so, what its solutions are.
These operations do not alter the solution set and that produce
a succession of increasingly simpler systems, until a point is
reached where it can be ascertained whether the system is
consistent, and if so, what its solutions are.
Note that:
Ri denotes the ith row.
The row you are changing must be written first.
Dr K Introduction to systems of linear equations
Linear Equations
Linear systems with two and three unknowns
Augmented Matrices
Elementary Row operations
Example
Use row operations to solve the system
x + y + 2z = 9
2x + 4y − 3z = 1
3x + 6y − 5z = 0
Solution:
Augmented matrix
x + y + 2z = 9
1 1 2 9
2x + 4y − 3z = 1 2 4 −3 1
3x + 6y − 5z = 0 3 6 −5 0
1 1 2 9 1 1 2 9
R2 −2R1 R3 −3R1
−→ 0 2 −7 −17 −→ 0 2 −7 −17
3 6 −5 0 0 3 −11 −27
1 1 1 2 9 1 1 2 9
R
2 2 R3 −3R2
−→0 1 − 72 − 17
2
−→ 0 1 − 72 − 17
2
0 3 −11 −27 0 0 − 12 − 23
Solution:
Augmented matrix
x + y + 2z = 9
1 1 2 9
2x + 4y − 3z = 1 2 4 −3 1
3x + 6y − 5z = 0 3 6 −5 0
1 1 2 9 1 1 2 9
R2 −2R1 R3 −3R1
−→ 0 2 −7 −17 −→ 0 2 −7 −17
3 6 −5 0 0 3 −11 −27
1 1 1 2 9 1 1 2 9
R
2 2 R3 −3R2
−→0 1 − 72 − 17
2
−→ 0 1 − 72 − 17
2
0 3 −11 −27 0 0 − 12 − 23
Solution:
Augmented matrix
x + y + 2z = 9
1 1 2 9
2x + 4y − 3z = 1 2 4 −3 1
3x + 6y − 5z = 0 3 6 −5 0
1 1 2 9 1 1 2 9
R2 −2R1 R3 −3R1
−→ 0 2 −7 −17 −→ 0 2 −7 −17
3 6 −5 0 0 3 −11 −27
1 1 1 2 9 1 1 2 9
R
2 2 R3 −3R2
−→0 1 − 72 − 17
2
−→ 0 1 − 72 − 17
2
0 3 −11 −27 0 0 − 12 − 23
Solution:
Augmented matrix
x + y + 2z = 9
1 1 2 9
2x + 4y − 3z = 1 2 4 −3 1
3x + 6y − 5z = 0 3 6 −5 0
1 1 2 9 1 1 2 9
R2 −2R1 R3 −3R1
−→ 0 2 −7 −17 −→ 0 2 −7 −17
3 6 −5 0 0 3 −11 −27
1 1 1 2 9 1 1 2 9
R
2 2 R3 −3R2
−→0 1 − 72 − 17
2
−→ 0 1 − 72 − 17
2
0 3 −11 −27 0 0 − 12 − 23
Solution:
Augmented matrix
x + y + 2z = 9
1 1 2 9
2x + 4y − 3z = 1 2 4 −3 1
3x + 6y − 5z = 0 3 6 −5 0
1 1 2 9 1 1 2 9
R2 −2R1 R3 −3R1
−→ 0 2 −7 −17 −→ 0 2 −7 −17
3 6 −5 0 0 3 −11 −27
1 1 1 2 9 1 1 2 9
R
2 2 R3 −3R2
−→0 1 − 72 − 17
2
−→ 0 1 − 72 − 17
2
0 3 −11 −27 0 0 − 12 − 23
Solution:
Augmented matrix
x + y + 2z = 9
1 1 2 9
2x + 4y − 3z = 1 2 4 −3 1
3x + 6y − 5z = 0 3 6 −5 0
1 1 2 9 1 1 2 9
R2 −2R1 R3 −3R1
−→ 0 2 −7 −17 −→ 0 2 −7 −17
3 6 −5 0 0 3 −11 −27
1 1 1 2 9 1 1 2 9
R
2 2 R3 −3R2
−→0 1 − 72 − 17
2
−→ 0 1 − 72 − 17
2
0 3 −11 −27 0 0 − 12 − 23
Example continued
1 1 2 9 1 1 2 9
−2R3
0 1 − 7 − 17 −→ 0 1 − 72
− 17
2 2 2
0 0 − 21 − 32 0 0 1 3
R1 − 11 R3
1 0 11 35
2 2
2 1 0 0 1
R2 + 72 R3
R1 −R2
−→ 0 1 − 72 − 17
2
−→ 0 1 0 2
0 0 1 3 0 0 1 3
Example continued
1 1 2 9 1 1 2 9
−2R3
0 1 − 7 − 17 −→ 0 1 − 72
− 17
2 2 2
0 0 − 21 − 32 0 0 1 3
R1 − 11 R3
1 0 11 35
2 2
2 1 0 0 1
R2 + 72 R3
R1 −R2
−→ 0 1 − 72 − 17
2
−→ 0 1 0 2
0 0 1 3 0 0 1 3
Example continued
1 1 2 9 1 1 2 9
−2R3
0 1 − 7 − 17 −→ 0 1 − 72
− 17
2 2 2
0 0 − 21 − 32 0 0 1 3
R1 − 11 R3
1 0 11 35
2 2
2 1 0 0 1
R2 + 72 R3
R1 −R2
−→ 0 1 − 72 − 17
2
−→ 0 1 0 2
0 0 1 3 0 0 1 3
Example continued
1 1 2 9 1 1 2 9
−2R3
0 1 − 7 − 17 −→ 0 1 − 72
− 17
2 2 2
0 0 − 21 − 32 0 0 1 3
R1 − 11 R3
1 0 11 35
2 2
2 1 0 0 1
R2 + 72 R3
R1 −R2
−→ 0 1 − 72 − 17
2
−→ 0 1 0 2
0 0 1 3 0 0 1 3
Example continued
1 1 2 9 1 1 2 9
−2R3
0 1 − 7 − 17 −→ 0 1 − 72
− 17
2 2 2
0 0 − 21 − 32 0 0 1 3
R1 − 11 R3
1 0 11 35
2 2
2 1 0 0 1
R2 + 72 R3
R1 −R2
−→ 0 1 − 72 − 17
2
−→ 0 1 0 2
0 0 1 3 0 0 1 3
Example continued
1 1 2 9 1 1 2 9
−2R3
0 1 − 7 − 17 −→ 0 1 − 72
− 17
2 2 2
0 0 − 21 − 32 0 0 1 3
R1 − 11 R3
1 0 11 35
2 2
2 1 0 0 1
R2 + 72 R3
R1 −R2
−→ 0 1 − 72 − 17
2
−→ 0 1 0 2
0 0 1 3 0 0 1 3
Example continued
1 1 2 9 1 1 2 9
−2R3
0 1 − 7 − 17 −→ 0 1 − 72
− 17
2 2 2
0 0 − 21 − 32 0 0 1 3
R1 − 11 R3
1 0 11 35
2 2
2 1 0 0 1
R2 + 72 R3
R1 −R2
−→ 0 1 − 72 − 17
2
−→ 0 1 0 2
0 0 1 3 0 0 1 3
Linear Equation
Consistent linear system
Homogenous linear
Inconsistent linear
equation
system
System of linear
Augmented matrix
equation
Elementary row
Solution of a linear
operations
system
Can you?
Exercise:
(a)
Solve the following linear systems
x + 3y + z = 5
2x + 7y + 2z = 4
(b) x + 2y + 2z = 3
3y − z = 4
x + 3y + z = 1
(c) x + 2z = 4
2x + 4y − 6z = 2
−x − 2y + 3z = −1
x +y +z = 3
(a) (x, y , z) = (31, −6, −8) (b) Inconsistent.
(c)(x, y , z) = (5, −2, 0) + t(−5, 4, 1)
Dr K Introduction to systems of linear equations