Académique Documents
Professionnel Documents
Culture Documents
Alistair Savage
Mathematics and Statistics
University of Ottawa
Course webpage:
http://mysite.science.uottawa.ca/asavag2/mat1302
1 / 33
Overview
Webpage: http://mysite.science.uottawa.ca/asavag2/mat1302
Keys to success:
After each class, do the recommended exercises for that class before
the next lecture
Read the section in the text before each lecture
Attend class and the DGDs
If you have difficulties:
As soon as you have a difficulty, resolve it!
I
I
I
2 / 33
Taking notes
Partial slides will be posted before each class. Full slides will be posted
after each class. Download a copy to your personal computer or USB stick
in case the server goes down before an exam!
Video of each lecture will be made available for streaming online.
You should not try to write down everything presented in class (you wont
have enough time and you can download the slides).
Instead, you should focuss on writing down the key ideas, important
concepts, potential pitfalls, etc.
If you dont understand something at first, but then it clears up after
further examples done in class, you should write yourself a note about that
issue to remind yourself later.
3 / 33
Linear
Geometric: relating to lines
Algebraic: directly proportional (e.g. y = mx, m a constant)
Linear algebra
Study of vectors, matrices, linear transformations and systems of linear
equations
4 / 33
Linear geometry
Vectors and lines are linear
HH
HH
j
H
5 / 33
Linear equations
Question
What is a linear equation? Possible ideas:
Should be the equation of a linear geometric object (i.e. equation of a
line, plane, etc.).
Complication: How do we know this just by looking at an equation?
What about more variables (i.e. high dimensions we cant picture)?
Purely algebraic definition how can we make this precise?
Example
2x + 3y = 6
Example
2x + 3y + 0 z = 6
Note: We will often use x1 , x2 , x3 , . . . instead of x, y , z.
Alistair Savage (uOttawa)
6 / 33
7 / 33
Example 2
2x1 5 = 3x2 + x1 8
is a linear equation since it can be rewritten as
x1 3x2 = 3.
Example 3
2(x1 x2 ) = (5 x1 )
is a linear equation.
Alistair Savage (uOttawa)
8 / 33
Example 5
x12 + x2 = 3
is not linear.
9 / 33
x1 + x2 = 0
is not linear.
Example 7
x12 1 = (x1 + 1)(x1 1)
(1)
10 / 33
Example
3x1 2x2 + x3 =
4
5x2 x3 = 1
11 / 33
X
X
12 / 33
Solution sets
Definition (Solution set)
The solution set of a linear system is the set of all possible solutions of the
system.
Example 1
`1 : x1 + x2 = 3
`2 : 2x1 3x2 = 1
x2
6
`2
@r(0, 3)
@ r (2,
1)
@ r
@
(3, 0) @ `1
@
- x1
13 / 33
Solution sets
Example 2
`1 :
x1 + 2x2 = 2
`2 : x1 2x2 = 0
x2
6
H
HH
r(0, 1)
H
H
HH HH (2, 0)
r
-x
Hr
H
(0, 0) HH HH `1 1
Hr
HH
(2, 1)
`2
14 / 33
Solution sets
Example 3
`1 : x1 + 2x2 = 2
`2 : 2x1 + 4x2 = 4
x2
6
H
HH
r(0, 1)
H
HH
r 0)- x1
H(2,
HH
`1 = `2
15 / 33
Answer
A system of linear equations has either
1
No solution
system is inconsistent
system is consistent
16 / 33
Matrix notation
In order to simplify calculations, we often encode the info of a linear
system in a matrix.
Example
For the system
2x1 x2 x3 + x4 =
7
x2 + x3 + 2x4 = 8
5x1
3x3 x4 =
0
we have two matrices:
coefficient matrix
2 1 1 1
0 1
1
2
5 0 3 1
augmented matrix
2 1 1 1
7
0 1
1
2 8
5 0 3 1 0
17 / 33
Matrix sizes
In our previous example:
coefficient matrix
2 1 1 1
0 1
1
2
5 0 3 1
augmented matrix
2 1 1 1
7
0 1
1
2 8
5 0 3 1 0
The coefficient matrix has size 3 4 and the augmented matrix has size
3 5.
Definition
A matrix has size m n if it has m rows and n columns.
Note: Sometimes (for instance, in the text) the vertical bar in the
augmented matrix is omitted.
Alistair Savage (uOttawa)
18 / 33
Example
x1
x2
x3
x4
= 1
= 0
= 5
= 12
Moral
Ideally, we would like to manipulate a system to turn it into an easy
system like this.
This wont always be possible, but well come close.
Alistair Savage (uOttawa)
19 / 33
Example
Lets solve a particular linear system. In each step,
augmented matrix.
x2 + 3x3 =
6
0
3x1 + 4x2 x3 = 5
3
1
4 2 6
1 3
6
4 1 5
1 2 1 3
0 1 3
6
3 4 1 5
20 / 33
Example (cont.)
2
2x2 1x3 = 3
x2 + 3x3 =
6
2x2 + 2x3 =
4
Add 2 times R2 to R3 .
x1 + 2x2 1x3 = 3
x2 + 3x3 =
6
8x3 = 16
1 2 1 3
0 1
3
6
0 2 2
4
1 2 1 3
0 1 3
6
0 0 8 16
1 2 1 3
0 1 3
6
0 0 1
2
21 / 33
Example (cont.)
5
(a) Add R3 to R1 .
(b) Add (3)R3 to R2 .
x1 + 2x2
x2
x3
6
= 1
=
0
=
2
1 2 0 1
0 1 0 0
0 0 1 2
Add (2)R2 to R1 .
x1
x2
x3
= 1
=
0
=
2
1 0 0 1
0 1 0 0
0 0 1 2
x2 = 0,
x3 = 2.
22 / 33
Answer
Substitute our solution(s) into the original system of equations!
Example
In our example, we substitute x1 = 1, x2 = 0, x3 = 2 into the system
2x1
3x1
4x2
x2
4x2
2x3
+ 3x3
x3
23 / 33
Definition
Two matrices are row equivalent if one can be obtained from the other by
a sequence of elementary row operations.
24 / 33
Example
We see from our previous example that the matrices
2 4 2 6
1 0 0 1
0 1
3
6 and 0 1 0
0
2
3 4 1 5
0 0 1
are row equivalent since we obtained the second from the first via row
operations.
25 / 33
Examples
1
Operation: Multiply R2 by c, c 6= 0.
Reverse: Multiply R2 by 1/c.
26 / 33
Theorem
If the augmented matrices of two linear systems (LSs) are row equivalent,
then the two systems have the same solution set.
In our example, we solved the LS by finding a row equivalent one which
was simpler and allowed us to read off the solution.
27 / 33
Another Example
Determine if the following system is consistent:
x1 +
2x1 +
2x2 + x3 =
2
2x2 + 3x3 = 1
6x2 + 5x3 = 1
0 2 1
2
1
2 3 1
2
6 5 1
We use row operations to get it to triangular form.
28 / 33
0 2 1
2
1
2 3 1
2
6 5 1
1 2 3
1
(1)R1
2
1
0 2
2
6
5 1
1
2
3
1
1
( 2 )R2
0
1 1
1
2
0
2 1
1
1
2 3 1
R1 R2
2
0 2 1
2
6 5 1
1 2 3 1
2R1 +R3
1 2
0 2
0
2 1 1
1
1 2 3
2R +R3
0
2
1 1
1
2
0
0
0
3
3x3 =
1
1
x
=
1
3
2
0 =
3
We have a contradiction
= no solution!
The system is inconsistent.
29 / 33
Previous example
`1 : x1 + x2 = 3
`2 : 2x1 3x2 = 1
x2
6
`2
@r(0, 3)
@ r (2,
1)
@
r
(3, 0)@
@ `1
@
- x1
30 / 33
Example
Consider the linear system
4x
x
x
+ 2y
+ 2y
2y
+ 3z
+ 3z
z
= 3
= 3
= 3
31 / 33
32 / 33
Recap
Before next class, you should:
Go over webpage (syllabus, DGDs, grading, etc.).
Read Lecture 0 (background on sets, notation, etc.).
Do recommended exercises.
Read Sections WILA, SSLE, and RREF of the text.
Next time
We will develop a systematic procedure for solving systems of
equations.
Our procedure will allow us to solve any system of equations (or
determine that it has no solutions).
33 / 33