Professional Documents
Culture Documents
1. Scalar Product
In this chapter we extend our vector geometry toolbox to be able to treat con-
cepts like length, angles, distance and orthogonality in the three dimensional space.
To this end we introduce a powerful tool in linear algebra, namely the scalar product,
also called dot product or inner product. This is basically a rule that associates a
number (scalar) to each pair of vectors in a very clever way.
We start by assuming a fixed length scale in the three dimensional space such that
each vector u has a determined length, denoted kuk. Angles between vectors are
given in radians and by the angle between two vectors u and v we mean the angle
between 0 and π radians formed by u and v when set to emerge from a common
point.
The word “scalar” is a synonym for “number”; the term “scalar product” is used
because the result (u|v) is a real number and not a vector.
39
40 3. DISTANCES AND ANGLES
Now consider the case when v = e is a unit vector, i.e., kek = 1. If θ is the angle
between u and e, then
(1) (u|e) = kuk cos θ.
Note that the sign of (u|v) is positive if the angle between u and v is acute, and
negative if it is obtuse.
1. SCALAR PRODUCT 41
The scalar product satisfies the following rules. ( u, v, w denote arbitrary vectors.)
(I) (u|v) = (v|u)
(II) (u + v|w) = (u|w) + (v|w)
(III) (tu|v) = t (u|v) , t ∈ R
(IV) (u|u) ≥p0 with (u|u) = 0 if and only if u = 0
(V) kuk = (u|u)
The rule (I) is called symmetry of the scalar product; (II) and (III) together are
called linearity in the first argument; (IV) is called positive definiteness.
The properties (I),(III), (IV) and (V) are immediate; (II) can be seen in the follow-
ing way: If w = e is a unit vector, then, by the geometrical interpretation of the
scalar product, we can see that (II) means precisely that
(u + v)00 = u00 + v00 .
That this is the case was shown at the end of Chap. 2, Sect. 2. This proves that
(II) holds when w is a unit vector. For general w, we now get (II) by applying the
unit vector case to the vector e in the formula (u|w) = kwk · (u|e).
Remark 2. Note that linearity in the second argument follows from the sym-
metry and the linearity in the first argument. In particular, we have (u|tv) = t(u|v).
In order to prove this let us introduce some notations. Let C be a circle with centre
M and radius r, and P , Q and R be three different points on the circle such that
−→
P R is a diameter.
We prove that the inscribed angle ∠P QR is a right angle by showing that the scalar
−→ −→
product (QP |QR) is equal to zero.
−→ −−→ −−→ −→ −−→ −−→
We have that QP = QM + M P and QR = QM + M R which gives
−→ −→ −−→ −−→ −−→ −−→
(3) (QP |QR) = (QM + M P )|(QM + M R) =
−−→ −−→ −−→ −−→ −−→ −−→ −−→ −−→
=(QM |QM ) + (QM |M R) + (M P |QM ) + (M P |M R).
−→ −→
Since kP Rk = 2r and the centre M is the midpoint of the segment P R we have
−−→ −−→ −−→ −−→
that P M = M R and hence, M P = −M R. This yields
−−→ −−→ −−→ −−→ −−→ −−→ −−→ −−→ −−→ −−→
(M P |QM ) = (−M R|QM ) = −(QM |M R) and (M P |M R) = −(M R|M R).
1. SCALAR PRODUCT 43
A basis for a plane consisting of two orthogonal unit vectors is called an orthonormal
basis (in short: ON-basis) for the plane.
then
(5) (u|v) = x1 y1 + x2 y2 + x3 y3 .
When u = v this reduces to
(6) kuk2 = x21 + x22 + x23 .
This can be regarded as the three-dimensional version of the theorem of Pythagoras.
As an example, we shall now show the following version of the addition formula for
cosines:
(7) cos(α − β) = cos α cos β + sin α sin β.
46 3. DISTANCES AND ANGLES
To this end, let e1 , e2 be an orthonormal basis for the plane and put
u = (cos α)e1 + (sin α)e2 , v = (cos β)e1 + (sin β)e2 .
Since u and v then have length 1, while the angle between them is |α − β|, the
definition of scalar product shows that
(u|v) = cos(α − β).
(We have here used the fact that cos is even: cos(α − β) = cos(β − α).)
6. Consider the vectors v1 = (1, 3, a), v2 = (1, 1, −a) and v3 = (b, −a, 1) with
respect to some orthonormal basis. Determine all real numbers a, b such
that the vectors are mutually orthogonal.
The distance between two points P = (x, y, z) and Q = (x0 , y0 , z0 ) is then given by
−→
p
P Q
= (x − x0 )2 + (y − y0 )2 + (z − z0 )2 .
Example 1. Let ` be the line through the points Q = (−2, 1, 1) and S = (0, −1, 2),
and let P = (1, 2, 1). We shall compute the distance from P to `.
−→
First note that ` has direction vector QS = (2, −2, 1), so it has the parametric
representation
x = −2 + 2t
` : y = 1 − 2t .
z = 1+ t
48 3. DISTANCES AND ANGLES
We now seek the closest point R ∈ ` to P . To this end let R = (−2+2t, 1−2t, 1+t)
−→
and we must determine t so that P R is orthogonal to the direction vector (2, −2, 1)
of `. That is, we shall have
−→ −→
0 = P R|QS = (−3 + 2t) · 2 + (−1 − 2t) · (−2) + t · 1 = 9t − 4.
−→
This gives t = 4/9 and P R = 91 (−19, −17, 4). The distance from P to ` is thus
−→
1 √ √
74
P R
= 192 + 172 + 42 = .
9 3
−→
To prove this, itsuffices to note that the orthogonal projection of the vector QP
−→
on n is equal to n|QP · n. The length of the latter vector must thus equal to the
sought distance, which proves (8).
Now suppose that Q = (x0 , xy , z0 ), P = (x, y, z), and n = (A, B, C). Then
−→
n|QP = A(x − x0 ) + B(y − y0 ) + C(z − z0 ).
If we put
D = Ax0 + By0 + Cz0 ,
then (8) can be written
(9) d = |Ax + By + Cz − D| .
3. COMPUTING DISTANCES AND ANGLES 49
The direction vector of `, i.e. the vector (3, 2, −1) must then be a normal vector of
π. Since the point (1, −1, 2) belongs to π, the equation of the plane becomes
3(x − 1) + 2(y − (−1)) + (−1)(z − 2) = 0,
i.e.,
3x + 2y − z = −1.
The distance from the point P = (5, 6, 7) to π is thus (see (11))
|3 · 5 + 2 · 6 − 1 · 7 + 1| 21
√ =√ .
2
3 +2 +12 2 14
50 3. DISTANCES AND ANGLES
x − y + z = −2
for the plane π. The distance from the point (3, 4, 2) on `2 to π is, according to
(11)
|3 − 4 + 2 + 2| 3 √
d= √ = √ = 3.
1+1+1 3
√
The distance between the lines is thus 3.
π1 : x − 2y − 2z = −3 π2 : x + 4y + z = 5.
3. COMPUTING DISTANCES AND ANGLES 51
Corresponding normal vectors are n1 = (1, −2, −2) and n2 = (1, 4, 1). The angle θ
between the planes then satisfies
(n1 |n2 ) 1 · 1 + (−2) · 4 + (−2) · 1 1
cos θ = =√ √ = −√ .
kn1 kkn2 k 12 + 22 + 22 · 12 + 42 + 12 2
This gives θ = 3π/4. This is the obtuse angle between the planes. There is also
another possibility, namely if we substitute −n1 for n1 above. This leads to the
acute angle π − θ = π/4.
Let θ denote the angle between the direction vector (1, 1, 4) of ` and the normal
vector (4, −11, −5) of π. Then
1 · 4 + 1 · (−11) + 4 · (−5) 1
cos θ = √ √ =− .
12 + 12 + 42 · 42 + 112 + 52 2
This gives θ = 2π/3, which is obtuse. Hence the acute angle between ` and the
normal to π is ψ = π − θ = π/3. The angle between ` and π is thus
ϕ = π/2 − ψ = π/6.
52 3. DISTANCES AND ANGLES
Exercises.
8. Compute the distance between the point (1, 2, 3) and the line
x = 1 − t
y = −4 + 2t .
z = 3− t
10. The line ` passes through the point (1, 2, 3) and is perpendicular to the
plane 2x − 3y + z = −3. Find the distance between ` and the point (4, 5, 6).
12. Find the distance from the plane 3x − 4y + 12z = 13 to the points (0, 0, 0)
and (2, 1, 3). Are these points on the same or on opposite sides of the plane?
14. Find the point closest to the point (−2, −2, −1) in the plane passing through
the points (1, 3, −1), (1, 1, 0), (−1, 3, 2).
intersect at a point.
b) Find the distance between the point (3, 4, 5) and the plane spanned by
`1 and `2 .
4. ANSWERS TO EXERCISES 53
16. A ray of light is emitted from the point (3, −2, −1) and reflected off the
plane x − 2y − 2z = 0. The reflected ray passes the point (4, −1, −6). At
which point does the ray hit the plane?
20. Determine the angle between the plane x+2y−z = 0 and the line (x, y, z) =
(3, 5, −1) + t(1, 1, 0).
21. A tetrahedron has corners A = (−1, 2, 0), B = (1, 3, −1), C(1, 1, 0), and
D(−1, 3, −2). Determine the angle between the plane containing the side
BCD and the line containing the edge AB.
4. Answers to Exercises
3. θ = 2π/3 √ √ p
5. The √side-lengths
√ are 3, 3, and 2. The cosines of angles are − 2/3,
5/(3 3), and 2 2/3.
6. a = ±2, b = ±4
7. π/3
√ or 2π/3.
8. 12.
√1, −1).
9. (1,
10. 3 3.
11. x + y − z = 0.
12. 1 and 25/13 respectively. The points
√ are on opposite sides of the plane.
13. a) 3x − 2y + z = 12. b) 1/ 14.
14. (1, −1, 1).
54 3. DISTANCES AND ANGLES
√
15. a) Intersection-point: (2, 1, 5). b) 16/ 30.
16. (2, 1, √
0). √
17. a) 1/ 14. b) 1/ 3.
18. x + 2y + 5z = −1.
19. a) x + 2y + z = 3. b) π/3.
20. π/3.
21. π/6.