Week 1 ·
Lengths, Angles and Linear Independence
Some Notation
- Sequence of Vectors:
- Set of Vectors:
- Short way of writing column vectors
What if your is 0? The range of integers from to is empty and an empty sequence is whereas an empty sum of vectors is equal to the vector in the corresponding dimension.
Lengths and Angles
It is a perfectly natural way of thinking to consider vectors as geometric objects that help us move around the space. Therefore we are curious to know how to describe their properties like length (magnitude), position with respect to each other or angles.
Scalar Product (Dot Product)
Definition 1.7 (Scalar Product)
Notation: we sometimes write
Attention: that is, the scalar product of two real vectors is a real number!
Note: for we have
Properties of the Scalar Product
Observation 1.8
Let be vectors and a scalar. Then
- (i)
- (ii)
- (iii) and
- (iv)
These properties will come in handy especially when we start dealing with matrices, vectors and complex equations.
Euclidean Norm
We want to know how long our vectors are. In 2 or 3 dimensions this might be a relatively easy task but we need something that also makes sense for higher dimensions.
Definition 1.9 (Euclidean Norm)
All the vectors on the circle have the same norm as the formula of a circle reads .
In more dimensions:
-
Unit Vectors: Vectors such that
-
Producing unit Vectors that point into the same direction as an arbitrary vector: If you take an arbitrary vector and divide it with its norm, you get a unit vector that is collinear to .
-
Standard Unit Vectors:
There are various different norms. For interesting and commonly used norms you can check the cab norm (1-norm), -norm and -norm.
Cauchy-Schwarz Inequality
Cauchy-Schwarz inequality tells us that the absolute value of the scalar product of two vectors can not be greater than the product of their norms.
Lemma 1.10 (Cauchy-Schwarz Inequality)
For any
The expression holds with exact equality if two vectors are collinear.
Let’s see that Cauchy-Schwarz holds with equality for two collinear vectors. Let be a vector and a scalar. Now set . We know is a scalar multiple of hence they are collinear. Now use Cauchy-Schwarz:
Two sides are equal since is always non negative as sum of squares (see Euclidean norm).
Angles
You can get help from the Cauchy-Schwarz inequality to determine the angle between two vectors. Again, to come up with a more general method to measure the angle between two vectors is useful for higher dimensions where it might be relatively more difficult to visualize angles in comparison to 2 dimensions.
Definition 1.12 (Angle)
Let be two nonzero vectors. The angle between them is the unique between 0 and (180 degrees) such that:
Note that the absolute value of the fraction can not be greater than 1. (comes from the Cauchy-Schwarz inequality) This is good, since cosine can only have values in the interval . So this is a well defined formula. We also have
Angles on Higher Dimensions and Cosine Similarity
Angles on higher dimensions might seem counterintuitive or vague. However we actually use angles in higher dimensions. In essence, the angle between two vectors in any dimension mean how similar the vectors are aligned. If the angle is close to then the vectors are aligned in a more similar way. On the other hand if the angle is close to then the vectors are almost pointing in the opposite directions. You can read more about the use case of this by searching the cosine similarity.
Perpendicular Vectors and Hyperplanes
Perpendicular vectors are the vectors that have an angle of 90 degrees (cosine equal to 0) between them. A more commonly used term is orthogonal. Orthogonality is an important concept in linear algebra and it will have its own section in the lecture notes. We identify orthogonal vectors as in the following:
Definition 1.13
Collecting all the vectors that are orthogonal to a vector gives us an hyperplane:
Definition 1.14 (Hyperplane)
Let . The set
is called a hyperplane through the origin.
Triangle Inequality
Lemma 1.15
Let . Then
which is a generalized version of the triangle inequality we know from two dimensional triangles that also applies for vectors in higher dimensions.
On proofs of these facts:
Especially when you want to prove the Cauchy-Schwarz inequality or the formula for the angle between two vectors it is helpful to prove it only for unit vectors first. This will make things easier. Afterwards you can show that these facts also apply for vectors that are not unit vectors. See lecture notes for the proofs.
Linear Independence
Linear independence is one of the most important concepts in linear algebra and you should definitely develop a good understanding of it. We define linear independence for a collection of vectors.
Definitions
There are three alternative definitions given in the lecture. They are of course all equivalent, but provide us with different points of view. The first one is as follows:
Definition 1.19 (Linear (in)dependence)
Vectors are linearly dependent if at least one of them is a linear combination of the others, i.e. there exists an index and scalars such that
Otherwise, are linearly independent.
Here are the three alternatives for the definition of linear independence:
Theorem (Equivalent definitions of linear independence)
Let . The following statements are equivalent (meaning that they are either all true, or all false).
(i) None of the vectors is a linear combination of the other ones. (This means, the vectors are linearly independent according to Definition above)
(ii) There are no scalars besides such that we have . We also say that the vector can only be written as a trivial linear combination of the vectors.
(iii) None of the vectors is a linear combination of the previous ones.
Be careful, if one of your vectors is the vector , then the sequence of vectors is linearly dependent. Also the vector can be written as a linear combination of all sequences of vectors and yes even as a linear combination of the empty sequence of vectors.
Lemma 1.22 (Uniqueness of the linear combination)
Let be linearly independent, . Let
be two ways of writing as a linear combination of . Then for all .
Span
Span of a collection of vectors is the set of all linear combinations possible with these vectors.
Definition 1.23
Let . Their span is:
If you consider your steps as vectors, you could move everywhere with a front step, a right step, and an up step -let’s imagine you could fly-. You could go into the opposite direction by simply multiplying the vector that represents right,up,or forward by -1. Then these vectors would be enough to take you anywhere you want. Their span would be the whole 3 dimensional space. In contrast if you only had the ability to go right-left and front-back, you would be stuck at your altitude forever and could not go anywhere you want (hiking would be out of the window for sure). The span is a two dimensional plane in 3 dimensional space in this example. And lastly, if you only had one of those abilities, say being able to go only to right and left, you would move in a line all the time.
This analogy makes it clear that the span of vectors in is either a line, a plane, or the whole space. We have one more important case: having no ability to move at all. This corresponds to the case where all your vectors are equal to the vector . Then the span consists of the origin.
Lemma 1.24
Let , and let be a linear combination of . Then
You can see this in the example above. While you can move in 2 directions front-back and right-left, the ability to move diagonally would not take you to somewhere new. You could already produce the behavior of the newly added vector with other vectors. In other words, you can take the vector out of the set, which can be written as a linear combination of the others, and the span will stay the same (Corollary 1.25).
Lemma 1.26
let be linearly independent. Then
This lemma lays the ground for the concept of a basis of a vector space. Even though we have not yet developed enough linear algebra to understand this in terms of a basis of a vector space, we can think of it as follows: Remember the analogy of moving from above. If you have linearly independent vectors, this means you have distinct abilities, each of which enable you to go into a new dimension you could not go before. Now we can wrap up our intuition by saying there are only “directions” to go in .
I strongly recommend you to read the proof of this fact from the lecture notes.
Hints
Hints for this week’s assignments:
- Will be solved in class.
- For b and c, use different definitions of the linear independence out of the 3 we have.
- Think of the vectors for a and for b.
- For a remember the definition of linear (in)dependence - With which ‘s can you have ? For b try to do the same thing and show in that case every coefficient must be equal to .
- We have a formula for this. Use that. Simplify the fraction in a clever way. Do not forget to use the fact that .
- See the proof of the Fact 1.5 from lecture notes. Make sure that in your calculations the denominator never gets to be 0.