Fields
A field is any set of elements satisfying the following axioms:
| Axiom Name | Addition | Multiplication |
|---|---|---|
| Associativity | ||
| Commutativity | ||
| Distributivity | ||
| Identity | ||
| Inverses | if |
Very common examples of fields are as follows:
- Field of All Real Numbers, denoted .
- Field of All Complex Numbers, denoted .
Integers (), do not satisfy the field axioms, and thus are not a field.
Matrices
A matrix, in its simplest form, is an arrangement of elements scalars into rows and columns. We describe a matrix with rows and columns as an matrix.
Matrices are highly useful in describing many things, and have tons of real world applications!
We commonly use uppercase letters, such as to denote matrices. We also lowercase letters, like to denote the entry on the row and column in matrix .
The set of all matrices in field is denoted as .
Matrix Operations
Addition and Scalar Multiplication
Let , and scalar .
We define matrix addition as the operation adding all corresponding entries of the matrices together.
We define scalar multiplication as the operation multiplying all entries of a matrix with a scalar.
Now define as an matrix, and as an matrix.
We have the following properties of matrix addition and scalar multiplication:
- Commutative Property of Addition:
- Associative Property of Multiplication:
- Associative Property of Addition
- Additive Identity:
- Multiplicative Identity:
- Distributive Property: and
Matrix Multiplication
We define matrix multiplication as the operation where the product of , say , is equal to
In other words, the entry is found by multiplying each entry of the row of with its corresponding entry on the row of , and summing the result.
Matrix multiplication is not commutative ().
We have the following properties of matrix multiplication:
- Associative Property of Matrix Multiplication:
- Distributive Property of Matrix Multiplication: and
- Multiplicative Identity: , where is the identity matrix, a matrix of order with only 1s on the main diagonal.
Systems of Linear Equations
We define a linear equation on variables as
where is a constant, and stands for any variable in the first power.
We commonly use matrices to represent and solve systems of linear equations.
Let be some matrix. We have a set of row operations, which are operations which can be used to row reduce a matrix to a triangular form.
While these operations do change the matrix, they preserve the solution set of the matrix!
- Interchanging 2 Rows:
- Multiplying a Row By a Scalar:
- Multiplying a Row by a Scalar and Adding it to Another Row:
We use these row operations to transform the matrix to row-echelon form.
Row-Echelon Form
A matrix is described to be in row-echelon form if it satisfies the following properties:
- All rows consisting of only 0s are at the bottom.
- The leading entry (left-most entry) of every non-zero row is to the right of the leading entry of the row above.
We can further apply row operations to obtain reduced row-echelon form.
Reduced Row-Echelon Form
A matrix is described to be in reduced row-echelon form if it satisfies the following properties:
- The matrix is in row echelon form.
- The leading entry in each non-zero row is 1.
- Each column with a leading 1 has 0s in all other entries
These forms can be used to easily deduce the solution to the system of requations.
Elementary Matrices
An elementary matrix, commonly denoted as an , is a matrix obtained from applying one elementary row operation to , the identity matrix.
Given any matrix , multiplying a matrix with elementary matrix () performs the elementary row operation on it.
Multiplying on the left () modifies ‘s rows, and multiplying on the right () modifies ‘s columns.
Associated Matrices
Matrix Transpose
The transpose of , denoted , is the matrix created by flipping it’s rows and columns.
We have the following properties of transposes:
- Transpose of a Transpose:
- Transpose of a Sum:
- Transpose of a Scalar:
- Transpose of a Product:
We define a symmetric matrix as one which is equal to its transpose.
The product of a matrix and its transpose is always a symmetric matrix!
Matrix Inverse
We define the inverse of square matrix , denoted , as the matrix such that
A matrix is invertible if it has an inverse (not all square matrices have inverses!)
We can find the inverse by writing and row-reducing the system of equations
When finding , we’re technically multiplying by elementary matrices to find . Multiplying these matrices yields the inverse such that (which is what this system of equations is doing for us!)
Let be an invertible matrix. We have the following properties of inverses:
Similar Matrices
Let and be matrices. Then, and are similar if there exists an invertible matrix such that
This will come up and be highly useful later!
Properties of Square Matrices
A square matrix is one where its number of columns and rows are equal.
The set of all matrices is commonly denoted as .
Trace
The trace of , denoted , is the sum of its diagonal entries.
The trace is only defined for square matrices!
Determinant
Define as a matrix. The determinant of , denoted , is defined as
Now let be an matrix. The minor of element , denoted is the determinant of the submatrix obtained by deleting row , and column .
The cofactor of is
Then, the cofactor expansion of is the determinant of this matrix, defined as
In order words, the summation of cofactors along the first row.
Theorem: Determinants
The cofactor expansion does not depend on which row or column is used.
Let and be matrices. We have the following properties of determinants:
- , provided the inverse exists.
Now suppose was obtained from by performing row operations. Then we have the following properties:
- If is obtained from by swapping 2 rows, then
- If is obtained from by scaling a row of and adding it to a different row, then .
Theorem: Determinants and Inverses
Let be an invertible matrix. Define as the adjugate of , the transpose of the matrix of cofactors .
Then,
Corollary: is invertible if and only if .
Vector Spaces
Vector Spaces and Subspaces
A vector space is a set , over field , with elements of called vectors, with:
- An element called zero
- An addition law
- A scalar multiplication law
And satisfying 8 axioms:
| # | Axiom | Description |
|---|---|---|
| 1 | Commutativity of Vector Addition | For all , |
| 2 | Associativity of Vector Addition | For all , |
| 3 | Identity of Vector Addition | For all we have |
| 4 | Additive Inverse | For each there is some such that |
| 5 | Identity of Scalar Multiplication | For all we have |
| 6 | Associativity of Scalar Multiplication | For all and , |
| 7 | Distributivity of Scalar Multiplication Over Vector Addition | For all and , we have |
| 8 | Distributivity of Scalar Multiplication Over Scalar Addition | For all and , we have |
Example: Real Vector Spaces
The space of real numbers
With , known as the origin.
The set of polynomials of degree
The set of matrices
The set of all continuous functions on
The set of infinitely differentiable functions
The set of all complex numbers , as one can scale by real numbers. has dimension 2, as its basis would be
Let’s look at as a complex vector space under field . Because we can scale by any complex number,
- The basis of is .
- The basis of is .
All complex vector spaces can also be real vector spaces.
Suppose we have vector space over field .
We define as a subspace of () if the following properties are satisfied:
- Closure Under Addition: For all , we have
- Closure Under Scalar Multiplication: For all , we have
- Contains Zero: The zero vector
Given two subspaces , and , we can show that the intersection of the two subspaces is also a subspace.
A subspace is a vector space contained within another vector space.
Moreover, if is a proper subset of (excludes some elements in ), then is a proper subspace of .
Example: Matrix Subspace
Consider the set of skew-symmetric matrices:
We can show that the set is a subspace of .
Independence, Span, Basis
Linear Combinations and Independence
Let be a vector space, and be vectors in . Then, is a linear combination of if there exists scalars such that
Vector is a sum of the set of vectors .
Let . Then, the set of vectors , is linearly independent if
is true only for .
If this is not the case (any is non-zero), the set of vectors is linearly dependent.
Theorem: Linear Dependence
A set of non-zero vectors is linearly dependent if and only if there exists a that is a linear combination of the others.
Theorem: Linear Dependence
Any set of vectors on is linearly dependent if .
Example: Linear Independence
Suppose we have set . Is linearly independent?
We can write the elements of the set as a linear combination.
Because this is an equality of functions, we know their derivatives must also necessarily be equivalent.
We can rewrite this in matrix form to solve for .
Solving this system of equations, we see that
Which can only be true when .
Span and Basis
Given any arbitrary set of vectors , the span of is the set of all linear combinations of .
The span of is the smallest subspace that contains .
A set of vectors that is linearly independent such that is a basis of .
Given a vector space , if there exists a finite basis , we say is finite-dimensional, with dimension
Where is the size of the set .
Bases Outside of
Given vector space with basis , we can transform any vector into a vector in by taking its coordinate vector with respect to basis .
The coordinate vector is defined as the “weights”, or coefficients of each basis vector which represent vector .
Theorem: Dimension and Basis
If is finite, then any two bases of have the same size.
Proof , . By definition, , and both and are linearly independent.
Suppose we have two bases,
is a basis with elements, and is linearly independent. However, as any set of vectors is linearly independent (by a previous theorem) .
Theorem: Dimension and Linear Independence
Let be the vectors in a set within vector space , . Then,
- If , there exists such that forms a basis for .
- If , then any set of vectors in is linearly dependent.
Proof
Pick a basis .
Choose a map which is an isomorphism.
If any set of vectors in is linearly dependent, then they must also be linearly dependent in by property of isomorphisms.
Example: Standard Basis
The standard basis for is
Example: Dimension
The subspace of skew-symmetric matrices:
Has dimension .
Example: Change of Bases
Let with basis
Define . What is ?
We know that
Which creates the system of equations
Thus, .
Example: Orthonormal Bases
How many orthonormal bases are there for ?
We begin by examining . Let denote all possible vectors composing the unit circle.
Then the number of ‘s orthonormal bases are , where the comes from the choice of 2 orthogonal vectors.
Generalizing to , we see that the set of all orthonormal bases in is
Where is , the number of unique basis vectors in (positive direction, negative direction).
Linear Transformations
Fundamental Subspaces
A matrix has the following fundamental subspaces associated with it:
- Column Space (): The set of all linear combinations (span) of the column vectors.
- Row Space (): The set of all linear combinations (span) of the row vectors.
- Null Space / Kernel (): All vectors , where .
Additionally, we define the rank of as .
Theorem: Fundamental Subspaces
Row equivalent matrices have the same rank.
The pivot columns (leading 1 locations) of form a basis of .
The non-zero rows of the reduced row echelon form of form a basis for .
Theorem 4 does not state that and are the same - only that they have the same number of vectors.
We can find fundamental subspaces by finding its echelon form of , using scalar coefficients
Theorem
Matrix is invertible if and only if
Linear Transformations
Let and be two vector spaces spaces over field .
A map is a linear transformation if it satisfies the following properties:
- for
- for all .
Example: Linear Transformations in
Let , the space of all continuous functions. We can define a map (integration)
Which is a linear transformation.
Let , the space of all infinitely differentiable functions. We can define a map (differentiation)
Which is a linear transformation.
Note: must be the space of all infinitely differentiable functions, as after taking a derivative, we move from space .
We define
This is certainly a real linear transformation, as it works over field .
But what about over ?
By property of linear transformation, must hold. However, .Thus, we call this map linear, but not linear. Even though it is defined over the complex plane, it only works on field .
Example: Properties of Linear Transformations
How many linear transformations are there that satisfy
None! We can prove this by counterexample. We know that
But
So no linear transformations satisfying this property exist.
Transformations as Matrices
Any linear transformation has a unique matrix representation, known as a matrix transformation.
Given an matrix , we define as:
To find , we compute the linear transformation output for the standard basis vectors , where gives us the column of .
Theorem: Transformation Uniqueness
Transformation is determined uniquely by its values
for any basis of .
Theorem: Linear Transformations and Matrices
Let be a vector space with basis , and be another vector space with basis . Let be a linear transformation.
Then there exists a unique matrix such that
There exists a matrix for the linear transformation which automatically converts between the two bases.
This matrix is denoted as , the matrix of relative to ,
transforms a vector in basis to a transformed vector in basis ().
Proof
Let be the basis vector of . Then,
Showing that each column of is equal to .
Example: Linear Transformations as Matrices
Let with basis and with basis .
Define linear transformation as the derivative operator. Then
Example: Matrix Transformation
Define as . Then, is
Given vector , is
Compositions of Transformations
We can use ideas of transformation composition to find the matrices for complex transformations, by combining multiple elementary transformations together.
Suppose we have vector spaces
- with basis and dimension
- with basis and dimension
- with basis and dimension
Now suppose we have transformations and . Then, if all transformations are linear, then
Where
- is an matrix
- is a matrix
- is a matrix.
Multiplying the matrices together will yield us a transformation from .
Theorem: Linearity of Compositions
If and are linear transformations, then is also a linear transformation.
Now consider an identity transformation , one such that maps back to the same vector space.
Define and as bases of . Then,
Thus, the transformations and must be inverses of one another!
This means we can find in vector space , by taking the inverse of (and vice versa)!
We can additionally use this to chain transformations in different bases together, by converting the bases to one another.
Transformations and Differential Equations
Take mapping
We can show that is linear, as , and .
- Take 2nd order differential equation
With solutions satisfying this relationship. Comparing with our mapping , the solutions of this differential equation are the kernel of , !
- Now take another 2nd order differential equation
With solutions satisfying this relationship. Comparing with our mapping , the solutions of this differential equation satisfy
Or in other words, the solutions must all map to a function in , !
So we ask, is forcing function ?
In both examples, if we find the finite dimensional subspace in , and find what functions (vectors) span this subspace, we can find all solutions to the differential equation!
Kernel and Image
We define the kernel of linear transformation as
Or in other words, the set of all inputs of the linear transformation, which map to in the codomain (the nullspace of ).
We can show that .
is equivalent to the solution set of .
We define the image (range) of linear transformation as
Or in other words, the set of all outputs of the linear transformation.
is equivalent to the column space of standard matrix representing .
Example: Kernel and Image
We define following linear transformation :
The kernel of the linear transformation is the line .
The image of the linear transformation is the line .From before, we defined linear transformation
The kernel of the linear transformation is all constant functions.
The image of the linear transformation is all continuous functions.
Example: Kernel and Image 2
Take linear mapping
The only functions mapping are those where , or in other words, all odd functions.
Thus, the kernel of is the set of all odd functions.
Let . We show , so , or in other words, an even function.
Thus, is the set of all even functions.
Example: Image and Kernel 3
Define as the linear transformation where
What is ‘s Image and Kernel?
We show that we can obtain using polynomial .
We also show that we can obtain using polynomial .Thus, , and as is a 2 dimensional space, the other dimensions in must have been collapsed.
Thus, .What is the Basis for ‘s Kernel?
The kernel is formed from all functions such that . In other words, polynomials with roots at 1 and 2!
We find the kernel to be
Theorem: Rank-Nullity
If is a linear mapping, and is finite dimensional, then:
Proof
Let be a basis for , and be a basis for .
Pick vectors such that , and define set .
Proof of Span
Let . Consider . By definition of basis, we can writeBy property of linear transformation (addition), this is equivalent to
Define . By definition of basis, we can find such that
Which we can apply algebra to to obtain
Proving that the vectors in set spans .
Proof of Linear Independence
Now take the vectors in set .Applying the transformation to both sides, we obtain
But because we know is a basis, must be 0. If this is the case, then as is a basis as well, must also be 0.
This, the vectors in set is linearly independent.Because we know the vectors in are linearly independent and spans , it must be a basis for . Thus, the size of () is equal to the sum of the number of basis vectors in the kernel () and the image (.
Example: Rank-Nullity
Suppose we have set
Now define a linear mapping
We know there exists polynomials such that and . Thus, .
By the Rank-Nullity theorem, then, .
Isomorphisms
Let be a linear transformation.
is one to one (injective), if for arbitrary vector , there is at most one vector that maps to it.
In other words, is only true when .
Theorem: Kernel and Injection
Let be a linear transformation. Then, is injective if and only if .
is onto (surjective), if for any arbitrary vector , there is at least one vector that maps to it.
In other words, ( maps onto the entire output domain).
is an isomorphism if and only if is both injective and surjective.
In other words, all vectors have one vector which map to it.
We commonly denote an isomorphic linear transformation as .
Theorem
If is a linear map, is an isomorphism if and only if
If has standard matrix , then must be invertible for to be an isomorphism.
However, not all linear transformations have a matrix.
Example: Non-Invertible Isomorphism
The isomorphic linear transformation
Does not have any invertible matrix (it is not from ).
If , then anything that occurs in also occurs in .
Properties of a set for can all be found in the set for .
Example: Isomorphic Properties
Given a linear transformation , if is a basis for , then is a basis for .
Example: Applying Isomorphic Properties
Is linearly independent?
Let be a basis for .
Now, we can apply isomorphic linear transformation such that each of the basis vectors maps to
We apply this transformation to the set
Which we can sub into a matrix and row reduce to see if it is linearly independent. If the transformed set is linearly independent, then so is the original (as the isomorphism preserves properties of sets).
Eigenvalues
Define as an matrix.
Then, a nonzero vector satisfying
Where is an eigenvector with eigenvalue . Together, is known as an eigenpair.
Matrices can have eigenvalues and eigenvectors in the complex field!
Eigenvalues and Linear Transformations
We can think of as a linear transformation , under field , where the eigenvectors are vectors mapping to a scalar multiple of themselves
Example: Linear Transformations and Eigenvalues
Define as the derivative operator, such that
The eigenpairs of are such that , or in other words, the function
Thus, the eigenpairs of the transformation are .
Characteristic Polynomials
We define
as the characteristic polynomial of matrix , such that the roots of are the eigenvalues of .
We use to find ‘s eigenvalues.
Proof (Sketch)
Let . We want to solve
Because is a nonzero vector, then cannot be invertible ( lies in its kernel). Thus, we solve for
To find values such that are noninvertible.
Theorem: Properties of Eigenvalues
Let be eigenvalues of . Then,
- is equal to the sum of ‘s eigenvalues.
- is the product of ‘s eigenvalues.
Similar and Diagonalizable Matrices
Let be matrices. We say and are similar matrices if there exists an invertible matrix such that
Theorem: Similar Matrices and Eigenvalues
Similar matrices have the same eigenvalues.
Moreover, is diagonalizable if is similar to a diagonal matrix .
Theorem: Diagonalizable Matrices
Let . Then is diagonalizable if and only if there exists linearly independent eigenvectors for on .
The, let be eigenpairs of . Then
Where
Because is formed from basis vectors, we know is invertible.
Example: Diagonalizable Matrices
We know the eigenvalues of are the roots of .
The eigenpairs of are
We now solve for the corresponding eigenvectors. We solve for the vectors as so
We can then use these eigenvectors and eigenvalues to diagonalize .
Theorem: Linearly Independent Eigenvectors
If are eigenvectors of with distinct eigenvalues, then the set is linearly independent.
Thus, if has distinct eigenvalues, then must be diagonalizable.
Matrix Exponentials
Let . We define , the exponential of matrix such that
Exponentials have the following properties:
- if and only if
Diagonalizable matrices are quite useful in exponentials. Using a diagonalizable matrix creates a converging sum in each diagonal cell.
Being able to express as a diagonal matrix also allows us to easily calculate
Cayley-Hamilton Theorem
Theorem
Let , and let be the characteristic polynomial of .
Then, is a root of its own characteristic polynomial.
Jordan Canonical Form
T-Invariance
Let be a linear map, where is a vector space over with dimension .
A subspace is T-invariant if . Or in other words, maps vectors in to vectors in ().
We observe that 1 dimensional invariant subspaces correspond to eigenvectors of .
Example: 1 Dimensional T-Invariant Subspace
Define such that
We can find eigenvectors of
The spans of each eigenvector are all T-invariant.
We define a flag in as a sequence of subspaces
Where .
An ordered basis of gives a flag of .
A flag is T-invariant if all is T-invariant.
Theorem: T-Invariant Flags and Matrices
If is an ordered basis of such that the corresponding flag
is T-invariant, then there exists a linear map in this basis whose matrix is upper triangular.
The converse is true!
Proof
Because we know all is T-invariant, we know that for some vector ,
Because we know by definition that .
Constructing a matrix for , we obtain an upper triangular matrix.
Theorem: Upper Triangular Matrices
If is a -vector space with , and is a linear map, then there exists a basis of such that is upper triangular.
Corollary: If is the standard matrix to , then as eigenvalues are preserved on different bases, is similar to an upper triangular matrix.
Where is an upper triangular matrix.
Proof
We prove this by constructing a T-invariant flag for , using induction.
Base Case: In the case, we have a matrix , which by default is upper triangular.
Inductive Hypothesis: For , assume the theorem is true for all vector subspaces of dimension and all linear maps .
Inductive Step: Take a basis of , and take the characteristic polynomial of standard matrix , . We know that for any basis, will be the same.
We know by the Fundamental Theorem of Algebra that has a root in . So, if we take an eigenvector for ,
Showing that we can find a which is T-invariant.
We can extend to a basis of . Taking , we see that .
Then, we define transformation such that , where - or in other words, the projection of onto .By the induction hypothesis, there exists an -invariant flag of .
Conclusion: Using the induction hypothesis, we can construct
Which is a T-invariant flag.
We can find this upper triangular matrix, by finding the Jordan Canonical Form of a matrix.
Shift Maps
We define a shift map as a linear transformation such that
From this, we also observe that .
The matrix of the map is
We define the characteristic polynomial of as
By the Cayley-Hamilton Theorem, .
We observe that with the shift matrix, the kernel is as follows:
For every additional transformation, we shift another basis vector to the 0 vector.
Jordan Matrices
As proven above, we’ve shown that all matrices are similar to some upper triangular matrix.
If a matrix does not have enough linearly independent eigenvectors to be diagonalized, what’s the next best option?
We define a Jordan Matrix as an matrix composed of diagonal blocks (), called Jordan Blocks
Where is some eigenvalue.
Theorem: Jordan-Canonical Form
Every matrix is similar to a unique Jordan matrix such that
where is an invertible matrix formed of generalized eigenvectors of .
This is known as the Jordan Canonical Form of .
Corollary: All linear transformations are equivalent to some scaling and some shift with respect to some basis
(All Jordan blocks are equal to , where is an eigenvalue and is a shift map, so all transformations )
Why are we interested in the Jordan matrix? One application is with matrix exponentials, as seen with diagonal matrices.
Say we have matrix with Jordan form . Computing , we see that
Where is ‘s Jordan matrix, and is the matrix with diagonals , where is some Jordan block in the matrix. We can easily compute the Jordan block exponential as
Because , and (so the property holds). We know is a finite sum, as .
It’s still annoying to calculate, but definitely doable as there’s only a finite number of terms.
Example: Exponentiating a Jordan Block
Say we have Jordan Block
How do we find ?
First, observe that , where is the shift matrix. Then, we can take .
Note: for any is equal to !
But we know that ! So, we obtain expression
And compute our exponential as
Solving for the Jordan Form
Given an eigenvalue , the number of Jordan blocks for is equal to , the number of linearly independent eigenvectors corresponding to .
Each Jordan block will have one eigenvector of , with the rest being generalized eigenvectors.
A generalized eigenvector of with eigenvalue is a non-zero vector such that
For , is an eigenvector.
Now suppose we have a Jordan Block such that
Suppose we solve for the eigenvectors of . We see that
where is a shift map. So, for all , we guarantee that we will be able to find enough generalized eigenvectors to create a Jordan block for .
Example: Determining Jordan Blocks
Let . To diagonalize the matrix, we must have 13 linearly independent eigenvectors, which may not be true.
We find the number of Jordan blocks corresponding to each by finding
Where is diagonalizable only if equality is obtained for all kernels.
For eigenvalues which are not repeated as a root, we guarantee they must have some linearly independent eigenvector (by definition).
For example, if , there must be 2 Jordan blocks for , which must be
with one eigenvector per block (and the other vectors being generalized eigenvectors).
Example: Solving for The Jordan Canonical Form
Taking standard basis vectors , we see that
Because after 3 transformations, all basis vectors go to 0, . Because of this, we know by the Cayley Hamilton Theorem that the characteristic polynomial is ( must satisfy A^3), so only has eigenvalue .
Moreover, we see that , as these basis vectors mapped to 0. This is only one vector, so we expect only one Jordan block for with eigenvalue .Thus, we expect
We now find the generalized eigenvectors that form . We start with ‘s eigenvector . To choose the generalized eigenvectors, we take progressive for increasing , whose dimension should increase (as shown above). Then, we choose vectors in each Nullspace which are not in the previous, to guarantee a linearly independent combination.
Giving us