Skip to content
Linear Algebra•beginner

Vector Addition and Scaling

Combining vectors and stretching them - the foundation of linear combinations

Why This Matters for ML

Neural networks compute weighted sums - literally adding scaled vectors

Interactive Visualization

Interact with the visualization to explore
a + b = [2.0, 1.0] + [1.0, 2.0] = [3.0, 3.0]

The Key Intuition

Adding vectors is like walking: go in one direction, then another. The result is where you end up! Scaling stretches or shrinks a vector — multiply by 2 to double the length, by 0.5 to halve it. Neural networks constantly add scaled vectors together — that's what "weighted sum" means!

Try It Yourself

Use the visualization controls to:

  • Drag vectors to see transformations in real-time
  • Adjust parameters with sliders
  • Observe how changes affect the output
  • Connect the visual behavior to the math