Addition of Vectors

Drag the red vector x₁ or the blue vector x₂. Watch how the corresponding elements add together to form the green sum vector.

Vector 1

x₁ =
1.0 2.0

Vector 2

x₂ =
3.0 1.0

Element-wise Addition

x₁ + x₂ =
1.0 2.0
+
3.0 1.0
=
1.0 + 3.0 2.0 + 1.0
=
4.0 3.0

Enjoying this visualization?

Get the full textbook:
Linear Algebra for Computer Science

Grid: 1 unit / line