1.1 Vector Algebra
1.1.1 Vector Operations
If you walk 4 miles due north and then 3 miles due east (Fig. 1.1), you will have gone a total of 7 miles, but you're not 7 miles from where you set out-you're only 5. We need an arithmetic to describe quantities like this, which evidently do not add in the ordinary way. The reason they don't, of course, is that displacements (straight line segments going from one point to another) have direction as well as magnitude (length), and it is essential to take both into account when you combine them. Such objects are called vectors: velocity, acceleration, force and momentum are other examples. By contrast, quantities that have magnitude but no direction are called scalars: examples include mass, charge, density, and temperature.
I shall use boldface ( , , and so on) for vectors and ordinary type for scalars. The magnitude of a vector is written or, more simply, . In diagrams, vectors are denoted by arrows: the length of the arrow is proportional to the magnitude of the vector, and the arrowhead indicates its direction. Minus ( ) is a vector with the same magnitude as A but of opposite direction (Fig. 1.2). Note that vectors have magnitude and direction but not location: a displacement of 4 miles due north from Washington is represented by the same vector as a displacement 4 miles north from Baltimore (neglecting, of course, the curvature of the earth). On a diagram, therefore, you can slide the arrow around at will, as long as you don't change its length or direction.
We define four vector operations: addition and three kinds of multiplication.
(i) Addition of two vectors.. Place the tail of at the head of ; the sum, , is the vector from the tail of to the head of (Fig 1.3). This rule generalizes the obvious procedure for combining two displacements. Addition is commutative:
3 miles east followed by 4 miles north gets you to the same place as 4 miles north followed by 3 miles east. Addition is also associative:
To subtract a vector, add its opposite (Fig. 1.4):
(ii) Multiplication by a scalar. Multiplication of a vector by a positive scalar a multiplies the magnitude but leaves the direction unchanged (Fig. 1.5). (If a is negative, the direction is reversed.) Scalar multiplication is distributive:
(iii) Dot product of two vectors. The dot product of two vectors is defined by
where is the angle they form when placed tail-to-tail (Fig. 1.6). Note that is itself a scalar (hence the alternative name scalar product). The dot product is commutative, and distributive
Geometrically, is the product of A times the projection of B along A (or the product of B times the projection of A along B). If the two vectors are parallel, then . In particular, for any vector A If A and B are perpendicular, then
Example 1.1
Let (Fig 1.7), and calculate the dot product of with itself.
Solution or
This is the law of cosines.
(iv) Cross product of two vectors. The cross product of two vectors is defined by
where is a unit vector (vector of magnitude 1) pointing perpendicular to the plane of A and B. (I shall use a hat to denote unit vectors.) Of course, there are two directions perpendicular to any plane: "in" and "out." The ambiguity is resolved by the right-hand rule: let your fingers point in the direction of the first vector and curl around (via the smaller angle) toward the second; then your thumb indicates the direction of . (In Fig. 1.8, points into the page; points out of the page.) Note that is itself a vector (hence the alternative name vector product). The cross product is distributive but not commutative. In fact,
Geometrically, is the area of the parallelogram generated by and (Fig 1.8). If two vectors are parallel, their cross product is zero. In particular, for any vector A.
1.1.2: Vector Algebra: Component Form
In the previous section, I defined the four vector operations (addition, scalar multiplication, dot product, and cross product) in "abstract" form-that is, without reference to any particular coordinate system. In practice, it is often easier to set up Cartesian coordinates x, y, z and work with vector components. Let , , and be unit vectors parallel to the x, y, and z axes, respectively (Fig. 1.9(a)). An arbitrary vector A can be expanded in terms ofthese basis vectors (Fig. 1.9(b)):
The numbers , , and are the "components" of A; geometrically, they are the projections of A along the three coordinate axes ( ). We can now reformulate each of the four vector operations as a rule for manipulating components:
Rule (i): To add vectors, add like components.
Rule (ii): To multiply by a scalar, multiply each component.
Because , and are mutually perpendicular unit vectors
Accordingly,
Rule (iii): To calculate the dot product, multiply like components and add. In particular, so
Similarly,
Therefore,
This cumbersome expression can be written more neatly as a determinant:
Rule (iv): To calculate the cross product, form the determinant whose first row is , whose second row is A, and whose third row is B.
Example 1.2
Find the angle between the face diagonals of a cube.
Solution We might as well use a cube of side 1, and place it as shown in Fig 1.10, with one corner at the origin. The face diagonals and are
So, in component form, On the other hand, in "abstract" form, Therefore, Of course, you can get the answer more easily by drawing in a diagonal across the top of the cube, completing the equilateral triangle. But in cases where the geometry is not so simple, this device of comparing the abstract and component forms of the dot product can be a very efficient means of finding angles.
1.1.3: Triple Products
Since the cross product of two vectors is itself a vector, it can be dotted or crossed with a third vector to form a triple product.
(i) Scalar triple product: . Geometrically, is the volume of the parallelpiped generated by A, B, and C, since is the area of the base, and is the altitude (Fig. 1.12). Evidently, for they all correspond to the same figure. Note that "alphabetical" order is preserved - in view of , the "nonalphabetical" triple products have the opposite sign. In component form, Note that the dot and cross can be interchanged: (this follows immediately from Eq. 1.15); however, the placement of the parentheses is critical: is a meaningless expression - you can't make a cross product from a scalar and a vector.
(ii) Vector triple product: . The vector triple product can be simplified by the so-called BAC-CAB rule: Notice that is an entirely different vector (cross-products are not associative). All higher vector products can be similarly reduced, often by repeated application of , so it is never necessary for an expression to contain more than one cross product in any term. For instance,
1.1.4: Position, Displacement, and Separation Vectors
The location of a point in three dimensions can be described by listing its Cartesian coordinates (x, y, z). The vector to that point from the origin () is called the position vector (Fig 1.13):
I will reserve the letter for this purpose. Its magnitude, is the distance from the origin, and is a unit vector pointing radially outward. The infinitesimal displacement vector from to is (We could call this , since that's what it is, but it is useful to have a special notation for infinitesimal displacements.)
In electrodynamics, one frequently encounters problems involving two points - typically a source point, , where an electric charge is located, and a field point at which you are calculating the electric or magnetic field (Fig 1.14). It pays to adopt right from the start some short-hand notation for the separation vector from the source point to the field point. I shall use for this purpose the letter : Its magnitude is and a unit vector in the direction from to is In Cartesian coordinates, (from which you can appreciate the economy of the notation).
1.1.5: How Vectors Transform
The definition of a vector as "a quantity with a magnitude and direction" is not altogether satisfactory: What precisely does "direction" mean? This may seem a pedantic question, but we shall soon encounter a species of derivative that looks rather like a vector, and we'll want to know for sure whether it is one.
You might be inclined to say that a vector is anything that has three components that combine properly under addition. Well, how about this: We have a barrel of fruit that contains pears, apples, and bananas. Is a vector? It has three components, and when you add another barrel with pears, apples, and bananas the result is pears, apples, bananas. So it does add like a vector. Yet it's obviously not a vector, in the physicist's sense of the word, because it doesn't really have a direction. What exactly is wrong with it?
The answer is that does not transform properly when you change coordinates. The coordinate frame we use to describe positions in space is of course entirely arbitrary, but there is a specific geometrical transformation law for converting vector components from one frame to another. Suppose, for instance, the system is rotated by angle , relative to , about the common axes. From Fig. 1.15, while
We might express this conclusion in matrix notation: More generally, for rotation about an arbitrary axis in three dimensions, the transformation law takes the form or, more compactly, where index 1 stands for x, 2 for y, and 3 for z. The elements of the matrix R can be ascertained, for a given rotation, by the same sort of trigonometric arguments as we used for a rotation about the x axis. Now: Do the components of transform this way? Of course not - it doesn't matter what coordinates you use to represent positions in space; there are still just as many apples in the barrel. You can't convert a pear into a banana by choosing a different set of axes, but you can turn in into . Formally, then, a vector is any set of three components that transforms in the same manner as a displacement when you change coordinates. As always, displacement is the model for the behavior of vectors.
By the way, a (second-rank) tensor is a quantity with nine components, which transform with two factors of : or, more compactly, In general, an n-th rank tensor has indices and components, and transforms with factors of . In this hierarchy, a vector is a tensor of rank 1, and a scalar is a tensor of rank zero.