How can I check whether a vector is in the span of two given vectors?
Quick answer
Let the given vectors be u and v, and the candidate be w. Try to find numbers a and b such that w = au + bv. Expand this equation component by component and solve for a and b. If one pair of coefficients satisfies every component, w is in the span; if no such pair exists, it is not. The span consists of all combinations of the given vectors. [S1]
The question, the details, the next step.
A practical checklist
Name the two given vectors u and v and the candidate w.
Set w equal to au + bv using unknown coefficients.
Expand both sides and match corresponding coordinates.
Check that one pair of coefficients works in every coordinate.
Conclude membership only from a complete match; conclude nonmembership only when no solution exists.
A few more useful answers
Do the coefficients have to be whole numbers?
No. They can be any numbers allowed in your problem; the key is that the same coefficients reproduce the candidate in every coordinate.
What does it mean if the coefficient equations have more than one solution?
If even one solution reproduces the candidate, it is in the span. Whether the coefficients are unique is a separate question.
Sources
References used for this guide.
- [S1] MIT OpenCourseWare: Independence, basis, and dimension (18.06SC, Fall 2011) ocw.mit.edu · Checked
