Guth opens 8.07 with a review of vector algebra and a question: why is the dot product |A||B| cos θ, and not some other function of the angle? A vector has a magnitude and a direction but no position; vectors add head to tail and can be scaled. The dot and cross products are both unchanged by rotating the two vectors together, and both are distributive. Those two properties alone force the dot product to be a constant times |A||B| cos θ and the cross product a constant times |A||B| sin θ n̂: with the basis vectors, rotational invariance makes êx · êx = êy · êy = êz · êz, and a half-turn about the x axis plus the distributive law makes êx · êy = 0. In components, A · B = AxBx + AyBy + AzBz, and A × B is a determinant.
8.07 is MIT's second, intermediate course in electromagnetism, after 8.02, taught at the level of Griffiths' Introduction to Electrodynamics. Guth's first set of notes, for the opening lecture on 5 September 2012, reviews vector algebra (notes pp. 1–5). Most of it will be familiar from vectors, the dot product and the cross product, so this page goes quickly over the basics. What is new is a question Guth asks along the way: why does the dot product contain cosθ, and the cross productsinθ? His answer, that two simple properties leave no other choice, is the first taste of an idea that runs through the whole course: what a quantity must look like is fixed by how it behaves under rotations. (MIT's material for this lecture is the typed notes only; there is no video. This page follows them in order, in its own words, with its own example.)
A vector has no position. Two arrows that are parallel, point the same way and have the same length are the same vector, wherever they are drawn. (An electric field assigns a vector to each point of space, but each of those vectors is still just a magnitude and a direction.) The next notes show how a vector's components change under a rotation, the starting point of the more careful definition used later in physics. Here, rotating a vector simply means turning its arrow.
The notes list the operations, mostly by small drawings (notes p. 1):
Magnitude: the length of A, written ∣A∣ or often simply A. (The notes write it with double bars and use a three-line equals sign for "is defined to be".)
Negation: −A has the same length as A and the opposite direction.
Addition: place the tail of B at the head of A; the arrow from the tail of A to the head of B is C=A+B.
Subtraction is defined through the first two:
Subtraction
A−B=A+(−B)
In words
vector capital A minus vector B equals vector capital A plus (- vector B )
where θ is the angle between A and B when their tails are put together. It has four properties:
Rotational invariance: rotating both vectors together, by the same rotation, does not change the value. Lengths and the angle between the arrows are unchanged by a rotation.
and hired a very good advertising agency to sell it. (The notes mark it with a vertical bar after the product, with the subscript "Guth"; here a subscript G marks it. They also point out the pun in "product".) Could it compete? Guth's tentative answer is that it would have a serious marketing problem: it is not distributive. A quick example shows this. Take A=e^x, B=e^y and C=−e^y, three unit vectors along the coordinate axes. Each of B and C is at 90∘ to A, so each sine product is 1, and the sum of the two is 2. But B+C is the zero vector, and its product with A is 0. The left side of the distributive law gives 0, the right side 2.
where n^ is a unit vectorperpendicular to both A and B. Two opposite directions are perpendicular to both; the right-hand rule picks one. Curl the fingers of the right hand from A towards B, through the smaller angle, and the thumb points along n^. (The notes show this with a picture of a right-handed screw, credited to another website: turning it from A towards B drives it along n^. This page describes the rule in words.) Its properties mirror those of the dot product:
Rotational invariance, in a slightly different sense: if both vectors are rotated by the same rotation, the cross product is rotated by that rotation too. Since the result is a vector, "unchanged" would be the wrong demand.
The notation varies between books: Griffiths writes x^, y^, z^ for the same unit vectors, and many other books, like the 18.02 pages, use i^, j^, k^. Adding vectors means adding their components:
Addition in components
A+B=(Ax+Bx)e^x+(Ay+By)e^y+(Az+Bz)e^z
In words
vector capital A plus vector B equals the quantity capital A sub x plus B sub x, e hat sub x hat plus the quantity capital A sub y plus B sub y, e hat sub y hat plus the quantity capital A sub z plus B sub z, e hat sub z hat
vector capital A dot vector B equals the quantity capital A sub x e hat sub x hat plus capital A sub y e hat sub y hat plus capital A sub z e hat sub z hat, all times the quantity B sub x e hat sub x hat plus B sub y e hat sub y hat plus B sub z e hat sub z hat
e hat sub x hat times e hat sub x hat equals e hat sub y hat times e hat sub y hat equals e hat sub z hat times e hat sub z hat equals 1, e hat sub x hat times e hat sub y hat equals 0
Now Guth returns to his question (notes p. 4). Suppose all we know about some product A⋅B is that it is rotationally invariant and distributive (and that numbers come out of it as in the scalar rule; the notes use this without comment). The expansion above used only the distributive law, so it still holds; what we no longer know are the nine products of basisvectors. Two steps fix them.
The same basisvector twice. A rotation can turn e^x into e^y or e^z. Rotational invariance then says that e^x⋅e^x, e^y⋅e^y and e^z⋅e^z are all equal to one constant.
Two different basisvectors. Turn the pair (e^x,e^y) through 180∘ about the x axis. The vectore^x stays where it is and e^y becomes −e^y, so rotational invariance gives
A half-turn about the x axis
e^x⋅e^y=e^x⋅(−e^y)
In words
e hat sub x hat times e hat sub y hat equals e hat sub x hat times (- e hat sub y hat )
A half-turn about the x axis leaves the x unit vector in place and turns the y unit vector into its opposite, so the pair (x, y) and the pair (x, minus y) are rotated copies of each other. (Arrows drawn twice their unit length for clarity.)
So the sum e^x⋅e^y+e^x⋅(−e^y) is 2e^x⋅e^y. But the distributive law turns the same sum into a product with the zero vector:
e hat sub x hat times e hat sub y hat plus e hat sub x hat times (- e hat sub y hat ) equals e hat sub x hat times the quantity e hat sub y hat plus (- e hat sub y hat ), equals e hat sub x hat dot vector 0 equals 0
(and a product with the zero vector is zero, since 0=0e^x and numbers come out of the product). So e^x⋅e^y=0, and likewise for every pair of different basisvectors. The expansion then leaves
The most general such product
A⋅B=const(AxBx+AyBy+AzBz)
In words
vector capital A dot vector B equals const the quantity capital A sub x B sub x plus capital A sub y B sub y plus capital A sub z B sub z
This had better agree with const∣A∣∣B∣cosθ, and Guth shows it does by using rotational invariance once more: rotate both vectors so that A points along the positive x axis. Then Ax=∣A∣ and Ay=Az=0, so the product is constAxBx. And Bx=∣B∣cosθ, where θ is the angle between B and the x axis, which is now also the angle between B and A. The cosine was never a free choice.
vector capital A cross vector B equals the quantity capital A sub x e hat sub x hat plus capital A sub y e hat sub y hat plus capital A sub z e hat sub z hat, all times the quantity B sub x e hat sub x hat plus B sub y e hat sub y hat plus B sub z e hat sub z hat
Now the product of a basisvector with itself vanishes (the angle is zero), and two different ones give the third, with a sign set by the right-hand rule:
Cross products of the basis vectors
e^x×e^x=e^y×e^y=e^z×e^z=0,e^x×e^y=e^z
In words
e hat sub x hat times e hat sub x hat equals e hat sub y hat times e hat sub y hat equals e hat sub z hat times e hat sub z hat equals vector 0, e hat sub x hat times e hat sub y hat equals e hat sub z hat
together with its cyclic permutations (x→y→z→x): e^y×e^z=e^x and e^z×e^x=e^y. Reversing the order reverses the sign, for example e^y×e^x=−e^z. (The typed notes print this last relation as "e^y×e^z=−e^z", a typing slip: the order must be e^y×e^x, by anticommutativity.) Six of the nine terms survive, and they collect into
vector capital A cross vector B equals the quantity capital A sub x B sub y minus capital A sub y B sub x, e hat sub z hat plus the quantity capital A sub y B sub z minus capital A sub z B sub y, e hat sub x hat plus the quantity capital A sub z B sub x minus capital A sub x B sub z, e hat sub y hat
which is the same as a determinant, expanded along its first row:
Cross product as a determinant
A×B=e^xAxBxe^yAyBye^zAzBz
In words
vector capital A cross vector B equals e hat sub x hat e hat sub y hat e hat sub z hat; capital A sub x capital A sub y capital A sub z; B sub x B sub y B sub z
Worked example: two vectors, before and after a rotation#
Worked example
Products of two vectors, and a rotation check
Take A=(2,−1,3) and B=(1,4,−2) in components along e^x, e^y, e^z. Find A⋅B, the angle between them, and A×B. Then rotate both vectors by 90∘ about the z axis and check the two kinds of rotational invariance.
Dot product and angle
A⋅B=2×1+(−1)×4+3×(−2)=2−4−6=−8. The lengths are ∣A∣=4+1+9=14 and ∣B∣=1+16+4=21, so cosθ=−8/294≈−0.467 and θ≈117.8∘. The vectors are more than a right angle apart, as the negative sign says.
Cross product
With the component formula: the x component is AyBz−AzBy=2−12=−10, the y component AzBx−AxBz=3+4=7, the z component AxBy−AyBx=8+1=9. So A×B=(−10,7,9). Checks: it is perpendicular to both, since A⋅(A×B)=−20−7+27=0 and B⋅(A×B)=−10+28−18=0; and its length, 100+49+81=230≈15.17, equals ∣A∣∣B∣sinθ=294−64, because sin2θ=1−cos2θ.
Rotate both by 90° about z
A quarter-turn about the z axis (counterclockwise seen from above) sends e^x→e^y and e^y→−e^x, so a vector(x,y,z) becomes (−y,x,z). Then A′=(1,2,3) and B′=(−4,1,−2). Their dot product is −4+2−6=−8: unchanged. Their cross product is (2×(−2)−3×1,3×(−4)−1×(−2),1×1−2×(−4))=(−7,−10,9), which is exactly (−10,7,9) turned by the same quarter-turn. The dot product is invariant; the cross product rotates along with its factors.
A vector is a quantity with a magnitude and a direction, and no position. Vectors can be negated, added head to tail, subtracted and multiplied by scalars.
The proof: rotations make the basis vectors' products with themselves equal, a half-turn about the x axis gives e^x⋅e^y=e^x⋅(−e^y), and the distributive law makes the sum zero.
In components, A⋅B=AxBx+AyBy+AzBz, and A×B is the determinant with rows e^x,e^y,e^z; then Ax,Ay,Az; then Bx,By,Bz.
The z axis: in ẑ, Griffiths' name for the unit vector ê_z, in the cyclic order x → y → z; in the worked example also the z component of a vector, (x, y, z) → (−y, x, z). Say it: “z”.
The x axis: in x̂, Griffiths' name for the unit vector ê_x, in the cyclic order x → y → z; in the worked example also the x component of a vector, (x, y, z) → (−y, x, z). Say it: “x”.
The y axis: in ŷ, Griffiths' name for the unit vector ê_y, in the cyclic order x → y → z; in the worked example also the y component of a vector, (x, y, z) → (−y, x, z). Say it: “y”.
A third vector C: the sum A + B in the addition rule, a third factor in the distributive laws, and −ê_y in the counterexample to the sine product. Say it: “C”.
A way of multiplying two vectors that gives a number: multiply matching components and add, or lengths times the cosine of the angle between them. Explained in Vectors and the dot product.
A way of multiplying two vectors that gives a third vector, at right angles to both, as long as the area of their parallelogram. Explained in Torque and the cross product.
Mass times velocity: a vector that measures a body's quantity of motion and keeps its total when no outside force acts. Explained in Momentum and impulse.
The field made by magnets and moving charges, which pushes sideways on other moving charges and turns compass needles. Explained in Magnetic fields and magnetic force.
A way to find a direction with the right hand: curl the fingers from the first vector to the second; the thumb gives the result. Explained in Magnetic fields and magnetic force.
A set of independent vectors from which every vector in a space can be built, in exactly one way, as a combination. Explained in Independence, basis and dimension.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
Unchanged by a given transformation, such as moving to another frame, turning the axes or changing the gauge. Explained in Symmetry and Galilean invariance.
The vector of a function's partial derivatives; it points the way the function increases fastest, and its length is that fastest rate. Explained in Graphs, straight lines and slope.
A measure of how much a vector field spreads out from each point: the amount flowing out of a tiny region per unit size. Explained in Flux and the normal form of Green's theorem.
The theorem that the flux of a vector field out of a closed surface equals the integral of its divergence over the region inside. Explained in Flux through graphs and the divergence theorem.
The rule that the flux of a vector field's curl through a surface equals the field's line integral round the edge of that surface. Explained in Stokes' theorem.
Something accepted as true, without proof, so that an argument or calculation can proceed; to assume is to accept it so.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).