The theorem of existence of bases tells us that any set that spans a Vector Space has some subset that forms the Basis of that vector space.

We can extract that basis by representing the vectors using matrices.

Let be a vector space, and let be the spanning set of . I.e.

Method 1: Vectors as Columns

  1. Create a matrix, of size , using as column matrices:
  1. Use Gaussian Elimination to reduce to Row Echelon Form, denoted by
  1. The columns with leading entries in are the same column vectors in the original matrix . These column vectors form the basis of

This method returns a subset of the original spanning set,

Method 2: Vectors as Rows

  1. Create a matrix, A of size k × n using the vectors as row matrices
  2. Again, use gaussian elimination to row-reduce A to
  1. The non-zero rows of return the vectors in the basis of

This method gives a basis that will usually not be a subset of the original set of vectors. It works because elementary row operations do not change the subspace spanned by the rows, and in the row echelon form the non-zero rows are linearly independent.