Operations on vectors
A vector is an ordered set of numbers (coordinates). Addition, subtraction, and multiplication by a number are defined on vectors, as well as the dot and cross products. The dot product describes perpendicularity, and the magnitude of the cross product — area.
In plain words:
A vector is a "list" of coordinates, for example the way from one point to another. We add (or subtract) vectors coordinate by coordinate in turn: the first with the first, the second with the second, and so on.
Example:
- a=(1;2) and b=(3;4)
- a+b=(1+3;2+4)=(4;6)
- a−b=(1−3;2−4)=(−2;−2)
Main rule:
Vectors are added "by position": coordinatewise, the first with the first, the second with the second.
In plain words:
To multiply a vector by a number, multiply each of its coordinates by that number. Physically this "stretches" (if c>1) or "shrinks" (if 0<c<1) the vector but does not change its direction.
Example:
- a=(2;−1) and c=3
- 3a=(3⋅2;3⋅(−1))=(6;−3)
- The direction is the same, the length grew 3 times
Main rule:
The number multiplies every coordinate: c(a+b)=ca+cb. When c=0 the vector "collapses" to zero.
In plain words:
The length (magnitude) of a vector is its "size", i.e. the distance from the start to the end. It is computed by the Pythagorean theorem: each coordinate is squared, everything is added, and the root is taken.
Example:
- a=(3;4) is a "way" of 3 steps sideways and 4 steps up
- ∣a∣=32+42=9+16
- ∣a∣=25=5
Main rule:
Length is the "root of the sum of squared coordinates": it is always non-negative, and zero is obtained only for the zero vector.
In plain words:
The dot product is a number obtained by multiplying the first coordinates, the second coordinates, and so on, then adding everything. It shows how much the vectors "point in the same direction".
Example:
- a=(1;2) and b=(3;4)
- a⋅b=1⋅3+2⋅4=3+8
- a⋅b=11
Main rule:
The dot product is the sum of the pairwise products of coordinates; the result is an ordinary number, not a vector.
In plain words:
The same result can be obtained through the vector lengths and the angle θ between them. The closer the angle to zero (the vectors "point together"), the larger the product; the closer to a right angle, the smaller it is.
Example:
- ∣a∣=3, ∣b∣=4, angle θ=60°
- a⋅b=3⋅4⋅cos60°
- =12⋅0.5=6 (cos60°=21)
Main rule:
The product "length · length · cosine of the angle": at θ=90° the result becomes zero regardless of the lengths.
In plain words:
Two non-zero vectors are perpendicular (form a right angle) exactly when their dot product is zero. This is a convenient way to check for a "right angle" without a drawing.
Example:
- a=(1;0) (left) and b=(0;1) (up)
- a⋅b=1⋅0+0⋅1=0
- Hence a⊥b
Main rule:
Perpendicularity is "coded" by zero: a⋅b=0 for any right angle between non-zero vectors.
In plain words:
Collinear vectors lie on one line: they either point the same way or are strictly opposite. Their coordinates are proportional — one is obtained from the other by multiplying by the same number.
Example:
- a=(2;4) and b=(1;2)
- b1a1=12=2 and b2a2=24=2
- The ratio is the same, so a∥b
Main rule:
Collinearity = proportional coordinates: the ratios of the corresponding coordinates equal one number.
In plain words:
The cross product is not a number but a new vector: it is perpendicular to both original ones at once. It is computed through an "imaginary" determinant of the unit vectors i,j,k and the coordinates.
Example:
- a=(1;0;0) and b=(0;1;0) (along two axes)
- a×b=(0;0;1)
- The result is perpendicular to both: it points up
Main rule:
The result is a vector perpendicular to both factors "by the right-hand rule"; its direction flips when swapping a×b=b×a.
In plain words:
The length (magnitude) of a cross product equals the area of the parallelogram built on the two vectors. It is "length · length · sine of the angle" — like the area of a rhombus or parallelogram from school.
Example:
- ∣a∣=5, ∣b∣=3, angle θ=90°
- ∣a×b∣=5⋅3⋅sin90°
- =15⋅1=15 — the area of the parallelogram
Main rule:
The area of a parallelogram = the magnitude of the cross product: a maximum at a right angle (sin90°=1), zero for parallel vectors (sin0°=0).