Now that we know about the existence of bases, we will
introduce the concept of coordinates,
practice writing vectors as linear combinations of basis vectors in any vector space, and
work problems using just the coefficients of these linear combinations.
Subsection4.3.1Definition of Coordinates
We use the definition of linear combination and the nature of a basis to recognize a way to express every vector in a vector space. Note the following.
Every vector in a vector space can be written as a linear combination of basis vectors (by definition of basis).
A linear combination is a sum of scaled vectors.
As a result any vector from a vector space can be written as a linear combination of vectors from the basis.
Because the basis vectors are the same for every vector we express this way, each vector is described solely by the coefficients in the linear combination.
These coefficients are the coordinates.
Definition4.3.1.Coordinates.
For a vector \(\vec{v}\) and a basis \(B=\{\vec{b}_1, \vec{b}_2, \ldots, \vec{b}_n \}\) the coordinates of \(\vec{v}\) with respect to basis \(B\text{,}\) denoted \([\vec{v}]_\B\text{,}\) is the vector of coefficients \([c_1,c_2,\ldots,c_n]\) such that \(\vec{v}=c_1\vec{b}_1+c_2\vec{b}_2+\ldots+c_n\vec{b}_n\text{.}\)
Subsection4.3.2Working in Arbitrary Vector Spaces
Our first set of examples use the vector space of polynomials. For this space we should remember the following.
0 is a polynomial. It has 0 as the coefficient of every term (power).
Two polynomials are equal if and only if every coefficient is equal. For example if \(ax^2+bx+c=5x^2-3x+2\) then \(a=5\text{,}\)\(b=-3\text{,}\) and \(c=2\text{.}\)
Example4.3.2.Test if Linearly Independent.
We will test whether the following set of polynomials is independent. \(\B=\{x^2+x,x+1,x^2+1\} \text{.}\)
(a)
First we set up the equation to test that these three vectors are independent. \(a(x^2+x)+b(x+1)+c(x^2+1) = 0\text{.}\)
(b)
Next we collect like terms. \((a+c)x^2+(a+b)x+(b+c)1 = 0\text{.}\)
(c)
We use this form to set up a system of equations that will determine how many solutions exist (test of dependence).
\begin{equation*}
\begin{array}{rrrcr}
a & & +c & = 0. \\
a & +b & & = 0. \\
& b & +c & = 0.
\end{array}
\end{equation*}
Recognize that the existence of a unique solution implies the polynomials are independent.
Example4.3.3.Test if Spanning Set.
In context of polynomials \(\B\) spans \(\Poly_2\) (all polynomials of degree two or smaller) if and only if any polynomial \(a_2x^2+a_1x+a_0\) can be written as a linear combination of these basis vectors.
(a)
First we set up the equations to test if the polynomial above is in the span of \(\B\text{.}\)
We note that there is always a solution so \(\B\) spans \(\Poly_2\text{.}\)
Example4.3.4.Calculate Coordinates.
Now that we have proved that \(\B=\{x^2+x,x+1,x^2+1\} \) is a basis for \(\Poly_2\text{,}\) we can calculate the coordinates of vectors (polynomials) with respect to this basis. Calculate the coordinates of \(\vec{x}=2x^2+2x+2\) and \(\vec{y}=5x^2+3\text{.}\)
(a)
First we set up the equations to calculate the coordinates.
Recognize that the existence of a unique solution implies the polynomials are independent.
Example4.3.6.Test if Spanning Set.
In context of matrices \(\C\) spans \(\R^{2 \times 2}\) (all \(2 \times 2\) matrices) if and only if any matrix \(\left[ \begin{array}{rr} a_{1,1} & a_{1,2} \\ a_{2,1} & a_{2,2} \end{array} \right] \) can be written as a linear combination of the basis vectors.
(a)
First we set up the equations to test if the polynomial above is in the span of \(\B\text{.}\)
Recognize that the existence of a unique solution implies the matrices are independent.
Example4.3.7.Calculate Coordinates.
Now that we have proved that \(\C \) is a basis for \(\R^{2 \times 2}\text{,}\) we can calculate the coordinates of vectors (matrices) with respect to this basis. Calculate the coordinates of \(\vec{x}=\left[ \begin{array}{rr} 3 & 6 \\ 6 & 6 \end{array} \right]\) and \(\vec{y}=\left[ \begin{array}{rr} 7 & 4 \\ 2 & 3 \end{array} \right]\text{.}\)
(a)
First we set up the equations to calculate the coordinates.