3: Vectors in Euclidian Space Basic Definitions
(Euclidean Space)
The Euclidean space R n \mathbb{R}^n R n is the set of all ordered n n n -tuples of real numbers:
R n = { ( x 1 , x 2 , … , x n ) ∣ x i ∈ R } \mathbb{R}^n = \{(x_1, x_2, \ldots, x_n) \mid x_i \in \mathbb{R}\} R n = {( x 1 , x 2 , … , x n ) ∣ x i ∈ R }
Vectors in R n \mathbb{R}^n R n can be written as column vectors or row vectors. We typically use column notation:
v = [ v 1 v 2 ⋮ v n ] \mathbf{v} = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix} v = v 1 v 2 ⋮ v n
Vector Operations
(Vector Addition)
Given vectors u , v ∈ R n \mathbf{u}, \mathbf{v} \in \mathbb{R}^n u , v ∈ R n , their sum is:
u + v = [ u 1 + v 1 u 2 + v 2 ⋮ u n + v n ] \mathbf{u} + \mathbf{v} = \begin{bmatrix} u_1 + v_1 \\ u_2 + v_2 \\ \vdots \\ u_n + v_n \end{bmatrix} u + v = u 1 + v 1 u 2 + v 2 ⋮ u n + v n
Vector addition is commutative and associative :
u + v = v + u \mathbf{u} + \mathbf{v} = \mathbf{v} + \mathbf{u} u + v = v + u
( u + v ) + w = u + ( v + w ) (\mathbf{u} + \mathbf{v}) + \mathbf{w} = \mathbf{u} + (\mathbf{v} + \mathbf{w}) ( u + v ) + w = u + ( v + w )
(Scalar Multiplication)
Given a scalar c ∈ R c \in \mathbb{R} c ∈ R and vector v ∈ R n \mathbf{v} \in \mathbb{R}^n v ∈ R n :
c v = [ c v 1 c v 2 ⋮ c v n ] c\mathbf{v} = \begin{bmatrix} cv_1 \\ cv_2 \\ \vdots \\ cv_n \end{bmatrix} c v = c v 1 c v 2 ⋮ c v n
Scalar multiplication stretches or shrinks vectors (and reverses direction if c < 0 c < 0 c < 0 ).
Linear Combinations
(Linear Combination)
A linear combination of vectors v 1 , v 2 , … , v k \mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k v 1 , v 2 , … , v k in R n \mathbb{R}^n R n is any vector of the form:
c 1 v 1 + c 2 v 2 + ⋯ + c k v k c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k c 1 v 1 + c 2 v 2 + ⋯ + c k v k
where c 1 , c 2 , … , c k ∈ R c_1, c_2, \ldots, c_k \in \mathbb{R} c 1 , c 2 , … , c k ∈ R are scalars (called coefficients).
Example: In R 2 \mathbb{R}^2 R 2 , let v 1 = [ 1 0 ] \mathbf{v}_1 = \begin{bmatrix} 1 \\ 0 \end{bmatrix} v 1 = [ 1 0 ] and v 2 = [ 0 1 ] \mathbf{v}_2 = \begin{bmatrix} 0 \\ 1 \end{bmatrix} v 2 = [ 0 1 ] .
Then [ 3 − 2 ] = 3 v 1 − 2 v 2 \begin{bmatrix} 3 \\ -2 \end{bmatrix} = 3\mathbf{v}_1 - 2\mathbf{v}_2 [ 3 − 2 ] = 3 v 1 − 2 v 2 is a linear combination of v 1 \mathbf{v}_1 v 1 and v 2 \mathbf{v}_2 v 2 .
(Expressing as Linear Combinations)
Given vectors v 1 , … , v k \mathbf{v}_1, \ldots, \mathbf{v}_k v 1 , … , v k and a target vector b \mathbf{b} b , determining if b \mathbf{b} b can be written as a linear combination means solving:
c 1 v 1 + c 2 v 2 + ⋯ + c k v k = b c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k = \mathbf{b} c 1 v 1 + c 2 v 2 + ⋯ + c k v k = b
This is equivalent to solving the linear system A c = b A\mathbf{c} = \mathbf{b} A c = b , where:
A = [ v 1 v 2 ⋯ v k ] A = [\mathbf{v}_1 \ \mathbf{v}_2 \ \cdots \ \mathbf{v}_k] A = [ v 1 v 2 ⋯ v k ] (matrix with vectors as columns)
c = [ c 1 c 2 ⋮ c k ] \mathbf{c} = \begin{bmatrix} c_1 \\ c_2 \\ \vdots \\ c_k \end{bmatrix} c = c 1 c 2 ⋮ c k (coefficients)
The system has a solution ⇔ b \mathbf{b} b is a linear combination of the vectors.
Span
(Span)
The span of vectors v 1 , v 2 , … , v k \mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k v 1 , v 2 , … , v k in R n \mathbb{R}^n R n is the set of all linear combinations of these vectors:
span { v 1 , v 2 , … , v k } = { c 1 v 1 + c 2 v 2 + ⋯ + c k v k ∣ c i ∈ R } \text{span}\{\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k\} = \{c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k \mid c_i \in \mathbb{R}\} span { v 1 , v 2 , … , v k } = { c 1 v 1 + c 2 v 2 + ⋯ + c k v k ∣ c i ∈ R }
Geometric Interpretation:
span { v } \text{span}\{\mathbf{v}\} span { v } in R 2 \mathbb{R}^2 R 2 or R 3 \mathbb{R}^3 R 3 is a line through the origin
span { v 1 , v 2 } \text{span}\{\mathbf{v}_1, \mathbf{v}_2\} span { v 1 , v 2 } (if not parallel) is a plane through the origin
span { v 1 , v 2 , v 3 } \text{span}\{\mathbf{v}_1, \mathbf{v}_2, \mathbf{v}_3\} span { v 1 , v 2 , v 3 } (if linearly independent) fills all of R 3 \mathbb{R}^3 R 3
(Properties of Span)
Closed under addition and scalar multiplication:
If u , v ∈ span { S } \mathbf{u}, \mathbf{v} \in \text{span}\{S\} u , v ∈ span { S } , then u + v ∈ span { S } \mathbf{u} + \mathbf{v} \in \text{span}\{S\} u + v ∈ span { S }
If v ∈ span { S } \mathbf{v} \in \text{span}\{S\} v ∈ span { S } and c ∈ R c \in \mathbb{R} c ∈ R , then c v ∈ span { S } c\mathbf{v} \in \text{span}\{S\} c v ∈ span { S }
Contains the zero vector:
0 ∈ span { S } \mathbf{0} \in \text{span}\{S\} 0 ∈ span { S } for any set S S S (set all coefficients to 0)
Span is a subspace:
span { v 1 , … , v k } \text{span}\{\mathbf{v}_1, \ldots, \mathbf{v}_k\} span { v 1 , … , v k } is always a subspace of R n \mathbb{R}^n R n
(Spanning Sets)
A set of vectors { v 1 , … , v k } \{\mathbf{v}_1, \ldots, \mathbf{v}_k\} { v 1 , … , v k } spans R n \mathbb{R}^n R n if:
span { v 1 , … , v k } = R n \text{span}\{\mathbf{v}_1, \ldots, \mathbf{v}_k\} = \mathbb{R}^n span { v 1 , … , v k } = R n
This means every vector in R n \mathbb{R}^n R n can be written as a linear combination of v 1 , … , v k \mathbf{v}_1, \ldots, \mathbf{v}_k v 1 , … , v k .
Equivalently: The matrix A = [ v 1 ⋯ v k ] A = [\mathbf{v}_1 \ \cdots \ \mathbf{v}_k] A = [ v 1 ⋯ v k ] has a solution to A x = b A\mathbf{x} = \mathbf{b} A x = b for every b ∈ R n \mathbf{b} \in \mathbb{R}^n b ∈ R n .
Test: { v 1 , … , v k } \{\mathbf{v}_1, \ldots, \mathbf{v}_k\} { v 1 , … , v k } spans R n \mathbb{R}^n R n ⇔ rref ( A ) \text{rref}(A) rref ( A ) has a pivot in every row .
Examples
Example 1: Span in R 2 \mathbb{R}^2 R 2
Let v 1 = [ 1 2 ] \mathbf{v}_1 = \begin{bmatrix} 1 \\ 2 \end{bmatrix} v 1 = [ 1 2 ] and v 2 = [ 2 4 ] \mathbf{v}_2 = \begin{bmatrix} 2 \\ 4 \end{bmatrix} v 2 = [ 2 4 ] .
Does span { v 1 , v 2 } = R 2 \text{span}\{\mathbf{v}_1, \mathbf{v}_2\} = \mathbb{R}^2 span { v 1 , v 2 } = R 2 ?
Solution: Note that v 2 = 2 v 1 \mathbf{v}_2 = 2\mathbf{v}_1 v 2 = 2 v 1 , so they’re parallel. The span is just a line , not all of R 2 \mathbb{R}^2 R 2 .
span { v 1 , v 2 } = { t [ 1 2 ] ∣ t ∈ R } \text{span}\{\mathbf{v}_1, \mathbf{v}_2\} = \left\{t\begin{bmatrix} 1 \\ 2 \end{bmatrix} \mid t \in \mathbb{R}\right\} span { v 1 , v 2 } = { t [ 1 2 ] ∣ t ∈ R }
Example 2: Linear Combination Check
Can b = [ 5 1 ] \mathbf{b} = \begin{bmatrix} 5 \\ 1 \end{bmatrix} b = [ 5 1 ] be written as a linear combination of v 1 = [ 1 1 ] \mathbf{v}_1 = \begin{bmatrix} 1 \\ 1 \end{bmatrix} v 1 = [ 1 1 ] and v 2 = [ 2 3 ] \mathbf{v}_2 = \begin{bmatrix} 2 \\ 3 \end{bmatrix} v 2 = [ 2 3 ] ?
Solution: Solve c 1 v 1 + c 2 v 2 = b c_1\mathbf{v}_1 + c_2\mathbf{v}_2 = \mathbf{b} c 1 v 1 + c 2 v 2 = b :
c 1 [ 1 1 ] + c 2 [ 2 3 ] = [ 5 1 ] c_1\begin{bmatrix} 1 \\ 1 \end{bmatrix} + c_2\begin{bmatrix} 2 \\ 3 \end{bmatrix} = \begin{bmatrix} 5 \\ 1 \end{bmatrix} c 1 [ 1 1 ] + c 2 [ 2 3 ] = [ 5 1 ]
This gives the system:
c 1 + 2 c 2 = 5 c 1 + 3 c 2 = 1 \begin{align*}
c_1 + 2c_2 &= 5 \\
c_1 + 3c_2 &= 1
\end{align*} c 1 + 2 c 2 c 1 + 3 c 2 = 5 = 1
Subtracting: c 2 = − 4 c_2 = -4 c 2 = − 4 , so c 1 = 13 c_1 = 13 c 1 = 13 .
Yes , b = 13 v 1 − 4 v 2 \mathbf{b} = 13\mathbf{v}_1 - 4\mathbf{v}_2 b = 13 v 1 − 4 v 2 .