This is really asking: are there scalars such that
And this, in turn, is equivalent to the system
which is the same as the matrix equation
Solving the system confirms that there is indeed a solution, so the answer to our original question is yes.
To confirm your work for the above exercise, we can use the computer. This first code cell loads the
sympy
Python library, and then configures the output to look nice. For details on the code used below, see
the Appendix.
The above code produces the reduced row-echelon form of the augmented matrix for our system. (The tuple lists the pivot columns — note that Python indexes the columns starting at rather than If you’d rather just get the reduced matrix without this extra information, try adding pivots=False
as an optional argument, in the empty parentheses of the rref
command.) Do you remember how to get the answer from here? Here’s another approach.
Of course, this second approach only works if we know the matrix is invertible. With a bit of experience, you’ll probably guess that invertibility of this matrix guarantees that any vector can be written as the span of its columns.