Dot product of two vectors
Two vectors point in their own directions, but there is one number that tells you exactly how much they agree — the dot product. Multiply their lengths, multiply by the cosine of the angle between them, and you get a single scalar: positive when the vectors lean the same way, negative when they lean apart, and zero exactly when they are perpendicular. That one idea does three jobs in the Class 12 syllabus at once: it hands you the angle between any two vectors, it gives an instant perpendicularity test, and — because a vector dotted with itself is just its squared length — it turns finding magnitudes into arithmetic. This article rebuilds the definition from its geometric picture, derives the component formula every problem actually uses, and works through the two standard question types: finding an angle, and finding an unknown component that makes two vectors perpendicular.
The dot product compresses the angle between two vectors into a single scalar, so tests perpendicularity and gives magnitude, while in components it is simply .
The core idea
Definition. For two nonzero vectors and with angle between them (), the dot product (also called the scalar product) is
where: and are the magnitudes of the two vectors and is the angle between them when both are drawn from the same starting point. If either vector is , the dot product is defined to be , and has no meaning in that case. Notice the result is a plain number — a scalar — never a vector; that is the whole point of the name.
Sign tells the story. Since , the sign of is exactly the sign of : positive for an acute angle, negative for an obtuse one, and zero at a right angle. So a single number, computed without ever drawing a diagram, tells you the qualitative shape of the angle between two vectors.
Component form. If and , the dot product reduces to
where: and are the components of and . This is the formula almost every exam question ultimately uses — multiply matching components and add.
Key properties, all provable directly from the definition:
Finding the angle. Rearranging the definition,
where: the right-hand side uses only quantities you can compute from components — the dot product and the two magnitudes — so no picture is ever required to find exactly.
Projection, as a bonus. Rearranging once more, is the length of 's "shadow" cast along the direction of . It is not a separate rule — it falls straight out of the definition — and it is the idea the next syllabus topic (projection of a vector on a line) builds on.
Scope note. CBSE Class 12 restricts dot-product applications to angle-finding, perpendicularity, and this projection idea. The scalar triple product (dot product combined with a cross product across three vectors) is outside the current syllabus.
The goal is to show that the geometric definition , which needs an angle you rarely know directly, is exactly equal to , a formula that needs nothing but the components you are handed — and to see why the unit vectors behave the way the shortcut requires.
Step 1. Apply the geometric definition to the unit vectors themselves. each have magnitude , and any vector makes a zero angle with itself, so , and likewise .
Step 2. Any two different unit vectors among are perpendicular by construction of the coordinate axes, so the angle between them is and . Hence , and by the commutative property this covers all six ordered pairs.
Step 3. Write and , and expand using the distributive property term by term. This gives nine products: .
Step 4. Substitute Steps 1 and 2 into that expansion. Every mixed term ( and its five relatives) is multiplied by and vanishes; every matching term ( and its two relatives) is multiplied by and survives. What remains is exactly
Step 5. Read the result. The geometric definition and the component formula are the same quantity viewed two ways; the component version is what you compute in practice, and the geometric version is what tells you why the sign and the zero case mean perpendicularity.
Worked example
Find and the angle between and .
Step 1. Compute the dot product from components: .
Step 2. Compute the magnitudes: and .
Step 3. Form the cosine: . The negative sign already tells you is obtuse, before you even take the inverse cosine.
Step 4. State the angle: .
The dot product is , and the angle between and is , an obtuse angle.
Competitive stretch
Find so that is perpendicular to .
Step 1. Write the dot product in terms of : .
Step 2. Perpendicularity means the dot product is zero, so solve , giving .
Step 3. Verify by substitution: with , , confirming perpendicularity.
makes and perpendicular.
Common traps
- Treating the dot product as if it returns a vector — writing something like "" is a type error; the result is always a scalar.
- Using without checking both vectors are nonzero — the angle is undefined if either vector is .
- Concluding "perpendicular" from without checking both vectors are nonzero — a zero vector makes the dot product zero trivially, with no meaningful angle involved.
- Making sign errors while expanding with negative components — work each product out term by term rather than combining mentally.
Ask the tutor: Want to practice spotting acute versus obtuse angles from the sign of a dot product, or work through a few more perpendicularity problems with the AI tutor?
Why does a dotted with a give the square of the magnitude?
Put in the definition: the angle between a vector and itself is , and , so . In components this matches , which is exactly the squared-magnitude formula you already know from the distance formula, just written with dot-product notation.
If the dot product is negative, does that mean the vectors point in opposite directions?
Not necessarily — it means the angle between them is obtuse, somewhere between and , not that they are exactly opposite. Exactly opposite vectors () do give a negative dot product, specifically , but so does any obtuse angle. Read a negative dot product as "leaning apart," and only conclude "exactly opposite" if you separately confirm .
Do I need to memorize the angle formula separately from the definition?
No — it is the same equation rearranged. Start from , divide both sides by , and take of both sides to isolate . If you know the definition and are comfortable rearranging one equation, you already know the angle formula; there is nothing new to remember.