Vector Operations

The Rules of Moving in Space

In the last lesson, we established our "Grand Unified Theory" of vectors: a list of numbers is an arrow in space. This insight is powerful, but it’s just the beginning.

Now, we need to define the rules for how these vectors interact. How do they move? How can we combine them? These rules are called operations, and the two most fundamental are addition and scalar multiplication.

They might sound fancy, but as you'll see, they have simple, beautiful geometric interpretations.

Vector Addition: Combining Journeys

The Data Scientist's View (The Easy Part)

Let's say we have two vectors, vv and ww.

v=[2,1]w=[1,3]v = [2, 1] \quad w = [1, 3]

From the "list of numbers" perspective, the answer is incredibly simple. To add two vectors, you just add their corresponding components.

v+w=[2+1,1+3]=[3,4]v + w = [2+1, 1+3] = [3, 4]

The Physicist's View (The 'Aha!' Moment)

Geometrically, adding vectors is like combining a series of movements. Imagine a vector as a journey: "walk 2 steps east, then 1 step north."

To add vector ww to vv, we simply start the journey of ww where the journey of vv ended.

  1. Draw v: Start at the origin and draw the arrow for [2,1][2, 1].
  2. Draw w: Start at the tip of vv and draw the arrow for [1,3][1, 3] (1 step east, 3 steps north).
  3. The Result: The sum, v+wv + w, is the new vector that starts at the origin and ends at the tip of the final vector, ww.

This is the "tip-to-tail" rule, and it perfectly matches our numerical result! The final destination is indeed [3,4][3, 4].

Scalar Multiplication: Scaling Vectors

The Data Scientist's View (Again, The Easy Part)

Let's take our vector v=[2,1]v = [2, 1] and multiply it by the scalar 3.

Just like with addition, the rule is simple: you multiply every component of the vector by the scalar.

3×v=[3×2,3×1]=[6,3]3 \times v = [3 \times 2, 3 \times 1] = [6, 3]

The Physicist's View (The Intuition)

Geometrically, multiplying a vector by a scalar scales its length.

  • Multiplying by a scalar > 1 stretches the vector.
  • Multiplying by a scalar between 0 and 1 shrinks it.
  • Multiplying by a negative scalar flips its direction and then scales it.

The new vector [6,3][6, 3] points in the exact same direction as [2,1][2, 1], but it's exactly three times as long.

Summary: The Two Fundamental Rules
  • Vector Addition (v+wv + w): Combine vectors by adding their components. Geometrically, this is the "tip-to-tail" rule for combining journeys.
  • Scalar Multiplication (cvc \cdot v): Scale a vector by multiplying every component by a scalar. Geometrically, this stretches, shrinks, or flips the vector without changing its fundamental direction.