Professor: J.P. Pretti | Term: Winter 2023
Vectors in
A member of is called a vector. We often use overline arrows. Let . Can also write as a row, but use superscript.
Two ways to think about vectors.
- Algebraic. List of real numbers
- Geometric. Directed line segment between 2 points
Given with then if for
Two operations:
Addition: Input vectors in outputs 1 vector in .
Scalar Multiplication: 1 vector in & 1 real number outputs 1 vector in
Properties: Let
- has an additive inverse. If , then is the additive inverse of
Definition
Let Say , then . This stretches by . If , then switch direction of .
Properties: Let
- If then or
Proof of the third point above.
Standard Basis
Standard Basis for
is the standard basis.
Dot Product
Vector Vector Real Number
Properties
(only iff )
Length of Vector
is (magnitude).
If and , then
Unit Vectors
is a unit vector if
Normalization
When is a non-zero vector, we can produce a unit vector.
Angle
Also
Angle between and .
Orthogonality
Two vectors are perpendicular if .
More rules:
Find 2 vectors orthogonal to .
Without inspection,
Find the angle in-between
Projection and Perpendicular
We want for some and .
Then
Definition
Let and . Projection of onto is
The length of does not impact length of projection.
Definition
Perpendicular of onto is defined by
We have
Also
Let
then
and
Fields
and are fields
- Can multiply, add, subtract, and stay in set
- Can divide by non-zero and stay in set
- ”Everything works” (commutative, associative, distributive, inverse).
Cross Product
Let (only defined for )
Cross product is given by
Properties
and let
- and
- , where is the angle between (and are not zero vectors).
area of parallelogram
Spans, Lines, and Planes
Linear Combinations and Spans
Example
is a linear combination of and .
Linear combination is a vector, span is a set.
Examples - True or False?
-
Every vector in is an element of Span
-
Every vector in is an element of Span
-
Every vector in is an element of Span
-
True -
-
True -
-
False
Geometry
Span
For , Span is a line through origin with direction .
For , if are not parallel, then Span is a plane
Lines
Parametric Equations
are fixed numbers (). Parametric equations of line in through point with slope are
Vector Equation of a Line in
This is a vector equation of line in through with direction .
Line in
Parametric Equations of a Line
Parameter “generates” points on the line. When , we have which is a vertical line with undefined slope.
Vector Equation of a Line
Let and .
- is on
- is on
- usually is not on
- is on iff Span
Exercises:
- Give parametric equations for the line
- Give a vector equation of a line through and
- Show that is the same line as
Prove parallel and coincident (pass through the same point) or,
Can set up an algebraic system of equations using set equality.
Direction vectors are scalar multiples, immediately parallel.
Equations in
Vector Equations
Parametric Equations
Lines
Lines through the origin can be described as the span.
Example of a Line in
Line through the origin and .
Parametric equations:
Planes Through the Origin
(non-zero), for
Plane Examples
These two are not on . When scaled and added to , then it is on it.
are on
Normal Vectors
(normal vector to plane)
Normal form of
Expanding
Exercise
Find a vector equation and a scalar equation of the plane containing and .
Can find direction vectors:
So a vector equation is:
Finding Scalar Equation, we can find a normal vector:
Orthogonal to the 2 direction vectors
Our equation is thus
Simplifies to
Systems of Linear Equations
These show up everywhere.
Examples from linear algebra
- Is a vector in the span of a given set?
- Find a vector orthogonal to another vector(s)?
- Determine the intersection of two planes
Linear Equation
where
coefficients (known)
variables (unknown)
A system is multiple of these. For is the equation and gives the variable.
Solving means we found into and LHS=RHS.
We view a system as simultaneous.
Solution Set
a) The solution set of .
b) Show that
is a solution to
Let . Then .
And indeed,
This shows that the given line is a solution.
Solution is either empty, one element (unique), infinite number of equations.
Solving Systems: Two big ideas.
Some systems are easy to solve ().
Solve a “hard” system by changing it to a “simpler” but equivalent system. Two systems are equivalent if they have the same solution set.
How do we do this? We can multiply both sides by , and we can add equations. We cannot multiply by zero, square an equation, remove an equation, or insert an equation.
Elementary Operations
Swap elementary operation
Scale elementary operation
Addition elementary operation
A single elementary operation performed produces an equivalent system.
Unique solution (consistent)
Infinite solutions (consistent)
No solutions (inconsistent)
Solving Systems using EO’s
Let for some .
We get the solution set:
Question
Is on
We need to solve
Has a solution on the plane.
There is no solution. That is is not on .
Prove that the only vector orthogonal to
is .
We must solve
We will work with an augmented matrix:
Matrix
matrix, array of rows, columns. is coefficient of in the th equation.
Elementary Row Operations
- Row swap:
- Row scale:
- Row addition:
Zero row: Row that has all zero entries.
If is from by finite ERO, is equivalent to .
Gauss-Jordan Algorithm (Big Picture)
Assume , “really exists”. Begin by forward elimination phase (the goal is REF).
Scale so all leading coefficients are 1. We can now use back substitution to solve or, continue with backwards elimination phase. The goal is RREF (Reduced Row Echelon Form). Place 0s above all leading coefficients.
Leftmost non-zero entry of a non-zero matrix is the leading entry.
Definition
Row Echelon Form: When all zero rows are at the bottom, leading entries appear in a column to the right of the columns entering the leading entries from columns above.
Gauss-Jordan Algorithm Examples
This tells us that is the unique solution to the system and so is indeed the only vector orthogonal to the three given vectors.
Hence there is no solution.
The first and fourth columns are pivot columns. The first two rows are pivot rows.
and are basic variables. and are free variables. When we see that the system is consistent, we assign parameters to the free variables and express the basic variables in terms of these parameters.
Notation: .
Definition
Let be any matrix, the rank is the number of pivots .
There are bounds to the rank. .
Definition
System is consistent iff .
Proof:
Let and be as given.
Let be .
Note that every pivot of is a pivot of . This means .
First assume the system is consistent. Then does not have a row of the form . That is, does not have a pivot of . Hence .
Assume the system is inconsistent.
Therefore has a row of the form . That is a pivot of that is not a pivot of . Hence . That is .
Theorem
System Rank Theorem: Let with . a) Let . If the system of equations with augmented matrix is consistent, then the solution set to this system will contain parameters. b) System with augmented matrix is consistent for every if and only if .
Sketch proof
a)
is the number of columns is the number of variables. Rank is means pivots basic variables. free variables, parameters
b)
Assume . Let . Let be pivot in every row of . No consistent.
Assume . Let . There is a row without a pivot in . Hence has a zero-row. Say it is the th row. Hence is inconsistent.
Using ERO in reverse, we get which is inconsistent.
.
Homogeneous Solutions: All elements on the right hand side are zero. Otherwise it is a non-homogeneous solution.
For homogeneous solutions, trivial solution .
Solution to homogeneous system is called the nullspace of .
Matrix-Vector Multiplication
Row Vector
.
Number of columns must be the same but doesn’t have to equal .
can be written as .
GJA works over also.
Example
determines whether or not the system is consistent. Structure really depends on .
Can partially/mostly understand once we understand .
Notice is consistent. Note is a solution. Call it the trivial solution.
The set of all solutions to is called the nullspace of , written as .
Example
Proposition: Let for some .
Let . Let . Then and .
Proof:
To show , we must show . Well, .
Proposition: Let . Let such that is consistent.
Let be a solution to .
Let be the solution set to .
Then .
So every solution to is a solution to .
Proof:
Let . So .
We want to show , i.e. that .
Well, .
Let . So .
We want to show , we want to show .
Note . So .
So , so .
and are associated homogeneous systems.
Let be the solution set of .
Let be the solution set of .
Suppose is a solution of .
Then, .
Suppose has solution set
Suppose is a solution to .
Give two more solutions.
Consider now , solution set . Consider , solution set .
Suppose is a solution to and is a solution to .
Suppose is a solution to .
Then is a solution to .
Then is a solution to .
Theorem
determines whether or not is consistent. solely determines the structure of the set of all solutions.
Matrices
Let . Write with each .
Column Space of , written as , is the .
Let and . The system of linear equations is consistent if and only if .
Proof:
Assume is consistent.
such that .
So . So .
Assume . Thus .
Such that .
So .
So is a solution to . So is consistent.
Let . We define the transpose of , denoted , by .
Note: Rows become columns, columns become rows.
Example
Let . We define the row space of , denoted by , to be the span of the transposed rows of . That is,
Note: Turn rows into vectors and then take their linear combinations. .
Example
Let . If is row equivalent to , then
EROs do not change the row space, but EROs do change the column space.
Let . Prove that is consistent for .
Proof:
is in , thus is consistent.
Let . Then for all .
In other words, the matrix-vector multiplication of and the th standard basis vector yields the th column of . Useful result used later.
Let . Then
Assume , then .
Assume .
So for .
By column extraction, , .
So . So the columns of and match. So .
Matrix Product
Let and . We define the matrix product to be the matrix , constructed as follows:
That is, the th column of , is obtained by multiplying the matrix by the th column of the matrix :
Note: Number of columns of first matrix must match the number of rows of the second matrix.
Note: Each column of is an element of .
If , then to find , take the “dot product” of th row of and th column of .
Matrix Sum
Let . We define the matrix sum to be the matrix whose th entry is , for all and .
The matrices must be the same size.
Properties:
The zero matrix is the matrix all of whose entries are .
Let . We define the additive inverse of to be the matrix whose th entry is for all and .
If , then
If , and , then
Proof of
Let and . We define the product of and to be the matrix whose th entry is for all and .
If and , then
- . Thus we may write for any of these three quantities unambiguously.
Also, .
More properties for transpose:
Proof of .
A matrix where the number of rows is equal to the number of columns is called a square matrix.
Let . We say that is upper triangular if for with and .
Square matrices in REF or RREF are upper triangular.
Let . We say that is lower triangular if for with and .
We say that an matrix is diagonal if for with and . We refer to the entries as the diagonal entries of , and denote our matrix by .
Diagonal matrices are both upper and lower triangular. If is upper triangular, then is lower triangular. If is lower triangular, then is upper triangular.
If is diagonal then .
The diagonal matrix is called the identity matrix, and is denoted by . If we wish to indicate that the size of the identity matrix is , we add a subscript and write .
The identity matrix is the multiplicative identity. and .
Also, .
Question
Does there exist where , such that .
A square matrix is called idempotent if .
A matrix that can be obtained by performing a single ERO on the identity matrix is called an elementary matrix.
Let and suppose that a single ERO is performed on it to produce matrix . Suppose, also, that we perform the same ERO on the matrix to produce the elementary matrix . Then
Let and suppose that a finite number of EROs, numbered 1 through , are performed on to produce a matrix . Let denote the elementary matrix corresponding to the th ERO applied to . Then
We say that an matrix is invertible if there exist matrices and such that .
Note: Inverses don’t always exist. Try to find an inverse of .
won’t ever equal the identity .
Let . If there exists matrices and in such that , then .
If left and right inverses exist, then they must be equal.
Assume , .
For , there exists an matrix such that if and only if there exists an matrix such that .
Proof
()
Assume .
Consider the homogeneous system .
So has a unique solution no parameters.
So by System-Rank .
So by System-Rank is consistent . So such that .
So , . So by Matrix Equality, . So is a left inverse of . We have proved that if is a right inverse of , then is a left inverse of .
()
Assume .
So is the right inverse of . But by , is the left inverse of .
So
So is a right inverse.
Question
Is the inverse unique?
Yes.
Assume .
But if is a right inverse, it is also a left inverse. So, .
So
If an matrix is invertible, we refer to the matrix such that as the inverse of . We denote the inverse of by . The inverse of satisfies
Note: To check that a matrix is the inverse of , only need to show .
Example
Let . Prove that .
So .
Let . The following three conditions are equivalent:
a) is invertible
b)
c)
Prove .
Assume is invertible. Then , such that . Use proof of forward direction of left invertible iff right invertible to get .
Assume . Since , then there is a pivot in every row and column of . All of these pivots are 1. So .
Assume . So = # of rows.
So is consistent .
So is consistent for .
Let be the solution to . So .
Let
So
So . So , and is invertible.
Proof of gives an algorithm on how to find .
Need to solve .
Solve using super augmented matrix.
If then the right side of will be .
If then is not invertible.
Let . Then is invertible if and only if . Furthermore, if , then
Linear Transformations
Let . The function determined by the matrix is the function
defined by
In linear algebra, we use the words transformation or mapping instead of function.
We say that the function is a linear transformation if, for any , and any , the following two properties hold.
- (called linearity over addition)
- (called linearity over scalar multiplication)
We refer to here as the domain of and as the codomain of , as we would for any function.
Question
Is a linear transformation?
Let and let be the function determined by the matrix . Then is linear; that is, for any and any , the following two properties hold.
We will call the linear transformation determined by .
Let be a function. Then is a linear transformation if and only if for any and any ,
When proving a transformation is linear, it can be shorter to prove this version.
Let be a linear transformation. Then
Proof:
Useful to show that a transformation is not linear.
is not linear.
Applying ideas about functions to linear transformations.
- Range
- Onto
- One-to-one
Let be a linear transformation. We define the range of , denoted , to be the set of all outputs of . That is,
The range of is a subset of .
Note: . So .
Let , and let be the linear transformation determined by .Then range is the column space, .
Proof
A system of linear equations is consistent if and only if .
We say that the transformation is onto (or surjective) if .
Scaling is onto. Projection onto x-axis is not onto.
Let and let be the linear transformation determined by the matrix . The following statements are equivalent.
a) is onto
b)
c)
Assume is onto. . . So .
Assume . Since then is consistent for all . So by System Rank Theorem.
Assume .
is consistent (System Rank). So .
Let be a linear transformation. We define the kernel of , denoted by , to be the set of inputs of whose output is zero. That is,
The kernel of is a subset of .
Since is linear, . So . So .
Let and let be the linear transformation determined by . Then
Note:
solution set of .
We say that the transformation is one-to-one (or injective) if whenever then .
Contrapositive: .
Distinct inputs map to distinct outputs.
Let be a linear transformation. Then
()
Assume is one-to-one.
We know that .
Let . So But is one-to-one so .
()
Assume
Let and . Assume .
Let and let be the linear transformation determined by the matrix . The following statements are equivalent.
a) is one-to-one
b)
c)
d) .
Assume is one-to-one. . .
Assume .
So has a unique solution . So no parameters .
Assume . So . So .
Assume .
Consider
We know is a solution so the system is consistent. Since the number of parameters . So is the only solution. So .
Let be a square matrix and let be the linear transformation determined by the matrix . The following statements are equivalent.
a) is invertible
b) is one-to-one
c) is onto
d) . That is, the only solution to the homogeneous system is the trivial solution .
e) . That is, for every , the system is consistent.
f)
g)
h)
Let be a linear transformation. We define the standard matrix of , denoted by , to be matrix whose columns are the images under of the vectors in the standard basis of :
Let be a linear transformation and let be the standard matrix of . Then for all ,
That is, is the linear transformation determined by the matrix
We can express every linear transformation in a compact way using multi-vector multiplication.
We can find it by finding .
We can calculate using matrix-vector multiplication.
Question
Is onto?
So it’s not onto. This geometrically makes sense.
Given linear transformation we can find an matrix such that .
Given we can create where .
Let , let be the linear transformation determined by , and let be a linear transformation. Then
a)
b)
c) is onto if and only if
d) is one-to-one if and only if
a)
So and determine the same transformation.
b)
c)
Follows from onto criteria.
d)
Follows from one-to-one criteria.
Let and be linear transformations. We define the function by
The function is called the composite function of and .
Let and be linear transformations. Then is a linear transformation.
Proof:
So is linear.
Let and be linear transformations. Then the standard matrix of is equal to the product of standard matrices of and . That is,
Proof
Let
Let be the linear transformation which rotates a vector counterclockwise about the origin by an angle of and then rotates the result counterclockwise about the origin by an angle of . Find the standard matrix of the transformation of .
Determinants
and then .
Goal is to identify a single value that tells us if a matrix is invertible.
Let .
Determinant is .
Let .
Determinant is .
Examples of submatrices and minors
Let
Then
Delete the first row and second column.
The minor of is
The determinant of an matrix is
Example of a determinant.
Revisiting example
Same result as .
Can also fix to be any row. Can also fix to be any column, and iterate by .
If row has all , . If col has all , .
If upper-triangular / lower-triangular, product of diagonal.
.
If . Then .
EROs and Determinants
Applying to gives
and the determinant of this is .
Applying to gives
and the determinant of this is .
- Row addition (adding multiple of one row to another row) does not change the determinant.
- Row swap (if is obtained by swapping , )
- Row scale (if is obtained by scaling , )
If has two identical rows or cols then .
for any elementary matrix .
Let . Then is invertible iff .
Proof:
Let . Let then for some elementary matrices .
And we just saw that this means .
Suppose is invertible.
Then () and so . Hence .
() Suppose is not invertible.
Then has a row of zeroes. Thus . Since for we get .
Question
For what values of invertible?
Using result just proved, it will be invertible if and only if the determinant is not zero.
Hence it is invertible as long as is not .
Let be invertible, . Since and since is invertible.
Cofactors and Adjugate Examples
Let . Note .
So, the
Theorem
Inverse by Adjugate
Cramers Rule
Let and consider where and .
from by replacing the th column of by the column vector , then the solution is , for all .
Useful when you care about the value of one of the variables in the solution to a system of equations with a square coefficient matrix , where .
Let and be vectors in .
The area of the parallelogram with sides and is .
How does projection onto the line with equation
affect area.
Expect scaling factor of .
Eigenvalues and Diagonalization
Eigenvalues and eigenvalues help us understand all linear transformations.
Non zero vector is an eigenvector of over if there exists a scalar such that
Consider projections onto . We have .
Comes from earlier work to derive
Thus is an eigenvalue for . An eigenpair is .
Note
Thus is another eigenvalue and an eigenpair is .
Only 2 eigenvalues (with infinite eigenpairs).
Fixed points
- is an eigenvalue
We saw that is a fixed point of projection onto .
Projection onto the y-axis.
Then
Note that .
Thus all points on the y-axis are fixed points.
Rotation by . Then . Expect no fixed points.
Indeed .
This would mean , . Then . But cannot be an eigenvector.
Finding eigenvalues
Then an eigenvector exists iff there is a such that .
That is iff iff is not invertible.
That is, iff .
Characteristic Polynomial
. .
Examples
Projection onto .
Solving gives and .
Rotation by .
. We want to solve
The eigenvalues are (no real eigenvalues).
Another example.
Eigenvalues are .
Investigating the Characteristic Polynomial
is the determinant of the above.
Polynomial of degree in .
Definition
Trace: Sum of the numbers on the diagonal, .
Properties:
where
Coefficients of the capture key info about .
Question
What happens when ?
We get exactly roots (maybe with repetitions). That is, eigenvalues.
So we can write
then
and
Corollary:
Question
Is there a real matrix with 2 real eigenvalues?
No, by the conjugate root theorem.
Given and we can find an eigenvector by solving
That is, we need to compute
Eigenspace
Powers of Matrix
Prove by induction that
So
is similar to over if there exists an invertible matrix such that .
In the previous example is similar to . is similar to iff is similar to .
If and are similar over , they have the same characteristic polynomial same eigenvalues in .
Proof: Assume is similar to .
So eigenvalues of are the same as the eigenvalues of .
We say that is diagonalizable over if it is similar over to a diagonal matrix . That is thre is an invertible matrix such that .
Matrix diagonalize
Note: is important. May be diagonalizable over but not .
We will see other applications of diagonalizability. All diagonalizable.
If is diagonalizable over , the characteristic polynomial has roots.
If diagonalizes , the diagonal entries of are the eigenvalues of .
Note, over , will always have eigenvalues. Contrapositive, if we don’t have eigenvalues even with repetition, then not diagonalizable.
Proof:
Assume is diagonalizable over . such that where is diagonal. So and are similar.
So are eigenvalues of and , so we have eigenvalues.
Let have distinct eigenvalues .
Let be corresponding eigenpairs over and let . Then
- is invertible, and
Subspaces and Bases
Subspaces
Subset of of is a subspace of if
Non-empty set of vectors closed under addition and scalar multiplication.
Proposition: Examples of subspaces
a) and are subspaces of
b) If is a subset of , then is a subspace of .
c) If then column set to homogeneous system is a subspace of .
Proof Examples of Subspaces (b)
Let and let .
Then by definition of span.
Next let .
Then there exists scalars such that
Thus is just . Since for .
We know is in the span.
Let and as before.
Then for for all we know .
Proposition: More Examples
a) , then is a subspace of .
Since where are the columns of , we are done by part b) of the previous proposition.
b) If is a linear transformation, then the range of , , is a subspace of .
. Thus by part a) we are done.
c) , then the kernel (), is a subspace of .
Since , this follows from part c of previous.
d) , then is a subspace of .
Similarly true since .
Subspace Test
is a subset of . is a subspace of if and only if
a) is non-empty
b) and
Proof of subspace test
Assume is a subspace of where .
- (a) by (1)
- (b) by (3) then (2)
- (1) exists by (a)
- (2) Pick
- (3) Pick
Non-Examples
Not a subspace because does not satisfy
Not a subspace, count example
Exercises
- Let be a subspace of
a) Is a subspace?
No because .
b) Is a subspace?
It can be (e.g. ). But it might not be (e.g. )
- Is a subspace of ?
No (violates , ). The scalar is in field of what subspace is in.
Efficiently Describing Subspaces
Let .
Let . Let .
Note that .
We can prove that .
Let . Then for some .
Then
Thus .
Can rewrite to get: . are linearly dependent.
Linear Dependence
Vectors are linearly dependent if there exists scalars , not all zero, such that .
If then is a linearly dependent set.
Are linearly dependent?
Proof
are linearly independent.
Linear Independent
(Not linear dependent). Only solution to equation is trivial solution (all scalars are 0).
Note:
- Consider empty set Linearly Independent
- Linearly Independent because .
Basis
is a subspace. in . is a basis for if
- is linearly independent
is a basis for .
a) Vectors are linearly dependent if and only if one of the vectors can be written as a linear combination of other vectors
b) Vectors are linearly independent if and only if implies . (This is the definition of linear dependence).
Proof of a)
)
Suppose are linearly dependent.
Then for some where are not all .
Without loss of generality, we assume .
Then
Suppose without loss of generality
Since are linearly dependent.
Let
a) If , then is linearly dependent.
b) If (only 1 vector), then is linearly dependent if and only if .
c) If contains 2 vectors, is linearly dependent iff the vectors are scalar multiples.
True or False
Let
- If is linearly independent, then every subset of is linearly independent.
True: Prove the contrapositive.
, is linearly dependent.
Add in vectors in that are not in with zero as a scalar.
- If is linearly dependent then every subset of is linearly dependent.
False: Empty set
- If is linearly dependent then every non-empty subset of is linearly dependent.
False:
- The entries of two linearly dependent sets is linearly dependent.
True: Just throw 0’s onto the new one.
- The vision of two linearly independent sets is linearly independent.
False:
Are these linearly dependent or linearly dependent?
We want to solve
So we consider the coefficient matrix . . Only one solution linear independence.
(but 4 columns). Thus there are non-trivial solutions linear dependence.
Connection to Pivots
be set of vectors in .
matrix, .
and has pivot columns .
Let set of columns of that correspond to pivot columns.
Then
a) is linearly dependent iff .
b) is linearly independent.
Proof of a)
Then is linearly independent iff has a unique solution.
That is, iff .
Proof of b)
As before we will consider
The pivots in this coefficient matrix must be the same as those in .
That is, there are pivots which is the number of columns. Hence this has a unique solution. Thus is linearly independent.
c) If is in but not in then the set is linearly dependent.
Proof of c)
Consider .
As before we have pivots but it has pivots.
Hence is linearly dependent.
Proof of d) .
Since . .
We must show .
If we are done. Otherwise, we consider .
From our proof of c), we know has a non-trivial solution.
By part b) it must be that .
Thus . That is .
It follows .
Corollary
Bound on Number of Linearly Independent Vectors
Let be the set of vectors in .
If , then is linearly independent.
Rank of matrix is at most . Hence, to be linearly independent, we need .
Since , if , linearly dependent. must be at least .
e.g. 8 vectors in must be linearly dependent.
Also, given these 8 vectors, we can find a subset of them that have the same span and for which their subset is linearly independent.
That is we can find a basis for the span of these 8 vectors.
Let be a subspace.
If for some vec , then for all .
False.
Counterexample: . Note, is true if we replace to .
Algorithm for finding a Basis of a Subspace
went from span to basis.
Let be a subspace.
whilefindsuch thataddto
Notes:
Partly by convention this correctly gives as a basis for . Won’t discuss how to find . When we terminate, . always linearly independent. Thus when we terminate, we get a basis for . Algorithm terminates by our bound on the number of linearly independent vectors.
Every subspace has a spanning set.
Every subspace has a basis.
Question
How do we test if ?
follows from the definition of subspace. means for all which is true if is consistent for all .
That is,
Special case of Here, is consistent for all where .
Size of basis for
To span, (number of columns)
To be linearly independent by bounds.
Summary
We need at least vectors to span .
Can have at most vectors in if linearly independent.
Many sets of vectors which are not a basis.
is linearly independent if and only if .
A set of vectors will span if and only if they are linearly independent. Why? Spans and linearly independent .
We have a method to shrink a spanning set for a subspace into a basis for the subspace. We have a method to grow a linearly independent subset of a subspace into a basis for the subspace. All bases for consist of vectors, but not all sets of vectors are a basis.
Determine all values of for which
is a basis of .
Solution:
Vectors will form a basis if and only if where
Running Example
We can get
Basis for
By pivots and linearly independence,
is a basis for .
Basis for .
are they linearly independent? Yes.
If then and by inspecting third and fourth components.
Dimension
Number of elements in a basis for subspace of is called the dimension of . We denote this by .
Examples
- Let where . Consider Thus a line through the origin is a subspace of dimension 1.
- Let where and for any
Consider
Thus a plane is a subspace of dimension 2.
Proof of bound
A basis of consists of linear independent vectors. Hence its dimension is not at most by our bound for sets of linear independent vectors.
Rank and Nullity as Dimensions
Rank-Nullity Theorem
Dimension Exercises
- Let be subspaces of where . Then
- Let be the subspace consisting of all vectors orthogonal to and . What is ?
a) We can grow a basis for into a basis for . b) . contrapositive. Use to create a larger basis for .
Unique Representation Theorem
basis for . For every vector , unique scalars .
Proof of URT
Existence comes immediately from the fact that spans .
Let and for some scalars .
Thus
Equivalently,
Since is a basis, it is linearly independent. for all .
Scalars are the coordinates of with respect to Bases.
Example
Let
What is ,
Can find this by solving
Given . What is ?
Linearity
To prove we can show .
Moving From/To in
.
to
- Given , want . We multiply
- Given , want . Compute
to
Given . Want
Solve
Thus
to
Given . Want .
Solve
Can compute
Change of Basis, to
Diagonalization
Linear Operator
Linear transformation where is called a linear operator.
is an ordered basis.
Consider projection onto
Let
Then
That is . By proposition 9.1.3
Applying and then converting is the same as converting then applying.
Proof of 9.1.3
Let where .
Then
Example:
Let
Question
What is ?
Thus, (another fixed point).
Can verify this algebraically, can also verify geometrically.
Question
Given any , how do we find a basis such that is nice?
To answer this, we ask how is related to ?
Same as .
The essence of the linear operator does not change when you change the basis. That is, making the computation easier doesn’t change what is happening theoretically.
Connection to similarity
This result makes sense
Example of Corollary
Let be reflection in .
We know what is.
The direction vector is .
Thus .
Note, and .
So we chose
Then
So
Proof of compaction
Let
Then
(not proving inverse part).
is diagonalizable some ordered basis for consisting of eigenvectors of .
Diagonalize Linear Operator
, is diagonalizable if is diagonal.
Equivalently,
- is diagonalizable
- basis such that is diagonal
- basis of eigenvectors of
- is diagonalizable
- is diagonalizable
For to be diagonal, we need to to have only eigenvectors.
Consider defined by
Determine if is diagonalizable over .
Solution
is diagonalizable iff is diagonalizable.
Therefore, the eigenvalues of are with eigenvectors .
If we have distinct eigenvalues, we can choose an eigenvector from such of the eigenspaces to get a basis of eigenvectors. We can use them to form .
What if not all eigenvalues are distinct.
of times that root is repeated.
Ex. , .
Eigenspace
= large number of linearly independent vectors we can get from .
Example
.
Eigenvalues are .
For , RREF. Nullify, so .
We also get Nullify(.
.
Let be the distinct eigenvalues of .
For each , let be the eigenspace corresponding to , and let be a basis for .
We claim that is linearly independent.
Suppose
and consider a linear combination equal to zero:
Group the terms according to their eigenspaces:
Since eigenspaces corresponding to distinct eigenvalues are linearly independent, .
Therefore each grouped term must be zero: , , , and so on.
But each is a basis, hence is linearly independent. Thus , , , and similarly for every . Hence is linearly independent.
Let distinct eigenvalues of be .
Every eigenvector belongs to an eigenspace.
The most linear independent eigenvalues we can get from is .
The union of the bases for each of the eigenspaces is the largest number of its linearly independent eigenvectors we can get.
This is equal to .
Since then .
is the largest number of linearly independent eigenvectors we can get.
is diagonalizable iff is diagonal for some ordered basis. is diagonalizable iff is diagonalizable ordered basis . is diagonalizable ordered basis iff is diagonalizable. is diagonalizable iff there are linearly independent eigenvectors of iff .
Key observation. We want to be invertible.
Question
Can we find linear independent eigenvectors?
Driving Examples
Possible issues
- eigenvalues (including repeats)
- eigenvalues but not linear independent eigenvectors.
Algebraic multiplicity
- c)
Geometric multiplicity
- c) , .
Proposition: All eigenvectors from eigenspace are linear independent.
Special proof
These are bases of .
Assume
9.3.4 tells us that if these are eigenvectors they are linear independent.
Thus .
Since is a basis for .
Hence are linear independent.
We want eigenvectors. Every eigenvector is in an eigenspace. Thus we get at most
This gives us the diagonalizability test.
is diagonalizable iff is a constant polynomial and for each .
Question
Is diagonalizable
- Compute
- Fully factor
- if is not constant NO
- elif for YES
- elif for YES
- else NO