Linear Algebra/Addition, Multiplication, and Transpose
Addition and subtraction
Two matrices can only be added or subtracted if they have the same size. Matrix addition and subtraction are done entry-wise, which means that each entry in A+B is the sum of the corresponding entries in A and B.
Here is an example of matrix addition
And an example of subtraction
Remember you can not add or subtract two matrices of different sizes.
The following rules applies to sums and scalar multiples of matrices.
Let A, B, and C be matrices of the same size, and let r and s be scalars.
- A + B = B + A
- (A + B) + C = A + (B + C)
- A + 0 = A
- r(A + B) = rA + rB
- (r + s)A = rA + sA
- r(sA) = (rs)A
Multiplication
Powers
If A is an matrix and if k is a positive integer, then denotes the product of k copies of A
If A is nonzero and if x is in , then is the result of left-multiplying x by A repeatedly k times. If k = 0, then should be x itself. Thus is interpreted as the identity matrix.
Transpose
Given the matrix A, the transpose of A is the , denoted , whose columns are formed from the corresponding rows of A.
For example
The following rules applied when working with transposing
- For any scalar r,
The 4th rule can be generalize to products of more than two factors, as "The transpose of a product of matrices equals the product of their transposes in the reverse order." Meaning
- <math>(a_1, a_2, a_3, ..., a_n)^T=a_n^T, ..., a_3^T, a_2^T, a_1^T