Docsity

Linear Combinations and Spans: Determining Vector Belonging and Coefficients, Study notes of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Linear Combinations and Spans: Notes for CSci 124/224
Poorvi L. Vora
Definition Alinear combination of nvectors vi∈Vis a vector Pn
i=1 aivifor some {ai}n
i=1 ⊂F.
The values aiabove are often referred to as the coefficients.
Example 1:
2
2
2
3
+ 5
1
3
4
−7
2
3
2
=
−5
−2
12
is a linear combination of
2
2
3
,
1
3
4
,
2
3
2
A shorthand way of saying that a vector vis a linear combination of {vi}n
i=1 is to say it lies in the
span of these vectors. The span is the set of all possible linear combinations.
Definition The span of a finite set of vectors B={vi}n
i=1 ⊂Vis
Span(B) = {
n
X
i=1
aivi|ai∈F}
How does one determine if a given vector vbelongs to the span of {vi}n
i=1? Further, if it does, how
does one determine the values ai? Answer: solve a set of linear equations!
1 Determining if v∈Span({vi}n
i=1)
1. The question is, are there values a1,a2, ...., ansuch that
a1v1+a2v2+.... +anvn=v
2. Form a matrix Awith {vi}n
i=1 as its columns
A= [v1v2....vn]
1
pf3
pf4

Partial preview of the text

Download Linear Combinations and Spans: Determining Vector Belonging and Coefficients and more Study notes Discrete Structures and Graph Theory in PDF only on Docsity!

Linear Combinations and Spans: Notes for CSci 124/

Poorvi L. Vora

Definition A linear combination of n vectors vi ∈ V is a vector ∑ni=1 aivi for some {ai}ni=1 ⊂ F. The values ai above are often referred to as the coefficients.

Example 1:

2

is a linear combination of (^) 

A shorthand way of saying that a vector v is a linear combination of {vi}ni=1 is to say it lies in the span of these vectors. The span is the set of all possible linear combinations. Definition The span of a finite set of vectors B = {vi}ni=1 ⊂ V is

Span(B) = { ∑^ n i=

aivi|ai ∈ F }

How does one determine if a given vector v belongs to the span of {vi}ni=1? Further, if it does, how does one determine the values ai? Answer: solve a set of linear equations!

1 Determining if v ∈ Span({vi}ni=1)

  1. The question is, are there values a 1 , a 2 , ...., an such that a 1 v 1 + a 2 v 2 + .... + anvn = v
  2. Form a matrix A with {vi}ni=1 as its columns A = [v 1 v 2 ....vn]
  1. Write a vector a containing the unknown coefficients ai:

a =

a 1 a 2 . . . . an

  1. Solve the set of linear equations Aa = v using gaussian elimination
  2. If there is exactly one solution, or many, v ∈ Span({vi}ni=1), and the solutions provide the coefficients.
  3. If there are no solutions, v is not in Span({vi}ni=1)

2 Examples

Example 2: Determine if

v =

belongs to Span({vi}^3 i=1), where

v 1 =

 (^) v 2 =

 (^) v 3 =

We would proceed as follows. The question being asked is: are there values a 1 , a 2 , and a 3 such that

a 1

 (^) + a 2

 (^) + a 3

That is, does the set of equations: a 1 + a 2 + a 3 = 2 a 1 − a 2 + a 3 = − 2 a 1 + a 2 − a 3 = 3

have a solution? We can solve this using gaussian elimination right away: a 1 + a 2 + a 3 = 2 − 2 a 2 = − 4 − 2 a 3 = 1

Example 4: Determine if (^) 

is a linear combination of

v 1 =

 (^) , v 2 =

 (^) , v 3 =

If so, what are the coefficients? Again, in matrix form, the question is, find a solution to:  

a 1 a 2 a 3

if it exists. Gaussian elimination gives:  

a 1 a 2 a 3

where the final equation is of the form 0 = 0. This means you have a consistent set of equations with several solutions. One solution is a 3 = 1, a 2 = 0, a 1 = 3. That is,

3