1. Vector Notation
    1. References
    2. Problems
      1. Notation
      2. Computing magnitude and angle
      3. Notation
      4. Notation
  2. Vector Addition/Subtraction
    1. Problems
      1.   
      2.   
      3.   
  3. Unit Vectors
    1. Example
    2. Problems
      1.   
      2.   
  4. Curvilinear Unit Vectors
    1. Cylindrical
      1. Definitions and Notation
      2. Example - Writing Cylindrical Unit Vectors with Cartesian Coordinates and Unit vectors
      3. Example - Drawing Cylindrical Unit Vectors
      4. Example - Computing Cylindrical Coordinates Given Cartesian Coordinates
      5. Problem
    2. Spherical
      1. Definitions and Notation
      2. Problem - Writing Spherical Unit Vectors with Cartesian Coordinates and Unit vectors
      3. Problem - Drawing Spherical Unit Vectors
      4. Problem - Computing Spherical Coordinates Given Cartesian Coordinates
      5. Problem – Writing Vector in Spherical in Cartesian
    3. Deriving
      1. Example - Deriving unit vector relationships with a sketch I
      2. Example - Deriving unit vector relationships with a sketch II
      3. Problem - Deriving unit vector relationships with a sketch
      4. Problem - Deriving unit vector relationships
    4. Adding
      1. Problem - Adding Vectors with Curvilinear Unit Vectors
      2. Problem - Adding Vectors with Curvilinear Unit Vectors
    5. Integrating
      1. Problem - Integration of Vector with Curvilinear Unit Vectors
      2. Problem - Integration of Vector with Curvilinear Unit Vectors
    6. Problems
  5. Tangent Unit Vectors
    1. Computing
      1. Example - Computing Tangent Unit Vector
      2. Problem - Computing Tangent Unit Vector
      3. Example - Computing Tangent Unit Vector
    2. General Use
    3. Problem
  6. Normal Unit Vectors
    1. Curve
      1. Problem – Derivation
      2. Problem – Computing Normal Forces
    2. Surface
      1. Example – Finding the Normal to a Plane
      2. Problem – Finding the Normal to a Plane
  7. Dot Products
    1. Problems
      1.   
      2.   
      3.   
      4.   
      5.   
      6.   
      7.   
  8. Cross Products
  9. Triple Products

This is primarily a review of concepts related to vectors that are important for E&M. If a topic covered is unfamiliar, please review the basic concepts first. Khan Academy has a comprehensive introduction to vectors that is recommended.

The topics covered on this page are either discussed or used in Griffiths chapter 1.1–1.4.

The general form of a 2-dimensional vector is

Variations on notation include the equivalent equations

The vector can be viewed as the sum of the two vectors and . On the left-hand side of the following figure, the two components of are shown (assuming the scalar quantities and are both positive). In the middle, the sum of these components is shown.

By definition, the magnitude of is given by the Pythagorean formula

As indicated in this equation, and are equivalent – often one is used instead of the other for clarity of presentation. Another representation for the magnitude of uses the dot product – .

Common error: Referring to as “The absolute value of ”. The absolute value operator operates on a scalar, e.g., . When used with a vector, the vertical bars mean “The magnitude of ”. Both the absolute value and magnitude operations yield a positive scalar, but their calculation is different. The absolute value operation is to simply drop a negative sign. The magnitude operation requires the use of the Pythagorean formula.

If is defined to be the angle from the -axis with positive angles counterclockwise,

Writing the previous equations as

makes it clear that the sign of (or ) is due to the (or ) term and not the term that multiplies it. Although is a positive number because it is a magnitude, writing it as may make this point clearer.

Elimination of from and gives

which is expected based on the diagram on the right of the previous figure.

Every introductory physics and calculus textbook has a comprehensive introduction to vectors. The reader is encouraged to use them for review. Khan Acadamy has a comprehensive introduction to vectors that is recommended.

Several unique perspectives on vectors include

  • The Feynman Lectures on Physics, which introduces and motivates the use of vectors by the fact that many laws of physics have invariance (symmetry) under translation and rotation. In the Vector Addition/Subtraction section of these notes, I motivate the use of vectors by noting that they simplify geometric calculations for which one would usually use Pythagorean’s theorem and the Law of Cosines (which is derived from the Pythagorean theorem) multiple times.

  • The Math Centre’s Introduction to Vectors gives several examples of proving geometrical relationships using vectors (mid-point theorem and an unnamed theorem).

Is a valid expression for the magnitude of a vector? If not, explain why.

Draw and compute and , where is as defined as the angle with respect to the –axis with positive corresponding to counterclockwise rotation.

The conventional definition of a vector, its components, and the angle is , where , , and is as defined as the angle with respect to the –axis with positive corresponding to counter-clockwise rotation.

Let be defined as the angle with respect to the –axis with positive corresponding to counterclockwise rotation.

1. Write the equations for and in terms of .

2. If and , find , , , and .

If ,

1. Compute

2. Compute

3. What, if possible, are the values of and that will give ?

4. What, if possible, are the values of and that will give ?

See notes from class.

Vector connects the origin to the point at . Vector connects the origin to the point at .

Draw and label the following vectors to scale:

  • and ;

  • the unit vectors and .

Draw and label

  • , and

  • .

Compute, in terms of and and numbers

  • and

  • and

  • and

  • and

Find the vector made by connecting a line from to .

Write an equation for the vector made by connecting a line from to .

Answer

The requested vector can be formed by first computing the vectors from the origin to the given points. They are

and .

If the requested vector is defined to be , then from a diagram (draw this!), , or equivalently, . So

A unit vector is a vector with “unit length” (meaning a length of unity, that is, 1).

The “unit” in “unit vector” means “unit length”; perhaps confusingly, unit vectors do not have a unit (such as meters) – they are dimensionless.

A unit vector associated with an arbitrary vector is obtained by dividing it by its magnitude. We indicate that it is a unit vector by using a hat. So a vector such as that has magnitude has an associated unit vector

The unit vector points in the same direction as the vector used to create it because

One reason that unit vectors are useful is that they allow us to make statements of the form: “An object is 11 meters along the direction of ”.

Suppose . To find a position that is 11 meters along the direction of , first find a vector of length 1 that is in the direction of , namely, its unit vector. Then multiply this unit vector by 11 meters.

Notice how the units of meters () canceled - a unit vector is dimensionless (we also use the term “unit–less” for “dimensionless”).

It was claimed that a unit vector has a length of 1. This can be verified:

We can now form a vector for the position of the object that is 11 meters along the direction of :

Note that a unit vector can be associated with any type of vector, not just position vectors.

If , find , find the unit vector in the direction of .

If and ,

1. Find , the unit vector in the direction of .

2. Choose numbers for and , sketch and , and verify that the direction of is consistent with the unit vector that you computed.

Answer

1.

Substitution gives

Thus far, only the cartesian unit vectors , , and have been considered. There are many other coordinate systems, each of which has their own set of unit vectors. The most common curvilinear coordinate systems are cylindrical and spherical.

The unit vectors for cylindrical coordinates, , , and , are shown in the following figure at an arbitrary point . Note that the conventional symbol for the radial coordinate in cylindrical is either or , but is used in the following figure. In this course, is used for charge density, and is used for the spherical radial coordinate, so will be used instead.

  • is always parallel to the plane and points radially outward,

  • always points parallel to the –axis in the direction of increasing , and

  • is perpendicular to and and points in the direction of increasing .

The relationship between cartesian and cylindrical coordinates is

The relationship between cartesian and cylindrical unit vectors is

can be written in terms of cartesian coordinates and unit vectors by using

and . Substitution gives

As a check, compute and verify that it is .

Draw a sketch showing

  1. at the position and

  2. at the position .

Answer:

Given the position , compute .

Answer: Substitution of into and into gives and . Elimination of gives , so . Squaring and and adding gives , so and . From , it follows that . Finally, in cylindrical is the same as in cartesian, so .

Write in cartesian coordinates with cartesian unit vectors.

The unit vectors for spherical at an arbitrary point are shown in the following figure (From danfleisch.com).

  • is in the direction of a line drawn from the origin to ,

  • is tangent to a circle that passes through , is parallel to the plane, and has a center on the -axis.

  • is perpendicular to the plane that contains and .

The relationship between cartesian and spherical coordinates is

The relationship between cartesian and spherical unit vectors is

Note that the equation for in spherical coordinates is the same as that for cylindrical coordinates.

Write with cartesian coordinates and unit vectors.

Draw a sketch showing

  1. at the position and

  2. at the position .

Given the position , compute .

Write in cartesian coordinates with cartesian unit vectors.

Derive the expression using a sketch.

Solution: To solve this, we need to compute the cartesian components of . From the sketch, they are and . So, .

Check: From the figure, we expect that when , and when , , both of which are consistent with the answer.

Derive an expression for in terms of cylindrical unit vectors using a sketch.

Solution: To solve this, compute the cylindrical components of . In the figure below on the left, the three relevant unit vectors are shown. On the diagram on the right, the triangle used to compute the components of in the and directions is shown. Based on this, . Note that the negative sign appears because the component of parallel to is opposite in direction to .

Check I: , so the answer has unit length.

Check II:

From the diagram on the left, we expect that when , and when , , both of which are consistent with the answer.

Check III

Use the equations

and

to solve for . Multiply the first equation by and the second by and then add the two equations. The result is

Derive the expression using a sketch.

Derive an expression for in terms of cylindrical unit vectors then mathematically using and .

Two vectors that are not written with cartesian unit vectors:

  1. cannot be drawn unless one knows their position because the direction of the unit vectors depends on position and

  2. cannot be added, subtracted, dotted, or crossed unless the positions of the vectors are the same.

The reason is that curvilinear unit vectors depend on position. For example, in cylindrical coordinates, and depend on according to and .

This issue is discussed in Griffiths in Section 1.4.1 where he notes that there is a poisonous snake lurking in vectors expressed with curvilinear unit vectors. See also related discussions on StackExchange: 1; 2.

To see that vectors written with cylindrical unit vectors cannot be added in general, consider the vectors

at

at

which are skectched below.

Visually, these vectors point in opposite directions and so their sum should be zero. However, straightforward addition gives , which is incorrect.

To add, subtract, dot, cross, integrate, or differentiate two vectors written with curvilinear unit vectors associated with different points in space, one must first re-write the two vectors with cartesian unit vectors.

At ,

At ,

so , which is correct.

If at the position and at the position

1. Draw and and

2. Compute .

If at the position and at the position

1. Draw and and

2. Compute .

Care is also required when integrating unit vectors. Consider the integral

a common error is to factor out the unit vector and conclude

To see why this is wrong, consider a diagram of the vectors being integrated. Each vector has a length of , and the direction is given by the direction of .

If one increases the number of vectors and decreases in the figure, the sum of the vectors becomes and integral. Visually, we expect the integral to be a vector that points upwards and to the left because all of the vectors contributing to the sum are in this direction (except the first and last).

As noted earlier, the addition of vectors expressed with unit vectors in general requires first expressing them with cartesian unit vectors. Integration is a form of addition, and so this rule also applies to integration. Using the relationship , we can write the integrand using cartesian unit vectors

The cartesian unit vectors do not depend on the coordinate of integration, , so they can be factored out, giving

which has the expected direction of upwards and to the left and is consistent with the summation of the small vectors from head to tail as shown in the following figure.

Compute

and use a sketch to show that your answer has the expected direction.

Compute

and use a sketch to show that your answer has the expected direction.

Evaluate

The general equation for a unit vector that is tangent to the curve is

This equation can be derived using the following figure. At the point shown, the slope of the line is . If we consider a small horizontal displacement of , then a point on the tangent line is given by stepping upwards by the slope times .

To form the tangent vector , add the horizontal and vertical displacements as vectors

Dividing by gives a unit vector .

Note that there are two unit vectors that are tangent to a given curve. Both and are tangent to the curve shown in the previous figure. Generally, you will be given a convention to follow to determine which one to use. In mechanics, the choice will typically depend on the choice of the coordinate system, which determines the direction of positive movement. In E&M, a convention such as the right-hand rule will be used.

For curves in three dimensions, there is a more complex formula for the tangent vector that requires writing the path in parametric form. For the types of problems covered in this course, we will not need this formula.

Unit vectors can also be derived for a surface. However, there are infinitely unit vectors that are tangent to a surface. To narrow the choices, one needs to specify a curve on the surface. As a result, the formula used for computing a vector tangent to a surface is usually the formula for the unit vector that is tangent to a curve in three dimensions.

Compute the unit tangent vector to the curve .

Before computing, write down the expected answer, which for this problem can be computed without using this formula.

Answer: From a sketch of the line, or because the slope of the line is , we expect the unit tangent vector to be at a angle, so the – and –components should be equal. Substitution of into the formula gives .

Compute the unit tangent vector to the curve . Before computing, write down the expected answer when and as .

Show that the tangent unit vector to a circle centered on the origin is , which is one of the unit vectors in both cylindrical and spherical coordiinates.

Answer: For , the equation for a circle is . After computing the derivative and inserting into the equation for , you should arrive at . In cartesian coordinates, and , and . Using these gives , which is the same as the definining formula for in both cylindrical and spherical coordinates given previously.

The most common use of unit tangent vectors is in an integration involving either a force or an electric field (which is proportional to a force). For example, the equation for the work due to a force is

where the relationship was used. An alternative way of writing is as with a subscript for “parallel”, .

In the following figure, a force acts at an angle to the direction of movement of an object. The force that determines the acceleration in the –direction is .

More generally, the force along the direction of movement is , where is a unit vector in the direction of movement. In the above figure, and , so

1. Use a diagram to compute the component of in the direction of movement of the object on a frictionless inclined plane.

2. Write and in vector notation an compute the component of in the direction of movement using

Answer:

1. From the following diagram, .

Based on the grid spacing, . From the equation for , , , and , so

2. Based on the grid spacing a vector tangent to the plane is , so .

It is left to the reader to confirm that the answer from 1. is the same as the answer to 2 (bonus – do it without a calculator using trig identities: and (derivation)).

The general equation for a unit vector that is perpendicular (normal) to the curve is

Similar to the unit tangent vector, there are two unit vectors perpendicular to a curve, and , and the choice of which to use will depend on the choice of coordinate system or the right-hand rule.

A mathematical derivation of is to note that we need a vector that satisfies and . From the dot product and using the notation and ,

Using

gives

Using , gives the requirement that .

Check I: should be zero.

Check II: When , we expect the normal vector to point down and to the right or up and to the left (recall that there are two unit vectors normal to a curve at a given point). With , is proportional to , which points up and to the left.

In cylindrical coordinates, and are perpendicular and their equations are

Note that the equation for is formed by swapping the and terms in the equation for and adding a negative sign to the term. The equation for can also be formed by swapping the terms in the equation for and adding a negative sign to the term.

Use a diagram to derive the equation for .

In the following figure, the component of perpendicular to the direction of movement is .

1. Use a diagram to compute in terms of .

2. Write in vector notation an compute the component of perpendicular to the direction of movement using

In E&M, normal (perpendicular) vectors are more often used for surfaces rather than curves. The general equation for a vector perpendicular to a surface is

where and are two non–colinear vectors on the surface.

Use the equation for to find a normal unit vector for the rectangular surface shown in the following figure.

Answer: Two non–colinear vectors on the surface can be formed by drawing vectors from the corner at the origin to two other corners. These vectors are and .

as expected. If we had chosen and , the answer would have been , which is the other unit vector perpendicular to the surface. We could have also chosen one of the vectors to be the vector that connected the origin to the corner at and the other to be either or .

Use the equation for to find a normal vector for the surface when .

Comment: You should solve this using , but in class, I noted a short–cut answer is “ at ”. To see this plot the plane as viewed from a point a large distance along the –axis, as shown below. The blue line is along the cylindrical unit vector and by definition, is perpendicular to it. Using with gives . Note that the problem statement asks for “a normal vector”, so is also a valid answer.

By definition, for unit vectors,

where and are unit vectors from the same coordinate system.

By definition,

which gives nine dot products

of which three are not zero due to the dot product property of unit vectors.

The dot product is often used to denote the squared magnitude of a vector

  • Is a scalar

  • Is also called the projection of onto

  • Is distributive:

  • Is commutative:

, where is angle between and

can be used to easily compute the angle between two 3-dimensional vectors

Write in terms of and .

Write in terms of , and .

Write in terms of and .

Compute where .

Given and , compute angle between and using

  • the law of cosines or some other geometrical method

  • graphically

Give an explanation for the statement “ is the projection of onto ”.

Is it valid to also say “ is the projection of onto ”?

Show that the dot product is distributive.

Show that the dot product is commutative.

The motivation for the cross product notation is that we often find equations of the form where and are the magnitudes of vector and , respectively, and is the angle between the two vectors with along . Associated with the scalar is a direction that is perpendicular to the plane that both and lie in. Calling the normal vector , we are often interested in the quantity

Using a diagram to compute the angle between two arbitrarily oriented vectors is difficult, as is finding . It can be shown that the answer is

In general, instead of writing , we use the definition

so that

A mneomic for this equation is to evaluate the determinant of

Alternatively, one can compute the nine cross products that result from evaluating

along with the cross products for the cartesian unit vectors, which are

For problems where has one term and has two or one terms, it is easier to use this method. For example …

These cross products of unit vectors all follow from the definition . For example, if and , then the angle between them is zero, so and finaly .

They can be derived either by using the right-hand rule or a mnemonic (memory) aid for remembering this table. If you do the cross product of two consecutive unit vectors in the order indicated by the arrows in the circle shown in the following figure, the result is the remaining unit vector (the second row in the table).

If you do the cross product of two unit vectors in reverse order, the result is the remaining unit vector with a negative sign (the third row in the table).

For example, in , to go from to , your rotate clockwise, so the result is . In , you go from to by rotating counterclockwise, so the result is .

The same procedure can be used for cylindrical and spherical unit vectors by using one of the diagrams in the following figure. Note that the order of the unit vectors is the same as one usually writes the coordinates. For example, we typically write , , and when indicating a position in cartesian, cylindrical, and spherical coordinates, respectively.

Note that each component has no subscripted term corresponding to that component (e.g., component does not have or .

Above is difficult to memorize. Use the determinant method to help.

  • , where is unit vector to plane of and

  • Right-hand rule used to determine direction of

  • Distributive: =

  • Not communicative:

  • is area of parallelogram generated by and

  • Cross product of two parallel vectors is zero: , where is scalar

Using , show that (i.e., show that cross product is distributive). Assume all vectors are in the plane. (similar to p1.1 DJG89)

Using , show that .

Is (i.e., is the cross product associative?). (similar to p1.2 JDG89).

Does mean or ?

Dot and cross product combinations.

  • . Note that “alphabetical” ordering is preserved.

  • Geometrically, is a volume.

Draw a volume corresponding to by drawing three vectors and additional lines to complete the volume boundary. Use the fact that is an area. Use the diagram to argue

  • BAC-CAB rule

  • A term with more than one cross product can be simplified to have only one cross product.

Show that .

Show that .

Prove the BAC-CAB rule (DJG89 p 1.6).

Prove that (DJG89 p1.7).

Under what conditions does (DJG89 p 1.7).