Vectors and Components
Break a vector into components, and its arithmetic becomes ordinary arithmetic.
Before this Lesson
A 12 m mast stands on level ground, held by two guy cables running from its top down to anchor bolts. How long is each cable? What angle does one make with the mast? What angle do the two make with each other, in a triangle tilted at a slant to everything you could draw? Write each cable as three numbers, and those questions all turn into arithmetic you could do on a napkin.
An arrow is a list of numbers
A vector is a quantity with a size and a direction: a 5 kN pull toward an anchor, a 20 ft walk up a ramp. It gets a bold letter, , and its size gets bars, , a plain number that's never negative.
Start with a flat one. An arrow of length points at an angle above the x-axis. You could reach its tip another way: walk along the x-axis, then straight up. Those two legs are the arrow's components, and , and since the arrow is the hypotenuse of a right triangle, the ratios from Triangle Trigonometry give them directly:
A 10 kN pull at 30° is 8.66 kN across and 5 kN up. Those two numbers say everything the arrow says. Measure counterclockwise from the +x axis, and the signs come out on their own: at 135°, the cosine is negative and so is , because the arrow points backward along x.
Three dimensions add one more leg. Let , , and be arrows of length 1 along the x, y, and z axes. Any vector is then a recipe: steps along , along , and along . The Handbook's Vectors section opens with this form:
Those three steps trace the edges of a box, and the arrow is the box's long diagonal. The Pythagorean theorem across the floor gives the floor's diagonal. That diagonal and the height then form a second right triangle, with the arrow as its hypotenuse. Run the theorem twice, and the inner square root cancels, leaving what the Handbook prints as the Length of Vector A:
Squaring removes a negative component's sign, as long as you type and not .
Unit vectors: direction with the size divided out
A cable can only pull along its own length, so to describe that pull you need the cable's direction with its size divided out. Divide a vector by its own length, and every component scales by the same factor. The arrow keeps its direction and ends up exactly 1 long. That's a unit vector, and the Handbook prints no formula for it because it's one division:
Exam problems often give two points instead of a vector. To travel from to , x has to change by , and likewise y and z. So the arrow from to is head minus tail:
Subtract in the other order, and you get the same arrow running backward. "From" names the tail, and "to" names the head.
Direction cosines: the unit vector under another name
You can also say which way an arrow points with angles. Its direction angles, , , and , are the angles it makes with the +x, +y, and +z axes. Drop a perpendicular from the arrow's tip to any axis, and you get a right triangle with the arrow as its hypotenuse and the component as the side next to the angle. So each cosine is a component over the length, as the Handbook's Vectors section prints under Direction Cosines of A:
Those fractions are the components of the unit vector, so direction cosines are a new name for a calculation you've already done. And since a unit vector has length 1, the Handbook gives you a built-in check, which also finds a third angle from the other two:
The cable's unit vector hands over its angles directly. From , , which is the cable's angle off the vertical mast. From , . From , : a negative cosine means an angle past 90°, because the cable runs backward along x.
Sums and differences: one column at a time
Walk along , then along , with the second arrow starting at the first one's tip. Your total trip in x is the x of one plus the x of the other, and nothing that happens in y can change it. So stack the vectors, over , over , over , and each column adds on its own. Subtracting works the same way, and the Handbook's Vectors section prints both:
In the figure, and add to . Their lengths don't add: 4.12 and 3.61 total 7.73, but the sum is only 7.21 long. Lengths add only when the arrows point the same way. The difference, , is the arrow from 's tip to 's tip, which is head minus tail again.
The dot product: how much two vectors agree
Two people haul a crate with ropes. Pulling the same way, their efforts fully add. At right angles, neither helps or hinders the other. In opposite directions, they fight. The dot product puts a number on that agreement:
Here is the angle between the two arrows, placed tail to tail. The result is positive when they lean together, zero at right angles, and negative when they oppose. It's a single number with no direction, which is why the Handbook calls it a scalar product.
Problems usually give components, not an angle, and here's the pleasant surprise: you don't need the angle. Two axis arrows that match have . Two that differ have . So multiply out , all nine products, and the six mixed ones vanish. Only like with like survives. The Handbook's Vectors section prints the whole chain on one line, including the fact that order doesn't matter:
Those two forms are the same number, so setting them equal gives the angle between any two vectors. The Handbook leaves this rearrangement to you:
Let the sign ride. A negative dot product gives a negative cosine, and arccosine returns the obtuse angle by itself, as it did in the law of cosines. Many approved calculators also take dot products in a vector mode, which makes a quick check on your arithmetic.
Zero means perpendicular
At 90° the cosine is zero, so perpendicular vectors have a dot product of zero, whatever their sizes. It runs in reverse too. The Handbook's Identities list says that if , then , , or is perpendicular to .
That makes a test with no angles and no square roots: multiply the columns and add. You can't judge by eye, because only the total matters, and a zero in one column proves nothing. An unknown component works the same way. Write the dot product with the unknown in it, set it to zero, and solve.
Projection: the shadow of one vector on another
Hold a stick at a slant with the sun straight overhead. Its shadow on the ground is shorter than the stick, because the shadow is only the part of the stick that runs along the ground. Projecting onto is the same thing, with the line of as the ground. The shadow's length, , is the scalar projection.
You want that from components, and the dot product has it, with one extra factor of . Divide that out:
The ground only supplies a direction: make twice as long, and the shadow of doesn't change. So you divide by the magnitude of the vector after the word "onto." The Handbook has this in words only, saying the dot product represents the projection of onto times , with the letters the other way around. A negative result means the shadow falls behind the tail of .
To make the shadow a vector, give it a direction by multiplying by the unit vector of :
Work: only the force along the path counts
Drag a sled with a rope angled upward. Part of your pull moves the sled forward, and part just lightens it. Only the forward part does work. Carry a bucket across a level yard, and your upward lift does no work on it at all, as far as physics is concerned. Your arm may disagree.
So work is the force's projection on the path, times the length of the path, and that product is a dot product. A force against the motion gives negative work, and a force perpendicular to it gives none:
The Handbook keeps work in its Dynamics section, under Principle of Work and Energy. It calls work , saving for weight, and writes the constant-force case as , the same thing with the angle showing. Newtons times meters give joules, and pounds times feet give ft-lb.