Vectors and Vector Operations
A comprehensive guide to understanding vectors, their properties, and essential operations in linear algebra
What Are Vectors?
A vector is a mathematical object that has both magnitude (size) and direction. Unlike scalars (single numbers like temperature or mass), vectors carry directional information, making them perfect for representing quantities like velocity, force, displacement, and acceleration.
Two Ways to Think About Vectors
1. Geometric Interpretation: Vectors as Arrows
Geometrically, a vector is an arrow in space with:
- Length: representing the magnitude
- Direction: showing which way it points
- No fixed position: vectors can be moved around as long as length and direction stay the same
[...]2. Algebraic Interpretation: Vectors as Lists of Numbers
Algebraically, we represent vectors as ordered lists of numbers called components. A 2D vector might be written as v = [3, 4] or v = (3, 4), where:
- The first number (3) is the x-component
- The second number (4) is the y-component
In 3D space, we'd have three components: v = [x, y, z].
2D Vector
3D Vector
Converting Between Views
The beauty of linear algebra is connecting these interpretations. The vector [3, 4] represents an arrow that goes 3 units right and 4 units up from the origin. Its magnitude is √(3² + 4²) = 5 units, and it points in a specific direction.
Essential Vector Operations
1. Vector Addition
Geometric View
Place the tail of the second vector at the head of the first. The sum is the vector from the original starting point to the final ending point.
Algebraic View
Add corresponding components:
Properties
- Commutative:
- Associative:
- Zero vector:
2. Scalar Multiplication
Definition: Multiplying a vector by a scalar (regular number) scales the vector's magnitude and potentially flips its direction.
Algebraic View: Multiply each component by the scalar.
Geometric Effects
- Positive scalar: stretches/shrinks the vector in the same direction
- Negative scalar: stretches/shrinks and reverses direction
- Scalar of 1: no change
- Scalar of 0: becomes zero vector
−3. Vector Subtraction
Geometric View
Vector subtraction is equivalent to adding and the negative of . Geometrically, it gives the vector from the tip of to the tip of when both start from the same point.
Algebraic View
Subtract corresponding components:
Subtraction is addition with the negative vector.
|v|3. Vector Magnitude (Norm/Length)
Definition: The magnitude of a vector is its length, regardless of direction. It tells you "how much" of the vector there is.
Formula
Example in 2D:
Unit Vectors
A unit vector is a vector with magnitude 1. It represents pure direction without magnitude. To create a unit vector from any non-zero vector, divide by its magnitude:
Example:
5. The Dot Product (Scalar Product)
Algebraic Formula
The dot product multiplies corresponding components of two vectors and sums them up. This operation combines two vectors into a single scalar value.
Example:
Geometric Formula
where is the angle between the vectors (in radians or degrees).
Key Properties
- Commutative: u · v = v · u
- Distributive: u · (v + w) = u · v + u · w
- If u · v = 0, the vectors are perpendicular (orthogonal)
- If u · v > 0, the angle between them is acute (< 90°)
- If u · v < 0, the angle between them is obtuse (> 90°)
→6. Vector Projection
Definition: The projection of vector onto vector is the "shadow" that casts onto . It tells us how much of goes in the direction of .
Scalar Projection (Component)
This gives the length of the projection.
Vector Projection
This gives the actual projection vector.
Example:
Geometric View
The projection creates a right triangle where the projection is the adjacent side.
7. Cross Product (3D Vectors Only)
Definition: The cross product of two 3D vectors produces a new vector that is perpendicular to both input vectors. Unlike the dot product, the cross product results in a vector, not a scalar.
Formula
Determinant Form
where are the standard unit vectors.
Example:
Geometric View
The cross product creates a vector perpendicular to both input vectors. The direction follows the right-hand rule.
Key Properties
- Anti-commutative:
- Magnitude:
- The result is perpendicular to both input vectors
- If parallel:
÷?Why No Vector Division?
The Short Answer: Vector division is not defined because there's no unique way to "undo" vector multiplication. Unlike scalars, vectors have direction, and there are multiple vector operations that could be considered "multiplication."
The Problem
For scalars: has a unique solution
For vectors: Given and , what would mean?
- Should it undo the dot product? (But that gives a scalar)
- Should it undo the cross product? (Only works in 3D)
- Should it find a scalar where ? (May not exist)
What We Have Instead
- Scalar division: (divide by a scalar)
- Unit vectors: (normalize direction)
- Projection: Find component of one vector along another
- Matrix inverse: In linear algebra, we use matrix inverses instead