The dot product and its rules · Mathematics Class 11–12 | StemPy Lab
Course 14.2·Lesson 1 of 3
The dot product and its rules
The dot product of two vectors is a number: the product of their sizes and the cosine of the angle between them. In components it is the sum of the products of the matching components. Its sign tells us whether the angle is acute, right or obtuse, and its rules let us expand expressions such as ∣a+b∣2
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
find the dot product of two vectors from the angle and from the components;
use the sign of the dot product to tell an acute angle from a right angle and an obtuse angle;
use the rules of the dot product to expand expressions such as ∣a+b∣2.
Pulling a trolley
You pull a trolley along a straight path with a rope. If the rope runs along the path, all of your pull helps. If you pull sideways, only part of your pull helps. If you pull at right angles to the path, none of it helps. We want one number that says how much two vectors point the same way. That number is the dot product.
The definition
Draw two non-zero vectors a and b from the same point. The angle between them, θ, is the smaller turn from one to the other, so 0≤θ≤π. The dot product is
a⋅b=∣a∣∣b∣cosθ.
The answer is a scalar, a plain number, so NCERT also calls it the scalar product. A-Level and IB books use the same name and may write a.b. If one of the vectors is zero, the dot product is 0.
The sign of the dot product comes from cosθ. It is positive for an acute angle, zero for a right angle and negative for an obtuse angle.
Three small drawings side by side, each with a blue vector a pointing right and a green vector b, both starting at the same point, with the angle theta between them in orange. In the left drawing theta is 40 degrees, an acute angle, and the title says a dot b is positive. In the middle drawing theta is 90 degrees, and the title says a dot b is zero. In the right drawing theta is 140 degrees, an obtuse angle, and the title says a dot b is negative.
The rules
For any vectors and any number λ:
a⋅b=b⋅a (it does not matter which comes first);
a⋅(b+c)=a⋅b+a⋅c;
(λa)⋅b=λ(a⋅b);
a⋅a=∣a∣2, because the angle between a vector and itself is 0;
i^⋅i^=j^⋅j^=k^⋅k^=1 and i^⋅j^=j^⋅k^=k^⋅i^=0, because the axes are at right angles.
The dot product from components
Write a=a1i^+a2j^+a3k^ and b=b1i^+b2j^+b3k^. Multiply out with the rules. The nine products give only three terms that are not zero, so
a⋅b=a1b1+a2b2+a3b3.
Equating the two forms gives the angle:
cosθ=∣a∣∣b∣a1b1+a2b2+a3b3.
The square of a sum
Use a⋅a=∣a∣2 and the rules:
∣a+b∣2=(a+b)⋅(a+b)=∣a∣2+2a⋅b+∣b∣2.
In the same way, ∣a−b∣2=∣a∣2−2a⋅b+∣b∣2. This is the cosine rule of a triangle written with vectors.
Because ∣cosθ∣≤1, we always have ∣a⋅b∣≤∣a∣∣b∣. A-Level Further Maths and IB books call this the Cauchy-Schwarz inequality.
A worked example
Let a=3i^−j^+2k^ and b=i^+4j^−2k^.
The dot product.3(1)+(−1)(4)+2(−2)=3−4−4=−5.
The sign. It is negative, so the angle is obtuse. Here ∣a∣=14 and ∣b∣=21, so cosθ=294−5≈−0.292 and θ≈106.95∘.
A check with the square of a sum.a+b=4i^+3j^ has ∣a+b∣2=25. Also 14+21+2(−5)=25.
A second example. Two vectors have ∣a∣=2, ∣b∣=3 and a⋅b=−3. Then ∣a+b∣2=4+9−6=7 and ∣a−b∣2=4+9+6=19.
Practise with new numbers
Try it in Python
The program finds the dot product of the worked example in two ways, then checks the square of a sum and the Cauchy-Schwarz limit.
Common mistakes
Giving a vector as the answer. The dot product is a number.
Writing (a⋅b)⋅c. The dot product needs two vectors. A number dotted with a vector means nothing.
Thinking a⋅b=0 means that one vector is zero. It also happens when the vectors are perpendicular.
Cancelling. From a⋅b=a⋅c you cannot conclude b=c.
Using sinθ. The dot product uses the cosine. The sine belongs to the cross product, in the next course.
Remember these
a⋅b=∣a∣∣b∣cosθ=a1b1+a2b2+a3b3.
It is positive for an acute angle, zero for a right angle and negative for an obtuse angle.
a⋅a=∣a∣2 and ∣a±b∣2=∣a∣2±2a⋅b+∣b∣2.
∣a⋅b∣≤∣a∣∣b∣.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
If ∣a∣=4, ∣b∣=3 and the angle between them is 60∘, find a⋅b.
Find a⋅b for a=2i^+3j^−k^ and b=i^−2j^+4k^. Is the angle acute or obtuse?
For two vectors with ∣a∣=5 and ∣b∣=2, what is the largest value that a⋅b can have?
Does (a⋅b)⋅c make sense?
If a⋅b=a⋅c and a=0, must b=c? Give an example.
References
NCERT, Mathematics Part II for Class XII, Chapter 10, section on the scalar (or dot) product of vectors.
OpenStax, Calculus Volume 3, Chapter 2, section on the dot product.
Enroll free in The Dot Product
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.