4MTH272 Note2
4MTH272 Note2
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 t2
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.
3 -2 2 9 R1 <–> R2 1 -2 1 5
1 -2 1 5 3 -2 2 9
2 -1 -2 -1 2 -1 -2 -1
1 -2 1 5
R2 -> R2 – 3R1
0 4 -1 -6
2 -1 -2 -1
1 -2 1 5
R3 -> R3 – 2R1 0 4 -1 -6
0 3 -4 -11
1 -2 1 5
R2 -> R2 – R3
0 1 3 5
0 3 -4 -11
1 -2 1 5
R3 -> R3 – 3R2 0 1 3 5
0 0 -13 -26
1 -2 1 5
R3 -> - 1/13R3
0 1 3 5
0 0 1 2
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
1 2 -1 1
2 5 -1 3
1 3 2 6
Elimination Methods (2/6)
Step1.
1 2 -1 1
R2 -> R2 – 2R1 0 1 1 1
1 3 2 6
Step2.
1 2 -1 1
R3 -> R3 – R1 0 1 1 1
0 1 3 5
Elimination Methods (3/6)
Step3.
1 2 -1 1
R3 -> R3 – R2 0 1 1 1
0 0 2 4
Step4.
1 2 -1 1
R3 -> 1/2R3 0 1 1 1
0 0 1 2
Elimination Methods (4/6)
Step5.
1 0 -3 -1
R1 -> R1 – 2R2 0 1 1 1
0 0 1 2
Step6.
1 0 -3 -1
R2 -> R2 - R3 0 1 0 -1
0 0 1 2
Elimination Methods (5/6)
Step7.
1 0 0 5
R1 -> R1 + 3R3 0 1 0 -1
0 0 1 2
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⎤ ⎡l π − 2⎤
⎢3 ⎢ ⎥ ⎡1 ⎤
⎢ 0 ⎥⎥ , [2 1 0 - 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 ⎡ a 11 a 12 ... a1n ⎤
⎢a a 22 ... a2n ⎥
A = ⎢ 21 ⎥
⎢ M M M ⎥
⎢ ⎥
⎣ a m 1 a m 2 ... a mn ⎦
⎡ a 11 a 12 ... a1n ⎤
⎢a ⎥
⎢ 21 a 22 ... a 2n ⎥
⎢ M M M ⎥
⎢ ⎥
⎣ a m 1 a m 2 ... a mn ⎦
Definition
Two matrices are defined to be equal
if they have the same size and their
corresponding entries are equal.
[ ] [ ]
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
(cA)ij = c( A)ij = caij
Example 4
Scalar Multiples (1/2)
For the matrices
⎡2 3 4⎤ ⎡0 2 7 ⎤ ⎡9 − 6 3 ⎤
A=⎢ ⎥ , B=⎢ ⎥ , C = ⎢3 0 12⎥
⎣1 3 1 ⎦ ⎣ − 1 3 − 5 ⎦ ⎣ ⎦
We have
⎡4 6 8⎤ ⎡0 − 2 − 7 ⎤ ⎡3 − 2 1⎤
2A = ⎢ ⎥ , (- 1)B = ⎢ ⎥ , 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.
If a1 ,a2 ,...,am denote the row matrices of A and b1 ,b2, ...,bn denote
the column matrices of B ,then it follows from Formulas (6)and
(7)that
Example 7
Example5 Revisited
This is the special case of a more general procedure for
multiplying partitioned matrices.
If A and B are the matrices in Example 5,then from (6)the
second column matrix of AB can be obtained by the
computation
M M M M
a m 1 x1 + a m 2 x 2 + ... + a mn xn = bm
Since two matrices are equal if
⎡a11 x1 + a12 x2 + ... + a1n xn ⎤ ⎡b1 ⎤
and only if their corresponding ⎢a x + a x + ... + a x ⎥ ⎢b ⎥
⎢ 21 1 22 2 2n n ⎥
=⎢ 2⎥
entries are equal. ⎢ M M M ⎥ ⎢M ⎥
⎢ ⎥ ⎢ ⎥
a x +
⎣ m1 1 m 2 2
a x + ... + a mn n ⎦
x ⎣bm ⎦
The m×1 matrix on the left side ⎡a11 a12 ... a1n ⎤ ⎡ x1 ⎤ ⎡b1 ⎤
⎢a a ... a ⎥ ⎢ x ⎥ ⎢b ⎥
of this equation can be written ⎢ 21 22 2n ⎥ ⎢ 2 ⎥
=⎢ 2⎥
⎢ M M M ⎥ ⎢M ⎥ ⎢M ⎥
as a product to give: ⎢ ⎥⎢ ⎥ ⎢ ⎥
⎣ m1 m 2
a a ... a mn ⎦ ⎣ xm ⎦ ⎣bm ⎦
Matrix form of a Linear System(1/2)
If w designate these matrices by A ,x ,and
b ,respectively, the original system of m equations in n
unknowns has been replaced by the single matrix
equation
The matrix A in this equation is called the coefficient
matrix of the system. The augmented matrix for the
system is obtained by adjoining b to A as the last
column; thus the augmented matrix is
Definition
If A is any m×n matrix, then the transpose
T
of A ,denoted by A ,is defined to be the
n×m matrix that results from interchanging
the rows and columns of A ; that is, the
first column of AT is the first row of A ,the
second column of AT is the second row of
A ,and so forth.
Example 10
Some Transposes (1/2)
Example 10
Some Transposes (2/2)
Observe that
Notation:
B = A−1
Example5
Verifying the Inverse requirements
Example6
A Matrix with no Inverse
Properties of Inverses
It is reasonable to ask whether an
invertible matrix can have more than one
inverse. The next theorem shows that the
answer is no an invertible matrix has
exactly one inverse .
Theorem 1.4.4
Theorem 1.4.5
Theorem 1.4.6
Theorem 1.4.4
A A =A
r s r+s
, (A )
r s
= Ars
Theorem 1.4.8
Laws of Exponents
T
If A is an invertible matrix ,then A
is also invertible and
(A )
T −1
(
= A )
−1 T
Example 10
Verifying Theorem 1.4.10
1.5 Elementary Matrices and
-1
a Method for Finding A
Definition
An n×n matrix is called an
elementary matrix if it can be
obtained from the n×n identity
matrix I n by performing a single
elementary row operation.
Example1
Elementary Matrices and Row Operations
Theorem 1.5.1
Row Operations by Matrix Multiplication
If the elementary matrix E results from
performing a certain row operation on I m
and if A is an m×n matrix ,then the
product EA is the matrix that results
when this same row operation is
performed on A .
Solution
Theorem 1.6.3
[ ]
a matrix A = aij is symmetric if and only if
aij = a ji for all values of i and j .
Example4
Symmetric Matrices
Theorem 1.7.2
Recall : ( AB )T = B T AT = BA
Since AB and BA are not usually equal, it follows that AB will
not usually be symmetric.
However, in the special case where AB=BA ,the product AB will
be symmetric. If A and B are matrices such that AB=BA ,then
we say that A and B commute .
In summary:
The product of two symmetric matrices is symmetric if and
only if the matrices commute .
Example5
Products of Symmetric Matrices
If A is an invertible symmetric
matrix ,then A−1 is symmetric.
A is square matrix. If A is
an invertible matrix ,then
T
AA
and AT A are also invertible.