Elementary Linear Algebra: Howard Anton Chris Rorres
Elementary Linear Algebra: Howard Anton Chris Rorres
Solution(a)
we can assign an arbitrary value to x and solve for y ,
or choose an arbitrary value for y and solve for x .If
we follow the first approach and assign x an arbitrary
value ,we obtain x t , y 2t 1 or x
1
t
1
, y t2
1 1 2
2 2 4
arbitrary numbers t1, t 2 are called parameter.
for example 11 11
t1 3 yields the solution x 3, y as t 2
2 2
Example 2
Finding a Solution Set (2/2)
Find the solution of (b) x1 4 x2 7 x3 5.
Solution(b)
we can assign arbitrary values to any two
variables and solve for the third variable.
for example
x1 5 4s 7t , x2 s, x3 t
where s, t are arbitrary values
Linear Systems (1/2)
A finite set of linear equations in
the variables x1 , x2 ,..., xn a11x1 a12 x2 ... a1n xn b1
is called a system of linear
equations or a linear system . a21x1 a22 x2 ... a2 n xn b2
A sequence of numbers am1 x1 am 2 x2 ... amn xn bm
s1 , s2 ,..., sn is called a solution
of the system.
An arbitrary system of m
linear equations in n unknowns
A system has no solution is said
to be inconsistent ; if there is at
least one solution of the system,
it is called consistent.
Linear Systems (2/2)
Every system of linear equations has either
no solutions, exactly one solution, or
infinitely many solutions.
row-echelon form:
1 4 3 7 1 1 0 0 1 2 6 0
0 1 6 2, 0 1 0, 0 0 1 1 0
0 0 1 5 0 0 0 0 0 0 0 1
Example 2
More on Row-Echelon and Reduced
Row-Echelon form
All matrices of the following types are in row-echelon
form ( any real numbers substituted for the *’s. ) :
0 1 * * * * * * * *
1 * 1 * 1 *
*
* * * * * *
0 1 * * 0 1 * * 0 1 * *
0 0 0 1 * * * * *
, , , 0 0 0 0 1 * * * * *
0 0 1 * 0 0 1 * 0 0 0 0
0 0 0 0 0 1 * * * *
0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 *
1 0 0 5
(a) 0 1 0 2
0 0 1 4
Solution (a)
the corresponding system x 5
of equations is : y -2
z 4
Example 3
Solutions of Four Linear Systems (b1)
1 0 0 4 1
(b) 0 1 0 2 6
0 0 1 3 2
Solution (b)
free variables
1. The corresponding x1 4 x4 - 1
system of equations is : x2 2 x4 6
x3 3x4 2
leading
variables
Example 3
Solutions of Four Linear Systems (b2)
Solution (c)
1. The 4th row of zeros leads to
the equation places no x1 6 x2 4 x5 - 2
restrictions on the solutions x3 3x5 1
(why?). Thus, we can omit
this equation. x4 5 x5 2
Example 3
Solutions of Four Linear Systems (c2)
Solution (c)
x1 - 2 - 6 x2 - 4 x5
2. Solving for the leading x3 1 - 3x5
variables in terms of the free
variables: x4 2 - 5 x5
Solution (d):
the last equation in the corresponding system of
equation is
0 x1 0 x2 0 x3 1
0 0 2 0 7 12
2 4 10 6 12 28
2 4 5 6 5 1
Elimination Methods (2/7)
Step1. Locate the leftmost column that does not consist
entirely of zeros.
0 0 2 0 7 12
2 4 10 6 12 28
2 4 5 6 5 1
Leftmost nonzero column
1 2 5 3 6 14
0 0 1 0 7 6 The 1st row in the submatrix
2 was multiplied by -1/2 to
0 0 5 0 17 29 introduce a leading 1.
Elimination Methods (5/7)
Step5 (cont.)
-5 times the 1st row of the
1 2 5 3 6 14 submatrix was added to the 2nd
0 0 1 0 72 6 row of the submatrix to introduce
a zero below the leading 1.
0 0 0 0 12 1
1 2 5 3 6 14 The top row in the submatrix was
0 0 1 0 7 6 covered, and we returned again Step1.
2
0 0 0 0 12 1
Leftmost nonzero column in
the new submatrix
1 2 5 3 6 14
0 0 1 0 7 6 The first (and only) row in the
2 new submetrix was multiplied
0 0 0 0 1 2 by 2 to introduce a leading 1.
x1 3 x2 2 x3 2 x 5
x3 2 x4
x6 13
Substituting x3=-2 x4 into the 1st equation
x1 3 x2 2 x3 2 x 5
x3 2 x4
x6 1
Step3. Assign
3 free variables, the general solution is given by the
formulas.
x1 3r 4s 2t , x2 r , x3 2s, x4 s, x5 t , x6 13
Example 6
Gaussian elimination(1/2)
Solve x + y + 2z = 9 by Gaussian elimination and
2x + 4y - 3z = 1 back-substitution. (ex3 of
3x + 6y - 5z = 0
Section1.1) 1 1 2 9
2 3 1
Solution 4
We convert the augmented matrix
3 6 5 0
1 1 2 9
0 1 7 172
to the row-echelon form 2
0 0 1 3
x y 2 z 9, y 72 z 172 , z 3
The system corresponding to this matrix is
Example 6
Gaussian elimination(2/2)
Solution
Solving for the leading variables x 9 y 2 z,
y 172 72 z,
z 3
Substituting the bottom equation into those above
x 3 y,
y 2,
z 3
Substituting the 2nd equation into the top
x 1, y 2, z 3
Homogeneous Linear Systems(1/2)
A system of linear equations is said a11x1 a12 x2 ... a1n xn 0
to be homogeneous if the constant a21x1 a22 x2 ... a2 n xn 0
terms are all zero; that is , the
system has the form :
am1 x1 am 2 x2 ... amn xn 0
Every homogeneous system of linear equation is
consistent, since all such system have x1 0, x2 0,..., xn 0
as a solution. This solution is called the trivial solution;
if there are another solutions, they are called nontrivial
solutions.
There are only two possibilities for its solutions:
The system has only the trivial solution.
The system has infinitely many solutions in addition to
the trivial solution.
Homogeneous Linear Systems(2/2)
In a special case of a
homogeneous linear
system of two linear
equations in two
unknowns: (fig1.2.1)
Solution 2 2 1 0 1 0
The augmented matrix 1 1 2 3 1 0
1 1 2 0 1 0
0 0 0 1 0 0
1 2 2
3 0, 2 1 0 1
- 3, 0 1
2 1 , 3, 4
1 4 0 0 0
row matrix or row vector column matrix or
Size column vector
3 x 2, 1 x 4, 3 x 3, 2 x 1, 1x1
# columns
# rows
Matrices Notation and Terminology(1/2)
A general m x n matrix A as a11 a12 ... a1n
a a22 ... a2 n
A 21
am1 am 2 ... amn
If A aij and B bij have the same size,
then A B if and only if aij bij for all i and j.
Example 2
Equality of Matrices
Consider the matrices
2 1 2 1 2 1 0
A , B , C
3 x 3 5 3 4 0
Then
2 4 5 4 6 2 5 2
A B 1 2 2 3, A B 3 2 2 5
7 0 3 5 1 4 11 5
The expressions A+C, B+C, A-C, and B-C are undefined.
Definition
If A is any matrix and c is any scalar,
then the product cA is the matrix
obtained by multiplying each entry of
the matrix A by c. The matrix cA is
said to be the scalar multiple of A.
In matrix notation, if A aij , then
cAij c Aij caij
Example 4
Scalar Multiples (1/2)
For the matrices
2 3 4 0 2 7 9 6 3
A , B , C
1 3 1 1 3 5 3 0 12
We have
4 6 8 0 2 7 3 2 1
2A , -1B , 1
C
1 3 5
3
2 6 2 1 0 4
Solution
Since A is a 2 ×3 matrix and B is a 3 ×4 matrix,
the product AB is a 2 ×4 matrix. And:
Example 5
Multiplying Matrices (2/2)
Examples 6
Determining Whether a Product Is Defined
Suppose that A ,B ,and C are matrices with the following
sizes:
A B C
3 ×4 4 ×7 7 ×3
Solution:
Then by (3), AB is defined and is a 3 ×7 matrix; BC is
defined and is a 4 ×3 matrix; and CA is defined and is a 7 ×4
matrix. The products AC ,CB ,and BA are all undefined.
Partitioned Matrices
A matrix can be subdivided or partitioned into smaller matrices
by inserting horizontal and vertical rules between selected rows
and columns.
Observe that