LADE7 Intro To Linear Equations
LADE7 Intro To Linear Equations
Lecture 7
Introduction to Linear Systems
1/1
An example
3x = 21
x =7
2/1
Two variables
An example
x + 3y
= 2
3x y
= 14
To solve this subtract three times the first equation from the second
equation giving
x + 3y
= 2
10y
= 20
3/1
= e
cx + dy
= f
They will have no solution if the two LHS of the equations are proportional
a
b
=
c
d
unless a/c = b/d = e/f when the equations are identical and there is an
infinite number of solutions.
Linear Algebra and Differential EquationsLecture 7Introduction to
June
Linear
22, Systems
2016
4/1
= 0
= 2
= 3
We will use the same strategy (Gaussian elimination) as we did in the two
variable case. As a first move replace the first equation with the difference
between the first equation and the second equation.
x +y +z
2x + 4y
y + 2z
= 2
= 2
= 3
5/1
= 2
= 6
= 3
Now if we replace the third equation by the sum of the second and third
equations
x +y +z
= 2
2y 2z
= 6
3y
= 3
the third equation immediately gives y=-1. Substituting this into the
second equation gives z=2. Substituting both of these into the first
equation gives x=1
Linear Algebra and Differential EquationsLecture 7Introduction to
June
Linear
22, Systems
2016
6/1
Matrices
Calculationally it is more efficient, and completely equivalent, to just work
with the numbers and have the variables understood. In our example we
would work with the augmented matrix
3 5 1 0
2 4 0 2
0 1 2 3
The array of coefficients
3 5 1
2 4 0
0 1 2
is called the coefficient matrix. The augmented matrix is obtained by
adding the constant vector as an extra column.
Linear Algebra and Differential EquationsLecture 7Introduction to
June
Linear
22, Systems
2016
7/1
8/1
9/1
1
0
0
0
2 3 0 2
2 0 1 3
0 0 1 2
0 0 0 0
An example
2 1 1 4
3 4 2 11
3 2 4 11
First we aim for two zeros in the first column
2 1
1 4
R2 1.5R1 R2
= 0 5.5 0.5 5
R3 1.5R1 R3
0 0.5 5.5 5
now
(R2 R3 )/6 R2
2R3 R3
2 1 1 4
0 1 1 0
0 1 11 10
R2 + R3 R3
2 1 1 4
0 1 1 0
0 0 10 10
1
0
0
0
0
0
1
0
0
0
3
5
0
0
0
0
0
1
0
0
0
0
0
1
0
0 4
0 6
0 3
0 0
1 8
An Example
2
3 1 12
4
1
2
19
6 5 3
24
2 3 1 12
R2 2R1 R2
43
= 0 5 4
R3 + 3R1 R3
0 4
0 12
2 3 1 12
R3 /4 R2
0
3
= 0 1
R2 R3
0 5 4
43
2 0 1 3
R1 3R2 R1
= 0 1 0 3
R3 + 5R2 R3
0 0 4 28
Linear Algebra and Differential EquationsLecture 7Introduction June
to Linear
22, 2016
Systems 14 / 1
2 0 1 3
R3 /4 R3 = 0 1 0 3
0 0 1
7
2 0 0 4
R1 + R3 R1 = 0 1 0 3
0 0 1 7
1 0 0 2
R1 /2 R1 = 0 1 0 3
0 0 1 7
and the solution to the original system is
x1 = 2
x2 = 3
x3 = 7
Homogeneous Equations
A homogeneous system is one where
Ax = 0
it always has the trivial solution x = 0. If A is an n n matrix and x is an
n 1 matrix then the system has only the trivial solution if A is row
equivalent to the matrix with 1s along the principal diagonal and zeros
everywhere else.
This matrix is called the n n identity matrix
1 0 0
0 1 0
I= . . .
. . ...
.. ..
0 0
An Example
Does the system of equations
2x1 3x2 + x3 = 0
4x1 + 4x2 3x3 = 0
2x1 x2 = 0
have a nontrivial
2 3
4 4
2 1
solution?
1
3
0
R2 2R1 R2
R3 R1 R3
2 3 1
0 10 5
0 2 1
R3 R2
R2 5R3 R3
2 3 1
0 2 1
0 0
0
R1 /2 R1
R2 /2 R2
1 1.5 0.5
0
1
0.5
0
0
0
Finally
R1 + 1.5R2 R1
1 0 0.25
0 1 0.5
0 0
0
x2 = 0.5x3