โ† Math|9 of 100
Linear Algebra

Vectors and Vector Spaces

Master vectors, vector operations, linear independence, span, and vector spaces with real-world examples.

๐Ÿ“‚ Foundations๐Ÿ“– Lesson 9 of 100๐ŸŽ“ Free Course

Advertisement

Vectors and Vector Spaces

โ„น๏ธ Why It Matters

Vectors are the fundamental building blocks of all data in machine learning. Every data point โ€” an image, a word, a patient record โ€” is represented as a vector. Understanding vectors deeply is non-negotiable for ML engineers.


What is a Vector?

A vector is an ordered list of numbers that represents both magnitude and direction. Think of it as an arrow pointing to a location in space.

DfVector

A vector is an ordered tuple of numbers that represents a point or direction in space. A vector in n-dimensional space is written as:

Vector Notation

vโƒ—=[v1v2โ‹ฎvn]โˆˆRn\vec{v} = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix} \in \mathbb{R}^n

Here,

  • vโƒ—\vec{v}=The vector (an ordered list of numbers)
  • v1,v2,โ€ฆ,vnv_1, v_2, \ldots, v_n=Individual components of the vector
  • Rn\mathbb{R}^n=n-dimensional real coordinate space

Real-World Analogy: A vector is like a GPS coordinate โ€” it tells you exactly where something is. [3, 4] means 3 steps east, 4 steps north.


Types of Vectors

TypeDescriptionExampleDimension
2D VectorTwo components (x, y)[3, 4]2
3D VectorThree components (x, y, z)[1, 2, 3]3
nD Vectorn components[vโ‚, vโ‚‚, ..., vโ‚™]n
Row VectorWritten horizontally[1, 2, 3]1ร—n
Column VectorWritten vertically[1; 2; 3]nร—1

โš ๏ธ Convention

In ML, we typically work with column vectors (nร—1 matrices). When someone says "vector" without qualification, they usually mean column vector.


Vector Operations

Vector Addition

Two vectors of the same size can be added by adding their corresponding components.

Vector Addition

uโƒ—+vโƒ—=[u1+v1u2+v2โ‹ฎun+vn]\vec{u} + \vec{v} = \begin{bmatrix} u_1 + v_1 \\ u_2 + v_2 \\ \vdots \\ u_n + v_n \end{bmatrix}

Here,

  • uโƒ—,vโƒ—\vec{u}, \vec{v}=Two vectors of the same dimension
  • uโƒ—+vโƒ—\vec{u} + \vec{v}=Resultant vector with summed components

๐Ÿ“Example: Vector Addition

If uโƒ—=[12]\vec{u} = \begin{bmatrix} 1 \\ 2 \end{bmatrix} and vโƒ—=[34]\vec{v} = \begin{bmatrix} 3 \\ 4 \end{bmatrix}, then:

uโƒ—+vโƒ—=[1+32+4]=[46]\vec{u} + \vec{v} = \begin{bmatrix} 1 + 3 \\ 2 + 4 \end{bmatrix} = \begin{bmatrix} 4 \\ 6 \end{bmatrix}

Geometric Interpretation: Vector addition follows the "tip-to-tail" rule โ€” place the tail of one vector at the tip of the other. The resultant goes from the starting point to the final tip.

Properties of Vector Addition:

  • Commutative: uโƒ—+vโƒ—=vโƒ—+uโƒ—\vec{u} + \vec{v} = \vec{v} + \vec{u}
  • Associative: (uโƒ—+vโƒ—)+wโƒ—=uโƒ—+(vโƒ—+wโƒ—)(\vec{u} + \vec{v}) + \vec{w} = \vec{u} + (\vec{v} + \vec{w})
  • Identity: vโƒ—+0โƒ—=vโƒ—\vec{v} + \vec{0} = \vec{v}
  • Inverse: vโƒ—+(โˆ’vโƒ—)=0โƒ—\vec{v} + (-\vec{v}) = \vec{0}

Scalar Multiplication

A vector can be multiplied by a scalar (a single number), which scales each component.

Scalar Multiplication

cvโƒ—=[cโ‹…v1cโ‹…v2โ‹ฎcโ‹…vn]c\vec{v} = \begin{bmatrix} c \cdot v_1 \\ c \cdot v_2 \\ \vdots \\ c \cdot v_n \end{bmatrix}

Here,

  • cc=A scalar (single real number)
  • vโƒ—\vec{v}=The vector to be scaled
  • cvโƒ—c\vec{v}=The scaled vector

๐Ÿ“Example: Scalar Multiplication

If vโƒ—=[23]\vec{v} = \begin{bmatrix} 2 \\ 3 \end{bmatrix} and c=4c = 4, then:

cvโƒ—=4[23]=[812]c\vec{v} = 4 \begin{bmatrix} 2 \\ 3 \end{bmatrix} = \begin{bmatrix} 8 \\ 12 \end{bmatrix}

Properties of Scalar Multiplication:

  • Distributive: c(uโƒ—+vโƒ—)=cuโƒ—+cvโƒ—c(\vec{u} + \vec{v}) = c\vec{u} + c\vec{v}
  • Associative: c(dvโƒ—)=(cd)vโƒ—c(d\vec{v}) = (cd)\vec{v}
  • Identity: 1โ‹…vโƒ—=vโƒ—1 \cdot \vec{v} = \vec{v}

Dot Product (Inner Product)

The dot product measures how much two vectors point in the same direction. It returns a scalar, not a vector.

Dot Product (Algebraic)

uโƒ—โ‹…vโƒ—=โˆ‘i=1nuivi=u1v1+u2v2+โ‹ฏ+unvn\vec{u} \cdot \vec{v} = \sum_{i=1}^{n} u_i v_i = u_1 v_1 + u_2 v_2 + \cdots + u_n v_n

Here,

  • uโƒ—โ‹…vโƒ—\vec{u} \cdot \vec{v}=The dot product (scalar result)
  • ui,viu_i, v_i=The i-th components of vectors u and v

Geometric Interpretation:

Dot Product (Geometric)

uโƒ—โ‹…vโƒ—=โˆฅuโƒ—โˆฅโˆฅvโƒ—โˆฅcosโกฮธ\vec{u} \cdot \vec{v} = \|\vec{u}\| \|\vec{v}\| \cos\theta

Here,

  • โˆฅuโƒ—โˆฅ,โˆฅvโƒ—โˆฅ\|\vec{u}\|, \|\vec{v}\|=Magnitudes of the vectors
  • ฮธ\theta=Angle between the vectors

๐Ÿ“Example: Dot Product

If uโƒ—=[123]\vec{u} = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} and vโƒ—=[456]\vec{v} = \begin{bmatrix} 4 \\ 5 \\ 6 \end{bmatrix}:

uโƒ—โ‹…vโƒ—=(1)(4)+(2)(5)+(3)(6)=4+10+18=32\vec{u} \cdot \vec{v} = (1)(4) + (2)(5) + (3)(6) = 4 + 10 + 18 = 32

๐Ÿ’ก Key Insight

If the dot product is zero, the vectors are perpendicular (orthogonal). This is the foundation of many machine learning algorithms โ€” PCA, attention mechanisms, and similarity measures all rely on dot products.

Properties of Dot Product:

  • Commutative: uโƒ—โ‹…vโƒ—=vโƒ—โ‹…uโƒ—\vec{u} \cdot \vec{v} = \vec{v} \cdot \vec{u}
  • Distributive: uโƒ—โ‹…(vโƒ—+wโƒ—)=uโƒ—โ‹…vโƒ—+uโƒ—โ‹…wโƒ—\vec{u} \cdot (\vec{v} + \vec{w}) = \vec{u} \cdot \vec{v} + \vec{u} \cdot \vec{w}
  • Scalar: (cuโƒ—)โ‹…vโƒ—=c(uโƒ—โ‹…vโƒ—)(c\vec{u}) \cdot \vec{v} = c(\vec{u} \cdot \vec{v})

Magnitude (Length) of a Vector

The magnitude of a vector is its length โ€” the distance from the origin to the point it represents.

Vector Magnitude (Euclidean Norm)

โˆฅvโƒ—โˆฅ=v12+v22+โ‹ฏ+vn2=โˆ‘i=1nvi2\|\vec{v}\| = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2} = \sqrt{\sum_{i=1}^{n} v_i^2}

Here,

  • โˆฅvโƒ—โˆฅ\|\vec{v}\|=The magnitude (length) of vector v
  • viv_i=The i-th component of vector v

๐Ÿ“Example: Magnitude

For vโƒ—=[34]\vec{v} = \begin{bmatrix} 3 \\ 4 \end{bmatrix}:

โˆฅvโƒ—โˆฅ=32+42=9+16=25=5\|\vec{v}\| = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5

Other Norms (Generalized Magnitude):

NormFormulaNameUse Case
L1โˆฅvโƒ—โˆฅ1=โˆ‘โˆฃviโˆฃ\|\vec{v}\|_1 = \sum |v_i|ManhattanFeature selection (Lasso)
L2โˆฅvโƒ—โˆฅ2=โˆ‘vi2\|\vec{v}\|_2 = \sqrt{\sum v_i^2}EuclideanMost common, Ridge
Lโˆžโˆฅvโƒ—โˆฅโˆž=maxโกโˆฃviโˆฃ\|\vec{v}\|_\infty = \max |v_i|MaximumWorst-case analysis
Lpโˆฅvโƒ—โˆฅp=(โˆ‘โˆฃviโˆฃp)1/p\|\vec{v}\|_p = (\sum |v_i|^p)^{1/p}GeneralFlexibility

Unit Vector

A unit vector is a vector with magnitude 1. It preserves direction while removing scale.

Unit Vector

v^=vโƒ—โˆฅvโƒ—โˆฅ\hat{v} = \frac{\vec{v}}{\|\vec{v}\|}

Here,

  • v^\hat{v}=The unit vector in the direction of v
  • vโƒ—\vec{v}=The original vector
  • โˆฅvโƒ—โˆฅ\|\vec{v}\|=The magnitude of v

๐Ÿ“Example: Unit Vector

For vโƒ—=[34]\vec{v} = \begin{bmatrix} 3 \\ 4 \end{bmatrix} with โˆฅvโƒ—โˆฅ=5\|\vec{v}\| = 5:

v^=15[34]=[0.60.8]\hat{v} = \frac{1}{5}\begin{bmatrix} 3 \\ 4 \end{bmatrix} = \begin{bmatrix} 0.6 \\ 0.8 \end{bmatrix}

Verification: โˆฅv^โˆฅ=0.62+0.82=0.36+0.64=1\|\hat{v}\| = \sqrt{0.6^2 + 0.8^2} = \sqrt{0.36 + 0.64} = 1 โœ“

โ„น๏ธ Why Unit Vectors Matter

Unit vectors are used to represent direction only. In attention mechanisms, query/key vectors are often normalized to unit length so the dot product measures pure cosine similarity.


Angle Between Vectors

Angle Formula

cosโกฮธ=uโƒ—โ‹…vโƒ—โˆฅuโƒ—โˆฅโˆฅvโƒ—โˆฅ\cos\theta = \frac{\vec{u} \cdot \vec{v}}{\|\vec{u}\| \|\vec{v}\|}

Here,

  • ฮธ\theta=Angle between vectors u and v
  • uโƒ—โ‹…vโƒ—\vec{u} \cdot \vec{v}=Dot product
  • โˆฅuโƒ—โˆฅ,โˆฅvโƒ—โˆฅ\|\vec{u}\|, \|\vec{v}\|=Magnitudes

๐Ÿ“Example: Angle

For uโƒ—=[1,0]\vec{u} = [1, 0] and vโƒ—=[0,1]\vec{v} = [0, 1]:

cosโกฮธ=(1)(0)+(0)(1)1ร—1=0โ€…โ€ŠโŸนโ€…โ€Šฮธ=90ยฐ\cos\theta = \frac{(1)(0) + (0)(1)}{1 \times 1} = 0 \implies \theta = 90ยฐ

The vectors are perpendicular (orthogonal).


Linear Independence

Vectors are linearly independent if none of them can be written as a combination of the others.

DfLinear Independence

A set of vectors {vโƒ—1,vโƒ—2,โ€ฆ,vโƒ—k}\{\vec{v}_1, \vec{v}_2, \ldots, \vec{v}_k\} is linearly independent if the only solution to:

c1vโƒ—1+c2vโƒ—2+โ‹ฏ+ckvโƒ—k=0โƒ—c_1\vec{v}_1 + c_2\vec{v}_2 + \cdots + c_k\vec{v}_k = \vec{0}

is c1=c2=โ‹ฏ=ck=0c_1 = c_2 = \cdots = c_k = 0.

๐Ÿ“Example: Linear Independence

Check if uโƒ—=[1,2]\vec{u} = [1, 2] and vโƒ—=[3,4]\vec{v} = [3, 4] are linearly independent.

Set c1[1,2]+c2[3,4]=[0,0]c_1[1, 2] + c_2[3, 4] = [0, 0]:

  • c1+3c2=0c_1 + 3c_2 = 0
  • 2c1+4c2=02c_1 + 4c_2 = 0

From equation 1: c1=โˆ’3c2c_1 = -3c_2. Substitute into equation 2: 2(โˆ’3c2)+4c2=โˆ’2c2=0โ€…โ€ŠโŸนโ€…โ€Šc2=0โ€…โ€ŠโŸนโ€…โ€Šc1=02(-3c_2) + 4c_2 = -2c_2 = 0 \implies c_2 = 0 \implies c_1 = 0.

Linearly independent โœ“

โš ๏ธ Common Mistake

If one vector is a scalar multiple of another, they are linearly dependent. For example, [1,2][1, 2] and [2,4][2, 4] are dependent because [2,4]=2[1,2][2, 4] = 2[1, 2].


Span

DfSpan

The span of a set of vectors is the set of all possible linear combinations of those vectors.

Span

Span({vโƒ—1,โ€ฆ,vโƒ—k})={c1vโƒ—1+โ‹ฏ+ckvโƒ—k:ciโˆˆR}\text{Span}(\{\vec{v}_1, \ldots, \vec{v}_k\}) = \{c_1\vec{v}_1 + \cdots + c_k\vec{v}_k : c_i \in \mathbb{R}\}

Here,

  • vโƒ—1,โ€ฆ,vโƒ—k\vec{v}_1, \ldots, \vec{v}_k=The generating vectors
  • cic_i=Scalar coefficients

๐Ÿ“Example: Span

  • Span([1,0],[0,1])=entireย 2Dย planeโ€‰(R2)\text{Span}([1, 0], [0, 1]) = \text{entire 2D plane} \, (\mathbb{R}^2)
  • Span([1,1])=justย theย lineย y=x\text{Span}([1, 1]) = \text{just the line } y = x
  • Span([1,0],[2,0])=theย x-axisย only\text{Span}([1, 0], [2, 0]) = \text{the x-axis only} (second vector is redundant)

Vector Space

DfVector Space

A vector space is a collection of vectors where you can add them and multiply by scalars and still stay in the space.

Axioms of a Vector Space:

  1. Closure under addition: uโƒ—+vโƒ—\vec{u} + \vec{v} is in the space
  2. Closure under scalar multiplication: cvโƒ—c\vec{v} is in the space
  3. Associativity of addition
  4. Commutativity of addition
  5. Existence of zero vector
  6. Existence of additive inverse
  7. Distributivity of scalar multiplication
  8. Compatibility of scalar multiplication

๐Ÿ“Examples of Vector Spaces

  • Rn\mathbb{R}^n (all n-dimensional real vectors)
  • All polynomials of degree โ‰ค n
  • All continuous functions on [a, b]
  • The set of all mร—n matrices

Subspace

DfSubspace

A subspace is a subset of a vector space that is itself a vector space (closed under addition and scalar multiplication).

๐Ÿ“Example: Subspace

  • The x-axis in R2\mathbb{R}^2 is a subspace
  • The set of all solutions to Ax=0Ax = 0 is a subspace (null space)
  • The set of all symmetric matrices is a subspace

Basis and Dimension

DfBasis

A basis is a set of linearly independent vectors that can represent every vector in the space.

DfDimension

The dimension is the number of vectors in the basis.

๐Ÿ“Example: Basis

Standard basis for R3\mathbb{R}^3: {eโƒ—1,eโƒ—2,eโƒ—3}={[1,0,0],[0,1,0],[0,0,1]}\{\vec{e}_1, \vec{e}_2, \vec{e}_3\} = \{[1,0,0], [0,1,0], [0,0,1]\}

Any vector [a,b,c]=aeโƒ—1+beโƒ—2+ceโƒ—3[a, b, c] = a\vec{e}_1 + b\vec{e}_2 + c\vec{e}_3

Dimension of R3=3\mathbb{R}^3 = 3


Python Implementation

import numpy as np

# Create vectors
u = np.array([1, 2, 3])
v = np.array([4, 5, 6])

# Vector addition
addition = u + v  # [5, 7, 9]

# Scalar multiplication
scaled = 3 * u  # [3, 6, 9]

# Dot product
dot_product = np.dot(u, v)  # 32

# Magnitude (L2 norm)
magnitude = np.linalg.norm(u)  # sqrt(14) โ‰ˆ 3.74

# Other norms
l1_norm = np.linalg.norm(u, ord=1)  # |1| + |2| + |3| = 6
linf_norm = np.linalg.norm(u, ord=np.inf)  # max(|1|, |2|, |3|) = 3

# Unit vector
unit_vector = u / np.linalg.norm(u)

# Angle between vectors
cos_angle = np.dot(u, v) / (np.linalg.norm(u) * np.linalg.norm(v))
angle_degrees = np.degrees(np.arccos(np.clip(cos_angle, -1, 1)))

# Linear independence check
matrix = np.column_stack([u, v[:3]])
rank = np.linalg.matrix_rank(matrix)
print(f"Rank: {rank}, Independent: {rank == min(u.shape[0], 2)}")

print(f"Addition: {addition}")
print(f"Scaled: {scaled}")
print(f"Dot product: {dot_product}")
print(f"Magnitude: {magnitude:.4f}")
print(f"L1 norm: {l1_norm}")
print(f"Lโˆž norm: {linf_norm}")
print(f"Unit vector: {unit_vector}")
print(f"Angle: {angle_degrees:.2f}ยฐ")

Applications in AI/ML

ApplicationVector ConceptHow It's Used
Word EmbeddingsHigh-dimensional vectorsWord2Vec, GloVe represent words as 300D vectors
Image RepresentationsPixel vectorsFlattened image as a vector for classification
Attention MechanismDot product similarityQueryยทKey dot product measures relevance
Cosine SimilarityAngle between vectorsSemantic search, recommendation systems
Feature VectorsData point vectorsEach row in a dataset is a feature vector
Loss LandscapesGradient vectorsGradient descent follows negative gradient

๐Ÿ’ก Practical Insight

The dot product is the most important operation in ML. Attention in transformers is just scaled dot-product attention: Attention(Q,K,V)=softmax(QKTdk)V\text{Attention}(Q, K, V) = \text{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V. Understanding vectors deeply helps you understand transformers.


Common Mistakes

MistakeWhy It's WrongCorrect Approach
Adding vectors of different dimensions[1,2]+[3,4,5][1,2] + [3,4,5] is undefinedEnsure same dimension
Forgetting dot product returns scalaruโƒ—โ‹…vโƒ—\vec{u} \cdot \vec{v} is a number, not a vectorUse cross product for vector result
Confusing dot product with element-wiseDot product sums, element-wise doesn'tuโƒ—โ‹…vโƒ—=โˆ‘uivi\vec{u} \cdot \vec{v} = \sum u_i v_i
Normalizing zero vectorโˆฅ0โƒ—โˆฅ=0\|\vec{0}\| = 0, division by zeroCheck magnitude before normalizing
Assuming orthogonal = uncorrelatedOrthogonal vectors are uncorrelated only if mean-centeredCenter data first

Interview Questions

Q1: What's the difference between dot product and cross product? A: Dot product returns a scalar measuring alignment. Cross product returns a vector perpendicular to both inputs (3D only).

Q2: Why do we normalize vectors in attention mechanisms? A: Normalizing to unit length makes the dot product equivalent to cosine similarity, which is bounded between -1 and 1, preventing softmax saturation.

Q3: How do you check if a set of vectors is linearly independent? A: Form a matrix with vectors as columns and compute the rank. If rank = number of vectors, they're independent.

Q4: What's the geometric interpretation of the dot product? A: uโƒ—โ‹…vโƒ—=โˆฅuโƒ—โˆฅโˆฅvโƒ—โˆฅcosโกฮธ\vec{u} \cdot \vec{v} = \|\vec{u}\| \|\vec{v}\| \cos\theta. It measures how much one vector projects onto another.

Q5: Why are L1 and L2 norms used differently in regularization? A: L1 (Lasso) creates sparse solutions (feature selection). L2 (Ridge) shrinks all weights toward zero (prevents overfitting).


Practice Problems

  1. Find the dot product of aโƒ—=[2,โˆ’1,3]\vec{a} = [2, -1, 3] and bโƒ—=[1,4,โˆ’2]\vec{b} = [1, 4, -2].
  2. Calculate the magnitude of vโƒ—=[6,โˆ’8,0]\vec{v} = [6, -8, 0].
  3. Are the vectors uโƒ—=[1,2]\vec{u} = [1, 2] and vโƒ—=[2,4]\vec{v} = [2, 4] linearly independent? Why or why not?
  4. Find the unit vector of wโƒ—=[3,โˆ’3]\vec{w} = [3, -3].
  5. Find the angle between aโƒ—=[1,0]\vec{a} = [1, 0] and bโƒ—=[1,1]\vec{b} = [1, 1].
  6. Determine if {vโƒ—1=[1,0,0],vโƒ—2=[0,1,0],vโƒ—3=[1,1,0]}\{\vec{v}_1 = [1, 0, 0], \vec{v}_2 = [0, 1, 0], \vec{v}_3 = [1, 1, 0]\} is linearly independent.

๐Ÿ’กSolutions

Problem 1: aโƒ—โ‹…bโƒ—=(2)(1)+(โˆ’1)(4)+(3)(โˆ’2)=2โˆ’4โˆ’6=โˆ’8\vec{a} \cdot \vec{b} = (2)(1) + (-1)(4) + (3)(-2) = 2 - 4 - 6 = -8

Problem 2: โˆฅvโƒ—โˆฅ=62+(โˆ’8)2+02=36+64=100=10\|\vec{v}\| = \sqrt{6^2 + (-8)^2 + 0^2} = \sqrt{36 + 64} = \sqrt{100} = 10

Problem 3: vโƒ—=2uโƒ—\vec{v} = 2\vec{u}, so vโƒ—\vec{v} is a scalar multiple of uโƒ—\vec{u}. They are linearly dependent.

Problem 4: โˆฅwโƒ—โˆฅ=32+(โˆ’3)2=18=32\|\vec{w}\| = \sqrt{3^2 + (-3)^2} = \sqrt{18} = 3\sqrt{2}. So w^=132[3โˆ’3]=[12โˆ’12]\hat{w} = \frac{1}{3\sqrt{2}}\begin{bmatrix} 3 \\ -3 \end{bmatrix} = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix}

Problem 5: cosโกฮธ=(1)(1)+(0)(1)1โ‹…2=12โ€…โ€ŠโŸนโ€…โ€Šฮธ=45ยฐ\cos\theta = \frac{(1)(1) + (0)(1)}{1 \cdot \sqrt{2}} = \frac{1}{\sqrt{2}} \implies \theta = 45ยฐ

Problem 6: vโƒ—3=vโƒ—1+vโƒ—2\vec{v}_3 = \vec{v}_1 + \vec{v}_2, so the set is linearly dependent.


Quick Reference

ConceptFormulaKey Property
Additionuโƒ—+vโƒ—=[ui+vi]\vec{u} + \vec{v} = [u_i + v_i]Commutative, associative
Scalarcvโƒ—=[cvi]c\vec{v} = [cv_i]Distributive
Dot Productuโƒ—โ‹…vโƒ—=โˆ‘uivi\vec{u} \cdot \vec{v} = \sum u_i v_iReturns scalar
Magnitudeโˆฅvโƒ—โˆฅ=โˆ‘vi2\|\vec{v}\| = \sqrt{\sum v_i^2}Always โ‰ฅ 0
Unit Vectorv^=vโƒ—/โˆฅvโƒ—โˆฅ\hat{v} = \vec{v}/\|\vec{v}\|Magnitude = 1
Anglecosโกฮธ=uโƒ—โ‹…vโƒ—โˆฅuโƒ—โˆฅโˆฅvโƒ—โˆฅ\cos\theta = \frac{\vec{u} \cdot \vec{v}}{\|\vec{u}\| \|\vec{v}\|}Perpendicular if 0
Linear Independencec1vโƒ—1+โ‹ฏ=0โƒ—โ€…โ€ŠโŸนโ€…โ€Šci=0c_1\vec{v}_1 + \cdots = \vec{0} \implies c_i = 0No redundancy
SpanAll linear combinationsGenerates the space
BasisLinearly independent + spanningDimension = basis size

Cross-References

Lesson Progress9 / 100