Section1 1 LinearSystem
Section1 1 LinearSystem
Xiaozhou Li
xiaozhouli@uestc.edu.cn
School of Mathematical Sciences,
UESTC, Chengdu, China
Outline
1 Definition
2 Solution Set
3 Existence and Uniqueness Questions
4 Matrix Notation
5 Solving a Linear System
A linear equation in the variables x1 , . . . , xn is an
equation that can be written in the form
a1 x 1 + a2 x 2 + · · · + an x n = b
where b and the coefficients a1 , . . . , an are real or
complex numbers.
A linear equation in the variables x1 , . . . , xn is an
equation that can be written in the form
a1 x 1 + a2 x 2 + · · · + an x n = b
where b and the coefficients a1 , . . . , an are real or
complex numbers.
Examples
Linear Equations:
√
3x1 − 5 = x2 and 2x1 = 3 + x3
A linear equation in the variables x1 , . . . , xn is an
equation that can be written in the form
a1 x 1 + a2 x 2 + · · · + an x n = b
where b and the coefficients a1 , . . . , an are real or
complex numbers.
Examples
Linear Equations:
√
3x1 − 5 = x2 and 2x1 = 3 + x3
An example
x1 +x2 −x3 = 1.5
2x1 +2x3 = −1
Solution of Linear System
x1 − 2x2 = −1
−x1 + 3x2 =3
Situations for Solution Set
Example
Find the solution of the following linear system
x1 − 2x2 = −1
−x1 + 3x2 =3
It amounts to finding
the intersection to
two lines.
Situations for Solution Set
Example x1 ! 2x2 D !1
!x1 C 3x2 D 3
Find the solution of the following linear system
`1 `2
.x1 ; x2 / .x
`1 − 2x2 = −1
x`21 .3; 2/
−x1 + 3x2 =3
x2
2
It amounts to finding
the intersection to x1
3
two lines. ℓ2
ℓ1
'*(63&
Situations for Solution Set
Example x1 ! 2x2 D !1
!x1 C 3x2 D 3
Find the solution of the following linear system
`1 `2
.x1 ; x2 / .x
`1 − 2x2 = −1
x`21 .3; 2/
−x1 + 3x2 =3
x2
2
It amounts to finding
the intersection to x1
3
two lines. ℓ2
ℓ1
A'*(63&
Unique Solution
x1 − 2x2 = −1
−x1 + 2x2 =3
1
'*(63&
x1 − 2xx21 !=2x2−1
D !1 x1 ! 2x2 D !1
−x1 + 2x
!x21 C 2x=
2 D3 3 !x1 C 2x2 D 1
x2 x2
2 2
x1 x1
3 3
ℓ2
ℓ1 ℓ1
(a) (b)
'*(63&
1
'*(63&
x1 − 2xx21 !=2x2−1
D !1 x1 ! 2x2 D !1
−x1 + 2x
!x21 C 2x=
2 D3 3 !x1 C 2x2 D 1
x2 x2
2 2
x1 x1
3 3
ℓ2
ℓ1 ℓ1
'*(63&
x1 − 2xx21 !=2x2−1
D !1 x1 ! 2xx2 1D−
!12x2 = −1
−x1 + 2x
!x21 C 2x=
2 D3 3 !x1 C−x
2x2 1D+12x2 =1
x2 x2
2 2
x1 x1
3 3
ℓ2
ℓ1 ℓ1
'*(63&'*(63&
x1 − 2xx21 != x12−1
2x ! !12 D !1
D 2x xx
x1 ! 2x D−
!
12 1 !122x
2x D !1
2 = −1
−x1 + 2x
!x21 C!x
2x1=C 2x2 D 3
2 D3 3 !x1 C−x
!x D+
C
2x12 1 2x122x
D 21 =1
x2 x2 x2 x2
2 2 2 2
x1 x1 x1 x1
3 3 3 3
ℓ2 ℓ2
ℓ1 ℓ1 ℓ1 ℓ1
(a) (b)
No Solution (a) (b)
'*(63&'*(63&
1
'*(63&'*(63&
x1 − 2xx21 != x12−1
2x ! !12 D !1
D 2x xx
x1 ! 2x D−
!
12 1 !122x
2x D !1
2 = −1
−x1 + 2x
!x21 C!x
2x1=C 2x2 D 3
2 D3 3 !x1 C−x
!x D+
C
2x12 1 2x122x
D 21 =1
x2 x2 x2 x2
2 2 2 2
x1 x1 x1 x1
3 3 3 3
ℓ2 ℓ2
ℓ1 ℓ1 ℓ1 ℓ1
'*(63&'*(63&
Three Possible Situations
x1 −2x2 +x3 = 0
2x2 −8x3 = 8
5x1 −5x3 = 10
A linear system can be recorded compactly in a
rectangular matrix.
x1 −2x2 +x3 = 0
2x2 −8x3 = 8
5x1 −5x3 = 10
1 −2 1 1 −2 1 0
0 2 −8 0 2 −8 8
5 0 −5 5 0 −5 10
A linear system can be recorded compactly in a
rectangular matrix.
x1 −2x2 +x3 = 0
2x2 −8x3 = 8
5x1 −5x3 = 10
1 −2 1 1 −2 1 0
0 2 −8 0 2 −8 8
5 0 −5 5 0 −5 10
Strategy
Replace the system with an equivalent system (with
the same solution set) that is easier to solve.
Solving a Linear System
Strategy
Replace the system with an equivalent system (with
the same solution set) that is easier to solve.
Strategy
Replace the system with an equivalent system (with
the same solution set) that is easier to solve.
x1 −2x2 +x3 = 0
2x2 −8x3 = 8
5x1 −5x3 = 10
Solving a Linear System
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
2x2 ! 8x3 D 8 40 2 !8 85
5x1 ! 5x3 D 10 5 0 !5 10
x1 −2x2 +x3 = 0 " #
x1 1 −2 1 0
2x2 −8x3 = 8
0 2 −8 8
5x1 −5x3 = 10
5 0 −5 10
!5 " Œ 1! !5x1 C 10x 2 ! 5x3 D 0
CŒ 3! 5x1 ! 5x3 D 10
Œ 3! 10x 2 ! 10x3 D 10
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
2x2 ! 8x3 D 8 40 2 !8 85
0 10 !10 10
!5 " Œ 1! !5x1 C 10x 2 ! 5x3 D 0
CŒ 3! 5x1 ! 5x3 D 10
Œ 3! 10x 2 ! 10x3 D 10
The third equation is replaced (replacement)
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
2x2 ! 8x3 D 8 40 2 !8 85
10x 2 ! 10x3 D 10 0 10 !10 10
1
2
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x2 ! 4x3 D 4 40 1 !4 45
10x 2 ! 10x3 D 10 0 10 !10 10
x2 10x2
!10
!10 "" ŒŒ 2!
2! !10x
!10x22 C 40x33 D
C 40x D !40
!40
2 3
10x 2 ! 10x3 D 10 0 10 !10 10
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x2 ! 4x3 D 4 40 1 !4 45
30x3 D !30 0 0 30 !30
1
30
x3
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x2 ! 4x3 D 4 40 1 !4 45
10x
2 2 ! 10x
3 3 D 10
10x 2 ! 10x3 D 10 0 10 !10 10
x2 10x2
x2 Another replacement 10x2
!10 " Œ 2! !10x 2 C 40x3 D !40
!10 " Œ C Œ 2! 3! !10x10x
2 C240x 3 D3!40
! 10x D 10
CŒ Œ 3! 3! 10x 2 ! 10x30x D 10
3 D !30
3
Œ 3! 30x3 D !30
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 30
2
x1 ! 2x 2 C D3 D 0 4
x2 !x34x 14 !2
0 1 1 !4 0 4 5
x2 ! 4x30x
3 D3 D 4!30
4 5
0 0 1 0!4 30 4!30
30x3 D !30 0 0 30 !30
1
30
x
1
30
x3
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
2 3
x1 ! 2x 2 C
x2 ! D3
x34x D0 4 14 !2
0 1 1 !4 0 4 5
x2 ! 4x3 D 4 0 0 1 !4
0 14 5!1
x3 D4 !1
x2 10x
2 2 ! 10x
3 3 D 10 10x2
10x 2 ! 10x3 D 10 0 10 !10 10
x2 10x2
x2 Another!10 "Œ 2!
replacement 10x2
!10x 2 C 40x3 D !40
!10
CŒ " Œ 3! 2! !10x
10x 2 C
2 ! 3 D 10
3 D
40x
10x !40
!10Œ " ŒCŒ 2!3! 3! !10x10x
2 C240x
! 3 D !40
3 D
3 D
10x
30x !3010
CŒ Œ 3! 3! 10x 2 ! 10x30x 3 D D10!30
3
Œ 3! 2 30x3 D !30 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x1 !x2x 2 C4x3 xD
2 ! 3 D 4 0
4 0 1 1!2 !4 1 4 50 3
2
2 3
x1 ! 2x 2 C
x2 !x34x
30x D3 D
3 D
0 4
!30 104 !2 1 !4!30
0 0 1 30 0 45
x2 ! 4x130x
3 D3 D 4!30
4 0 0 1 0!4 30 4!30
5
0 0 30 !30 x3
30x303 D !30
Another scaling 1
x
30
1 2 3 x3
x1 ! 2x 2 C30x3 D 0 1 !2 1 0
x1 !x2x 2 C
2 ! 3 D4 0
4x3 xD 4 02 1 1!2!4 1 4 50 3
2 3
x1 ! 2x 2 C
x2 ! D3 D
xx34x
3 D
0 4
!1 0 0 1 11!4!1
104 !2 0 45
x2 ! 4x3 D 4 0 0 1 !40 14 5 !1
x3 D4 !1
x2 ! 4x3 D 4 40 1 !4 45
30x3 D !30 0 0 30 !30
Backward Substitution
1
x3
30
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x2 ! 4x3 D 4 40 1 !4 4 5
x3 D !1 0 0 1 !1
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x2 ! 4x3 D 4 40 1 !4 4 5
x3 D !1 0 0 1 !1
x2 ! 4x3 D 4 40 1 !4 45
30x3 D !30 0 0 30 !30
Backward Substitution
1
x3
30
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x2 ! 4x3 D 4 40 1 !4 4 5
x3 D !1 0 0 1 !1
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x2 ! 4x3 D 4 40 1 !4 4 5
x3 D !1 0 0 1 !1
2 3
x1 ! 2x 2 C x3 D 0 1 !2 1 0
x2 ! 4x3 D 4 40 1 !4 4 5
x3 D !1 0 0 1 !1
Equivalent System
If the augmented matrices of two linear systems are
row equivalent, then the two linear systems have the
same solution set.
Example
Determine if the system is consistent:
x2 −4x3 = 8
2x1 −3x2 +2x3 = 1
4x1 −8x2 +12x3 = 1
Example
Determine if the system is consistent:
x2 −4x3 = 8
2x1 −3x2 +2x3 = 1
4x1 −8x2 +12x3 = 1
x2 −4x3 = 8
2x1 −3x2 +2x3 = 1
4x1 −8x2 +12x3 = 1
x2 −4x3 = 8
2x1 −3x2 +2x3 = 1
4x1 −8x2 +12x3 = 1
x2 −4x3 = 8
2x1 −3x2 +2x3 = 1
4x1 −8x2 +12x3 = 1