Week 0 ·
Vectors and Linear Combinations
Vectors
Vectors are one of the main objects that we use in linear algebra. For now they are defined as elements of which represents the dimensional space. So a vector is a sequence of real numbers.
This might bring up the question: How does look like? In we have only one element: the empty sequence of real numbers.
Vectors in a Coordinate System
Thinking of vectors as a way to move around in the dimensional space is a good way of understanding vectors. This might seem easy on a 2 dimensional example. However visualizing vectors and other objects we use in linear algebra like matrices and vector spaces is going to become more difficult as the number of dimensions increases.
Vector Addition and Scalar Multiplication
You can imagine the vector addition as putting the vectors end to end, in order to reach where you want to go. On the other hand, scalar multiplication is just deciding how many of the same vector you want to use. Multiplying by changes the direction.
- Addition:
- Scalar Multiplication:
Linear Combinations
Combine vector addition and scalar multiplication.
Let be vectors in . Then:
is a linear combination of the vectors . Note that the result is again a vector in the same vector space (i.e. the resulting vector has the same dimension). So we can produce vectors using other vectors!
A natural question is whether or not we can produce all vectors by using a given set of vectors. Think in 2 dimensions. It might be relatively easy to see that the vectors:
can be used to produce all 2 dimensional vectors. If you want to write an arbitrary two dimensional vector
as a linear combination of these two vectors -where values of and are known to you- you write:
and try to find the suited coefficients. In this case and .
Example
Try to write the vector using the vectors .
Solution: We are looking for real numbers and such that
. If you do scalar multiplication and vector addition as above, you get
In order for these vectors to be equal, all elements need to be pairwise equal that is:
Solving this linear system of equations (LSE) gives us and .
Row & Column Pictures
We can distinguish between the column picture and the row picture when speaking of a linear combination. As an example you try to write an arbitrary vector
as the linear combination of
Then you follow the same steps as above, try to find coefficients such that
Now you can think of this linear combination in two ways:
The Column Picture
This approach tells you that you can build the vector by adding the multiples of the vectors and end to end. You can use the vectors as building blocks or steps to get to the vector you want to reach. In the process of doing this, how many times you used which vector gives you and . See how the green and orange lines resemble new coordinate axes.
Now imagine that the two vectors were parallel to each other. When you put both to the origin they would be on a single line. This means no matter how you combine those vectors to get to some point in your coordinate system, you will stay on that line. Therefore in that scenario you cannot produce all vectors in your coordinate system using the ones you have.
Note that two vectors are parallel when they are a scalar multiple of each other. In this case we call them collinear.
Try to change the values of the vectors and above to make them collinear. See how the two lines that are spanned by the two vectors collapse to a single line. In that scenario those two vectors can only represent the vectors that are on that line.
The Row Picture
The row picture actually serves the same purpose of finding and . However this time the focus is on the elements of the individual vectors. See how the axes now represent and . You write the linear combination in an extended form:
And focus on the lines that are represented by each equation. The intersection of these lines give you the values for and that satisfy both equations and hence the whole linear system of equations (LSE). We are going to deal wit LSE’s extensively in the following weeks.
Try to make the vectors and collinear again. See how this makes the two lines parallel, indicating that there exists no intersection and hence no solution for and that satisfy both equations in that case. One special case is when two lines of equations are a multiple of each other. Then two lines collapse to a single line, meaning that there are infinitely many solutions: all and on that single line satisfy both equations.
Affine, Conic, and Convex Combinations
We can observe different kinds of special linear combinations. For a linear combination of n vectors where and
We say the linear combination is affine, conic, or convex if it satisfies the following corresponding conditions:
- Affine:
- Conic:
- Convex: Affine and Conic
Affine Combination of Two Vectors
We can take a closer look to affine linear combinations to better understand why they form a line for two vectors and in .
The last line of equation tells us to go to first and then use any scalar multiple of the vector to go somewhere on the line that goes through and is parallel to .