Operations with Vectors
A matrix with a single column (column vector) or a single row (row vector).
A vector in
Scalar
A real number used to multiply a vector.
Sum of Vectors
If
Subtraction of Vectors
If
Product by a Scalar
If
Dot Product
If
Cross Product (only in )
If
Norm or Magnitude of a Vector
The norm of a vector
Projection of a Vector
The projection of a vector
Angle Between Vectors
The angle
Matrices
Matrix
A rectangular collection of numbers arranged in rows and columns.
Dimensions
A matrix of
Square Matrix
A matrix is square if
Transpose of a Matrix
If
Symmetric Matrix
A symmetric matrix is a square matrix that is equal to its transpose. That is, a matrix
This implies that
Symmetric matrices frequently appear in linear algebra and optimization problems.
Example of a symmetric matrix:
Identity Matrix
The identity matrix
- This matrix plays a role similar to the number
in the multiplication of numbers. and for any compatible matrix .
Diagonal Matrix
A diagonal matrix is a square matrix in which all elements outside the main diagonal are
- The product of diagonal matrices is commutative:
. - The determinant of a diagonal matrix is the product of the diagonal elements:
;
Operations with Matrices
Sum of Matrices
If
That is,
Similarly
Product by a Scalar
If
That is,
Product of Matrices
If
That is,
Properties of Matrix Product
- Associative:
- Distributive:
- Not Commutative: In general,
Determinant of a Matrix
Determinant of a Matrix
The determinant of a matrix
Determinant of a Matrix
For a matrix
Sarrus’ Rule (for
Properties of the Determinant
(where is the size of the matrix)
Inverse of Matrices
Inverse Matrix
If
where
Matrix
Adjoint Matrix Method
where