WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M7-2 ยท 2 of 4 in Vector Algebra ยท 11 min read

The dot product

34 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter drew 12 real questions in the seven papers from NDA II 2023 to NDA II 2026. They ask for the angle between two vectors, for the projection of one vector on another, whether two vectors are perpendicular, and what follows when a sum such as โ€‹\vec{a} + \vec{b}โ€‹ is a unit vector. Six of them are solved in section 7.

What you will be able to do

  • Find โ€‹\vec{a} \cdot \vec{b}โ€‹ from components, or from the magnitudes and the angle.
  • Find the angle between two vectors and test whether they are perpendicular.
  • Find the projection of one vector on another.
  • Expand โ€‹|\vec{a} + \vec{b}|^2โ€‹ and use it in questions on unit vectors.

Before you start you should know: components, magnitude, unit vectors and โ€‹\overrightarrow{AB} = \vec{b} - \vec{a}โ€‹ (Chapter M7-1), and the values of โ€‹\cosโ€‹ at the standard angles.

1. What the dot product is

The dot product (or scalar product) of two vectors is

\vec{a} \cdot \vec{b} = |\vec{a}|\,|\vec{b}|\cos\theta

where โ€‹\thetaโ€‹ is the angle between them, taken from โ€‹0โ€‹ to โ€‹\piโ€‹. The answer is a number, not a vector.

The magnitudes are positive, so the sign of the dot product comes from โ€‹\cos\thetaโ€‹:

Angle between the vectors โ€‹\vec{a} \cdot \vec{b}โ€‹
Acute (less than โ€‹90^\circโ€‹) Positive
Right angle (โ€‹90^\circโ€‹) Zero
Obtuse (more than โ€‹90^\circโ€‹) Negative

Three pairs of vectors: an acute angle gives a positive dot product, a right angle gives zero, an obtuse angle gives a negative dot product

So two non-zero vectors are perpendicular exactly when their dot product is zero. This is the test asked most often.

2. The dot product in components

The unit vectors along the axes are perpendicular to each other and have length 1. So

\hat{i} \cdot \hat{i} = \hat{j} \cdot \hat{j} = \hat{k} \cdot \hat{k} = 1, \qquad \hat{i} \cdot \hat{j} = \hat{j} \cdot \hat{k} = \hat{k} \cdot \hat{i} = 0

From this, for โ€‹\vec{a} = a_1\hat{i} + a_2\hat{j} + a_3\hat{k}โ€‹ and โ€‹\vec{b} = b_1\hat{i} + b_2\hat{j} + b_3\hat{k}โ€‹:

\vec{a} \cdot \vec{b} = a_1b_1 + a_2b_2 + a_3b_3

Multiply matching components and add. For example, โ€‹(\hat{i} - 2\hat{j} + 3\hat{k}) \cdot (3\hat{i} - 2\hat{j} + \hat{k}) = 3 + 4 + 3 = 10โ€‹.

3. The angle between two vectors

Put the two forms of the dot product together:

\cos\theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}|\,|\vec{b}|}

4. Projection

The projection of โ€‹\vec{a}โ€‹ on โ€‹\vec{b}โ€‹ is the length of the shadow of โ€‹\vec{a}โ€‹ on the line of โ€‹\vec{b}โ€‹. It equals โ€‹|\vec{a}|\cos\thetaโ€‹, which is

\text{projection of } \vec{a} \text{ on } \vec{b} = \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|}

Vectors a and b from the point O with the angle theta between them; a perpendicular dropped from the tip of a onto the line of b marks the projection of a on b

Divide by the magnitude of the vector you project on. The projection is negative when the angle is obtuse. If the question asks for the projection as a vector, multiply this number by the unit vector โ€‹\hat{b}โ€‹.

5. The algebra of the dot product

The dot product behaves like ordinary multiplication in these ways:

Rule In symbols
The order does not matter โ€‹\vec{a} \cdot \vec{b} = \vec{b} \cdot \vec{a}โ€‹
Brackets open as usual โ€‹\vec{a} \cdot (\vec{b} + \vec{c}) = \vec{a} \cdot \vec{b} + \vec{a} \cdot \vec{c}โ€‹
A vector dotted with itself gives its length squared โ€‹\vec{a} \cdot \vec{a} = \lvert \vec{a} \rvert^2โ€‹
Length of a sum โ€‹\lvert \vec{a} + \vec{b} \rvert^2 = \lvert \vec{a} \rvert^2 + 2\,\vec{a} \cdot \vec{b} + \lvert \vec{b} \rvert^2โ€‹
Length of a difference โ€‹\lvert \vec{a} - \vec{b} \rvert^2 = \lvert \vec{a} \rvert^2 - 2\,\vec{a} \cdot \vec{b} + \lvert \vec{b} \rvert^2โ€‹
Sum times difference โ€‹(\vec{a} + \vec{b}) \cdot (\vec{a} - \vec{b}) = \lvert \vec{a} \rvert^2 - \lvert \vec{b} \rvert^2โ€‹
Three vectors โ€‹\lvert \vec{a} + \vec{b} + \vec{c} \rvert^2 = \lvert \vec{a} \rvert^2 + \lvert \vec{b} \rvert^2 + \lvert \vec{c} \rvert^2 + 2(\vec{a} \cdot \vec{b} + \vec{b} \cdot \vec{c} + \vec{c} \cdot \vec{a})โ€‹

For unit vectors the work is shorter still: โ€‹|\vec{a}| = |\vec{b}| = 1โ€‹, so โ€‹\vec{a} \cdot \vec{b} = \cos\thetaโ€‹.

6. Worked examples

Example 1. Find the angle between โ€‹\vec{a} = \hat{i} - 2\hat{j} + 3\hat{k}โ€‹ and โ€‹\vec{b} = 3\hat{i} - 2\hat{j} + \hat{k}โ€‹.

โ€‹\vec{a} \cdot \vec{b} = 3 + 4 + 3 = 10โ€‹. โ€‹|\vec{a}| = \sqrt{1 + 4 + 9} = \sqrt{14}โ€‹ and โ€‹|\vec{b}| = \sqrt{9 + 4 + 1} = \sqrt{14}โ€‹.

So โ€‹\cos\theta = \dfrac{10}{\sqrt{14}\sqrt{14}} = \dfrac{5}{7}โ€‹, and โ€‹\theta = \cos^{-1}\dfrac{5}{7}โ€‹.

Example 2. For what value of โ€‹\lambdaโ€‹ are โ€‹2\hat{i} + \lambda\hat{j} + \hat{k}โ€‹ and โ€‹\hat{i} - 2\hat{j} + 3\hat{k}โ€‹ perpendicular?

The dot product must be zero: โ€‹2 - 2\lambda + 3 = 0โ€‹, so โ€‹\lambda = \dfrac{5}{2}โ€‹.

Example 3. Find the projection of โ€‹\vec{a} = 2\hat{i} + 3\hat{j} + 2\hat{k}โ€‹ on โ€‹\vec{b} = \hat{i} + 2\hat{j} + \hat{k}โ€‹.

โ€‹\vec{a} \cdot \vec{b} = 2 + 6 + 2 = 10โ€‹ and โ€‹|\vec{b}| = \sqrt{1 + 4 + 1} = \sqrt{6}โ€‹. The projection is โ€‹\dfrac{10}{\sqrt{6}} = \dfrac{5\sqrt{6}}{3}โ€‹.

Example 4. โ€‹|\vec{a}| = 3โ€‹, โ€‹|\vec{b}| = 4โ€‹ and the angle between them is โ€‹60^\circโ€‹. Find โ€‹|\vec{a} + \vec{b}|โ€‹ and โ€‹|\vec{a} - \vec{b}|โ€‹.

โ€‹\vec{a} \cdot \vec{b} = 3 \times 4 \times \dfrac{1}{2} = 6โ€‹.

โ€‹|\vec{a} + \vec{b}|^2 = 9 + 12 + 16 = 37โ€‹, so โ€‹|\vec{a} + \vec{b}| = \sqrt{37}โ€‹.

โ€‹|\vec{a} - \vec{b}|^2 = 9 - 12 + 16 = 13โ€‹, so โ€‹|\vec{a} - \vec{b}| = \sqrt{13}โ€‹.

Example 5. โ€‹\vec{a}โ€‹ and โ€‹\vec{b}โ€‹ are unit vectors and โ€‹|\vec{a} + \vec{b}| = \sqrt{3}โ€‹. Find the angle between them and โ€‹|\vec{a} - \vec{b}|โ€‹.

โ€‹|\vec{a} + \vec{b}|^2 = 1 + 2\cos\theta + 1 = 3โ€‹, so โ€‹\cos\theta = \dfrac{1}{2}โ€‹ and โ€‹\theta = 60^\circโ€‹.

โ€‹|\vec{a} - \vec{b}|^2 = 1 - 2\cos\theta + 1 = 1โ€‹, so โ€‹|\vec{a} - \vec{b}| = 1โ€‹.

7. From the real papers

Try each question for 75 seconds before reading the solution.

NDA II 2023, Q91. What is the length of projection of the vector โ€‹\hat{i} + 2\hat{j} + 3\hat{k}โ€‹ on the vector โ€‹2\hat{i} + 3\hat{j} - 2\hat{k}โ€‹?

(a) โ€‹\frac{1}{\sqrt{17}}โ€‹โ€ƒโ€ƒ(b) โ€‹\frac{2}{\sqrt{17}}โ€‹โ€ƒโ€ƒ(c) โ€‹\frac{3}{\sqrt{17}}โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{2}{\sqrt{14}}โ€‹

Solution. โ€‹\vec{a} \cdot \vec{b} = 2 + 6 - 6 = 2โ€‹ and โ€‹|\vec{b}| = \sqrt{4 + 9 + 4} = \sqrt{17}โ€‹. The projection is โ€‹\dfrac{2}{\sqrt{17}}โ€‹. Answer (b).

NDA I 2025, Q66. A line makes angles โ€‹\alphaโ€‹, โ€‹\betaโ€‹ and โ€‹\gammaโ€‹ with the positive directions of the coordinate axes. If โ€‹\vec{a} = (\sin^2\alpha)\hat{i} + (\sin^2\beta)\hat{j} + (\sin^2\gamma)\hat{k}โ€‹ and โ€‹\vec{b} = \hat{i} + \hat{j} + \hat{k}โ€‹, then what is โ€‹\vec{a} \cdot \vec{b}โ€‹ equal to?

(a) โ€‹-2โ€‹โ€ƒโ€ƒ(b) โ€‹-1โ€‹โ€ƒโ€ƒ(c) โ€‹1โ€‹โ€ƒโ€ƒ(d) โ€‹2โ€‹

Solution. โ€‹\vec{a} \cdot \vec{b} = \sin^2\alpha + \sin^2\beta + \sin^2\gamma = 3 - (\cos^2\alpha + \cos^2\beta + \cos^2\gamma)โ€‹. The squares of the direction cosines add up to 1 (Chapter M7-1), so the value is โ€‹3 - 1 = 2โ€‹. Answer (d).

NDA II 2025, Q69. The position vectors of the vertices โ€‹Aโ€‹, โ€‹Bโ€‹, โ€‹Cโ€‹ and โ€‹Dโ€‹ of a quadrilateral โ€‹ABCDโ€‹ are given by โ€‹3\hat{i} + 4\hat{j} - 2\hat{k}โ€‹, โ€‹4\hat{i} - 4\hat{j} - 3\hat{k}โ€‹, โ€‹2\hat{i} - 3\hat{j} + 2\hat{k}โ€‹ and โ€‹6\hat{i} - 2\hat{j} + \hat{k}โ€‹ respectively. What is the angle between the diagonals โ€‹ACโ€‹ and โ€‹BDโ€‹ of the quadrilateral?

(a) โ€‹90^\circโ€‹โ€ƒโ€ƒ(b) โ€‹75^\circโ€‹โ€ƒโ€ƒ(c) โ€‹60^\circโ€‹โ€ƒโ€ƒ(d) โ€‹45^\circโ€‹

Solution. End minus start: โ€‹\overrightarrow{AC} = -\hat{i} - 7\hat{j} + 4\hat{k}โ€‹ and โ€‹\overrightarrow{BD} = 2\hat{i} + 2\hat{j} + 4\hat{k}โ€‹. Their dot product is โ€‹-2 - 14 + 16 = 0โ€‹, so the diagonals are perpendicular. Answer (a).

NDA I 2026, Q65. For the next two (02) items that follow : Let โ€‹\vec{a}โ€‹, โ€‹\vec{b}โ€‹, โ€‹\vec{c}โ€‹, โ€‹\vec{a} + \vec{b}โ€‹, โ€‹\vec{b} + \vec{c}โ€‹, โ€‹\vec{a} + \vec{b} + \vec{c}โ€‹ be unit vectors. What is the angle between โ€‹\vec{a}โ€‹ and โ€‹\vec{b}โ€‹?

(a) โ€‹\frac{\pi}{6}โ€‹โ€ƒโ€ƒ(b) โ€‹\frac{\pi}{4}โ€‹โ€ƒโ€ƒ(c) โ€‹\frac{\pi}{2}โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{2\pi}{3}โ€‹

Solution. โ€‹|\vec{a} + \vec{b}|^2 = |\vec{a}|^2 + 2\,\vec{a} \cdot \vec{b} + |\vec{b}|^2โ€‹. All three lengths are 1, so โ€‹1 = 1 + 2\,\vec{a} \cdot \vec{b} + 1โ€‹ and โ€‹\vec{a} \cdot \vec{b} = -\dfrac{1}{2}โ€‹. For unit vectors this is โ€‹\cos\thetaโ€‹, so โ€‹\theta = \dfrac{2\pi}{3}โ€‹. Answer (d).

NDA I 2024, Q70. Let โ€‹\vec{a}โ€‹ and โ€‹\vec{b}โ€‹ are two vectors of magnitude 4 inclined at an angle โ€‹\frac{\pi}{3}โ€‹, then what is the angle between โ€‹\vec{a}โ€‹ and โ€‹\vec{a} - \vec{b}โ€‹?

(a) โ€‹\frac{\pi}{2}โ€‹โ€ƒโ€ƒ(b) โ€‹\frac{\pi}{3}โ€‹โ€ƒโ€ƒ(c) โ€‹\frac{\pi}{4}โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{\pi}{6}โ€‹

Solution. โ€‹\vec{a} \cdot \vec{b} = 4 \times 4 \times \dfrac{1}{2} = 8โ€‹. Then โ€‹\vec{a} \cdot (\vec{a} - \vec{b}) = 16 - 8 = 8โ€‹, and โ€‹|\vec{a} - \vec{b}|^2 = 16 - 16 + 16 = 16โ€‹, so โ€‹|\vec{a} - \vec{b}| = 4โ€‹. Hence โ€‹\cos\phi = \dfrac{8}{4 \times 4} = \dfrac{1}{2}โ€‹ and โ€‹\phi = \dfrac{\pi}{3}โ€‹. (The vectors โ€‹\vec{a}โ€‹, โ€‹\vec{b}โ€‹ and โ€‹\vec{a} - \vec{b}โ€‹ form an equilateral triangle.) Answer (b).

NDA II 2026, Q67. The scalar projection of โ€‹\vec{a} = \lambda\hat{i} + \hat{j} - 2\hat{k}โ€‹ on โ€‹\vec{b} = 2\hat{i} - \hat{j} - \lambda\hat{k}โ€‹ is โ€‹7/3โ€‹. What is the value of โ€‹\lambdaโ€‹?

(a) โ€‹1โ€‹โ€ƒโ€ƒ(b) โ€‹2โ€‹โ€ƒโ€ƒ(c) โ€‹3โ€‹โ€ƒโ€ƒ(d) โ€‹4โ€‹

Solution. โ€‹\vec{a} \cdot \vec{b} = 2\lambda - 1 + 2\lambda = 4\lambda - 1โ€‹ and โ€‹|\vec{b}| = \sqrt{5 + \lambda^2}โ€‹. So โ€‹\dfrac{4\lambda - 1}{\sqrt{5 + \lambda^2}} = \dfrac{7}{3}โ€‹. Solving this takes time; testing the options is faster. โ€‹\lambda = 2โ€‹ gives โ€‹\dfrac{7}{\sqrt{9}} = \dfrac{7}{3}โ€‹, which fits. Answer (b).

8. Mistakes that cost marks

  1. Dividing by the wrong magnitude in a projection. The projection of โ€‹\vec{a}โ€‹ on โ€‹\vec{b}โ€‹ is โ€‹\dfrac{\vec{a} \cdot \vec{b}}{|\vec{b}|}โ€‹. The vector after the word "on" goes below.
  2. Writing โ€‹|\vec{a} + \vec{b}|^2 = |\vec{a}|^2 + |\vec{b}|^2โ€‹. The middle term โ€‹2\,\vec{a} \cdot \vec{b}โ€‹ is missing. It is zero only when the vectors are perpendicular.
  3. Treating โ€‹\vec{a} \cdot \vec{b}โ€‹ as a vector. It is a number. So โ€‹(\vec{a} \cdot \vec{b}) \cdot \vec{c}โ€‹ has no meaning as a dot product.
  4. Cancelling a vector. From โ€‹\vec{a} \cdot \vec{b} = 0โ€‹ you cannot say that โ€‹\vec{a}โ€‹ or โ€‹\vec{b}โ€‹ is zero; they may be perpendicular. From โ€‹\vec{a} \cdot \vec{b} = \vec{a} \cdot \vec{c}โ€‹ you cannot say that โ€‹\vec{b} = \vec{c}โ€‹.

9. Quick check

Do these without help. Answers are at the end.

  1. Find โ€‹(2\hat{i} - \hat{j} + 3\hat{k}) \cdot (\hat{i} + 4\hat{j} + 2\hat{k})โ€‹.
  2. For what value of โ€‹\lambdaโ€‹ are โ€‹\lambda\hat{i} + 2\hat{j} - 3\hat{k}โ€‹ and โ€‹2\hat{i} + \hat{j} + 4\hat{k}โ€‹ perpendicular?
  3. Find the angle between โ€‹\hat{i} + \hat{j}โ€‹ and โ€‹\hat{j} + \hat{k}โ€‹.
  4. Find the projection of โ€‹4\hat{i} - 3\hat{j} + \hat{k}โ€‹ on โ€‹2\hat{i} + \hat{j} + 2\hat{k}โ€‹.
  5. โ€‹|\vec{a}| = 2โ€‹, โ€‹|\vec{b}| = 3โ€‹ and the angle between them is โ€‹60^\circโ€‹. Find โ€‹|\vec{a} + \vec{b}|โ€‹.

10. Read and watch more, free

What Where Language
Textbook NCERT Class 12 Mathematics, Chapter 10 Vector Algebra (the section on the scalar product) ยท Hindi edition English, Hindi
Self-study notes NIOS Mathematics, Lesson 34 Vectors ยท Hindi edition English, Hindi
Textbook, more examples OpenStax Calculus Volume 3, Chapter 2 Vectors in Space (the section on the dot product) English
Video, the whole unit for NDA in five classes Chandigarh Career Group: Vector class 1 to 5 (the first five videos of the playlist) Hinglish (judged from the titles)
Video, the whole unit in one class Defence Wallah: VECTORS in One Shot (in the Fast Track 2021 playlist, about 2 hours) Hinglish
Video, taught in English, harder than NDA level Vedantu JEE English: Vector Algebra and 3D Geometry (the last video of the playlist, about 5 hours) English

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹2 - 4 + 6 = 4โ€‹.
  2. โ€‹2\lambda + 2 - 12 = 0โ€‹, so โ€‹\lambda = 5โ€‹.
  3. โ€‹\cos\theta = \dfrac{0 + 1 + 0}{\sqrt{2}\sqrt{2}} = \dfrac{1}{2}โ€‹, so โ€‹\theta = 60^\circโ€‹.
  4. โ€‹\dfrac{8 - 3 + 2}{\sqrt{4 + 1 + 4}} = \dfrac{7}{3}โ€‹.
  5. โ€‹\vec{a} \cdot \vec{b} = 2 \times 3 \times \dfrac{1}{2} = 3โ€‹, so โ€‹|\vec{a} + \vec{b}|^2 = 4 + 6 + 9 = 19โ€‹ and โ€‹|\vec{a} + \vec{b}| = \sqrt{19}โ€‹.

Next chapter: The cross product.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    Let โ€‹\vec{a}โ€‹, โ€‹\vec{b}โ€‹ and โ€‹\vec{c}โ€‹ be mutually perpendicular vectors with โ€‹|\vec{a}| = 1โ€‹, โ€‹|\vec{b}| = 2โ€‹ and โ€‹|\vec{c}| = 3โ€‹. What is โ€‹|2\vec{a} - \vec{b} + \vec{c}|โ€‹?
  2. Question 2 of 3
    Let โ€‹\vec{a} = \hat{i} + \hat{j}โ€‹ and โ€‹\vec{b} = \hat{i} - \hat{j}โ€‹. Consider the following statements: I. โ€‹\vec{a}โ€‹ is perpendicular to โ€‹\vec{b}โ€‹. II. The angle between โ€‹\vec{a}โ€‹ and โ€‹\vec{a} + \vec{b}โ€‹ is โ€‹60^\circโ€‹. Which of the statements given above is/are correct?
  3. Question 3 of 3
    For what values of โ€‹xโ€‹ is the angle between the vectors โ€‹x\hat{i} + 2\hat{j} - \hat{k}โ€‹ and โ€‹\hat{i} + x\hat{j} + \hat{k}โ€‹ acute?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.