Lecture 1 - Matrix Algebra Flashcards
What is the layout of the subscript when writing the general format for a matrix?
Row first then column
How do you add 2 matrices?
Simply add each value with the corresponding value in the other matrix - in the corresponding same position
How do you multiply a scalar with a matrix?
Note scalar is just a number
Multiply the scalar with each quantity in the matrix
How do you transpose a matrix?
You write each column in the matrix as a row and each row as a column
How can you denote a transposed matrix?
A’ - note that a matrix is normally denoted as a capital and bold letter but with a transposed matrix you simply add an aprostophe
How do you denote a normal matrix?
Using a capital and bold letter e.g. A
How do you denote a vector?
A lower case bold letter e.g. a
How do you denote a scalar?
Not bold and lowercase e.g. a
What is a matrix?
A set of number organised in rows and columns e.g.:
2 4
6 3
Transpose the matrix:
2 4
3 6
2 3
4 6
Transpose the vector:
3
4
1
3 4 1
Note that the initial vector is a column vector and transposed it becomes a row vector
It initially can be denoted as a and as a’ after it has been transposed
How do you describe/define a matrix?
m x n - where m is the number of rows and n is the number of columns
How would you describe/define a transposed matrix?
n x m - interchanging the does and columns
So for example if matrix had 3 rows and 4 columns it could be defined at as a 3 x 4 matrix but once it has been transposed it can be described as 4 x 3 matrix with 4 rows and 3 columns
How would you multiply two matrices?
You would multiply the first row of the first matrix by the first column of the second matrix and get the total (which would give you the top left figure)
You would then multiply the first row of the first matrix by the second column of the second matrix and get the total (which would give you the top right figure)
You would then multiply the second row of the first matrix by the first column of the second matrix and get the total (which would give you the bottom left figure)
You would then multiply the second row of the first matrix by the second column of the second matrix and get the total (which would give you the bottom right figure)
Multiply the following two matrices together:
1 2 5 0
3 4 1 2
5 + 2 = 7
0 + 4 = 4
15 + 4 = 19
0 + 8 = 8
7 4
19 8
Remember to multiply each figure with its corresponding figure only
What is the rule when it comes to adding matrices?
You can only add matrices with the same number of rows and columns therefore and m and n need to be the same respectively
What is the rule when it comes to multiplying matrices?
You can only multiply matrices when the number of columns of the first matrix is equal to the number of rows the second matrix
e.g. you can multiply the following two matrices: 2 x 4 and 4 x 1 but you cannot multiply 2 x 2 and 3 x 2 together
I.e the inner two numbers of matrices must be the same for you to multiply them
This is because you a multiplying the rows of the first matrix with columns of the second as therefore need the same number of rows and columns between matrices to allow for all digits to be used in multiplication
How can you define/describe the layout of 2 matrices you’ve multiplied together?
Take the two outer numbers of the matrices you’re multiplying to get the layout/definition/description of the new product matrix
E.g. if matrix 2 x 4 was multiplied by matrix 4 x 2 you would get a matrix which can be defined as 2 x 2 I.e a matrix with 2 rows and 2 columns respectively
State the layout the product matrix when a 3 x 5 matrix is multiplied by a 5 x 2 matrix
You would get a matrix which can be defined as 3 x 2 i.e a matrix with 3 rows and 2 columns respectively
How would you multiply 2 vectors together?
Same way you would multiply a traditional matrix but here you end up with a single scalar quantity as your product
You are multiplying a (1 x n) matrix with a (n x 1) matrix - so your first vector has one row and your second vector has one column - therefore your first vector is a row vector and your second vector is a column vector
But remember n is the same here so the number columns or rows of the first vector will be equal to the opposite of the second vector