LECTURE 01
LECTURE 01
Vectors
MATRIX: AN ALGEBRAIC
DEFINITION
1
Definitions
2
Definitions - vector
5
Diagonal Matrices
6
The Identity Matrix
7
Zero Matrix
0 0 0
• A= 0 0 0
0 0 0
8
Symmetric Matrix
1 2
• A=
2 1
9
Transpose of a Matrix
10
Facts About Transpose
11
What you know
• Addition 2+2 4
• Subtraction 5–1 4
• Multiplication 2x2 4
• Division 12 / 3 4
Matrix Operations
• Addition
• Subtraction
• Multiplication
• Inverse
Addition
1 2 5 6 6 8
3 4
+ 7 8
= 10 12
A + B = C
Addition Conformability
• # of rows in A = # of rows in B
• # of columns in A = # of columns in B
Subtraction
5 6 1 2 4 4
7 8
- 3 4
= 4 4
B - A = C
Subtraction Conformability
• # of rows in A = # of rows in B
• # of columns in A = # of columns in B
Matrix Multiplication
[r x c] and [s x d]
Matrix Multiplication
[r x c] and [s x d]
c=s
Matrix Multiplication
[r x c] and [s x d]
rxd
Computation: A x B = C
a11 a12
A = [2 x 2]
a 21 a 22
b11 b12 b13
B = [2 x 3]
b 21 b 22 b 23
a11b11 + a12b 21 a11b12 + a12b 22 a11b13 + a12b 23
C=
a 21b11 + a 22b 21 a 21b12 + a 22b 22 a 21b13 + a 22b 23
[2 x 3]
Multiplication Conformability
• Regular Multiplication
• # of columns in A = # of rows in B
The Determinant of a Matrix
If A =
a11 a12
a
21 a22
Then
A = a11a22 − a12a21
The Determinant for a 3 x 3 matrix
a b c
detd e f = a(ei − fh) − b(di − fg) + c(dh − eg)
g h i
25
Cramer’s Rule for Two
Equations in Two Variables
• Note that a / b = a x 1 / b
• And that a x 1 / a = 1
• 1 / a is the inverse of a
• Inverse of (2 x 2) matrix
– Find determinant
– Swap a11 and a22
– Change signs of a12 and a21
– Divide each element by determinant
– Check by pre- or post-multiplying by inverse
• Find theInverse
determinant
of 2 x 2 matrix
= (a11 x a22) - (a21 x a12)
For
2 5
A = 1 3
becomes
3 5
1 2
Inverse of 2 x 2 matrix
becomes
3 -5
-1 2
Inverse of 2 x 2 matrix
3 -5
A = -1 2
becomes
3 -5
-1 2
-1
• Check results with A A = I
Thus
3 -5 2 5
-1 2
x 1 3
equals
1 0
0 1
Inverse Matrices
35
36
37
38
39
Solving Systems of Equations
with Matrices
SOLVING SYSTEMS OF
EQUATIONS
WITH MATRICES
A system of equations may be
represented as a matrix equation.
For example, the system of equations
3 x − 5 y = 1
2 x + y = −2
may be represented by the matrix equation
3 − 5 x 1
2 1 y = − 2
Write the matrix equation that
represents the system:
x + y = 8
2 x + y = 1
1 1 x 8
=
2 1 y 1
Write the matrix equation that
represents the system:
x + 3 y = 13
2 x − y = −9
1 3 x 13
=
2 − 1 y − 9
Write the system of equations
represented by the matrix equation
− 1 5 2 x − 5
1 2 0 y = − 4
4 0 − 3 z 10
− x + 5 y + 2 z = −5
x + 2 y = −4
4 x − 3z = 10
A matrix equation is in the form
AX = B, where A is the coefficient
matrix, X is the variable matrix,
and B is the constant matrix.
3 − 5 x 1
=
2 1 y − 2
3 − 5 x 1
A= X = B=
2 1 y − 2
Solving AX=B
Real Numbers
ax=b
(1/a)(ax) = (1/a)b
(๋1/a)(a)x = b/a
1x = b/a
x = b/a
2 y − z = −7 − 5 x
x − 2 y + 2z = 0
3 y = 17 − z
x = -2
−1
5 2 −1 −7 y=4
1 −2 2 0
z=5
0 3 1 17
Now solve these equations:
1. x+y −z = 6
x + 2y − 3z = 11 x = 2, y = 3, z = −1
4x − 3y − 2z = 1
2x + y + z = 4
2. 1 1 5
x + 2y + z = 4
x = ,y = , z =
3x − y + 2z = 6 2 2 2
x + y − z = −2
3.
3x − 4y − z = −1
x = 3, y = 1, z = 6
2x − 5y + 2z = 13