LLMnotes1 3
LLMnotes1 3
Section 1.3
Page 0
Vector Equations
Section 1.3,
ωv = 2 , ω0 = 0
3 0
Section 1.3,
Column vectors are equal when they have the same size and same
(ordered) components.
Page 1
Section 1.3,
29
Combinations of column vectors
The vector sum of ωu and ωv is the vector of the sums.
u1 v1 u1 + v1
ωu +ωv = ... + ... = ...
un vn un + vn
Page 2
The scalar multiplication of the real number rand the vector ωv is the
v1 rv1
Section 1.3,
1 3
1 2 1+2 3 2 6
→1 + 2 = →1 + 2 = 1 3·
3 = 9
0 4 0+4 4
Section 1.3,
→2 →6
30
Vectors
Geometric/Physics perspective:
A vector is an object consisting of a magnitude and a direction.
ωv ωw ωx
Model vectors as arrows in space.
Page 3
Two vectors with the same magnitude and same direction are equal.
Section 1.3,
origin.
+ ,
1
ωv =
2
Section 1.3,
+ ,
v1
Then ωv = has arrow at point (v1 , v2 ).
v2
Denote the
vector that extends from (v1 , . . . , vn ) to (w1 , , . . . wn ) by
Page 4
w1 → v1
..
.
Section 1.3,
wn → vn
32
1
2ωv
→ωx ωx ωv ωx 3ωx
ωv
33
Properties
For all u, v, w ↑ Rn and scalars c, d:
1. u + v = v + u (commutativity)
2. (u + v) + w = u + (v + w) (associativity)
3. u + 0 = 0 + u = u (0 is identity)
Page 6
5. c(u + v) = cu + cv (distributivity)
Section 1.3,
6. (c + d)u = cu + du (distributivity)
7. c(du) = (cd)u
8. 1u = u.
Page 6
Section 1.3,
34
Linear Combinations
By a linear combination of vector v1 , . . . , vp in Rn , we mean a sum
y = c1 v1 + · · · cp vp , where c1 , . . . , cp are scalars.
3v2
Section 1.3,
→v1 +2v2
2v2
v1 +2v2
Page 7
v2 3v1 +2v2
v1 + v2
→ v1
0
Section 1.3,
v1
2v1
35
→ v2 3v1
Linear Combination Question
0 →1 2
Is 1 a linear combination of 1 and →1?
→1
→1 1
0 →1s 2t
Can we find s and t st 1 = 1s + →1t?
Page 8
→1 →1s 1t
0 →1 2
Section 1.3,
Is 1 in {s · 1 + t · →1 | s, t ↑ R }?
→1 →1 1
- -
- →s + 2t = 0 -
Page 8
- -
Solve -- s → t = 1 --
- →s + t = →1 -
→1 2 0
Section 1.3,
→1 1 →1
Question, continued
0 →1 2
Is 1 a linear combination of 1 and →1?
→1 →1
1
→1 2 0
Reduce matrix to solve corresponding system: 1 →1 1
Page 9
→1 1 →1
Note:
more equations
than variables, somaynot be possible.
→1 2 0 →1 2 0 →1 0 →2
Section 1.3,
1 →1 1 ↓ 0 1 1 ↓ 0 1 1
→
1 1 →1 0 → 1 → 1 0 0 0
1 0 2
1s + 0t = 2
Page 9
↓ 0 1 1 .
0s + 1t = 1
0 0 0
0 →1 2
Section 1.3,
→1 →1 1
Vector equations
A vector equation
x1ωa1 + · · · + xnωan = ωb
has the same solution set as linear system with augmented matrix
[ωa1 · · · ωan |ωb].
Page 10
Both sides of vector equation are vectors. Look at the ith component
of each: x1 ai1 + · · · xn ain = bi . This is equation corresponding to ith
row of augmented matrix
Page 10
Section 1.3,
38
Span
5
4 0
3 1 2
Is →6 in the span of 2 and 4
Section 1.3,
5 4 0
Reduce
matrixto solve
corresponding
system:
Page 12
1 2 3 1 2 3
2 4 →6 ↓ 0 0 →12
4 0 5 4 0 5
Stop here. Have 0 = →12, no solution. So not in plane.
Section 1.3,
40
Page 13
MATLAB
Is f alinear combination
of the columns of the matrix E?
1 2 9 7
E = 2 8 3 8 ; f=[1;1;1]; G = rref([E,f])
6 4 0 6
Section 1.3,
1.0000 0 0 .5714 .1250
G = 0 1.000 0 .6429 .0625
0 0 1.000 .6174 .0833
Page 13