Trigonometry & Precalculus · Vector

Vector

A vector in the plane describes a displacement by its horizontal and vertical components, and is drawn as an arrow that can start anywhere. Add vectors head to tail, and multiply one by a number to stretch it or turn it around.

Vectors in this visualization

A vector in the plane is a displacement, given by its components: the change in xx and the change in yy, written v=(v1,v2)v = (v_1, v_2). Drawn as an arrow from a point AA, it ends at A+vA + v, 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, v\mathbf{v}, or with an arrow, v⃗\vec{v}; this page writes plain uu and vv.

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 AA, go along uu to A+uA + u, then along vv: the arrow from AA to where you end is u+vu + v. That is why vv is placed with its start on the end of uu. Across and up are counted separately, so the components add.

Sum by components
u+v=(u1+v1, u2+v2)u + v = (u_1 + v_1,\ u_2 + v_2)

Reversing the order gives the same total in each component: u1+v1=v1+u1u_1 + v_1 = v_1 + u_1, and the same for the second components. If uu and vv are not parallel, the two routes from the same start form a parallelogram, and its diagonal from that start represents u+vu + v.

Length, and why lengths usually do not add

The horizontal and vertical components are perpendicular, of lengths ∣v1∣|v_1| and ∣v2∣|v_2|, so the Pythagorean theorem gives the length of vv: ∣v∣=v12+v22|v| = \sqrt{v_1^2 + v_2^2}. The direct distance from start to finish is at most the distance traveled along uu and then vv.

Triangle inequality
∣u+v∣≤∣u∣+∣v∣|u + v| \le |u| + |v|

Equality holds exactly when uu and vv point the same way, or one of them is the zero vector (0,0)(0, 0); otherwise the sum is shorter.

Multiplying by a number

Multiplying by a number kk multiplies both components: kv=(kv1,kv2)kv = (kv_1, kv_2). The length becomes ∣k∣ ∣v∣|k|\,|v|. For a nonzero vv, a positive kk keeps its direction and a negative one turns it around; 0v0v is the zero vector, which has no direction. Subtracting uu means adding −u-u. With a common start, the arrow from the tip of uu to the tip of vv represents v−uv - u.

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.

Related