Scalar Multiplication

Drag the base vector x or adjust the sliders below to see how scalar multiplication scales and reverses vectors along their span.

Base Vector

x =
1.0 2.0

Scale 1

c = 2.0
2.0 x = 2.0
1.0 2.0
=
2.0 4.0

Scale 2

c = -1.0
-1.0 x = -1.0
1.0 2.0
=
-1.0 -2.0

Scale 3 (approx π/2)

c = 1.57
1.57 x = 1.57
1.0 2.0
=
1.6 3.1

Enjoying this visualization?

Get the full textbook:
Linear Algebra for Computer Science

Grid: 1 unit / line