A system of linear equations consists of multiple equations that are solved simultaneously. The easiest method to solve systems of linear equations is through Gaussian elimination.
A linear combination of a set of terms is a sum of each term multiplied by a constant. Since a linear combination is basically a weighted sum of each term, the constant coefficients can be thought of as “weights.”
Examples
Span
Examples
Calculation
Example 1
We can just solve the augmented matrix:
Example 2
Let's row-reduce the matrix:
In other words, we could have row-reduced the following augmented matrix:
Linear independence
In other words, a set of vectors is linearly independent if and only if none of its elements is a linear combination of the other elements. Else, the set is considered linearly dependent.
Calculation
To determine whether a set of vectors is linearly independent, we find solutions to the equation
If we have pivots in every column, we know that the vectors are linearly independent.
Example 1
We first row-reduce the matrix:
We see that there is no pivot in the third column. Therefore, the given vectors are linearly dependent.
Example 2
Let's row-reduce the matrix:
We observe that there is a pivot in every column of the matrix. Therefore, the given vectors are linearly independent.
3a+0b+1c=3a+c is a linear combination of a,b,c. (Note that we can multiply a vector by 0 as well.)
Sometimes, we want to denote all linear combinations of a set of vectors {a1,a2,…,an}. To do this, we define the span of these vectors to be the set of all linear combinations of these vectors:
Note: The zero vector 0∈span{a1,a2,…an} for any n vectors because we can multiply all of these vectors by 0 to obtain 0.
span⎩⎨⎧100,010⎭⎬⎫ is basically the x-y plane in R3 because every vector lying on this plane can be expressed as a sum of each vector multiplied by a constant, e.g. 530=5100+3010.
Note: This plane is not the same as R2. Each point on the x-y plane in R3 has 3 components while all points in R2 only have 2. In general, R2⊂R3.
Similarly, span{[10],[01]}=R2 because every vector in R2 can be written as a linear combination of [10] and [01].
Suppose we wanted to find out whether a vector b is in the span of a set of vectors {a1,a2,…,an}.
Basically, we are solving trying to find constants c1,c2,…,cn such that c1a1+c2a2+⋯+cnan=b
This looks like a system of linear equations, so we can rewrite this in matrix notation: ∣a1∣∣a2∣⋯∣an∣c1c2⋮cn=b
We can then transform the equation into an augmented matrix: ∣a1∣∣a2∣⋯∣an∣∣b∣
Therefore, solving a system of linear equations is basically finding how we can express the vector b as a linear combination of the column vectors a1,a2,…,an. We can conclude:
If the system of linear equations is consistent, then b is in the span of the vectors a1,a2,…,an, so b is a linear combination of the vectors a1,a2,…,an.
If the system of linear equations is inconsistent, then b is not in the span of the vectors a1,a2,…,an, i.e. b is not a linear combination of the vectors a1,a2,…,an.
Determine whether 543 is in the span of 101 and 120.
101120543∼100111522∼100010320
Since the system of linear equations is consistent, 543 is in the span of 101 and 120. In fact, 543=3101+2120.
Determine whether 101, 120, and 543 span R3.
101120543∼100121542∼100110520
Observe that there is no pivot in the third row. This means that this system of linear equations is not consistent for all vectors in R3, so 101, 120, and 543 do not span R3.
Let's pick a vector b=b1b2b3∈R3, such that b2−2(b1−b3)=0, such as b=100. After row reduction, you will see that 100∈/span⎩⎨⎧101,120,543⎭⎬⎫.
In general, there needs to be pivots in every row for a set of vectors to span Rn.
A set of vectors {a1,a2,…,an} is said to be linearly independent if and only if the only solution to the equation
c1a1+c2a2+⋯+cnan=0
is the trivial solution, c1=c2=⋯=cn=0.
Note: A set containing the zero vector 0 is automatically linearly dependent because there is always a non-trivial set of scalars (the constant corresponding to the zero vector can be anything).
c1a1+c2a2+⋯+cnan=0.
∣a1∣∣a2∣⋯∣an∣c1c2⋮cn=0
[a1a2⋯an0]
Therefore, we just row-reduce the augmented matrix [a1a2⋯an0]. Since every row operation will preserve the 0 in the last column of the augmented matrix, we usually omit the last column and only row-reduce the matrix [a1a2⋯an].
Since c1=c2=⋯=cn=0 if the set if linearly independent, we should not find any free variables (which could be any value). Therefore, we should find pivots in every column.
Note: For a set of m vectors of size n:
If we have pivots in every row, we know that the vectors span the entire subspace Rn.
Note: An m×n matrix, where m<n, has at most m pivots. Therefore, there can never be pivots in each columns (or there would have to be n pivots), so the column vectors of such a matrix are automatically linearly dependent. In other words, if the number of vectors in a set exceeds the number of elements in each vector, then this set is automatically linearly dependent. Furthermore, having a “wide” matrix does not guarantee that the set of vectors span Rm.
Determine whether 101, 120, and 543 are linearly independent.
101120543∼100110520
Determine whether 101 and 120 are linearly independent.