Lecture1
Lecture1
Week 1: Lecture 1
Emre Mengi
1
What is Linear Algebra and Why?
1
What is Linear Algebra and Why?
• linear equations,
1
What is Linear Algebra and Why?
• linear equations,
• linear functions,
1
What is Linear Algebra and Why?
• linear equations,
• linear functions,
• linear sets.
1
What is Linear Algebra and Why?
• linear equations,
• linear functions,
• linear sets.
1
What is Linear Algebra and Why?
• linear equations,
• linear functions,
• linear sets.
• We can say a lot about them; there are common tools (a general theory)
that apply to all linear objects.
1
What is Linear Algebra and Why?
• linear equations,
• linear functions,
• linear sets.
• We can say a lot about them; there are common tools (a general theory)
that apply to all linear objects.
1
What is Linear Algebra and Why?
• linear equations,
• linear functions,
• linear sets.
• We can say a lot about them; there are common tools (a general theory)
that apply to all linear objects.
1
What is Linear Algebra and Why?
• linear equations,
• linear functions,
• linear sets.
• We can say a lot about them; there are common tools (a general theory)
that apply to all linear objects.
• At other times, linear objects may give insight about nonlinear objects.
1
Systems of Linear Equations
`1 : a11 x1 + a12 x2 = b1
`2 : a21 x1 + a22 x2 = b2
2
Systems of Linear Equations
`1 : a11 x1 + a12 x2 = b1
`2 : a21 x1 + a22 x2 = b2
2
Systems of Linear Equations
`1 : a11 x1 + a12 x2 = b1
`2 : a21 x1 + a22 x2 = b2
-2
-4
-6
-6 -4 -2 0 2 4 6
2
Systems of Linear Equations
`1 : a11 x1 + a12 x2 = b1
`2 : a21 x1 + a22 x2 = b2
-2
-4
-6
-6 -4 -2 0 2 4 6
• A solution (s1 , s2 ) when substituted for (x1 , x2 ) satisfies both linear equations.
2
Systems of Linear Equations
`1 : a11 x1 + a12 x2 = b1
`2 : a21 x1 + a22 x2 = b2
-2
-4
-6
-6 -4 -2 0 2 4 6
• A solution (s1 , s2 ) when substituted for (x1 , x2 ) satisfies both linear equations.
(for example, intersection point of `1 and `2 in the plot above is the solution)
2
Systems of Linear Equations
Examples
(1)
`1 : 2x1 + x2 = 1
`2 : x1 + 2x2 = 1
3
Systems of Linear Equations
Examples
(1)
`1 : 2x1 + x2 = 1
`2 : x1 + 2x2 = 1
(2)
`1 : 2x1 + x2 = 1
`2 : 4x1 + 2x2 = 4
has no solution.
3
Systems of Linear Equations
Examples
(1)
`1 : 2x1 + x2 = 1
`2 : x1 + 2x2 = 1
(2)
`1 : 2x1 + x2 = 1
`2 : 4x1 + 2x2 = 4
has no solution.
(3)
`1 : 2x1 + x2 = 1
`2 : 4x1 + 2x2 = 2
3
Systems of Linear Equations
`1 : a11 x1 + a12 x2 = b1
`2 : a21 x1 + a22 x2 = b2
4
Systems of Linear Equations
`1 : a11 x1 + a12 x2 = b1
`2 : a21 x1 + a22 x2 = b2
4
Systems of Linear Equations
a1 x 1 + a2 x 2 + · · · + an x n = b
variables — x1 , x2 , . . . , xn .
5
Systems of Linear Equations
a1 x 1 + a2 x 2 + · · · + an x n = b
variables — x1 , x2 , . . . , xn .
Geometric View
5
Systems of Linear Equations
a1 x 1 + a2 x 2 + · · · + an x n = b
variables — x1 , x2 , . . . , xn .
Geometric View
• a line when n = 2,
5
Systems of Linear Equations
a1 x 1 + a2 x 2 + · · · + an x n = b
variables — x1 , x2 , . . . , xn .
Geometric View
• a line when n = 2,
• a plane when n = 3,
5
Systems of Linear Equations
a1 x 1 + a2 x 2 + · · · + an x n = b
variables — x1 , x2 , . . . , xn .
Geometric View
• a line when n = 2,
• a plane when n = 3,
• a hyperplane when n 4.
5
Systems of Linear Equations
a1 x 1 + a2 x 2 + · · · + an x n = b
variables — x1 , x2 , . . . , xn .
Geometric View
• a line when n = 2,
• a plane when n = 3,
• a hyperplane when n 4.
Examples
2x1 x2 = 3
x1 + 5x2 + x3 = 2
5
Systems of Linear Equations
..
.
6
Systems of Linear Equations
..
.
6
Systems of Linear Equations
..
.
6
Systems of Linear Equations
..
.
Geometric View
A solution of the system above is an intersection point of m hyperplanes.
6
Matrix Representations
..
.
7
Matrix Representations
..
.
7
Matrix Representations
..
.
7
Matrix Representations
..
.
7
Matrix Representations
..
.
7
Matrix Representations
Coefficient Matrix
2 3
a11 a12 . . . a1n
6 a 7
6 21 a22 . . . a2n 7
6 .. .. 7
4 . . 5
am1 am2 . . . amn
Augmented Matrix
2 3
a11 a12 . . . a1n b1
6 a 7
6 21 a22 . . . a2n b2 7
6 .. .. 7
.
4 . 5
am1 am2 . . . amn bm
Example
2x1 + 5x2 = 3
3x1 x2 = 4
8
Matrix Representations
Coefficient Matrix
2 3
a11 a12 . . . a1n
6 a 7
6 21 a22 . . . a2n 7
6 .. .. 7
4 . . 5
am1 am2 . . . amn
Augmented Matrix
2 3
a11 a12 . . . a1n b1
6 a 7
6 21 a22 . . . a2n b2 7
6 .. .. 7
.
4 . 5
am1 am2 . . . amn bm
Example
2x1 + 5x2 = 3
3x1 x2 = 4
8
Matrix Representations
Coefficient Matrix
2 3
a11 a12 . . . a1n
6 a 7
6 21 a22 . . . a2n 7
6 .. .. 7
4 . . 5
am1 am2 . . . amn
Augmented Matrix
2 3
a11 a12 . . . a1n b1
6 a 7
6 21 a22 . . . a2n b2 7
6 .. .. 7
.
4 . 5
am1 am2 . . . amn bm
Example
2x1 + 5x2 = 3
3x1 x2 = 4
8
Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
9
Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
Temperatures T1 , T2 , T3 in mesh above are given by the average of the adjacent nodes.
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
9
Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
Temperatures T1 , T2 , T3 in mesh above are given by the average of the adjacent nodes.
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
9
Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
Temperatures T1 , T2 , T3 in mesh above are given by the average of the adjacent nodes.
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
9
1 Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
20 + 50 + T2 + T3
T1 =
0.1 4
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
10
1 Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
20 + 50 + T2 + T3
T1 =
0.1 4
20 + 30 + T1 + T3
0 T2 =
0 0.1 0.2 0.3 4
0.4 0.5 0.6 0.7 0.8 0.9 1
10
1 Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
20 + 50 + T2 + T3
T1 =
0.1 4
20 + 30 + T1 + T3
0 T2 =
0 0.1 0.2 0.3 4
0.4 0.5 0.6 0.7 0.8 0.9 1
30 + 50 + T1 + T2
T3 =
4
10
1 Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
20 + 50 + T2 + T3
T1 =
0.1 4
20 + 30 + T1 + T3
0 T2 =
0 0.1 0.2 0.3 4
0.4 0.5 0.6 0.7 0.8 0.9 1
30 + 50 + T1 + T2
T3 =
4
4T1 T2 T3 = 70
T1 + 4T2 T3 = 50 ,
T1 T2 + 4T3 = 80
10
1 Temperature Example
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
20 + 50 + T2 + T3
T1 =
0.1 4
20 + 30 + T1 + T3
0 T2 =
0 0.1 0.2 0.3 4
0.4 0.5 0.6 0.7 0.8 0.9 1
30 + 50 + T1 + T2
T3 =
4
4T1 T2 T3 = 70 2 3
4 1 1 70
6 7
T1 + 4T2 T3 = 50 , 4 1 4 1 50 5
1 1 4 80
T1 T2 + 4T3 = 80
10
Summary
• A Linear Equation
11