Scalar Product HELM
Scalar Product HELM
Introduction
There are two kinds of multiplication involving vectors. The first is known as the scalar product
or dot product. This is so-called because when the scalar product of two vectors is calculated the
result is a scalar. The second product is known as the vector product. When this is calculated the
result is a vector. The definitions of these products may seem rather strange at first, but they are
widely used in applications. In this Section we consider only the scalar product.
' $
• know that a vector can be represented as a
directed line segment
Prerequisites • know how to express a vector in Cartesian
Before starting this Section you should . . . form
30 HELM (2008):
Workbook 9: Vectors
®
b
θ
a
b
b
θ a
a θ
Key Point 9
The scalar product of a and b is: a · b = |a| |b| cos θ
We can remember this formula as:
“The modulus of the first vector, multiplied by the modulus of the second vector,
multiplied by the cosine of the angle between them.”
HELM (2008): 31
Section 9.3: The Scalar Product
Example 8
Vectors a and b are shown in the Figure 31. Vector a has modulus 6 and vector b
has modulus 7 and the angle between them is 60◦ . Calculate a.b.
60 o
a
Figure 31
Solution
The angle between the two vectors is 60◦ . Hence
a · b = |a| |b| cos θ = (6)(7) cos 60◦ = 21
The scalar product of a and b is 21. Note that a scalar product is always a scalar.
Example 9
Find i · i where i is the unit vector in the direction of the positive x axis.
Solution
Because i is a unit vector its modulus is 1. Also, the angle between i and itself is zero. Therefore
i.i = (1)(1) cos 0◦ = 1
So the scalar product of i with itself equals 1. It is easy to verify that j.j = 1 and k.k = 1.
Example 10
Find i · j where i and j are unit vectors in the directions of the x and y axes.
Solution
Because i and j are unit vectors they each have a modulus of 1. The angle between the two vectors
is 90◦ . Therefore
i · j = (1)(1) cos 90◦ = 0
That is i · j = 0.
32 HELM (2008):
Workbook 9: Vectors
®
Key Point 10
Generally, whenever any two vectors are perpendicular to each other their scalar product is zero
because the angle between the vectors is 90◦ and cos 90◦ = 0.
Key Point 11
a · b = (a1 i + a2 j) · (b1 i + b2 j)
= a1 i · (b1 i + b2 j) + a2 j · (b1 i + b2 j)
= a1 b 1 i · i + a1 b 2 i · j + a2 b 1 j · i + a2 b 2 j · j
Using the results in Key Point 10 we can simplify this to give the following formula:
HELM (2008): 33
Section 9.3: The Scalar Product
Key Point 12
If a = a1 i + a2 j and b = b1 i + b2 j then
a · b = a1 b1 + a2 b2
Thus to find the scalar product of two vectors their i components are multiplied together, their j
components are multiplied together and the results are added.
Example 11
If a = 7i + 8j and b = 5i − 2j, find the scalar product a · b.
Solution
We use Key Point 12:
a · b = (7i + 8j) · (5i − 2j) = (7)(5) + (8)(−2) = 35 − 16 = 19
Key Point 13
If a = a1 i + a2 j + a3 k and b = b1 i + b2 j + b3 k then
a · b = a1 b 1 + a2 b 2 + a3 b 3
Example 12
If a = 5i + 3j − 2k and b = 8i − 9j + 11k, find a · b.
Solution
We use the formula in Key Point 13:
a · b = (5)(8) + (3)(−9) + (−2)(11) = 40 − 27 − 22 = −9
Note again that the result is a scalar: there are no i’s, j’s, or k’s in the answer.
34 HELM (2008):
Workbook 9: Vectors
®
Task
If p = 4i − 3j + 7k and q = 6i − j + 2k, find p · q.
Your solution
Answer
41
Task
If r = 3i + 2j + 9k find r · r. Show that this is the same as |r|2 .
Your solution
Answer
r · r = (3i + 2j + 9k) · (3i + 2j + 9k) = 3i · 3i + 3i · 2j + · · · = 9 + 0 + · · · = 94.
√ √
|r| = 9 + 4 + 81 = 94, hence |r|2 = r · r.
Key Point 14
HELM (2008): 35
Section 9.3: The Scalar Product
3. Resolving one vector along another
The scalar product can be used to find the component of a vector in the direction of another vector.
Consider Figure 32 which shows two arbitrary vectors a and n. Let n̂ be a unit vector in the direction
of n.
n̂ Q n
O θ
⎩
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎨
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎧
projection of a onto n
Figure 32
Study the figure carefully and note that a perpendicular has been drawn from P to meet n at Q.
The distance OQ is called the projection of a onto n. Simple trigonometry tells us that the length
of the projection is |a| cos θ. Now by taking the scalar product of a with the unit vector n̂ we find
a · n̂ = |a| |n̂| cos θ = |a| cos θ (since |n̂| = 1)
We conclude that
Key Point 15
Resolving One Vector Along Another
a · n̂ is the component of a in the direction of n
Example 13
Figure 33 shows a plane containing the point A which has position vector a. The
vector n̂ is a unit vector perpendicular to the plane (such a vector is called a
normal vector). Find an expression for the perpendicular distance, `, of the plane
from the origin.
n̂
n̂
A
a
O
Figure 33
36 HELM (2008):
Workbook 9: Vectors
®
Solution
From the diagram we note that the perpendicular distance ` of the plane from the origin is the
projection of a onto n̂ and, using Key Point 15, is thus a · n̂.
Example 14
Find the angle between the vectors a = 5i + 3j − 2k and b = 8i − 9j + 11k.
Solution
The scalar product
p of these two vectors √ has already been found inp Example 12 to be −9.√ The
modulus of a is 52 + 32 + (−2)2 = 38. The modulus of b is 82 + (−9)2 + 112 = 266.
Substituting these values for a · b, |a| and b into the formula for the scalar product we find
from which
−9
cos θ = √ √ = −0.0895
38 266
so that θ = cos−1 (−0.0895) = 95.14◦
In general, the angle between two vectors can be found from the following formula:
Key Point 16
HELM (2008): 37
Section 9.3: The Scalar Product
Exercises
1. If a = 2i − 5j and b = 3i + 2j find a · b and verify that a · b = b · a.
3. Use the definition of the scalar product to show that if two vectors are perpendicular, their
scalar product is zero.
1. −4.
2. 142.1◦ ,
4. 3a2 − 10b2 .
5. 22.
7. 39 units.
8. 101.1◦
38 HELM (2008):
Workbook 9: Vectors
®
Figure 34
OP1 + P1 G = OG P1 G = OG − OP1
The work done
The work done W (energy expended) in moving a charge q through a distance dS, in a direction
given by the unit vector S/|S|, in an electric field E is (defined by)
W = −qE.dS (4)
where W is in joules.
HELM (2008): 39
Section 9.3: The Scalar Product
Engineering Example 1
In free space, point charge q1 = 10 nC (1 nC = 10−9 C, i.e. a nanocoulomb) is at P1 (0, −4, 0) and
charge q2 = 20 nC is at P2 = (0, 0, 4).
[Note: Since the x-coordinate of both charges is zero, the problem is two-dimensional in the yz plane
as shown in Figure 35.]
z
k
P2 (0, 0, 4)
P1 (0, −4, 0) O y
Figure 35
(b) Where should a third charge q3 = 30 nC be placed in the yz plane so that the total field
due to q1 , q2 , q3 is zero at the origin?
Solution
(a) Total field at the origin E 1,2 = (field at origin due to charge at P1 ) + (field at origin due to
charge at P2 ). Therefore
10 × 10−9 20 × 10−9
E 1,2 = j + (−k) = 5.617j − 11.23k
4π × 8.854 × 10−12 × 42 4π × 8.854 × 10−12 × 42
(The negative sign in front of the second term results from the fact that the direction from P2 to
O is in the −z direction.)
(b) Suppose the third charge q3 = 30 nC is placed at P3 (0, a, b). The field at the origin due to the
third charge is
30 × 10−9 −(aj + bk)
E3 = × ,
4π × 8.854 × 10−12 × (a2 + b2 ) (a2 + b2 )1/2
aj + bk
where is the unit vector in the direction from O to P3
(a2 + b2 )1/2
If the position of the third charge is such that the total field at the origin is zero, then E 3 = −E 1,2 .
There are two unknowns (a and b). We can write down two equations by considering the j and k
directions.
40 HELM (2008):
Workbook 9: Vectors
®
Solution (contd.)
a b
E 3 = −269.6 2 2 3/2
j+ 2 k E 1,2 = 5.617j − 11.23k
(a + b ) (a + b2 )3/2
So
a
5.617 = 269.6 × (1)
(a2 + b2 )3/2
b
−11.23 = 269.6 × (2)
(a2 + b2 )3/2
So
a
= 0.02083 (3)
(a2 + b2 )3/2
b
= −0.04165 (4)
(a2 + b2 )3/2
a2 + b 2
Squaring and adding (3) and (4) gives = 0.002169
(a2 + b2 )3
So
(a2 + b2 ) = 21.47 (5)
Substituting back from (5) into (1) and (2) gives a = 2.07 and b = −4.14, to 3 s.f.
Task
Eight point charges of 1 nC each are located at the corners of a cube in free space
which is 1 m on each side (see Figure 36). Calculate |E| at
(0, 0, 1) A S (0, 1, 1)
(1, 0, 1) B P
(1, 1, 1)
O R (0, 1, 0)
y
(1, 0, 0) (1, 1, 0)
x D T
Figure 36
HELM (2008): 41
Section 9.3: The Scalar Product
Your solution
Work the problem on a separate piece of paper but record here your main results and conclusions.
Answer
(a) The field at the centre of the cube is zero because of the symmetrical distribution of the charges.
(b) Because of the symmetrical nature of the problem it does not matter which face is chosen in
order to find the magnitude of the field at the centre of a face. Suppose the chosen face has corners
located at P (1, 1, 1), T (1, 1, 0), R(0, 1, 0)and S(0, 1, 1) then the centre (C) of this face can be
1 1
seen from the diagram to be located at C , 1, .
2 2
The electric field at C due to the charges at the corners P, T, R and S will then be zero since the field
vectors due to equal charges located at opposite corners of the square P T RS cancel one another
out. The field at C is then due to the equal charges located at the remaining four corners (OABD)
of the cube, and we note from the symmetry of the cube, that sthedistance of each of these corners
2 2
1 1 √
from C will be the same. In particular the distance OC = + 12 + = 1.5 m. The
2 2
4
1 X qi · r i
electric field E at C due to the remaining charges can then be found using E =
4πε0 1 |ri |3
where q1 to q4 are the equal charges (10−9 coulombs) and r1 to r4 are the vectors directed from
the four corners,
√ where the charges are located, towards C. In this case since q1 = 10−9 coulombs
and |ri | = 1.5 for i = 1 to i = 4 we have
1 10−9
E= [r + r2 + r3 + r4 ] ,
4πε0 (1.5)3/2 1
1 1
2
0 2
1
where r1 = AC = 1 − 0 , r2 = BC = 1 − 0 etc.
1 1
2 1 2
1
0
1 10−9
Thus E = 4
4πε0 (1.5)3/2
0
1 10−9 10−9
and |E| = = = 19.57 V m−1
πε0 (1.5)3/2 π × 8.854 × 10−12 (1.5)3/2
42 HELM (2008):
Workbook 9: Vectors
®
Answer
(c) Suppose the chosen
edgeto be used connects A(0, 0, 1) to B(1, 0, 1) then the centre point (G)
1
will be located at G , 0, 1 .
2
By symmetry the field at G due to the charges at A and B will be zero.
We note that the distances DG, OG, s P G and SG are all equal. In the case of OG we calculate
2
1 √
by Pythagoras that this distance is + 02 + 12 = 1.25.
2
√
Similarly the distances T G and RG are equal to 2.25.
1 P qi r i
Using the result that E = gives
4πε0 |ri |3
1 1 1 1
−9
10 1 −2 2
−2 2
E= 0 + 0 + −1 + −1
4πε0 (1.25)3/2
1 1 0 0
1 1
1 −2 2
+ −1 + −1
(2.25)3/2
1 1
−9 0 0
10 1 −2 + 1 −2
=
4πε0 (1.25)3/2 (2.25)3/2
2 2
−9 0
10
= −2.02367
4πε0
2.02367
10−9 p
Thus |E| = 02 + (−2.02367)2 + (2.02367)2
4 × π × 8.854 × 10−12
= 25.72 V m−1 (2 d.p.).
HELM (2008): 43
Section 9.3: The Scalar Product
Task
If E = −50i − 50j + 30k V m−1 where i, j and k are unit vectors in the x, y
and z directions respectively, find the differential amount of work done in moving
a 2µC point charge a distance of 5 mm.
Your solution
Answer
(a) The work done in moving a 2µC charge through a distance of 5 mm towards Q is
PQ
W = −qE.ds = −(2 × 10−6 )(5 × 10−3 )E.
|P Q|
(i + 2j − 2k)
= −10−8 (−50i − 50j + 30k) · p
12 + 22 + (−2)2
10−8 (50 + 100 + 60)
= = 7 × 10−7 J
3
(b) A similar calculation yields that the work done in moving the same charge through the
same distance in the direction from Q to P is W = −7 × 10−7 J
44 HELM (2008):
Workbook 9: Vectors