Lecture 5 · Week 2· 21:26
Lines, planes and the cross product
Parametric and normal forms, cross product in R3.
Saved in this browser only. No account needed.
TranscriptThe full text of the lecture. Click any sentence to play the video from there.
Lines
Welcome back. In the last lecture, the dot product gave us lengths, angles and right angles. Today we use vectors to describe the simplest shapes in geometry, lines and planes. And we meet a new product that is special to three dimensions, the cross product. There are two ways to describe a line or a plane. A parametric description tells us how to reach every point. A normal description gives a test that every point passes. We will learn both, and how to move from one to the other. Let's start with a line through the origin. In lecture three we saw that the multiples of one nonzero vector d fill a line through the origin. That line is the span of d.
To get a line through some other point p, we shift the whole span by p. Every point of the new line is p, plus some multiple of d. So the points of the line are p plus t d, where t runs through all real numbers. The number t is called the parameter. When t is zero, we are at p itself. When t is one, we are at p plus d. When t is minus one, we are at p minus d. And as t slides smoothly, the point slides along the whole line.
It helps to think of t as time. A point starts at p, and moves with constant velocity d, forever in both directions. Here is the definition. Given a point p and a nonzero direction vector d in R n, the line through p with direction d is the set of all vectors p plus t d, where t is a real number. The equation x equals p plus t d is called a parametric equation of the line. In the plane, x has two coordinates, so we write it as (x, y). The equation then reads (x, y) equals p plus t d.
Let's find the line through two points, A equals (one, one), and B equals (four, three). For the direction, we take the step from A to B, which is b minus a. We subtract one coordinate at a time. In the first coordinate, four minus one is three. In the second coordinate, three minus one is two. So the direction is (three, two). So the line is x equals (one, one), plus t times (three, two). At t equals zero we are at A, and at t equals one we are at B.
Is the point (seven, five) on this line? It is, if one single value of t gives both coordinates. In the first coordinate, one plus three t equals seven, so t is two. In the second coordinate, one plus two t equals five, so t is two again. The same t works, so the point is on the line. Now try the point (two, four). The first coordinate needs t equal to one third, but the second needs t equal to three halves. No single t works, so this point is not on the line.
A line has many parametric equations. Any of its points can serve as the starting point, and any nonzero multiple of d can serve as the direction. They all describe the same set. And nothing here needs the plane. The same formula describes lines in three dimensions, or in R n. In space we write x as (x, y, z). For example, (one, zero, two) plus t times (one, two, minus one) is a line in space. Let's turn the picture and look at this line from a few different angles. From every side, it is the same straight line, through p, in the direction d.
The normal equation of a line
At school, a line in the plane is written as an equation, such as two x minus three y equals minus one. Where do such equations come from? The answer is the dot product. Take our line, through p with direction d. Now choose a vector n that is orthogonal to d. We call it a normal vector of the line. A point x lies on the line exactly when the step from p to x runs along the line. In the plane, that happens exactly when this step is orthogonal to n.
So the line is described by one equation. n dot, x minus p, equals zero. Moving the constant to the other side, n dot x equals n dot p. Writing n as (a, b), and x as (x, y), this is the familiar equation a x plus b y equals c. The coefficients of x and y are the entries of a normal vector. Let's see this with numbers. Our line goes through p equal to (one, one), with direction d equal to (three, two).
For a normal vector, swap the entries of d and change one sign: n equals (two, minus three). Two times three, plus minus three times two, is zero, so n is orthogonal to d. Now take a point x on the line. The step from p to x is a multiple of d, so it is orthogonal to n as well. Watch the dot product of n with this step as x slides along the line. It stays zero. Move x off the line, and the step is no longer orthogonal to n. The dot product is no longer zero.
So the test is n dot, x minus p, equals zero. For our line, n dot p is two minus three, which is minus one, so the test reads n dot x equals minus one. Writing x as (x, y), n dot x is two x minus three y. So the line is two x minus three y equals minus one. Now testing a point takes one line of work. For B, we get eight minus nine, which is minus one, so B is on the line. For the point (two, four), we get four minus twelve, which is minus eight, so that point is not.
Going back is just as easy. The line three x plus y equals six has normal vector (three, one), so a direction is (minus one, three). Setting x to zero gives y equals six, so the line passes through (zero, six). The two forms do different jobs. The parametric form produces points: choose any t, and out comes a point of the line. The normal form tests points: plug a point in, and see whether the equation holds.
Planes
Now let's go up one dimension. Two vectors are called parallel when one of them is a multiple of the other. In lecture three we saw that two vectors that are not parallel span a plane through the origin. Just as before, we shift that plane by a point p. Every point of the new plane is p, plus a combination s u plus t v. Here is the definition. Given a point p, and two vectors u and v that are not parallel, the plane through p with directions u and v is the set of all vectors p plus s u plus t v, where s and t are real numbers. Now there are two parameters, one for each direction.
Let's find the plane through three points. A is (one, zero, zero), B is (zero, two, zero), and C is (zero, zero, three). Each of them lies on a different axis. For the directions, we take the steps from A to the other two points. u is b minus a, and v is c minus a. For u, we subtract one coordinate at a time. Zero minus one is minus one. Two minus zero is two. And zero minus zero is zero. So u is (minus one, two, zero).
For v, zero minus one is minus one. Zero minus zero is zero. And three minus zero is three. So v is (minus one, zero, three). So the plane is x equals (one, zero, zero), plus s times u, plus t times v. As s and t vary, the point moves over the whole plane. Is the point (zero, one, three halves) on this plane? We need one pair of values, s and t, that gives all three coordinates.
The second coordinate is two s, so s is one half. The third coordinate is three t, so t is one half. Now the first coordinate is one minus s minus t, which is one minus one half minus one half, which is zero. It matches, so the point is on the plane. That worked, but it took three equations. To test points quickly, we want an equation for the plane, just as we had for lines.
The normal equation of a plane
In three dimensions, a normal vector of a plane is a nonzero vector n that sticks straight out of it, orthogonal to every direction inside the plane, like a nail hammered into a board. A point x lies on the plane through p exactly when the step from p to x is orthogonal to n. So the plane is described by the same equation as before. n dot, x minus p, equals zero. Writing n as (a, b, c), this becomes one equation, a x plus b y plus c z equals d. In three dimensions, one equation describes a plane.
The book also proves the converse. Whenever n is not the zero vector, the solutions of n dot x equals d form a plane, and n is a normal vector of it. For example, take the plane through (one, two, zero) with normal vector (two, one, two). n dot p is two plus two plus zero, which is four. So the plane is two x plus y plus two z equals four. Testing points is now instant. The point (zero, zero, two) gives zero plus zero plus four, which is four, so it is on the plane. The point (one, one, one) gives two plus one plus two, which is five, so it is not.
Setting two coordinates to zero shows where the plane meets each axis. With y and z equal to zero, two x equals four, so it meets the x axis at two. With x and z equal to zero, y equals four. And with x and y equal to zero, two z equals four, so z is two. Notice what one equation does. In the plane it gives a line, and in space it gives a plane. Each equation removes one direction. So a line in space needs two equations: it is where two planes meet. Solving such pairs of equations is the subject of lecture seven. Now back to our plane through A, B and C. We know its directions u and v. To write its equation, we need a vector that is orthogonal to both of them. In three dimensions, there is a product that makes exactly such a vector.
The cross product
The cross product of two vectors u and v in R three is a new vector, written u cross v. Its first entry is u two v three, minus u three v two. Its second entry is u three v one, minus u one v three. And its third entry is u one v two, minus u two v one. The pattern is easier than it looks. The first entry uses only the indices two and three. The second uses three and one, and the third uses one and two. Here is a way to compute each entry. Cover that row of u and v, and cross multiply the two rows that remain: top left times bottom right, minus top right times bottom left. For the middle entry, flip the sign.
Let's compute u cross v for our plane, one entry at a time. u is (minus one, two, zero), and v is (minus one, zero, three). For the first entry, cover the first row. Two times three, minus zero times zero, is six. For the second entry, cover the second row. Minus one times three, minus minus one times zero, is minus three. Flip the sign, and we get three.
For the third entry, cover the third row. Minus one times zero, minus two times minus one, is zero plus two, which is two. So u cross v is (six, three, two). Let's check that it really is orthogonal to both directions. Dotted with u, we get minus six, plus six, plus zero, which is zero. Dotted with v, we get minus six, plus zero, plus six, which is zero again. It is orthogonal to both.
That was no accident. The cross product is always orthogonal to both of its factors. This is the key fact of this lecture, so let's prove it. The proof is a careful bookkeeping of six terms. It is worth pausing to check each pair yourself, or watching it again slowly. Take u dot, u cross v, and write it out with the definition. We get u one times the first entry, plus u two times the second entry, plus u three times the third entry.
Multiplying out gives six terms. Now look for pairs. u one u two v three appears once with a plus sign, and once with a minus sign. The same happens for the other two products. Every term cancels its partner, and the sum is zero. For v dot, u cross v, we write it out in the same way, and again the six terms cancel in pairs. So u cross v is orthogonal to both u and v. This short proof is what makes the cross product so useful. Whenever we need a vector perpendicular to two given vectors, the cross product hands it to us.
Rules and length
The cross product has rules of its own, and one of them is surprising. The order matters. v cross u is minus u cross v, so swapping the factors flips the result. Let's check with our vectors, covering one row at a time. For v cross u, the entries are minus six, minus three, and minus two. That is exactly minus (six, three, two). In particular, a vector crossed with itself is the zero vector, since it equals its own negative. Apart from the order, the cross product behaves like ordinary multiplication. It distributes over addition, and scalars come out.
Of the two directions perpendicular to u and v, which one does the cross product choose? It follows the right hand rule. Curl the fingers of your right hand from u towards v, and your thumb points along u cross v. For example, the first axis vector crossed with the second is the third. The length of the cross product has a meaning too. It comes from an identity, which the book proves by expanding both sides. The squared length of u cross v equals the squared length of u, times the squared length of v, minus u dot v squared. Now put in the angle formula from the last lecture. u dot v is the length of u, times the length of v, times the cosine of theta. So the right side becomes the squared lengths, times one minus cosine squared, which is sine squared.
Taking square roots, the length of u cross v is the length of u, times the length of v, times the sine of theta. And that is the area of the parallelogram with sides u and v. Its base is the length of u, and its height is the length of v, times the sine of theta. For our vectors, the length of (six, three, two) is the square root of thirty six plus nine plus four. That is the square root of forty nine, which is seven. So the parallelogram has area seven, and the triangle A B C has half that area, seven halves.
One more consequence. The cross product is zero exactly when the parallelogram is flat, that is, when u and v are parallel. So the cross product also gives a test for parallel vectors.
Try it yourself
The cross product lives in space, and a flat screen shows only one view of it. So this lecture comes with a figure that you can turn and change yourself, on the lecture page at opensemester dot com. Here it is. u is coral, v is blue, and u cross v is green. The gold parallelogram is the one that u and v span. Drag the picture to turn the space around. From every side, the green arrow stands at a right angle to both u and v.
Now change the entries. As the first entry of v changes, the cross product turns with it, and its length always matches the area of the parallelogram. Show v cross u, and the arrow flips to the other side. Swapping the factors changes the sign. And when v is a multiple of u, the parallelogram is flat, and the cross product shrinks to zero.
Back to our example, and set it turning. Try your own vectors, and predict where the green arrow will point before you look. The address is on the screen.
Planes from three points
Now we can finish the problem we started. The plane through A, B and C has directions u and v, so u cross v, which is (six, three, two), is a normal vector. Using the point A, n dot a is six times one, plus three times zero, plus two times zero, which is six. So the plane is six x plus three y plus two z equals six. Let's check the other two points. B gives three times two, which is six. C gives two times three, which is six. Both are on the plane.
And the point (zero, one, three halves), which took three equations before, now takes one line. Zero, plus three, plus three, is six. It is on the plane. The recipe works for every plane. Given a point p and two directions, their cross product is a normal vector n, and n dot, x minus p, equals zero is the equation. The book proves that this equation describes exactly the same plane. The normal vector also measures distance. How far is the origin from this plane? The shortest path from a point to a plane runs straight along the normal.
Here is why. From the point q, go straight to the foot of the perpendicular, f. Any other point x of the plane is reached by a further step inside the plane, which is orthogonal to the first. By Pythagoras, the path to x is longer. Let's find the distance. We use two facts about the foot f. First, f lies on the plane, so n dot f equals d. Second, the step from f to q runs along the normal, so it is a multiple of n. We write f equals q minus k n, where the factor k says how many copies of n fit between f and q. Now we combine the two facts. Put q minus k n in place of f in the first one: n dot, q minus k n, equals d. Multiplying out gives n dot q, minus k times n dot n, and n dot n is the squared length of n. So k is n dot q minus d, divided by the squared length of n.
The distance is the length of the step k n, which is the absolute value of k, times the length of n. One factor of the length of n cancels, so the distance from q to the plane is the absolute value of n dot q minus d, divided by the length of n. For the origin and our plane, n dot q minus d is zero minus six, which is minus six. Its absolute value is six, and the length of n is seven. So the distance is six sevenths. Another point, q equal to (one, one, one). n dot q is six plus three plus two, which is eleven, and eleven minus six is five. So this point is five sevenths away. The sign is now plus, not minus: this point is on the other side of the plane from the origin.
One more, with a different plane. Take the point (one, two, three) and the plane x plus two y plus two z equals one. Its normal vector is (one, two, two), with length three. n dot q is one plus four plus six, which is eleven, and eleven minus one is ten. So the distance is ten thirds. Measuring along a direction like this is a theme we will come back to. In week twelve, orthogonal projection becomes one of the main tools of the course.
Summary
Let's summarise. A line through p with direction d is the set of points p plus t d. A plane through p with directions u and v is the set of points p plus s u plus t v. In all of these, the vector x is a point of the shape. It is (x, y) in the plane, and (x, y, z) in space. A normal equation describes the same shapes as a test. n dot, x minus p, equals zero gives a line in the plane, and a plane in space.
The cross product of two vectors in R three is orthogonal to both of them, and its length is the area of the parallelogram they span. Swapping the factors flips its sign. With it, three points give the equation of their plane, and the normal vector gives the distance from a point to the plane. This lecture completes chapter one. Before the next lecture, read section one point five of the course book, where every proof is written out, and do the lecture check on this lecture's page at Open Semester dot com. Next time, we step back and ask which numbers we may use as scalars at all. Lecture six is about fields. See you there.
In this lecture
- Lines
- The normal equation of a line
- Planes
- The normal equation of a plane
- The cross product
- Rules and length
- Try it yourself
- Planes from three points
- Summary
Materials
Try it
The cross product in space
Drag the picture to turn the space around, change the entries of u and v with the sliders, or pick an example. u × v always stands at right angles to both u and v, and its length is the area of the gold parallelogram.
Check yourself
3 questions, from warm-up to stretch
Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.
- Question 1 of 3 Warm-up
Let be the line through with direction vector . Is the point on ? If it is, for which value of the parameter ?
Hint 1 of 2
The point is on exactly when one single gives . Write the equation one coordinate at a time.
Hint 2 of 2
First coordinate: . Second coordinate: . Solve each for and compare.
Worked solution
- The point is on when for one single .
- First coordinate: , so . Second coordinate: , so .
- The same works in both, so is on the line. Check: .
- Question 2 of 3 Core
Compute for and .
Hint 1 of 2
Use the definition: .
Hint 2 of 2
First entry: . The second entry is : watch its sign.
Worked solution
- First entry: .
- Second entry: .
- Third entry: . So .
- Check: and , so it is orthogonal to both.
- Question 3 of 3 Stretch
Find a normal equation of the plane through , and . Write it as .
Hint 1 of 2
Take the directions and . Their cross product is a normal vector of the plane.
Hint 2 of 2
and , so . Any nonzero multiple of is a normal vector too; then .
Worked solution
- Directions in the plane: and .
- Normal vector: .
- Its multiple is a normal vector too, and it starts with . Then .
- So the plane is , with , , . Check: gives and gives .
How did it go?