In first year calculus, we study real numbers, R, and functions on the real numers, f:R→R
we ask questions about domain, range, injecti\vec{v_i}ty, surjecti\vec{v_i}ty, invertibility, extrema, continuity, differentiability, integrability, etc.
There are many important functions that do not have domain and codomain R. Let's start by introducing just one new set of objects to consider as inputs and outputs for our functions:
Functions f:Rn→Rm
R2={(x,y):x,y∈R}
Real Vectors: Rn=x=(x1,x2,⋯,xn):xi∈R
In multivariate calculus and vector calculus, you will talk about graphing functions like this and discuss things liek continuity and differentiability
in linear algebra we focus our time as follows:
Consider functions f:Rn→Rm that are linear
Ask algebraic questions like:
Is y in the range of f?
What is the range of f?
Is f injective?
if m=n, then do we have f(x)=λx for any vector x
Chapter 1
Definition: the n-dimensional Euclidean space, or Rn, consists of all objects of the form
x=⎣⎢⎢⎢⎡x1x2⋮xn⎦⎥⎥⎥⎤
where x1,x2,⋯,xn are in R
Note:
Two vectors in R are equal if their corresponding components are equal, that is, x=y iff xi=yi for 1≤i≤n
In linear algebra all vectors should be denoted with column vectors. However, sometimes n-tuples are used to match notation commonly used in other areas.
f(x1,x2,⋯,xn) rather than f(⎣⎢⎢⎢⎡x1x2⋮xn⎦⎥⎥⎥⎤)
Arithmetic in R
there are two basic operations performed on vectors in R
Definition - Multiplication:
Given a scalar c∈R and a vector x∈R we define cx to be
Theorem - (p, 4, properties of vector arithmetic)
if x,y are vectors from R and c and d are scalars from R, then:
(V1) x+y is in R
(V2) (x+y)+w=x+(y+w)
(V3) x+y=y+x
(V4) There exists a vector 0∈R such that x+0=x for all x∈R
(V5) For every x∈R there exists (−x)∈R such that x+(−y)=0
(V6) cx∈R
(V7) c(dx)=(cd)x
(V8) (c+d)x=cx+dx
(V9) c(x+y)=cx+cy
(V10) 1x=x
copy the rest down
Note: The zero vector is 0=(0,⋯,0) and the inverse (−x) is (−1)x
we define the operation of subtraction by x−y=x+(−1)y
8/1/20
Parallelogram Rule: When adding vectors, the result is the diagonal of the parallelogram formed by the two vectors. The difference of the vectors works similarly.
Pro\vec{v_i}ng the diagonals of a parallelogram are parallel:
Let u and v be sides of a parallelogram with point E being the intersection of both diagonals of this parallelogram. Note that u and v cannot lie on the same line and as such are not scalar multiples of each other.
One diagonal can be expressed as u−v and other other as u+v.
Definition - Linear Combination: Let v1,v2,⋯,vk be k vectors from Rn. Any sum in the form:
c1v1+c2v2+⋯+ckvk∣c1,⋯,ck∈Rn
is called a linear combination of the vectors v1,v2,⋯,vk.
Definition - Span: Let B={c1v1,c2v2,⋯,ckvk} be a set of vectors in Rn. We define the span of B by
Span(B)={c1v1+c2v2+⋯+ckvk∣c1,⋯,ck∈Rn}
We say that SpanB is spanned by B and that B is a spanning set for SpanB.
The span of some set of vectors B is the set of all scalar multiples of the vectors in B.
Theorem unnamed: Let v1,v2,⋯,vk∈Rn. Some vector vi,1≤i≤k can be written as a linear combination of v1,v2,⋯,vi−1,vi+1,⋯,vk if and only if
Theorem (p. 10): Let S={v1,v2,⋯,vk} be a set of vectors in Rn. For all i satisfying 1≤i≤k, the vector vi can be written as a linear combination of the vectors in S−{vi} if and only if
Span(S)=Span(S−{vi})
Essentially, if some set of vectors' span encompasses a given vector, vi, then said vector (vi) can be a written as a linear combination of the vectors. The converse is also true.
Essentially, if a set of vectors is a subset of another set of vectors then then the "extra" vectors can be represented by some linear combination of the vectors in the subset.
Exercise 1.3:
Determine whether ⎣⎡312⎦⎤ is in Span{⎣⎡110⎦⎤,⎣⎡101⎦⎤,⎣⎡011⎦⎤}.
We determine if there exists c1,c2,c3∈R such that c1⎣⎡110⎦⎤+c2⎣⎡101⎦⎤+c3⎣⎡011⎦⎤
10/1/20
Example 1.4:
Let {v1,v2,v3}⊆Rn.
Prove that v3 can be written as a linear combination of v1 and v2 if and only if
Span{v1,v2,v3}=Span{v1,v2}
Proof:
Let {v1,v2,v3}⊆Rn.
(⇒) Assume that v3=c1v1+c2v2 for some c1,c2∈R.
We prove the set equality by showing each set is a subset of the other.
Certainly Span{v1,v2}⊆Span{v1,v2,v3}.
If x∈Span{v1,v2} then x=d1v1+d2v2 for some d1,d2∈R, and so
x=d1v1+d2v2+0⋅v3
and hence x∈Span{v1,v2,v3}.
Now we show Span{v1,v2,v3}⊆Span{v1,v2}.
If x∈Span{v1,v2,v3} then x=d1v1+d2v2+d3v3 for some d1,d2,d3∈R.
This means, x=d1v1+d2v2+d3(c1v1+c2v2) x=(d1+d3c1)v1+(d2+d3c2)v2
Since d1+d3c1,d2+d3c2∈R we have shown x∈Span{v1,v2} by definition. Therefore Span{v1,v2,v3}=Span{v1,v2} (⇐) Assume Span{v1,v2,v3}=Span{v1,v2}
Since v3=0⋅v1+0⋅v2+1⋅v3 we have v3∈Span{v1,v2,v3}. By our assumption, we must have v3∈Span{v1,v2}, and so v3 is a linearcombination of v1,v2.
QED
The proof for a general number of vectors follows a similar structure
Linear Dependance & Independence
Definition: Let S={v1,⋯,vk} be a set of vectors in Rn. We say that the set S is linearly dependent if there exists scalars c1,⋯,ck∈R with at least one ci non-zero, such that c1v1+⋯+ckvk=0
Otherwise we call the set linearly dependent.
a set consisting of one element is not necessarily independent, consider the 0 vector.
Theorem (p. 13): A set is linearly dependent if and only if one vector in the set is in the span of the other vectors in the set.
Characterizing dependence: Tossing in 0 will always result in a dependent set.
Theorem (p. 16): If a set of vectors {v1,⋯,vk} contains the zero vector then the set is linearly dependent.
Remarks:
A set of size one, S={v} is linearly dependent if and only if v=0
A set of two vectors is linearly dependent if and only if one vector of S is a scalar multiple of the other vector
If it is a set of 3 or more then it gets complicated
If its independent then no scalar multiple pairs, however the converse is not guaranteed
If its independent then there is no zero vector, the converse is not guaranteed
13/1/20
Week 1 Terminology Review:
[3−6] is a linear combination of [21] and [12] since [3−6]=(4)[21]+(−5)[12]
This shoes that [3−6] is an element of Span{[21],[12]}
The set S={[21],[12]} spans R2 since ∀x∈R2,∃c1,c2∈R,x=c1[21]+c2[12] Given a vector x=[ab] then c1=32a−b and c2=32b−a
The set s={[21],[12]} is a linearly independent set since the only scalars
c1 and c2 that satisfy are c1[21]+c2[12]=0 are c1=c2=0
Subspaces of Euclidean Spaces
Definition: A subset of Rn is called a subspace of Rn if for all x,y,w in S and all c,d in R we have (V1 through V10 hold)
Note:
Commutivity gets inherited from Rn no matter what so V2,V3,V7,V8,V9,V10 are always true for any subset of Rn
Theorem (p.23 Subspace test):
Let S be a subset of Rn. If S=∅ and for all x,y∈S and all c∈R we have x+y∈S and cx∈S, then S is a subspace of Rn
Theorem: If v1,⋯,vk∈Rn, then S=Span{v1,⋯,vk} is a subspace of Rn.
The span of some vectors in Rn is a subspace of Rn
15/1/20
Bases
Since a linearly independent set of vectors is always simpler than a linearly dependent one and a linearly dependent set of vectors can always be reduced to a linearly independent set with the same span; the simplest set of vectors which span some set must be linearly independent.
Definition: Basis
Let S={v1,⋯,vk} be a subset of rn. If {v1,⋯,vk} is a linearly independent set of vectors in Rn such that S=Span{v1,⋯,vk}, then the set {v1,⋯,vk} is called a basis for S.
We define the basis set for {0} to be the empty set ∅.
Definition: Standard Basis:
In Rn, let ei represent the vector whose ith component is 1 and all other components
are 0. The set {e1,...en} is called the standard basis for Rn.
Lines and Planes
Definition - Line:
A line in Rn is a subset of Rn which can be represented using a vector equation of the form
x=b+tm,t∈R
for vectors b and m in Rn with m=0
Definition - Plane:
A plane in Rn is a subset of Rn which can be represented using a vector equation of the form
x=b+su+tv,s,t∈R
for vectors b,u,v in Rn with {u,v} a linearly independent set
17/1/20
Theorem (p. 19):
If B={v1,⋯,vk} is a basis for a subset of S of Rn, then every vector in S can be written as a unique linear combination of the vectors in B
Proof:
Let B={v1,⋯,vk} be a basis for S⊆Rn. Since B is a spanning set for S, given vx∈S, there exists c1,c2,⋯,ck∈R such that
vx=c1v1+c2v2+⋯+ckvk
Now we prove these scalars are unique.
Suppose we also have
Reflection operator: Let L be a line in R2 that passes through the origin and ahs normal vector n. If we reflect a vector x in the line L, then the resulting vector is given by
reflL(x)=x−2projn(x)
Summary
ALl of these important functions on R2 (scaling rotation, projection, reflection) have some common properties:
each function f(x) can be represented using a matrix-vector product, Ax, for some 2X2 matrix A
What does it mean to be linear
Here are defining features in terms of algebra:
f(x+y)=f(x)+f(y) and f(cx)=cf(x)
Functions on Euclidean spaces
f:Rn→Rm
f is the function
Rn is the domain
Rm is the codomain (Euclidean space in which the output vectors lie)
Image: If f(x)=y then we call y the image of x under function f
Definition: Two functions f:Rn→Rm and g:Rn→Rm are said to be equal if f(x)=g(x) for all x∈Rm
Linear mappings
Definition: A function f:Rn→Rm is called a linear mapping if for all vectors x,y∈Rn and scalars c,d∫rr we have
f(cx+dy)=cf(x)+df(y)
Remark: Alternatively, we could define a linear mapping to be a function with the two properties
f(x+y)=f(x)+f(y)
f(cx)=cf(x)
Exercise 3.4: Determine which of the functions given below are linear mappings and which are not
f(x1,x2)=(x12,x22)
f is not linear
Let x=(−1,2) and y=(−1,2) we show f(x+y)=f(x)+f(y) f(x)=f(−1,2)=(1,4)=f(y)
implies f(x)+f(y)=(1,4)+(1,4)=(2,8)
But f(x+y)=f(−2,4)=(4,16)
and so f(x+y)=f(x)+f(y)
g(x1,x2)=(x2,1,x1)
g is not linear
Let x=(1,2) and c=2
We will show g(2x)=2g(x) g(x)=g(1,2)=(2,1,1)
implies 2g(x)=(4,2,2)
But g(2x)=g(2,4)=(4,1,2)
and so 2g(x)=g(2x)
h(x1,x2,x3)=(2x1,+x2,x3)
h is linear
Let y,z∈R3 and c,d∈rr.
Then y=(y1,y2,y3),z=(z1,z2,z3).
So cy+dz=(cy1+dz1,cy2+dz2,cy3+dz3)
We have
ch(y)+dh(z)=c(2y1+y2,y3)+d(2z1+z2,z3) =2(2cy1+cy2+2dz1+dz2,cy3+dz3) =(2(cy1+dz1)+(cy2+dz2),cy3+dz3)=h(cy1+dz1,cy2+dz2,cy3+dz3) =h(cy+dz)
Therefore h is linear.
Projections are linear mappings
Fix vvv∈Rn and consider the associated function projvvv:Rn→Rn. Prove that this function is a linear mapping.
7/2/20
Matrix representation of linear mappings
We will prove the follwoing result in this section:
A function f:Rn→Rm is a linear mapping if and only if there exists an m x n matrix A such that f(x)=Ax for all x∈Rn.
We prove one implication now: If f(x)=Ax for all x∈Rn, then for all y,z∈Rn and c,d,∈rr
If L:Rn→Rm is a linear mapping, then the vectors L(e1),⋯,L(en), (the images of the standard basis vectors under L) completely determine a formula for L(x). Note that we have
This representation of x and the linearity of L gives us the formula
L(x)=x1e1+⋯+xnen=x1L(e1)⋯+xnL(en)
Theorem: If L:Rn→Rm is a linear mapping then for all x∈Rn we have
L(x)=[L(e1)L(e2)⋯L(en)]
Standard matrix of a linear mapping
Definition: Let L:Rn→Rm is a linear mapping. The matrix
[L]=[L(e1)L(e2)⋯L(en)]
is called the standard matrix of L
Remark: As the name suggests, this is not the only way to represent L using a matrix-vector product. This matrix is called the standard matrix since it is built from the standard basis for Rn. We will see later that it is sometimes helpful to choose a non-standard basis and build a non-standard matrix representation.
Example 3.8: Determine the standard matrix of refll(x1,x2) where l is the line 2x1−3x2=0 in R2
refll(x)=x−projn(x) where n=(2,−3)
So, refl(1,0)=(1,0)−2proj(2,−3)(1,0)=(1,0)−2(13(2,−3)⋅(1,0))(1,−3) =(1,0)−134(2,−3) =(135,1312) refl(0,1)=(1312,13−5)
Therefore,
[refll]=[1351312131213−5]
Matrix equality
Let A and B be two m x n matrices.
We say that A and B are equal if their corresponding entries are equal.
Let aij denote the entries in the ith row and the jth column of A.
Let bij denote the entries in the ith row and the jth column of A.
Defintion:A=B⟺aij=bij for all i=1,⋯,m and j=1,⋯,n
Theorem (Matrices equal theorem) If A and B are m x n matrices, then A=B if and only if AxBx for all x∈Rn
Proof: It is clear that if A = B then Ax=Bx for all x∈Rn.
Now suppose that A=[vva1⋯vvan] and B=[vvb1⋯vvbn] and Ax=Bx for all x∈Rn. It follows that Aei=Bei for all i=1,⋯,n.
Recall that we showed earlier that Aei=vvai and Bei=vvbi which means we must have vvai=vvbi hence A=b
We have established that if f:Rn→Rm is a linear mapping if and only if there exists an m x n matrix A such that f(x)=Ax for all x∈Rn
If a function is linear then it can definitely be represented by a matrix (you just have to find it)
if a function is not linear then don't bother trying to find a matrix representation!
Caution, if the function is not a linear mapping the finding the matrix representation will not be useful
Compositions of linear mappings and matrix representations