Basis and Dimension Round 2

Definition: A set B = {u1, …, um} is a basis for a subspace S if

Theorem: Let B = {u1, …, um} be a basis for a subspace S. Then every s ∈ S can be written as a linear combination of u1, …, um in a unique way.

Example: We’ll use the same subspace as last time. Let S ⊆ ℝ4 be the subspace spanned by u1 = ( − 1, 2, 3, 1), u2 = ( − 6, 7, 5, 2), u3 = (4,  − 3, 1, 0). From last class, we determined that a basis for S is given by {v1, v2} where v1 = ( − 1, 2, 3, 1), v2 = (0, 5, 13, 4). It is clear that u3 ∈ S. How do we express u3 as a linear combination of v1, v2? This amounts to solving [v1, v2|u3].

v1 = vector([-1,2,3,1])
v2 = vector([0,5,13,4])
u3 = vector([4,-3,1,0])
A = matrix([v1,v2]).transpose()
A, u3
(
[-1  0]               
[ 2  5]               
[ 3 13]               
[ 1  4], (4, -3, 1, 0)
)
A \ u3
(-4, 1)

Most sets of n vectors in n are a basis.

Example: Take S as before with basis B = {v1, v2}. How can we extend B to be a basis for n?

In this case, we see that {v1, v2, e1, e2} will form a basis for 4. But so will {v1, v2, ( − 213, π, 4, 2), (4, π2, 3, 4)}.