An Introduction To Linear Algebra: Matrices and Linear Systems
An Introduction To Linear Algebra: Matrices and Linear Systems
A =
_
_
_
_
_
_
_
_
a
11
a
12
... ... a
1n
b
1
a
21
a
22
... ... a
2n
b
2
... ... ... ... ... ...
... ... ... ... ... ...
... ... ... ... ... ...
a
m1
a
m2
... ... a
mn
b
m
_
_
_
_
_
_
_
_
is called the augmented matrix of the system (1).
Example
The matrix form of the system
_
x + 2y = 0
2x + y = 1
is
_
1 2
2 1
__
x
y
_
=
_
0
1
_
.
Furthermore, x =
2
3
; y =
1
3
is a solution of the given system.
DEFINITION:
We say that a matrix is in row echelon form if
- All nonzero rows (rows with at least one nonzero element) are above
any rows of all zeros, and
- The leading coecient (the rst nonzero number from the left, also
called the pivot) of a nonzero row is always strictly to the right of the
leading coecient of the row above it.
Example
The following matrices are in the row echelon form
_
_
_
_
1 3 1 4
0 1 3 5
0 0 18 36
0 0 0 0
_
_
_
_
_
_
1 3 1 4
0 1 3 5
0 0 0 36
_
_
However the matrix below is not in the row echelon form.
_
_
1 3 1 4
0 1 3 5
0 6 0 36
_
_
as the leading coecient of row 3 (that is 6) is not strictly to the right of
the leading coecient of row 2 (that is -1).
Example
The following matrices are in the row echelon form
_
_
_
_
1 3 1 4
0 1 3 5
0 0 18 36
0 0 0 0
_
_
_
_
_
_
1 3 1 4
0 1 3 5
0 0 0 36
_
_
However the matrix below is not in the row echelon form.
_
_
1 3 1 4
0 1 3 5
0 6 0 36
_
_
as the leading coecient of row 3 (that is 6) is not strictly to the right of
the leading coecient of row 2 (that is -1).
DEFINITION
A system of linear equations is said to be in row echelon form if its
augmented matrix is in the row echelon form.
Ex: The system
x
1
3x
2
+ x
3
= 4
x
2
+ 3x
3
= 5
2x
3
= 2
is in the row echelon form because its augmented matrix is
_
_
1 3 1 4
0 1 3 5
0 0 2 2
_
_
Remark: It is very easy to solve a linear system whose augmented matrix
is in the row echelon form.
Solving linear systems: Gaussian Elimination
Elementary Operations on a linear system
(a) Add a multiple of one equation to another
(b) Interchange two equations
(c) Multiply an equation by a nonzero constant.
Elementary operations on a linear system correspond to the
following
Elementary row operations on a matrix
(a) Add a multiple of one row to another
(b) Interchange two rows
(c) Multiply a row by a nonzero constant.
Example
Linear system Associated augmented matrix
_
x 3y = 4
2x 8y = 2
_
1 3 4
2 8 2
_
Adding -2 times the rst equation Adding -2 times the rst row to the
to the second equation second row
_
x 3y = 4
0x 2y = 10
_
1 3 4
0 2 10
_
The second equation gives y = 5 and replacing y with 5 into the rst
equation, we get x = 19.
Gaussian Elimination
Gaussian elimination is an algorithm for solving systems of linear
equations.
Algorithm overview:
The process of Gaussian elimination has two parts:
1. Reduce a given system to the row echelon form (using of elementary
row operations).
( Or equivalently, we reduce an augmented matrix to the row echelon
form using elementary row operations)
2. Use back substitution to nd solutions of the given system.
Solving linear systems
Linear system Associated augmented matrix
_
x 3y = 4
2x 8y = 2
_
1 3 4
2 8 2
_
Adding -2 times the rst equation Adding -2 times the rst row to the
to the second equation second row
_
x 3y = 4
0x 2y = 10
_
1 3 4
0 2 10
_
The second equation gives y = 5 and replacing y with 5 into the rst
equation, we get x = 19.