MATH 133 Linear Algebra and Geometry • McGill University, Montreal
Revision sheet: dot product, projections and planes (MATH 133)
This sheet is not a summary of section 4.2 of Nicholson: you already have the course notes. It answers one question only, what makes students lose marks on the dot product, projections and planes in MATH 133 at McGill University, and which precise gesture avoids each loss.
Almost every error in this chapter is the same error in a different place: projecting on the wrong direction, or keeping the wrong half of the projection. Learn the two pictures in the first block and most of the traps below stop being traps.
The thread of the chapter
Every length and every angle in this chapter is a projection onto one well-chosen direction. For a line you project on its direction d and keep what is LEFT; for a plane you project on its normal n and keep the PROJECTION. A plane is known by its normal, never by a vector lying in it.
The dot product, the projection, and the two halves
•u⋅v=u1v1+u2v2+u3v3=∥u∥∥v∥cosθ, a NUMBER, with θ∈[0,π]. Its sign gives the type of angle: positive acute, zero right, negative obtuse.
•u⋅v=0 with both vectors non-zero means ORTHOGONAL. It never means that one of them is zero.
•Projection on v: projvu=∥v∥2u⋅vv, a VECTOR along v. Scalar component: ∥v∥u⋅v, a signed number.
•The leftover u−projvu is orthogonal to v, and ∥u∥2=∥projvu∥2+∥u−projvu∥2.
•Distance from Q to a LINE through P with direction d: project PQ on d and take the length of the LEFTOVER. Distance from Q to a PLANE through P with normal n: project PQ on n and take the length of the PROJECTION.
Same P and Q, two objects. For the line, the part of PQ along d is thrown away and the leftover is the distance; for the plane, the part along n IS the distance.
The point P used to describe the line or the plane is arbitrary, so a correct distance never depends on it. That is the test for which half to keep: the leftover for a line, the projection on n for a plane, are the two quantities that do not move when P moves.
A plane is a point and a normal
•Plane through P with normal n=(a,b,c): n⋅(X−P)=0, that is ax+by+cz=d with d=n⋅P. The coefficients of x, y, z ARE the normal, once everything is on the left.
•Plane perpendicular to a line: normal = direction of the line. Plane parallel to a given plane: SAME normal, new d.
•Two planes: proportional normals means parallel or identical; otherwise the angle between the planes is cosθ=∥n1∥∥n2∥∣n1⋅n2∣, acute. Perpendicular planes: n1⋅n2=0.
•Line P+td and plane: d⋅n=0 gives exactly one point; d⋅n=0 gives a line PARALLEL to the plane, inside it or not depending on whether P satisfies the equation.
•Distance from (x0,y0,z0) to ax+by+cz=d: a2+b2+c2∣ax0+by0+cz0−d∣. Between parallel planes ax+by+cz=d1 and ax+by+cz=d2 with the SAME (a,b,c): a2+b2+c2∣d1−d2∣.
No three-point plane and no line of intersection of two planes here: both need the cross product, which is the next chapter.
The mistakes that cost marks
These are the errors I correct most often in session. Each one costs marks on a paper, even when the reasoning behind it is right.
1.Dividing by the length instead of its square in a projection
2 marks, and every distance computed from it
What not to write
“projvu=∥v∥u⋅vv=38(1,2,2) for u=(4,0,2), v=(1,2,2).”
What to write
“projvu=∥v∥2u⋅vv=98(1,2,2).”
Why: The wrong version changes when v is doubled, and a shadow on a line cannot depend on which arrow names the line. With ∥v∥2 the scale factor appears twice on top and twice below and cancels. The check: u−projvu must dot to zero with v.
2.Taking the length of the projection for the distance to a line
the whole part
What not to write
“The line through the origin with direction (2,1,2) and Q=(5,4,2): projdOQ=(4,2,4), so the distance is 6.”
What to write
“The leftover is (5,4,2)−(4,2,4)=(1,2,−2), orthogonal to d, so the distance is 3 and the closest point is (4,2,4).”
Why: The projection tells you WHERE to stop on the line; it measures a length ALONG the line, which depends on the chosen point. The distance is the other side of the right triangle, and Pythagoras checks it: 45=36+9.
3.Forgetting the denominator in the distance to a plane
2 marks
What not to write
“Distance from (1,2,3) to 2x−y+2z=1: ∣2−2+6−1∣=5.”
What to write
“4+1+4∣2−2+6−1∣=35.”
Why: The numerator is the scalar component multiplied by ∥n∥. Multiply the equation by 2 and the wrong answer doubles while the plane has not moved: dividing by ∥n∥ is what makes the distance independent of how the equation is written.
4.Subtracting right-hand sides of parallel planes whose normals differ
the whole part
What not to write
“x−2y+2z=1 and 3x−6y+6z=21 are 3∣21−1∣=320 apart.”
What to write
“Dividing the second by 3: x−2y+2z=7. Same normal, so the distance is 3∣7−1∣=2.”
Why: The formula ∥n∥∣d1−d2∣ holds only when both equations use the SAME (a,b,c). The safe route needs no rescaling: take one point of the first plane, here (1,0,0), and use the point-to-plane formula on the second, 9∣3−21∣=2.
5.Reading a zero dot product between a line and a normal as perpendicular
the whole part, and every part built on it
What not to write
“(1,1,0)⋅(1,−1,5)=0, so the line (0,0,1)+t(1,1,0) is perpendicular to the plane x−y+5z=2.”
What to write
“d⋅n=0, so the line is PARALLEL to the plane. Its point (0,0,1) gives 5=2, so it does not meet the plane.”
Why: d is orthogonal to the NORMAL, so it lies along the plane. Perpendicular to the plane would mean d is a multiple of n. And parallel is not the end of the answer: one substitution decides between no point and the whole line.
6.Giving the obtuse angle between two planes
1 mark
What not to write
“n1=(1,0,1), n2=(−1,1,0), cosθ=−21, so the planes make 120∘.”
What to write
“cosθ=∥n1∥∥n2∥∣n1⋅n2∣=21, so the planes make 60∘.”
Why: The sign of a normal is arbitrary: writing the second plane with (1,−1,0) describes the same plane and gives +21. The angle between two vectors lives in [0,π]; the angle between two planes, like the angle between two lines, is the acute one.
7.Taking a vertical gap for the distance to a slanted plane
2 marks
What not to write
“The roof 3y+4z=24 is at z=5.25 above Q=(2,1,4), so Q is 1.25 m from the roof.”
What to write
“5∣3+16−24∣=1 m. The vertical gap, 1.25 m, is longer, by the factor cosθ1=45.”
From Q, the dashed vertical segment meets the roof after 1.25 m, but the solid segment along the normal reaches it after only 1 m, at a right angle.
Why: The shortest segment to a plane runs along the NORMAL, not along the z-axis. The two agree only for a horizontal plane, where n is vertical, which is exactly the one case where no formula was needed.
8.Reading the normal off an equation that is not in standard form
1 mark, plus every angle and distance computed with it
What not to write
“The plane z=3x−2y+1 has normal (3,−2,1).”
What to write
“Rewritten as 3x−2y−z=−1, the plane has normal (3,−2,−1).”
Why: The normal is read only once x, y and z are all on the left and the constant is alone on the right. The 1 in the faux line is the constant, not a coordinate of anything, and the coefficient of z is −1, not missing.
Which method to choose
Which projection the question is asking for
Read what the statement gives, a line, a plane or two vectors, before choosing a formula
Left: d⋅n=0, the line pierces the plane once. Middle and right: d⋅n=0 in both, and only a point of the line tells none from all.
If two vectors and the word angle → cosθ=∥u∥∥v∥u⋅v; the sign alone if only acute or obtuse is asked
Example: (2,1,−2)⋅(1,1,0)=3 over 32 gives 4π
If a point and a LINE P+td → project PQ on d: the projection gives the closest point, the LEFTOVER gives the distance
Example: (5,4,2) and d=(2,1,2): closest point (4,2,4), distance 3
If a point and a PLANE ax+by+cz=d → project on n: distance ∥n∥∣ax0+by0+cz0−d∣, foot Q−∥n∥2n⋅Q−dn
Example: (2,4,5) and x+2y+2z=2: distance 6, foot (0,0,1)
If a line and a plane → compute d⋅n FIRST; non-zero, substitute and solve for t; zero, test one point
Example: d⋅n=4, then 4t+2=6 gives t=1
If two planes → compare the normals: proportional, rescale and compute a distance; otherwise the acute angle from ∣n1⋅n2∣
Example: (1,0,−1) and (0,1,−1): cosθ=21, so 60∘
If a question seems to need a vector lying IN a plane, or two planes meeting in a line, it belongs to the cross product chapter: nothing on this sheet produces a normal from two directions.
How the answer is expected to be written
A marker ticks steps. Here they are in order, with the concluding sentence expected word for word.
Distance from a point to a plane, justified
When to use it: Any question that says derive, justify or show, or that gives the plane by a point and a normal
1Read the normal n from the equation written as ax+by+cz=d, and compute ∥n∥.
2Name a point P of the plane and CHECK it in the equation, in one line.
3Compute PQ and PQ⋅n.
4State the reason: the distance is the length of the projection of PQ on n, because the normal is the direction that leaves the plane fastest.
5Conclude with ∥n∥∣PQ⋅n∣ and, if asked, the foot F=Q−∥n∥2PQ⋅nn, checked in the equation.
Concluding sentence
“The distance from Q to the plane is the length of the projection of PQ on the normal: ∥n∥∣PQ⋅n∣=39=3.”
The trap: Writing the distance as ∥PQ∥. The point P was arbitrary, so its distance to Q means nothing; only the component along n does.
Marking: Typically 1 mark for the normal and a checked point, 1 for the projection argument in words, 1 for the computation, and 1 for the foot checked in the equation. A bare formula with the right number earns the computation mark only.
Check before you hand in
Five minutes of checking recover more marks than one more problem started in a hurry.
The foot goes back into the equation
Any closest point on a plane, or intersection with a line, must satisfy the plane's equation. Substitute it: two seconds, and it catches a projection divided by ∥n∥ instead of ∥n∥2.
(0,0,1) in x+2y+2z=2 gives 2: correct. The foot (−4,−8,−7) gives −34: wrong, before any other check.
The leftover dots to zero
After a projection on v, compute (u−projvu)⋅v. Anything but zero means the projection is wrong.
(1,2,−2)⋅(2,1,2)=2+2−4=0: the distance 3 to the line stands.
The rescaling test for a distance
Multiply the plane's equation by 2 in your head and redo the formula. A correct distance does not move; a distance that doubles has lost its denominator.
Q=(2,4,5) and 2x+4y+4z=4: 6∣4+16+20−4∣=6, the same 6 as with x+2y+2z=2.
Cosines between minus one and one, plane angles below ninety
A cosine outside [−1,1] means a length was not square-rooted. A negative cosine for two PLANES means the absolute value was forgotten.
323=0.71 is plausible; 9×23 would signal lengths left squared.
The typical problem, taken apart
The point of a plane closest to a given point
Find the distance from Q=(2,4,5) to the plane Π:x+2y+2z=2, the point F of Π closest to Q, and the equation of the plane through Q parallel to Π.
Step 1
Normal n=(1,2,2), ∥n∥=3. A point of Π: P=(2,0,0), since 2+0+0=2.
Why
Reading n first fixes the direction of every later move. Checking P in the equation costs one line and protects the whole computation from a point that is not on the plane.
Step 2
PQ=(0,4,5) and PQ⋅n=0+8+10=18.
Why
This one number carries everything: its sign says which side Q is on, its size over ∥n∥ gives the distance, and its size over ∥n∥2 gives the step back to the foot.
Step 3
Distance =318=6. The formula agrees: 3∣2+8+10−2∣=6.
Why
Writing the projection argument and then the formula shows the marker both the reason and the result; the agreement of the two is the first verification.
Step 4
F=Q−918n=(2,4,5)−(2,4,4)=(0,0,1). Check: 0+0+2=2, and FQ=(2,4,4)=2n, of length 6.
Why
The step back uses ∥n∥2=9, not ∥n∥=3, because it multiplies the vector n, which already has length 3. The substitution in Π is what proves it.
Step 5
Parallel plane through Q: same normal, x+2y+2z=2+8+10=20. Distance between the two planes: 3∣20−2∣=6.
Why
This is a free cross-check: the plane through Q parallel to Π is at exactly the distance from Q to Π, and the two numbers must agree.
The conclusion, written out
“Q is at distance 6 from Π, the closest point is F=(0,0,1), and the plane through Q parallel to Π is x+2y+2z=20.”
The classic mistake on this problem: Stepping back by 318n=(6,12,12) gives F=(−4,−8,−7), which gives −4−16−14=−34=2 in the equation: the foot is off the plane, and the substitution says so at once.
Learn by heart
•u⋅v=∥u∥∥v∥cosθ; zero means ORTHOGONAL, never that a vector is zero.
•projvu=∥v∥2u⋅vv: the SQUARE of the length below.
•Distance to a line: project on d, keep the LEFTOVER. Distance to a plane: project on n, keep the PROJECTION.
•ax+by+cz=d has normal (a,b,c), read only when everything is on the left.
•Line and plane: d⋅n=0, one point; d⋅n=0, PARALLEL, then test one point.
•Distance to a plane =a2+b2+c2∣ax0+by0+cz0−d∣; parallel planes only after making the normals EQUAL.
•Angle between planes = angle between normals, with ∣n1⋅n2∣: always acute.
Frequently asked questions
What is the difference between the projection and the scalar component?
The projection of u on v is a vector: it points along v and has the length of the shadow of u on that line. The scalar component is a single signed number, the dot product divided by the length of v. Its absolute value is the length of the projection, and its sign says whether the shadow points with v or against it.
How do I find the distance from a point to a plane in MATH 133?
Write the plane as ax plus by plus cz equals d, so that its normal is (a, b, c). Substitute the point into the left side, subtract d, take the absolute value, and divide by the length of the normal. The justification asked in exams is that this is the length of the projection, on the normal, of any vector joining a point of the plane to the given point.
Why do we use the normal vectors to find the angle between two planes?
Because a plane contains infinitely many directions but has only one normal direction. Each normal stands at a right angle on its plane, so turning one plane onto the other turns the normals by the same angle. Take the absolute value of the dot product of the normals so that the answer is the acute angle, since the sign of a normal is arbitrary.
How can I tell if a line is parallel to a plane or lies in it?
Compute the dot product of the direction of the line with the normal of the plane. If it is not zero, the line crosses the plane in exactly one point. If it is zero, the line is parallel to the plane, and you substitute one point of the line into the equation: if the point satisfies it the whole line lies in the plane, otherwise the line never meets it.
Practise it
Corrected exercises: Dot product, projections and planes, MATH 133 at McGill
A method is proved on a paper, not on a sheet. The set for the same chapter takes each of these traps into a problem, with the solution written out step by step.