Vectors in this visualization
A vector in the plane is a displacement, given by its components: the change in and the change in , written . Drawn as an arrow from a point , it ends at , and the same displacement can start from any point. So two arrows with the same components are the same vector, wherever they start. Books write vectors in bold, , or with an arrow, ; this page writes plain and .
Sliding either arrow leaves both of its components unchanged; only moving its tip changes the vector.
Why adding means joining head to tail
Adding two displacements means making one and then the other. Start at , go along to , then along : the arrow from to where you end is . That is why is placed with its start on the end of . Across and up are counted separately, so the components add.
Reversing the order gives the same total in each component: , and the same for the second components. If and are not parallel, the two routes from the same start form a parallelogram, and its diagonal from that start represents .
Length, and why lengths usually do not add
The horizontal and vertical components are perpendicular, of lengths and , so the Pythagorean theorem gives the length of : . The direct distance from start to finish is at most the distance traveled along and then .
Equality holds exactly when and point the same way, or one of them is the zero vector ; otherwise the sum is shorter.
Multiplying by a number
Multiplying by a number multiplies both components: . The length becomes . For a nonzero , a positive keeps its direction and a negative one turns it around; is the zero vector, which has no direction. Subtracting means adding . With a common start, the arrow from the tip of to the tip of represents .
Controls
- With an arrow’s tip focused, the arrow keys change the corresponding component by 0.1, or by 0.01 with Shift; with its start focused, they move the arrow a whole unit. While the arrows are apart, Enter on a start attaches it to the other arrow’s tip; Enter there again detaches it.