Geometrically, vector addition follows the triangle rule (or parallelogram rule). Place the tail of v at the tip of u, and the result u+v goes from the origin to the tip of v:
In the diagram above: the blue arrow is u=⟨2,3⟩ starting from the origin. The green arrow is v=⟨5,−1⟩ placed at the tip of u. The dashed orange arrow shows the result u+v=⟨2+5,3+(−1)⟩=⟨7,2⟩, going directly from the origin to where v ends. This is the triangle rule in action.
Multiplying a vector by a number (scalar) scales its length:
c⋅v=⟨cv1,cv2,cv3⟩
If ∣c∣>1, the vector gets longer
If 0<∣c∣<1, the vector gets shorter
If c is negative, the vector reverses direction
The diagram shows three versions of the same direction. The blue arrow is v=⟨2,1⟩. The green arrow is 2v=⟨4,2⟩, which points the same way but is twice as long. The orange arrow is −v=⟨−2,−1⟩, which has the same length as v but points in the opposite direction. Multiplying by a positive scalar stretches; multiplying by a negative scalar flips.
The dot product (also called scalar product) of two vectors returns a single number:
u⋅v=u1v1+u2v2+u3v3
It can also be written as:
u⋅v=∥u∥∥v∥cosθ
where θ is the angle between them.
Important properties:
If u⋅v=0, the vectors are orthogonal (perpendicular).
The dot product tells you how much one vector points in the direction of another.
Here u=⟨3,4⟩ (blue) and v=⟨−2,5⟩ (green) meet at the origin with a 59-degree angle between them (purple arc). The dot product u⋅v=(3)(−2)+(4)(5)=14. Since the result is positive, the vectors point in roughly the same general direction (the angle is less than 90 degrees). If the dot product were zero, they’d be perpendicular; if negative, they’d point away from each other.