Dot and Cross Products
, computed coordinate-wise as . Zero dot product means perpendicular; the sign tells acute vs. obtuse.
Why the cosine appears: the law of cosines on the triangle with sides , and gives , while multiplying out the left side coordinate by coordinate gives . The two expansions must agree, which leaves exactly (the full proof is below). The lengths are positive, so the sign of the dot product is the sign of . In the figure meets three partners: gives , an acute angle; gives , a right angle; gives , an obtuse angle.
is perpendicular to both inputs (right-hand rule) with magnitude — the AREA of the parallelogram they span. For plane vectors and it collapses to the determinant on the -axis.
Why the length is an area: the parallelogram on and has base and height , and the cross product is built so that its length is that product. For plane vectors you can see it with no trigonometry. Take and , so . The parallelogram sits inside a box of area ; the pieces of the box outside it are two triangles of area , two of area and two unit squares, and . In letters, .
The face-diagonal vectors and : dot product , lengths each, so and — connecting face diagonals of a cube always form equilateral triangles.
Why the angle must be : the third side of the triangle is , also of length . All three sides are face diagonals of the unit cube, so the triangle is equilateral and each angle is . The dot product reached the same answer in one line without ever drawing the cube.
Force, velocity, momentum, electric field — anything with a magnitude AND a direction is a vector, and the dot/cross pair are the only two ways to multiply them that respect rotations. Work done is a dot product (); torque and magnetic force are cross products. Learn these two operations and you have learned the grammar of mechanics.
Are and perpendicular? Then use a dot product to find the length of .
Show the answerHide the answer
Multiply matching coordinates and add: . A zero dot product means , so the vectors are exactly perpendicular; no angle has to be computed. For the length, dot the vector with itself, because : , so . The dot product measures length as well as angle.
Projections, Components, and Work
The scalar component of along is the signed length , and the vector projection is . What is left over, , is perpendicular to , so every vector splits into a part along and a part across it.
Where the formula comes from: write and demand . Dotting both sides with removes and leaves , so is forced: it is the only multiple of that leaves a perpendicular remainder. The division by also makes the answer ignore the length of : doubling doubles the numerator, quadruples the denominator and doubles itself, which cancels exactly.
Let and . The two dot products the formula needs are and , so .
The remainder is . Check that it really is perpendicular to , since that is the property the formula was built to have: . The scalar component is , shorter than as a shadow must be, and Pythagoras closes the loop: .
A block of weight N rests on a ramp that rises for every across. Gravity is and the unit vector up the ramp is . The component of gravity along the ramp is : a pull of N down the slope.
The along-ramp part is , and the rest, , presses straight into the ramp. Its length is N. The parts , , form a right triangle because the two parts are perpendicular: . Friction is proportional to the N pressing part, which is why the same block slides more easily on a steeper ramp.
A constant force newtons moves an object in a straight line from to , in metres. The displacement is .
Only the part of along the motion does work, and that part times the distance is . So J. The negative term is the -part of the force pushing against the motion in ; the dot product books it as work taken away.
A common slip is to project with , forgetting to divide by . For and that gives , of length — longer than itself, which has length . No shadow is longer than the object. The shortcut is correct only when .
Write as a vector parallel to plus a vector perpendicular to .
Show the answerHide the answer
First the two dot products: and . The parallel part is . The perpendicular part is what is left: . Check it against : , and the two parts add back to .
Triple Products and Volume
For three vectors, . Its absolute value is the volume of the parallelepiped with edges , and it is exactly when the three vectors lie in one plane through the origin.
Why: is perpendicular to the base parallelogram and its length is the base area. Dotting it with multiplies that area by the component of along the normal, which is the height of the solid, so the result is base times height. If lies in the plane of and , the height is zero and so is the volume. The sign records orientation: positive when are arranged like the thumb, index and middle fingers of a right hand.
Find the volume of the parallelepiped on , , . First the base normal: .
Then dot with to multiply by the height: , so the volume is . Cross-check with the determinant expanded along its first row: . Two routes, one number.
Do , , lie in one plane through the origin? The determinant is .
Zero volume, so yes: the three are coplanar, and indeed . Change the last entry to : the determinant becomes , so , , span a solid of volume . One changed entry turns a flat triple into a genuine solid, which is why this test is done with exact arithmetic, not by eye.
Reordering the vectors flips the sign: for the slanted box, , because . That is not an arithmetic error, but is not a volume; the volume is . Worse is writing : is a number, and a number cannot be crossed with a vector. The brackets in are the only ones that make sense.
The points , , , are alternate corners of the unit cube. A tetrahedron has one sixth of the volume of the parallelepiped on the same three edges. Find the volume of .
Show the answerHide the answer
Take the edges from : . Dot with : . The parallelepiped has volume , so the tetrahedron has volume . This regular tetrahedron fills exactly a third of the cube; the four corners cut off are tetrahedra of volume each, and .
Proofs & Why It Matters
Apply the law of cosines to the triangle with sides , , and : .
Expand the left side coordinate-wise: . Comparing the two expansions, the and terms cancel and .
The parallelogram on has base and height , so its area is .
Now compute from the component formula; the Lagrange identity gives . Taking square roots matches the area exactly.
For every real , — a quadratic in that is never negative, so its discriminant is : .
Rearranged, , with equality exactly when for some — parallel vectors.
Seeing It: Vectors in 2D & 3D
Placing ’s tail at ’s head (or vice versa — the parallelogram shows both orders at once) lands at the same corner: . Coordinates just add: , and the picture explains why — the horizontal runs add, the vertical rises add, independently.
The diagonal of the parallelogram IS the sum; the other diagonal, from head of to head of , is the difference . Every force diagram, velocity composition, and displacement chain in physics is this one picture reused.
Draw both vectors from one point and the angle between them is captured algebraically by . For and : , so .
Reading the picture: when is small the vectors reinforce and the dot product is large and positive; as passes the cosine — and the dot product — crosses zero and turns negative. So perpendicularity is the single cleanest test in the subject: compute one number, check if it is . No angle ever needs to be found unless the problem asks for it.
The vector labelled is the shadow of on the line through — the projection . For and : and , so .
The dashed segment is what remains, , and the small square marks the right angle that DEFINES the projection: the remainder is exactly perpendicular to . The remainder’s length is the distance from ’s head to the line — which is why this one picture powers point-to-line distances, least squares, and Gram–Schmidt alike. Here the check is one line: , and the remainder has length , the distance from the point to the line through .
In three dimensions points PERPENDICULAR to the shaded parallelogram that and span — choose which of the two perpendicular directions by the right-hand rule: curl the right hand’s fingers from toward and the thumb gives (so points the OPPOSITE way: the cross product is anti-commutative). Its length equals the parallelogram’s area, : parallel vectors span no area and give the zero vector, perpendicular ones give the maximum . Normal vectors to planes, torque, and area computations all read straight off this picture. For example and give , of length .
Going Deeper: Explanations & Worked Problems
Start with lengths: in 3D, — Pythagoras applied twice, first in the floor plane to get the horizontal run , then in the vertical plane with the height .
Now ask: how much do two vectors AGREE in direction? Multiply matching coordinates and add: . Why is that a good measure? Because it is LINEAR in each slot (, straight from distributing the products), it gives (agreement with yourself is total), and — the theorem proved on the proof slide — it equals . So the sign of the dot product is the sign of : positive means the angle is acute (the vectors lean the same way), zero means perpendicular, negative means obtuse. Every fact in this topic flows from those three properties.
Step 1 — dot product: .
Step 2 — lengths: and (two Pythagorean triples).
Step 3 — solve the angle formula for : .
Step 4 — interpret: is close to , so the angle is small (); both vectors point into the first quadrant, so a small positive angle is exactly what geometry predicts. Always end with this sanity check — a negative cosine for two first-quadrant vectors would signal an arithmetic slip.
Compute .
Step 1 — the determinant recipe: .
Step 2 — perpendicularity check: ✓ and ✓, as the cross product must be orthogonal to both inputs.
Step 3 — magnitude check by the area formula: , , and , so and — matching exactly. Two independent routes to the same number is how you KNOW the computation is right.