LAWeek1 MA2006-2
LAWeek1 MA2006-2
LAWeek1 MA2006-2
Linear Algebra
What we will do during the first 3 weeks
Review of matrices
Systems of linear algebraic equations AX=B
Finding solution(s) by row operations
Matrix eigenproblem
Diagonalisation problem
n =1
kn
nj
Example:
1 2
5
3 4
Q
=
3
5 6
32
2 24
1 2
5 1 2 2
PQ =
3 4
3
3
1
2
24
5 6
32
11 7 4 6
27
15
10
14
43 23 16 22
34
1
A = 2
3
1
=
A T =
2
3
3
4
1 2
BT
B = 5 6
7=
8
9 10 11 12
(1
3)
3
4
1 2
=
5
6
7
8
9 10 11 12
2
3
5 9
6 10
7 11
8 12
aN 1 x1 + aN 2 x2 + aN 3 x3 + ... + aNN xN =
bN
aij
bi
a12
A=
aN 1
x1
x2
X=
xN
a12
a22
aN 2
b1
b2
B=
bN
... a1N
... a2 N
aNN
Example:
2x + 3y =
10
x + y =
0
2 3 x 10
=
1 1 y 0
2 x + 3 y 10
=
x + y 0
x+ y =
10
x+ y =
5
Such a system is said to be inconsistent.
x+ y =
10
10
2x + 2 y =
20 x + y =
The system really contains only one linear algebraic
equation in 2 unknowns!
So we can find infinitely many solutions for the system.
1 4 5
0
1
6
0 0 2
0 0 0
8
0
To solve AX = B, reduce it to an
equivalent system UX = C, where
U is an upper triangular matrix.
How can this be done?
Write AX = B in tableau form A | B.
E.g.
2x + 3y + 4z =
6
3x + 5 y 2 z =
7
x + 10 y + 5 z =
9
2 3 4 6
3 5 2 7
1 10 5 9
Ri R j
Example
Solve the system (if it is consistent)
x + y 2 z + 3w =
2
x+ yz+w=
5
2x y + 4z =
1
y+z+w=
8
1 2 3 2
1 2 3 2
1 1 1 1 5
2 1 4 0 1
0 1 1 1 8
-3
8 -6 -3 R3 R3 2 R1
1 1 8
1 -2
3 R2 R2 R1
1 2
1 2
0 0
0 3
1 2 3
8 6 3
0 1
0 3
1 1 8
8 6 3
1 2
1 1
0 1
0 0
0 0
1
1
8
11 3 21
0 -19 12
R4 11R4 R3
1
0
0
0
R2 R4
1 2 3 2
1 1 1 8
0 11 -3 21 R3 R3 + 3R2
0
1 2
1 1 2
0 1
0 0
0 0
1
1 8
11 3 21
0 19 12
x + y 2 z + 3w =
2
y+z+w=
8
11z 3w = 21 z = (21 + 3w) /11 = 33/19
19 w =
12 w =
12 /19
x 9 /19
y
131/19
=
z 33/19
w 12 /19
Example
Solve the system (if it is consistent):
x + 2 y + 3z =
6
5x + 6 y + 7 z =
8
8 x + 9 y + 10 z =
0
5
8
6
9
7
10
8
0
1
0
0
22
14
48
R2 R2 5 R1
R3 R3 8 R1
1
0
0
2
4
7
3
6
8 22
14 48
1
0
0
2
4
0
3
8
6
22
38
R3 4 R3 7 R2
Example
x + 2 y + 3z =
8
5x + 6 y + 7 z =
24
8 x + 9 y + 10 z =
36
1
2
3
8
0 4 8 16
0
4 y 8s =16 y =
4 2s
x + 2(4 2s) + 3s = 8 x = s
x
y=
z
4 2s
s
Example
x + 2 y + 3z + 2w =
1
2 x + 5 y + 6 z + 4w =
0
3x + 7 y + 9 z + 6w =
1
x + 3 y + 3z + 2w =
1
1 2
0 1
0 0
0
0
1
0 2
0 0
0 0
where 0 =
0
.
x2
xN
0
= 0 is a solution, no matter what A is.
trivial solution
0
A|0
U|0
Example
Find all solutions of the homogeneous system
x + 2 y + 3z =
0
5x + 6 y + 7 z =
0
8 z + 9 z + 10 z =
0
z =t
y = 2t
x=t
infinitely many
solutions
1
5
2
6
3
7
0
0
10
1
0
2
-4
3
-8
-7
0
0 R2 R2 5 R1
0 R3 R3 8 R1
1
0
0
2
4
0
-14
3
8
0
0
R3 4 R3 7 R2
A|B
U|C
Vector space
An N-th dimensional vector is a well-ordered set of
x1
x2
N real numbers written in the form .
xN
For example,
and
3
2
8 are two different
4
3
1
3
0
R
write
.
5
Example:
If possible, express 3 as a linear combination of
4
0
1 3
and 1 .
1, 0
3
0 1
1
3
0
a + 3b
5
a 1 + b 0 +c 1 = a +c
-3 =
b + 3c
-4
0
1
3
If possible, solve: a + 3b +0c = 5 If this system has no
a + 0b + c = 3
0a + b +3c = 4
a
1
1
0
b
3
0
1
c
0
5
1 3
3 4
1 3 0 5
0 3 1 8
0 1 3 4
R2 R2 R1
10c = 20 c = 2
3b+(2) = 8 b = 2
a+3(2) = 5 a = 1
1
0
0
3 1 8
0 10 20
R3 3R3 + R2
5
Yes, we can express 3 as a linear combination of
4
0
1
3
and 1 !
1 , 0
5
1 3
0
3 = (1) 1 + 2 0 + (2) 1
4
0 1
3