Vectors: Magnitude, Dot and Cross Product, Angle and Projection
A vector has both magnitude and direction, and in three dimensions it is written in terms of the unit vectors i, j and k along the x, y and z axes. Entry tests ask for magnitudes and unit vectors, dot and cross products, the angle between two vectors, conditions for perpendicular or parallel vectors, projections, areas and work done. All of these come from a handful of formulas applied to the components.
Asked in: ECAT, NUST NET, JEE Main, FSc and Class 11-12 boards
Components and position vectors
A vector in space is written a = a₁i + a₂j + a₃k, where a₁, a₂, a₃ are its components along the axes. The point P(x, y, z) has position vector OP = xi + yj + zk from the origin O.
The vector from point A to point B is the position vector of B minus that of A: AB = OB − OA. Vectors are added and multiplied by scalars component by component.
- AB = (x₂ − x₁)i + (y₂ − y₁)j + (z₂ − z₁)k
- a + b = (a₁ + b₁)i + (a₂ + b₂)j + (a₃ + b₃)k
- λa = λa₁i + λa₂j + λa₃k
Magnitude, unit vector and direction cosines
The magnitude (length) of a is |a| = √(a₁² + a₂² + a₃²). A unit vector has magnitude 1; the unit vector in the direction of a is â = a/|a|.
If a makes angles α, β, γ with the x, y and z axes, then cos α, cos β and cos γ are its direction cosines. They are the components of â, so the sum of their squares is 1.
- |a| = √(a₁² + a₂² + a₃²)
- â = a/|a|
- cos α = a₁/|a|, cos β = a₂/|a|, cos γ = a₃/|a|
- cos²α + cos²β + cos²γ = 1
Parallel and collinear vectors
Two vectors are parallel when one is a scalar multiple of the other, which means their components are in the same ratio. Points A, B, C are collinear when AB is parallel to AC.
A vector of magnitude m in the direction of a is m times the unit vector â.
- a ∥ b ⇔ a₁/b₁ = a₂/b₂ = a₃/b₃
- Vector of length m along a = m × a/|a|
Dot (scalar) product
The dot product of two vectors is a number: a · b = |a||b| cos θ, where θ is the angle between them (0 ≤ θ ≤ π). In components it is the sum of the products of matching components.
a · b = 0 for non-zero vectors means they are perpendicular. The dot product is positive for an acute angle and negative for an obtuse angle. Since i, j, k are mutually perpendicular unit vectors, i · i = 1 and i · j = 0.
- a · b = a₁b₁ + a₂b₂ + a₃b₃ = |a||b| cos θ
- a ⟂ b ⇔ a · b = 0
- a · a = |a|²; |a + b|² = |a|² + |b|² + 2a · b
- Work done W = F · d
Angle between vectors and projection
Rearranging the dot product gives the angle between two vectors.
The scalar projection of a on b is the length of the shadow of a along b, |a| cos θ = a · b/|b|. It is negative when the angle is obtuse. Multiplying it by the unit vector along b gives the vector projection.
- cos θ = (a · b)/(|a||b|)
- Scalar projection of a on b = (a · b)/|b|
- Vector projection of a on b = [(a · b)/|b|²] b
Cross (vector) product
The cross product a × b is a vector of magnitude |a||b| sin θ, perpendicular to both a and b, with direction given by the right-hand rule. It is found as a 3 × 3 determinant with i, j, k in the first row.
Order matters: b × a = −(a × b). For the unit vectors, i × j = k, j × k = i, k × i = j going round the cycle, and the reverse order gives a minus sign. a × b = 0 for non-zero vectors means they are parallel.
- a × b = det [[i, j, k], [a₁, a₂, a₃], [b₁, b₂, b₃]]
- = (a₂b₃ − a₃b₂)i − (a₁b₃ − a₃b₁)j + (a₁b₂ − a₂b₁)k
- |a × b| = |a||b| sin θ; i × i = 0
- Area of parallelogram = |a × b|; area of triangle = ½|a × b|
Scalar triple product
The scalar triple product a · (b × c) equals the 3 × 3 determinant of the components of a, b and c. Its absolute value is the volume of the parallelepiped with edges a, b, c.
Three vectors are coplanar exactly when this product is 0.
- a · (b × c) = det [[a₁, a₂, a₃], [b₁, b₂, b₃], [c₁, c₂, c₃]]
- Volume of parallelepiped = |a · (b × c)|; tetrahedron = one sixth of it
- a, b, c coplanar ⇔ a · (b × c) = 0
Solved examples
- Find the magnitude of a = 2i − 3j + 6k and the unit vector in its direction.
- |a| = √(2² + (−3)² + 6²) = √(4 + 9 + 36) = √49 = 7.
- Unit vector = a/|a| = (2i − 3j + 6k)/7 = (2/7)i − (3/7)j + (6/7)k.
- Check: (4 + 9 + 36)/49 = 1.
Answer: |a| = 7; unit vector (2i − 3j + 6k)/7 - A is the point (1, 2, −1) and B is (4, −2, 11). Find the vector AB and the distance AB.
- AB = OB − OA = (4 − 1)i + (−2 − 2)j + (11 − (−1))k = 3i − 4j + 12k.
- |AB| = √(9 + 16 + 144) = √169 = 13.
Answer: AB = 3i − 4j + 12k; distance 13 - Find the dot product and the angle between a = i + j and b = j + k.
- a = i + j + 0k and b = 0i + j + k, so a · b = (1)(0) + (1)(1) + (0)(1) = 1.
- |a| = √2 and |b| = √2.
- cos θ = 1/(√2 × √2) = 1/2, so θ = 60°.
Answer: a · b = 1; angle = 60° (π/3) - Find λ so that a = 2i + λj + k and b = i − 2j + 3k are perpendicular.
- Perpendicular vectors have a · b = 0.
- a · b = (2)(1) + (λ)(−2) + (1)(3) = 5 − 2λ.
- 5 − 2λ = 0 gives λ = 5/2.
Answer: λ = 5/2 - Find the scalar and vector projections of a = 2i + 3j + 2k on b = i + 2j + 2k.
- a · b = 2 + 6 + 4 = 12 and |b| = √(1 + 4 + 4) = 3.
- Scalar projection = a · b/|b| = 12/3 = 4.
- Vector projection = (a · b/|b|²) b = (12/9) b = (4/3)(i + 2j + 2k).
Answer: Scalar projection 4; vector projection (4/3)(i + 2j + 2k) - For a = i + 2j + 3k and b = 2i − j + k, find a × b and the area of the triangle with sides a and b.
- a × b = det [[i, j, k], [1, 2, 3], [2, −1, 1]].
- i component: (2)(1) − (3)(−1) = 2 + 3 = 5.
- j component: −[(1)(1) − (3)(2)] = −(1 − 6) = 5.
- k component: (1)(−1) − (2)(2) = −1 − 4 = −5. So a × b = 5i + 5j − 5k.
- |a × b| = √(25 + 25 + 25) = 5√3, so the triangle's area is ½ × 5√3 = 5√3/2.
- Check: (a × b) · a = 5 + 10 − 15 = 0, so the result is perpendicular to a, as it must be.
Answer: a × b = 5i + 5j − 5k; area = 5√3/2 ≈ 4.33 square units
Exam shortcuts
- To test perpendicular vectors, only compute a · b and check for 0; never find the angle.
- For the cross product, the middle (j) component always carries a minus sign in front of its bracket; most wrong answers come from missing it.
- Remember the cycle i → j → k → i: the cross product of two neighbours in this order is the third with a plus sign, and with a minus sign in reverse order.
- |a + b|² = |a|² + |b|² + 2a · b and |a − b|² = |a|² + |b|² − 2a · b let you find angles from magnitudes alone.
- If a question asks for the area of a triangle with vertices A, B, C, use ½|AB × AC|, not the position vectors of the vertices.
- For coplanar or volume questions, write the three vectors as rows of a determinant and evaluate; zero means coplanar.
Common mistakes
- Forgetting the square root when finding magnitude, or adding the components instead of their squares.
- Treating the dot product as a vector or the cross product as a number.
- Writing b × a = a × b; the cross product changes sign when the order is reversed.
- Using the position vectors of points in place of the vectors between them, such as AB = OB − OA.
- Dividing by |b|² for the scalar projection; the scalar projection uses |b|, and only the vector projection uses |b|².
Practice MCQs
- The magnitude of the vector 6i − 2j + 3k is:
A) 49
B) 7
C) 11
D) 13
Answer: B) 7 — |a| = √(36 + 4 + 9) = √49 = 7. 49 forgets the square root and 11 simply adds 6 + 2 + 3. - The unit vector in the direction of 3i + 4j is:
A) (3i + 4j)/7
B) (3i + 4j)/25
C) (3i + 4j)/5
D) (4i + 3j)/5
Answer: C) (3i + 4j)/5 — |3i + 4j| = √(9 + 16) = 5, so the unit vector is (3i + 4j)/5. Dividing by 25 uses |a|² instead of |a|, and (4i + 3j)/5 points in a different direction. - k × i is equal to:
A) −j
B) i
C) j
D) 0
Answer: C) j — In the cycle i → j → k → i, k followed by i gives the next vector, j, with a plus sign. i × k would be −j. - If a = 2i − j + 3k and b = i + 4j − 2k, then a · b equals:
A) −8
B) 8
C) −4
D) 12
Answer: A) −8 — a · b = (2)(1) + (−1)(4) + (3)(−2) = 2 − 4 − 6 = −8. Ignoring the signs gives 12. - For what value of p are the vectors 2i + pj − k and 3i − 2j + 4k perpendicular?
A) −1
B) 5
C) 2
D) 1
Answer: D) 1 — a · b = 6 − 2p − 4 = 2 − 2p, and setting this to 0 gives p = 1. Taking the k-term as +4 gives 10 − 2p = 0, that is p = 5. - The angle between a = i − j and b = j − k is:
A) 60°
B) 120°
C) 90°
D) 45°
Answer: B) 120° — a · b = (1)(0) + (−1)(1) + (0)(−1) = −1 and |a| = |b| = √2, so cos θ = −1/2 and θ = 120°. Dropping the minus sign gives 60°. - The vectors 2i − 3j + λk and −4i + 6j + 8k are parallel when λ equals:
A) −4
B) 4
C) −2
D) 2
Answer: A) −4 — Parallel vectors have proportional components: 2/(−4) = −3/6 = λ/8. Each ratio is −1/2, so λ = −4. - The scalar projection of a = 2i + 3j − k on b = i − 2j + 2k is:
A) 2
B) −2
C) −6
D) −6/√14
Answer: B) −2 — a · b = 2 − 6 − 2 = −6 and |b| = √(1 + 4 + 4) = 3, so the projection is −6/3 = −2. Dividing by |a| = √14 instead gives the projection of b on a. - A line makes angles of 45° and 60° with the x-axis and y-axis. If it makes an acute angle γ with the z-axis, then γ is:
A) 60°
B) 30°
C) 45°
D) 90°
Answer: A) 60° — cos²γ = 1 − cos²45° − cos²60° = 1 − 1/2 − 1/4 = 1/4, so cos γ = 1/2 and γ = 60°. - If a = i + j and b = i − j, then a × b equals:
A) 2k
B) −2k
C) 2i
D) 0
Answer: B) −2k — (i + j) × (i − j) = −(i × j) + (j × i) = −k − k = −2k. Both vectors lie in the xy-plane, so the answer must point along the z-axis. - The area of the parallelogram with adjacent sides 3i + j − 2k and i − 3j + 4k is:
A) 5√3
B) 300
C) 10√3
D) 10√2
Answer: C) 10√3 — The cross product is (4 − 6)i − (12 + 2)j + (−9 − 1)k = −2i − 14j − 10k, with magnitude √(4 + 196 + 100) = √300 = 10√3. 5√3 would be the area of the triangle. - The area of the triangle with vertices A(1, 0, 0), B(0, 1, 0) and C(0, 0, 1) is:
A) √3
B) 3/2
C) 1/2
D) √3/2
Answer: D) √3/2 — AB = −i + j and AC = −i + k, so AB × AC = i + j + k with magnitude √3. The area is ½√3 = √3/2. Leaving out the ½ gives the parallelogram area √3. - A force F = 2i + 3j + k newtons moves a particle from A(1, −1, 2) to B(4, 2, 3), with distances in metres. The work done is:
A) 17 J
B) −16 J
C) 16 J
D) 1 J
Answer: C) 16 J — Displacement d = AB = 3i + 3j + k, so W = F · d = 6 + 9 + 1 = 16 J. Using the position vector of B instead of AB gives 17 J, using BA reverses the sign, and using the position vector of A gives 1 J. - If |a| = 3, |b| = 5 and |a − b| = 7, the angle between a and b is:
A) 120°
B) 60°
C) 150°
D) 90°
Answer: A) 120° — |a − b|² = |a|² + |b|² − 2a · b gives 49 = 9 + 25 − 2a · b, so a · b = −15/2. Then cos θ = (−15/2)/(3 × 5) = −1/2, so θ = 120°. - The volume of the parallelepiped with edges i + j, j + k and k + i is:
A) 1/3
B) 1
C) 4
D) 2
Answer: D) 2 — Volume = |det [[1, 1, 0], [0, 1, 1], [1, 0, 1]]| = |1(1 − 0) − 1(0 − 1) + 0| = 2. The tetrahedron on the same edges would have one sixth of this, 1/3.
Questions
What is the difference between the dot and cross products?
The dot product a · b = |a||b| cos θ is a number and is 0 for perpendicular vectors. The cross product a × b is a vector of magnitude |a||b| sin θ, perpendicular to both, and is 0 for parallel vectors.
Why does b × a equal −(a × b)?
The direction of a × b is given by the right-hand rule: curl the fingers from a towards b. Going from b towards a reverses the curl, so the thumb points the opposite way while the magnitude stays the same.
How do I find the angle between two vectors quickly?
Compute a · b from the components, divide by the product of the magnitudes and take the inverse cosine. A negative dot product tells you at once that the angle is obtuse.
How do I find the area of a triangle in space?
Form two side vectors from one vertex, such as AB and AC, take their cross product and halve its magnitude: area = ½|AB × AC|.