Lesson 3 of 8 · 15 min
The scalar product in three dimensions
Calculate a · b in Cartesian form, use it to find the angle between vectors and between lines, and decide whether two vectors are parallel or perpendicular.
What you will be able to do
- Calculate and use .
- Find the angle between two vectors and the acute angle between two lines.
- Determine whether two vectors are parallel, perpendicular or neither, and find unknown components that make them so.
In two dimensions the scalar product turned an angle question into arithmetic: multiply matching components and add. In space you simply have one more pair to multiply. That is what makes it so useful: you can find the angle between two edges of a roof, or test whether two struts are at right angles, without drawing anything.
Key idea
The scalar (dot) product
where , with , is the angle between and placed tail to tail. The result is a number, not a vector.
| Property | Why it helps |
|---|---|
| Order does not matter. | |
| Expand brackets as in algebra. | |
| Turns lengths into dot products, the key to many proofs. | |
| Each is a unit vector. | |
| They are perpendicular, which is why the component formula works. |
Find .
Edit the components. When is negative? Find a that makes the dot product exactly 0 and look at the angle.
Key idea
Angle between two vectors
A positive dot product means an acute angle, zero means a right angle, and negative means an obtuse angle.
Worked example
The angle between two vectors, and between two lines
Let and .
(a) Find the angle between and , to one decimal place.
(b) Two lines have direction vectors and . Find the angle between the lines.
Step 1: Find the dot product
.
has no term, so its -component is 0.
Step 2: Find the magnitudes
and .
Step 3: Use the cosine formula
, so .
The negative dot product tells you the angle is obtuse before you even use the calculator.
Step 4: Take the acute angle for the lines
Lines meet at and ; the angle between the lines is the acute one. Equivalently, .
Try it yourself first, then check the working one step at a time.
Answer
The angle between the vectors is about ; the angle between the lines is about .
Method
Find and both magnitudes.
.
For lines, use to get the acute angle.
Watch out for
Giving as the angle between the lines.
Treating as .
Find the angle between and , in degrees.
Definition
Parallel and perpendicular
For non-zero vectors and :
- and are perpendicular if and only if .
- and are parallel if and only if for some scalar . All three components must share the same multiplier.
Which vector is parallel to ?
Worked example
When are two vectors perpendicular, or parallel?
Let and , where is a real constant.
(a) Find the values of for which and are perpendicular.
(b) Show that and are never parallel.
Step 1: Set the dot product to zero
.
Non-zero vectors are perpendicular exactly when their dot product is 0.
Step 2: Solve the quadratic
, so or .
Step 3: Check one value
For : and , and . ✓
Step 4: Write the condition for parallel vectors
Parallel means : , and .
Step 5: Show the equations are inconsistent
The third equation gives , so the second gives . But then the first says , which is false. No value of works, so and are never parallel.
For parallel vectors one value of must satisfy all three component equations at once.
Try it yourself first, then check the working one step at a time.
Answer
when or , and no value of makes them parallel.
Method
Perpendicular: set and solve.
Parallel: write as three equations and test whether one fits all three.
Watch out for
Dividing by in the first parallel equation without checking (here fails the second and third equations anyway).
Key idea
The angle between two lines
Two lines meet at two angles that add to ; the angle between the lines is the acute one. Use their direction vectors with an absolute value:
The same formula works for lines that never meet: it gives the angle between their directions.
Common mistake
Squaring a magnitude by accident
, not . If a question gives , then .
Summary
, a number.
; the sign of the dot product tells you acute, right or obtuse.
Perpendicular: . Parallel: , with one for every component.
The angle between lines is acute: use .
.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.