A vector is a quantity with both magnitude and direction. Examples: displacement of a particle, velocity, acceleration, force. By contrast, a scalar has magnitude only , mass, temperature, energy.
Two vectors are equal if they have the same magnitude and the same direction, regardless of where in space they are drawn. So a vector is genuinely a "free arrow" , translating it does not change it.
Geometric vs algebraic
Geometric: a vector a is an arrow from a tail point to a head point. Its length is the magnitude ∣a∣; the direction is the orientation of the arrow.
Algebraic (in R3): a vector is a triple a=(a1,a2,a3), or equivalently a1i^+a2j^+a3k^, where i^,j^,k^ are unit vectors along the coordinate axes.
The two views are equivalent. Given an arrow from P to Q, the components are (Q1−P1,Q2−P2,Q3−P3).
Position vectors
The position vector of a point P=(x,y,z) with respect to the origin O is OP=xi^+yj^+zk^. We typically write r for the position vector of a generic point.
If two points A and B have position vectors a and b, then AB=b−a (head minus tail).
Magnitude
For a=a1i^+a2j^+a3k^:
∣a∣=a12+a22+a32.
This is the Euclidean length. A unit vector has magnitude 1. Given any non-zero a, the unit vector in its direction is a^=a/∣a∣.
Direction cosines and direction ratios
The direction cosines of a are the cosines of the angles a makes with the positive x, y, z axes:
l=cosα=∣a∣a1,m=cosβ=∣a∣a2,n=cosγ=∣a∣a3.
They satisfy the identity
l2+m2+n2=1.
Any triple proportional to (l,m,n) , e.g. the components a1,a2,a3 themselves , gives the direction ratios. Direction ratios are not unique (scaling preserves them), but direction cosines are unique up to the sign of a.
Types of vectors
Zero vector 0: magnitude 0, direction undefined.
Unit vector: magnitude 1.
Equal vectors: same magnitude and direction.
Opposite (negative) vectors: same magnitude, opposite direction; a and −a.
Parallel/collinear vectors: same or opposite direction. Algebraically, a∥b iff b=λa for some scalar λ.
Worked examples
Example 1. Find the magnitude of a=3i^−4j^+12k^.
∣a∣=9+16+144=169=13.
Example 2. Find a unit vector in the direction of a=2i^+3j^+6k^.
∣a∣=4+9+36=7. So a^=72i^+3j^+6k^.
Example 3. Find the direction cosines of a=i^−2j^+2k^.
∣a∣=1+4+4=3. Direction cosines: (1/3,−2/3,2/3). Check: 1/9+4/9+4/9=9/9=1.
Example 4. If A=(1,2,3) and B=(4,5,6), find AB and ∣AB∣.
AB=B−A=(3,3,3)=3(i^+j^+k^). Magnitude: 33.
Example 5. Are a=2i^−4j^+6k^ and b=−i^+2j^−3k^ parallel?
a=−2b, so yes , anti-parallel (opposite direction).
Example 6. A vector r has magnitude 14 and direction cosines proportional to 1:2:3. Find r.
Direction ratios (1,2,3); ∣(1,2,3)∣=14. So direction cosines: (1/14,2/14,3/14). Vector r=14⋅(l,m,n)=(1,2,3)=i^+2j^+3k^.
Try it yourself
Find the magnitude of a=5i^−12j^.
Find a unit vector in the direction of 4i^+3j^.
Direction cosines of i^+j^+k^.
If A=(2,1,0), B=(−1,3,4), find AB and ∣AB∣.
Are (2,−4,6) and (1,−2,3) collinear vectors?
Find a vector of magnitude 5 parallel to i^+2j^+2k^.
Verify that the direction cosines of i^ are (1,0,0).
Find a if ∣a∣=7 and direction ratios are 2:3:6.
Show that (2,3,−1) and (−4,−6,2) are anti-parallel.
Find the angle which i^+j^ makes with the x-axis.
Find a unit vector parallel to a−b if a=i^+2j^−k^, b=2i^−j^+3k^.
Find direction cosines of a line equally inclined to all three axes.
Find r with ∣r∣=9 and direction i^−2j^+2k^.
A particle is at (1,2,3) and moves to (4,−2,8). Find the displacement vector and its magnitude.
Pitfalls and tricks
Direction cosines square-sum to 1; direction ratios do not. Don't confuse them.
A vector is independent of its starting point. It's a free arrow, not a tethered one.
Zero vector has undefined direction. Avoid dividing by ∣0∣.
Equally-inclined direction: each direction cosine is ±1/3.
Parallel vs equal: parallel vectors share direction but may have any magnitude; equal vectors have both same magnitude and direction.