consisting of rows and columns of “elements”. Also more dimensions are possible.
Square Matrix … same amount of rows and columns Vector … a matrix with one column Column Vector … a matrix with one row
→ i … row, j … column
Why matrices are useful?
Special Matrices
convexity and concavity of multi-function variables
Identity Matrix
1 0 0
0 1 0
0 0 1
Calculating with Matrices
Equality
- same size (rows and columns)
- all elements are the same (position and value)
Addition
- same size
- add both elements at the respective position
- Assoziativ →
- Kommunikativ →
- Distributiv →
Multiplication
- first matrix columns = second matrix rows
- inner pair → possible? AB = true, BA = true
- outer pair → size … ,
- wontfix get visualiazation from 3b1b
- Assoziativ
- Kommunikativ
- Distributiv
- only a square matrix can be indefinetely raised to a power
- …
Example Market Share
wontfix copy text from slides
- columns: how much each company looses
- rows: how much each company receives #wontfix get resulting matrix from phone
Example Airports
- A to B
- 2 rows … from A
- 4 columns … to B
- B to C
- 4 columns … from B
- 3 rows … to C
- resulting matrix
Transposition
- “mirror” the matrix along it’s diagonal
- swapping the rows and columns
- Distributive with Sum
- Distributive with swapped Mulitplication
- symmetric …
- square matrix
- Proof that and are symmetric
Gaussian Elimination
For solving systems of equations.
Example Fish & Lumber
In the normal way
- after substituting twice in and using values we get
-
Now with a Matrix
- transpose the equations to have variables on the left and constants on the right
- collect all coefficients from the system of equations
x_1 x_2 x_3 | result
---------------|--------
1 -.25 0 | 100
0 1 -2 | 80
-1 0 2 | 0
-
then start to eliminate to lead to the left side being an identity matrix.
-
you can find another explanation and visualization here: https://www.youtube.com/watch?v=2tlwSqblrvU (5 mins)
Equivalence
Equivalence between such systems in matrix notation are defined with a Tilde: ~
Inverse Matrix
Inverse of scalar numbers …
The same is true with the inverse matrix … .
If an inverse matrix exists, then the matrix is “invertible”, if there is no inverse matrix it is not invertible.
Solve
a b | 1 0
c d | 0 1