Class 12 — Mathematics (NCERT)

Vector Algebra: Dot Product, Cross Product and Projections

Class 12

  • ✓By the end of this lesson students will be able to define and compute the dot product (scalar product) of two vectors.
  • ✓By the end of this lesson students will be able to define and compute the cross product (vector product) of two vectors.
  • ✓By the end of this lesson students will be able to apply the dot and cross products to find the angle between vectors and the area of geometric figures.
  • ✓By the end of this lesson students will be able to calculate the scalar and vector projections of one vector onto another.
  • ✓By the end of this lesson students will be able to understand the geometric interpretations and properties of dot and cross products.

Key concepts

Dot Product (Scalar Product)

The dot product of two non-zero vectors a⃗\vec{a} and b⃗\vec{b}, denoted by a⃗⋅b⃗\vec{a} \cdot \vec{b}, is a scalar quantity defined as the product of their magnitudes and the cosine of the angle θ\theta between them (where 0≤θ≤π0 \le \theta \le \pi). If a⃗=a1i^+a2j^+a3k^\vec{a} = a_1 \hat{i} + a_2 \hat{j} + a_3 \hat{k} and b⃗=b1i^+b2j^+b3k^\vec{b} = b_1 \hat{i} + b_2 \hat{j} + b_3 \hat{k}, then their dot product is a1b1+a2b2+a3b3a_1 b_1 + a_2 b_2 + a_3 b_3. The dot product is commutative, i.e., a⃗⋅b⃗=b⃗⋅a⃗\vec{a} \cdot \vec{b} = \vec{b} \cdot \vec{a}. If a⃗⋅b⃗=0\vec{a} \cdot \vec{b} = 0, then the vectors a⃗\vec{a} and b⃗\vec{b} are perpendicular (orthogonal), provided they are non-zero vectors.

\vec{a} \cdot \vec{b} = |\vec{a}| |\vec{b}| \cos \theta \quad \text{or} \quad \vec{a} \cdot \vec{b} = a_1 b_1 + a_2 b_2 + a_3 b_3
Cross Product (Vector Product)

The cross product of two non-zero vectors a⃗\vec{a} and b⃗\vec{b}, denoted by a⃗×b⃗\vec{a} \times \vec{b}, is a vector quantity defined as ∣a⃗∣∣b⃗∣sin⁡θn^|\vec{a}| |\vec{b}| \sin \theta \hat{n}, where θ\theta is the angle between them (0≤θ≤π0 \le \theta \le \pi) and n^\hat{n} is a unit vector perpendicular to both a⃗\vec{a} and b⃗\vec{b}, in the direction given by the right-hand rule. If a⃗=a1i^+a2j^+a3k^\vec{a} = a_1 \hat{i} + a_2 \hat{j} + a_3 \hat{k} and b⃗=b1i^+b2j^+b3k^\vec{b} = b_1 \hat{i} + b_2 \hat{j} + b_3 \hat{k}, then their cross product can be found using a determinant. The cross product is anti-commutative, i.e., a⃗×b⃗=−(b⃗×a⃗)\vec{a} \times \vec{b} = -(\vec{b} \times \vec{a}). If a⃗×b⃗=0⃗\vec{a} \times \vec{b} = \vec{0}, then the vectors a⃗\vec{a} and b⃗\vec{b} are parallel (collinear), provided they are non-zero vectors. The magnitude of the cross product, ∣a⃗×b⃗∣|\vec{a} \times \vec{b}|, represents the area of the parallelogram formed by adjacent sides a⃗\vec{a} and b⃗\vec{b}.

\vec{a} \times \vec{b} = |\vec{a}| |\vec{b}| \sin \theta \hat{n} \quad \text{or} \quad \vec{a} \times \vec{b} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix}
Scalar Projection of a Vector on Another Vector

The scalar projection of vector a⃗\vec{a} on vector b⃗\vec{b} is the length of the component of a⃗\vec{a} along the direction of b⃗\vec{b}. It is a scalar value and can be positive, negative, or zero depending on the angle between the vectors. If the angle is acute, the projection is positive; if obtuse, it is negative; if right, it is zero.

\text{Projection of } \vec{a} \text{ on } \vec{b} = \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|}
Vector Projection of a Vector on Another Vector

The vector projection of vector a⃗\vec{a} on vector b⃗\vec{b} is a vector quantity that represents the component of a⃗\vec{a} that lies along the direction of b⃗\vec{b}. Its magnitude is the absolute value of the scalar projection, and its direction is the same as b⃗\vec{b} (or opposite if the scalar projection is negative).

\text{Projection of } \vec{a} \text{ on } \vec{b} = \left( \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^2} \right) \vec{b}

Key facts to remember

  • 1Dot Product: a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ=a1b1+a2b2+a3b3\vec{a} \cdot \vec{b} = |\vec{a}| |\vec{b}| \cos \theta = a_1 b_1 + a_2 b_2 + a_3 b_3.
  • 2Angle between vectors: cos⁡θ=a⃗⋅b⃗∣a⃗∣∣b⃗∣\cos \theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}| |\vec{b}|}.
  • 3Condition for perpendicular vectors: a⃗⋅b⃗=0\vec{a} \cdot \vec{b} = 0 (for non-zero vectors).
  • 4Cross Product: a⃗×b⃗=∣a⃗∣∣b⃗∣sin⁡θn^\vec{a} \times \vec{b} = |\vec{a}| |\vec{b}| \sin \theta \hat{n}.
  • 5Algebraic Cross Product: a⃗×b⃗=∣i^j^k^a1a2a3b1b2b3∣\vec{a} \times \vec{b} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix}.
  • 6Condition for parallel vectors: a⃗×b⃗=0⃗\vec{a} \times \vec{b} = \vec{0} (for non-zero vectors).
  • 7Area of parallelogram: ∣a⃗×b⃗∣|\vec{a} \times \vec{b}|. Area of triangle: 12∣a⃗×b⃗∣\frac{1}{2} |\vec{a} \times \vec{b}|.
  • 8Scalar projection of a⃗\vec{a} on b⃗\vec{b}: a⃗⋅b⃗∣b⃗∣\frac{\vec{a} \cdot \vec{b}}{|\vec{b}|}.
  • 9Vector projection of a⃗\vec{a} on b⃗\vec{b}: (a⃗⋅b⃗∣b⃗∣2)b⃗\left( \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^2} \right) \vec{b}.

Worked examples

Example 1

Find the dot product of vectors a⃗=2i^+2j^−k^\vec{a} = 2\hat{i} + 2\hat{j} - \hat{k} and b⃗=6i^−3j^+2k^\vec{b} = 6\hat{i} - 3\hat{j} + 2\hat{k}. Also, find the angle between them.

IGiven vectors: a⃗=2i^+2j^−k^\vec{a} = 2\hat{i} + 2\hat{j} - \hat{k} and b⃗=6i^−3j^+2k^\vec{b} = 6\hat{i} - 3\hat{j} + 2\hat{k}.
IIFirst, calculate the dot product a⃗⋅b⃗\vec{a} \cdot \vec{b}:
IIIa⃗⋅b⃗=(2)(6)+(2)(−3)+(−1)(2)\vec{a} \cdot \vec{b} = (2)(6) + (2)(-3) + (-1)(2)
IVa⃗⋅b⃗=12−6−2=4\vec{a} \cdot \vec{b} = 12 - 6 - 2 = 4.
VNext, calculate the magnitudes of the vectors:
VI∣a⃗∣=22+22+(−1)2=4+4+1=9=3|\vec{a}| = \sqrt{2^2 + 2^2 + (-1)^2} = \sqrt{4 + 4 + 1} = \sqrt{9} = 3.
VII∣b⃗∣=62+(−3)2+22=36+9+4=49=7|\vec{b}| = \sqrt{6^2 + (-3)^2 + 2^2} = \sqrt{36 + 9 + 4} = \sqrt{49} = 7.
VIIINow, use the formula cos⁡θ=a⃗⋅b⃗∣a⃗∣∣b⃗∣\cos \theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}| |\vec{b}|} to find the angle θ\theta:
9cos⁡θ=4(3)(7)=421\cos \theta = \frac{4}{(3)(7)} = \frac{4}{21}.
10θ=cos⁡−1(421)\theta = \cos^{-1}\left(\frac{4}{21}\right).

Answer

The dot product a⃗⋅b⃗=4\vec{a} \cdot \vec{b} = 4. The angle between the vectors is θ=cos⁡−1(421)\theta = \cos^{-1}\left(\frac{4}{21}\right).

Example 2

Find the cross product of vectors p⃗=3i^+j^−2k^\vec{p} = 3\hat{i} + \hat{j} - 2\hat{k} and q⃗=i^−3j^+k^\vec{q} = \hat{i} - 3\hat{j} + \hat{k}. Hence, find the area of the parallelogram whose adjacent sides are p⃗\vec{p} and q⃗\vec{q}.

IGiven vectors: p⃗=3i^+j^−2k^\vec{p} = 3\hat{i} + \hat{j} - 2\hat{k} and q⃗=i^−3j^+k^\vec{q} = \hat{i} - 3\hat{j} + \hat{k}.
IICalculate the cross product p⃗×q⃗\vec{p} \times \vec{q} using the determinant form:
IIIp⃗×q⃗=∣i^j^k^31−21−31∣\vec{p} \times \vec{q} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 3 & 1 & -2 \\ 1 & -3 & 1 \end{vmatrix}
IV=i^((1)(1)−(−2)(−3))−j^((3)(1)−(−2)(1))+k^((3)(−3)−(1)(1))= \hat{i}((1)(1) - (-2)(-3)) - \hat{j}((3)(1) - (-2)(1)) + \hat{k}((3)(-3) - (1)(1))
V=i^(1−6)−j^(3+2)+k^(−9−1)= \hat{i}(1 - 6) - \hat{j}(3 + 2) + \hat{k}(-9 - 1)
VI=−5i^−5j^−10k^= -5\hat{i} - 5\hat{j} - 10\hat{k}.
VIIThe area of the parallelogram is given by ∣p⃗×q⃗∣|\vec{p} \times \vec{q}|.
VIII∣p⃗×q⃗∣=(−5)2+(−5)2+(−10)2|\vec{p} \times \vec{q}| = \sqrt{(-5)^2 + (-5)^2 + (-10)^2}
9=25+25+100=150= \sqrt{25 + 25 + 100} = \sqrt{150}.
10150=25×6=56\sqrt{150} = \sqrt{25 \times 6} = 5\sqrt{6}.

Answer

The cross product p⃗×q⃗=−5i^−5j^−10k^\vec{p} \times \vec{q} = -5\hat{i} - 5\hat{j} - 10\hat{k}. The area of the parallelogram is 565\sqrt{6} square units.

Remember that the area is always a positive scalar quantity.

Example 3

Find the scalar projection and vector projection of the vector a⃗=i^+3j^+7k^\vec{a} = \hat{i} + 3\hat{j} + 7\hat{k} on the vector b⃗=7i^−j^+8k^\vec{b} = 7\hat{i} - \hat{j} + 8\hat{k}.

IGiven vectors: a⃗=i^+3j^+7k^\vec{a} = \hat{i} + 3\hat{j} + 7\hat{k} and b⃗=7i^−j^+8k^\vec{b} = 7\hat{i} - \hat{j} + 8\hat{k}.
IIFirst, calculate the dot product a⃗⋅b⃗\vec{a} \cdot \vec{b}:
IIIa⃗⋅b⃗=(1)(7)+(3)(−1)+(7)(8)\vec{a} \cdot \vec{b} = (1)(7) + (3)(-1) + (7)(8)
IV=7−3+56=60= 7 - 3 + 56 = 60.
VNext, calculate the magnitude of vector b⃗\vec{b}:
VI∣b⃗∣=72+(−1)2+82=49+1+64=114|\vec{b}| = \sqrt{7^2 + (-1)^2 + 8^2} = \sqrt{49 + 1 + 64} = \sqrt{114}.
VIINow, find the scalar projection of a⃗\vec{a} on b⃗\vec{b}:
VIIIScalar projection =a⃗⋅b⃗∣b⃗∣=60114= \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|} = \frac{60}{\sqrt{114}}.
9Finally, find the vector projection of a⃗\vec{a} on b⃗\vec{b}:
10Vector projection =(a⃗⋅b⃗∣b⃗∣2)b⃗= \left( \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^2} \right) \vec{b}
11=(60(114)2)(7i^−j^+8k^)= \left( \frac{60}{(\sqrt{114})^2} \right) (7\hat{i} - \hat{j} + 8\hat{k})
12=60114(7i^−j^+8k^)= \frac{60}{114} (7\hat{i} - \hat{j} + 8\hat{k})
13=1019(7i^−j^+8k^)= \frac{10}{19} (7\hat{i} - \hat{j} + 8\hat{k})
14=7019i^−1019j^+8019k^= \frac{70}{19}\hat{i} - \frac{10}{19}\hat{j} + \frac{80}{19}\hat{k}.

Answer

Scalar projection of a⃗\vec{a} on b⃗\vec{b} is 60114\frac{60}{\sqrt{114}}. Vector projection of a⃗\vec{a} on b⃗\vec{b} is 7019i^−1019j^+8019k^\frac{70}{19}\hat{i} - \frac{10}{19}\hat{j} + \frac{80}{19}\hat{k}.

Scalar projection is a number, vector projection is a vector.

Common mistakes

  • ✗Confusing dot product (scalar) with cross product (vector).
  • ✗Incorrectly applying the right-hand rule for the direction of the cross product.
  • ✗Forgetting to divide by the magnitude of the *second* vector when calculating projection (e.g., projection of a⃗\vec{a} on b⃗\vec{b} uses ∣b⃗∣|\vec{b}| in the denominator).
  • ✗Using the magnitude of the cross product for the area of a triangle without dividing by 2.
  • ✗Errors in determinant calculation for the cross product, especially sign errors for the j^\hat{j} component.

Exam tips

  • ★Memorise all formulas for dot product, cross product, and projections. Understand the conditions for perpendicular and parallel vectors.
  • ★Practice determinant calculations for the cross product thoroughly to avoid computational errors.
  • ★Always specify if the answer is a scalar or a vector, especially for projection questions.
  • ★For geometric applications (area), ensure the final answer is a positive scalar quantity with appropriate units (e.g., square units).

Ready to practise?

Try a problem on this topic

Snap a photo or type a question — get step-by-step working instantly.