Professional Documents
Culture Documents
Lecture1 Linear
Lecture1 Linear
Lecture1 Linear
1
Ex 1: (Linear or Nonlinear)
1
Linear ( a ) 3x + 2 y = 7 (b) x + y - p z = 2 Linear
2
p
Linear ( c ) x1 - 2 x2 + 10 x3 + x4 = 0 ( d ) (sin ) x1 - 4 x2 = e 2 Linear
2
Exponential
Nonlinear ( e) xy + z = 2 ( f ) ex - 2 y = 4 Nonlinear
Product of variables
1 1
Nonlinear ( g ) sinx1 + 2 x2 - 3x3 = 0 (h) + = 4 Nonlinear
x y
Trigonometric function not the first power
Solution set:
the set of all solutions of a linear equation
2
Ex 2: (Parametric representation of a solution set)
x1 + 2 x2 = 4
a solution: (2, 1), i.e. x1 = 2, x2 = 1
n Consistent:
A system of linear equations has at least one solution.
n Inconsistent:
A system of linear equations has no solution.
3
Notes:
4
Ex 5: (Using back substitution to solve a system in row echelon
form)
x - 2y = 5 (1)
y = -2 (2)
10
5
Equivalent:
Two systems of linear equations are called equivalent
if they have precisely the same solution set.
n Notes:
Eliminations: use following operations on a system of
linear equations to produce an equivalent system.
(1) Interchange two equations.
(2) Multiply an equation by a nonzero constant.
11
x - 2 y + 3z = 9 (1)
- x + 3y = -4 (2)
2 x - 5 y + 5 z = 17 (3)
12
6
(4) + (5) ® (5)
x - 2 y + 3z = 9
y + 3z = 5
2z = 4 (6)
(6) ´ 12 ® (6)
x - 2 y + 3z = 9
y + 3z = 5
z = 2
13
x1 - 3x2 + x3 = 1 (1)
2 x1 - x2 - 2 x3 = 2 (2)
x1 + 2 x2 - 3x3 = - 1 (3)
14
7
( 4) ´ ( -1) + (5) ® (5)
x1 - 3x2 + x3 = 1
5 x 2 - 4 x3 = 0
0 = -2 (a false statement)
15
Sol: (1) « ( 2)
x1 - 3 x3 = - 1 (1)
x 2 - x3 = 0 (2)
- x1 + 3 x2 = 1 (3)
16
8
x1 - 3 x3 = -1
x2 - x3 = 0
Þ x2 = x3 , x1 = -1 + 3x3
then x1 = 3t - 1,
x2 = t , tÎR
x3 = t ,
So this system has infinitely many solutions.
17
18
9
Ex 1: Matrix Size
[2] 1´ 1
é 0 0ù 2´2
êë0 0úû
é1 - 3 0 1 ù
êë 1´ 4
2 úû
é e p ù
ê2 2ú 3´ 2
êë - 7 4 úû
n Note:
One very common use of matrices is to represent a system
of linear equations.
19
Matrix form: Ax = b
20
10
n Coefficient matrix:
n Augmented matrix:
21
n Row equivalent:
Two matrices are said to be row equivalent if one can be obtained
from the other by a finite sequence of elementary row operation.
22
11
Ex 2: (Elementary row operation)
é 0 1 3 4ù r12 é - 1 2 0 3ù
ê - 1 2 0 3ú ê 0 1 3 4ú
êë 2 - 3 4 1úû êë 2 - 3 4 1úû
é2 - 4 6 - 2ù r1 2
(1)
é 1 - 2 3 - 1ù
ê 1 3 - 3 0ú ê 1 3 - 3 0ú
ëê 5 - 2 1 2úû ëê5 - 2 1 2úû
é 1 2 - 4 3ù r13( -2 ) é 1 2 - 4 3ù
ê 0 3 - 2 - 1ú ê0 3 - 2 - 1ú
êë2 1 5 - 2úû êë0 - 3 13 - 8úû
23
x - 2 y + 3z = 9 é 1 -2 3 9ù
- x + 3y = -4 ê- 1 3 0 - 4ú
ê ú
2 x - 5 y + 5z = 17 êë 2 - 5 5 17 úû
x - 2 y + 3z = 9 é 1 - 2 3 9ù
ê0 r12(1) : (1) R1 + R2 ® R2
y + 3z = 5 1 3 5ú
ê ú
2 x - 5 y + 5 z = 17 êë2 - 5 5 17 úû
x - 2 y + 3z = 9 é 1 - 2 3 9ù
ê0 1 3 5úú r13( -2 ) : (-2) R1 + R3 ® R3
y + 3z = 5 ê
- y - z = -1 êë0 - 1 - 1 - 1úû
24
12
Associated Elementary
Linear System Augemented Matrix Row Operation
x - 2 y + 3z = 9 é 1 - 2 3 9ù r23(1) : (1) R2 + R3 ® R3
ê0 1 3 5ú
y + 3z = 5 ê ú
2z = 4 êë0 0 2 4úû
x - 2 y + 3z = 9 é 1 - 2 3 9ù 1
( ) 1
ê0 1 3 5ú r3 2 : ( ) R3 ® R3
y + 3z = 5 ê ú 2
z = 2 ëê0 0 1 2ûú
x = 1
y = -1
z = 2
25
26
13
Ex 4: (Row-echelon form or reduced row-echelon form)
é 1 2 - 1 4ù (row - echelon é0 1 0 5ù (reduced row -
ê0 1 0 3ú ê0 0 1 3ú
êë0 0 1 - 2úû form) êë0 0 0 0úû echelon form)
é 1 - 5 2 - 1 3ù é1 0 0 - 1ù
ê0 0 1 3 - 2ú (row - echelon ê0 1 0 2ú (reduced row -
ê0 0 0 1 4ú form) ê0 0 1 3ú echelon form)
ëê0 0 0 0 1ûú êë0 0 0 0úû
é 1 2 - 3 4ù é 1 2 - 1 2ù
ê0 2 1 - 1ú ê 0 0 0 0ú
ëê0 0 1 - 3ûú ëê0 1 2 - 4ûú
27
Gaussian elimination:
The procedure for reducing a matrix to a row-echelon form.
Gauss-Jordan elimination:
The procedure for reducing a matrix to a reduced row-echelon
form.
n Notes:
(1) Every matrix has an unique reduced row echelon form.
28
14
Ex: (Procedure of Gaussian elimination and Gauss-Jordan elimination)
Produce leading 1
⎡ 0 0 −2 0 8 12 ⎤ ⎡ 2 8 −6 4 12 28 ⎤
⎢ ⎥ r12 ⎢ ⎥
⎢ 2 8 −6 4 12 28 ⎥ ⎢ 0 0 −2 0 8 12 ⎥
⎢⎣ 2 8 −1 4 −5 4 ⎥⎦ ⎢⎣ 2 8 −1 4 −5 4 ⎥⎦
The first nonzero column
29
leading 1
( - 12 ) é1 4 - 3 2 6 14ù
r23( -5) éê
1 4 -3 2 6 14ù
r ê0 0
2
1 0 - 4 - 6ú 0 0 1 0 - 4 - 6ú
ê ú ê ú
êë0 0 5 0 - 17 - 24úû êë0 0 0 0 3 6úû
Zeros elements below leading 1 Submatrix
Produce leading 1
Zeros elsewhere
1
r3 3
( )
é1 4 - 3 2 6 14ù r31( -6 ) é1 4 - 3 2 0 2ù
ê0 0 ê0 0 1 0 - 4 - 6ú
1 0 - 4 - 6ú ê ú
ê ú
êë0 0 0 0 1 2úû ëê0 0 0 0 1 2ûú
leading 1 (row - echelon form)
(row - echelon form)
r32( 4 ) é 1 4 - 3 2 0 2ù é 1 4 0 2 0 8ù
ê0 0 r21(3)
1 0 0 2ú ê0 0 1 0 0 2 ú
ê ú ê ú
ëê0 0 0 0 1 2ûú êë0 0 0 0 1 2úû
(row - echelon form) (reduced row - echelon form)
30
15
Ex 7: Solve a system by Gauss-Jordan elimination method
(only one solution)
x - 2 y + 3z = 9
- x + 3y = -4
2 x - 5 y + 5 z = 17
Sol:
augmented matrix
é 1 - 2 3 9ù r12(1) , r13( -2 ) é 1 - 2 3 9ù r23(1) é 1 - 2 3 9ù
ê0
ê - 1 3 0 - 4ú ê0 1 3 5úú ê 1 3 5úú
ê
êë 2 - 5 5 17úû êë0 - 1 - 1 - 1úû êë0 0 2 4úû
1
( ) ( 2) ( -3) ( -9 )
r 3
2
é 1 - 2 3 9ù r21 , r32 , r31 é 1 0 0 1ù x = 1
ê0 1 3 5ú ê0 1 0 - 1ú y = -1
ëê 0 0 1 2 úû ëê0 0 1 2ûú z = 2
(row - echelon form) (reduced row - echelon form)
31
32
16
x1 = 2 - 5 x3
x 2 = - 1 + 3 x3
Let x3 = t
x1 = 2 - 5t ,
x2 = -1 + 3t , tÎR
x3 = t ,
33
34
17
Trivial solution:
x1 = x2 = x3 = ! = xn = 0
n Nontrivial solution:
other solutions
n Notes:
(1) Every homogeneous system of linear equations is consistent.
(2) If the homogenous system has fewer equations than variables,
then it must have an infinite number of solutions.
(3) For a homogeneous system, exactly one of the following is true.
(a) The system has only the trivial solution.
(b) The system has infinitely many nontrivial solutions in
addition to the trivial solution.
35
36
18