Vectors & Space

Discover vectors as arrows, not just lists of numbers. Explore addition, scaling, and what it means to span a space.

Vectors Are Arrows, Not Lists

Before diving into matrices, let's build intuition for vectors. A vector isn't just a list of numbers—it's an arrow pointing from the origin to some point in space. The numbers simply tell us where the tip lands.

This geometric view is the key to understanding all of linear algebra. Every operation we'll learn has a beautiful visual meaning.

Demo 1: Vector Addition

To add two vectors, place the tail of the second at the tip of the first. The sum is the vector from the original origin to the new tip—forming a parallelogram.

a = (2.0, 1.0)
b = (1.0, 2.0)
a + b = (3.0, 3.0)

Drag the blue and green vector tips. Notice how the sum always completes the parallelogram.

Demo 2: Scalar Multiplication

Multiplying a vector by a number (scalar) stretches or compresses it. Positive scalars preserve direction, negative scalars flip it.

-202

Positive scalars: stretch or compress the vector

Negative scalars: flip direction and scale

Zero: collapses the vector to a point

Demo 3: Linear Combinations

A linear combination takes multiple vectors, scales each by some coefficient, and adds the results. This is the fundamental operation of linear algebra.

1.0·(2, 0.5)+1.0·(0.5, 2)=(2.5, 2.5)

A linear combination scales each basis vector and adds them together. Every point in the plane can be reached by some combination of v₁ and v₂.

Demo 4: Span—What Can You Reach?

The span of a set of vectors is all points reachable via linear combinations. One vector spans a line. Two non-parallel vectors span a plane. What happens if they're parallel?

Two non-parallel vectors span the entire 2D plane

The span of a set of vectors is all possible linear combinations. Drag the vectors to see how the span changes.

Demo 5: Vectors in 3D

Everything extends naturally to three dimensions. Three independent vectors span all of 3D space—any point can be reached by some linear combination.

Result = (2.0, 2.0, 2.0)

Three independent vectors span all of 3D space. Drag to rotate the view, scroll to zoom. Any point in space can be reached by some linear combination of v₁, v₂, and v₃.

Key Takeaways

  • Vectors are arrows—think geometrically, not just algebraically
  • Addition follows the parallelogram rule (tip-to-tail)
  • Scalar multiplication stretches, compresses, or flips vectors
  • Linear combinations scale and add—the building block of everything
  • Span is all points reachable; non-parallel vectors span more

Next up: We'll see how matrices transform entire spaces at once.