MATH 133 Linear Algebra and Geometry • McGill University, Montreal

Corrected exercises: dot product, projections and planes (MATH 133)

This is the corrected exercise set for the dot product chapter of MATH 133, Linear Algebra and Geometry, the first-year course at McGill University in Montreal, section 4.2 of Nicholson. It covers the dot product and angles, orthogonality, the projection of one vector on another, the scalar equation of a plane, the intersection of a line with a plane, angles between planes and every distance the chapter asks for. All numbers reduce by hand, as they must in an exam without a calculator.

The thread running through the whole set: every length and every angle here is a PROJECTION onto one well-chosen direction, and for a plane that direction is always the normal n\mathbf{n}, never a vector lying in the plane. The distance from a point to a line is what is LEFT after projecting on the direction of the line; the distance from a point to a plane is the projection ITSELF, on the normal. Parallel planes, perpendicular planes, lines parallel to a plane and angles between planes are all read off the normals.

The traps named explicitly in the solutions: dividing by ∥v∥\|\mathbf{v}\| instead of ∥v∥2\|\mathbf{v}\|^2 in a projection, taking the length of the projection for the distance to a line, forgetting to divide by ∥n∥\|\mathbf{n}\| in the distance to a plane, subtracting right-hand sides of parallel planes whose normals were not made equal, reading d⋅n=0\mathbf{d} \cdot \mathbf{n} = 0 as perpendicular when it means parallel, reporting 135∘135^{\circ} as the angle between two planes, and taking a vertical gap for the distance to a slanted plane.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 133 chapter →

Course recap

  • • u⋅v=u1v1+u2v2+u3v3=∥u∥ ∥v∥cos⁡θ\mathbf{u} \cdot \mathbf{v} = u_1v_1 + u_2v_2 + u_3v_3 = \|\mathbf{u}\|\,\|\mathbf{v}\|\cos\theta, with θ∈[0,π]\theta \in [0, \pi]; u⋅u=∥u∥2\mathbf{u} \cdot \mathbf{u} = \|\mathbf{u}\|^2.
  • • Sign of u⋅v\mathbf{u} \cdot \mathbf{v}: positive, acute; zero, orthogonal; negative, obtuse.
  • • proj⁡vu=u⋅v∥v∥2 v\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \dfrac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{v}\|^2}\,\mathbf{v}, and u−proj⁡vu\mathbf{u} - \operatorname{proj}_{\mathbf{v}}\mathbf{u} is orthogonal to v\mathbf{v}.
  • • Plane through PP with normal n=(a,b,c)\mathbf{n} = (a, b, c): n⋅(X−P)=0\mathbf{n} \cdot (X - P) = 0, that is ax+by+cz=dax + by + cz = d with d=n⋅Pd = \mathbf{n} \cdot P.
  • • Line P+tdP + t\mathbf{d} and plane with normal n\mathbf{n}: d⋅n≠0\mathbf{d} \cdot \mathbf{n} \neq 0, one point; d⋅n=0\mathbf{d} \cdot \mathbf{n} = 0, parallel or contained, decided by one point.
  • • Distance from (x0,y0,z0)(x_0, y_0, z_0) to ax+by+cz=dax + by + cz = d: ∣ax0+by0+cz0−d∣a2+b2+c2\dfrac{|ax_0 + by_0 + cz_0 - d|}{\sqrt{a^2 + b^2 + c^2}}.
  • • Angle between two planes: cos⁡θ=∣n1⋅n2∣∥n1∥ ∥n2∥\cos\theta = \dfrac{|\mathbf{n}_1 \cdot \mathbf{n}_2|}{\|\mathbf{n}_1\|\,\|\mathbf{n}_2\|}, always acute; parallel when the normals are proportional.

Part A: the basics (/50)

Exercise 1: The dot product, and the angle it hides

The dot product of u=(u1,u2,u3)\mathbf{u} = (u_1, u_2, u_3) and v=(v1,v2,v3)\mathbf{v} = (v_1, v_2, v_3) is the NUMBER u⋅v=u1v1+u2v2+u3v3\mathbf{u} \cdot \mathbf{v} = u_1v_1 + u_2v_2 + u_3v_3. It is also ∥u∥ ∥v∥cos⁡θ\|\mathbf{u}\|\,\|\mathbf{v}\|\cos\theta, where θ\theta is the angle between the two vectors, taken in [0,π][0, \pi]. Putting the two formulas side by side is how an angle in space is computed without a protractor.

Throughout, u=(2,1,−2)\mathbf{u} = (2, 1, -2) and v=(1,1,0)\mathbf{v} = (1, 1, 0). The figure shows what the sign of the dot product says before any angle is computed.

θvuu · v > 0acutevuu · v = 0right angleθvuu · v < 0obtuse
  • a) Compute u⋅v\mathbf{u} \cdot \mathbf{v}, ∥u∥\|\mathbf{u}\| and ∥v∥\|\mathbf{v}\|, then the angle between u\mathbf{u} and v\mathbf{v}.
  • b) Show that w=(1,0,1)\mathbf{w} = (1, 0, 1) is orthogonal to u\mathbf{u}.
  • c) Find every real kk for which (k,k,1)(k, k, 1) and (k,−3,2)(k, -3, 2) are orthogonal.
  • d) Without computing any angle, decide whether the angle between u\mathbf{u} and x=(−1,2,1)\mathbf{x} = (-1, 2, 1) is acute, right or obtuse.
  • e) Give the angle between u\mathbf{u} and −v-\mathbf{v}, and explain the relation with a).
Show the solution

Answers

  • a) u⋅v=3\mathbf{u} \cdot \mathbf{v} = 3, ∥u∥=3\|\mathbf{u}\| = 3, ∥v∥=2\|\mathbf{v}\| = \sqrt{2}, θ=π4\theta = \frac{\pi}{4} (45∘45^{\circ})
  • b) u⋅w=0\mathbf{u} \cdot \mathbf{w} = 0 with both vectors non-zero, so they are orthogonal.
  • c) k=1k = 1 or k=2k = 2
  • d) Obtuse, since u⋅x=−2<0\mathbf{u} \cdot \mathbf{x} = -2 < 0.
  • e) 3π4\frac{3\pi}{4} (135∘135^{\circ}), that is π−π4\pi - \frac{\pi}{4}.

a) Multiply coordinate by coordinate and add: u⋅v=2×1+1×1+(−2)×0=3\mathbf{u} \cdot \mathbf{v} = 2 \times 1 + 1 \times 1 + (-2) \times 0 = 3. The lengths are ∥u∥=4+1+4=3\|\mathbf{u}\| = \sqrt{4 + 1 + 4} = 3 and ∥v∥=1+1+0=2\|\mathbf{v}\| = \sqrt{1 + 1 + 0} = \sqrt{2}. Then cos⁡θ=u⋅v∥u∥ ∥v∥=332=12\cos\theta = \dfrac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{u}\|\,\|\mathbf{v}\|} = \dfrac{3}{3\sqrt{2}} = \dfrac{1}{\sqrt{2}}, so θ=π4\theta = \dfrac{\pi}{4}. Two slips cost the mark here: forgetting the square root in a length (writing ∥u∥=9\|\mathbf{u}\| = 9), and dividing by only one of the two lengths. The values in a MATH 133 exam are chosen so that cos⁡θ\cos\theta lands on 00, ±12\pm\frac{1}{2}, ±12\pm\frac{1}{\sqrt{2}} or ±32\pm\frac{\sqrt{3}}{2}; if yours does not, recheck a length before reaching for arccos⁡\arccos.

b) u⋅w=2×1+1×0+(−2)×1=0\mathbf{u} \cdot \mathbf{w} = 2 \times 1 + 1 \times 0 + (-2) \times 1 = 0. Since neither vector is zero, cos⁡θ=0\cos\theta = 0 and θ=π2\theta = \frac{\pi}{2}: they are orthogonal. The sentence must mention that both vectors are non-zero. The zero vector has dot product 00 with everything, and by convention it is called orthogonal to every vector, but it has no direction and no angle.

c) Orthogonal means the dot product is zero, and here it is a quadratic in kk: (k,k,1)⋅(k,−3,2)=k2−3k+2=(k−1)(k−2)(k, k, 1) \cdot (k, -3, 2) = k^2 - 3k + 2 = (k - 1)(k - 2). So k=1k = 1 or k=2k = 2. Check both, because a sign slip in the middle coordinate would change the roots: (1,1,1)⋅(1,−3,2)=1−3+2=0(1, 1, 1) \cdot (1, -3, 2) = 1 - 3 + 2 = 0 and (2,2,1)⋅(2,−3,2)=4−6+2=0(2, 2, 1) \cdot (2, -3, 2) = 4 - 6 + 2 = 0. Answering only k=1k = 1 loses half the part: the question says every real kk.

d) u⋅x=−2+2−2=−2\mathbf{u} \cdot \mathbf{x} = -2 + 2 - 2 = -2. Lengths are positive, so cos⁡θ\cos\theta has the SIGN of the dot product: positive means acute, zero means right, negative means obtuse. Here the angle is obtuse, and computing it would be wasted time. This sign test is exactly what the figure shows, and it is the fastest way to answer questions of the type is the angle at vertex AA of this triangle obtuse.

e) u⋅(−v)=−3\mathbf{u} \cdot (-\mathbf{v}) = -3 while the lengths are unchanged, so cos⁡θ′=−12\cos\theta' = -\dfrac{1}{\sqrt{2}} and θ′=3π4\theta' = \dfrac{3\pi}{4}. Reversing one vector replaces θ\theta by π−θ\pi - \theta. Keep this in mind for the rest of the chapter: a line or a plane does not care about the sign of its direction or normal vector, so an angle between LINES or between PLANES is always reported as the acute one, whereas an angle between two VECTORS can be anything in [0,π][0, \pi].

Exercise 2: Projection: the shadow and what is left over

The projection of u\mathbf{u} on a non-zero vector v\mathbf{v} is the vector p=proj⁡vu=u⋅v∥v∥2 v\mathbf{p} = \operatorname{proj}_{\mathbf{v}}\mathbf{u} = \dfrac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{v}\|^2}\,\mathbf{v}. It is the part of u\mathbf{u} that lies along v\mathbf{v}, and u−p\mathbf{u} - \mathbf{p} is what is left over, which is orthogonal to v\mathbf{v}. Every distance in this chapter comes from this one decomposition.

Take u=(3,1,2)\mathbf{u} = (3, 1, 2) and v=(1,1,1)\mathbf{v} = (1, 1, 1).

vuu − pp = projection of u on v
  • a) Compute p=proj⁡vu\mathbf{p} = \operatorname{proj}_{\mathbf{v}}\mathbf{u}.
  • b) Compute u−p\mathbf{u} - \mathbf{p}, check that it is orthogonal to v\mathbf{v}, and write u\mathbf{u} as a sum of a vector parallel to v\mathbf{v} and a vector orthogonal to v\mathbf{v}.
  • c) Give the scalar component of u\mathbf{u} along v\mathbf{v} and compare it with ∥p∥\|\mathbf{p}\|.
  • d) Compute proj⁡uv\operatorname{proj}_{\mathbf{u}}\mathbf{v}. Is it equal to p\mathbf{p}?
  • e) Show that replacing v\mathbf{v} by 2v2\mathbf{v} or by −v-\mathbf{v} does not change p\mathbf{p}, and explain what this says about the formula.
Show the solution

Answers

  • a) p=(2,2,2)\mathbf{p} = (2, 2, 2)
  • b) u−p=(1,−1,0)\mathbf{u} - \mathbf{p} = (1, -1, 0), and (3,1,2)=(2,2,2)+(1,−1,0)(3, 1, 2) = (2, 2, 2) + (1, -1, 0)
  • c) u⋅v∥v∥=23=∥p∥\dfrac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{v}\|} = 2\sqrt{3} = \|\mathbf{p}\|
  • d) proj⁡uv=(97,37,67)\operatorname{proj}_{\mathbf{u}}\mathbf{v} = \left(\frac{9}{7}, \frac{3}{7}, \frac{6}{7}\right), not equal to p\mathbf{p}.
  • e) Both give (2,2,2)(2, 2, 2): the projection depends only on the LINE spanned by v\mathbf{v}.

a) u⋅v=3+1+2=6\mathbf{u} \cdot \mathbf{v} = 3 + 1 + 2 = 6 and ∥v∥2=3\|\mathbf{v}\|^2 = 3, so p=63(1,1,1)=(2,2,2)\mathbf{p} = \dfrac{6}{3}(1, 1, 1) = (2, 2, 2). Note that ∥v∥2\|\mathbf{v}\|^2 is computed WITHOUT a square root: ∥v∥2=v⋅v\|\mathbf{v}\|^2 = \mathbf{v} \cdot \mathbf{v}. The most frequent wrong line on this formula divides by ∥v∥\|\mathbf{v}\| instead of ∥v∥2\|\mathbf{v}\|^2 and writes 63(1,1,1)\frac{6}{\sqrt{3}}(1, 1, 1), a vector 3\sqrt{3} times too long. Part e) shows why that version cannot be right.

b) u−p=(3,1,2)−(2,2,2)=(1,−1,0)\mathbf{u} - \mathbf{p} = (3, 1, 2) - (2, 2, 2) = (1, -1, 0), and (1,−1,0)⋅(1,1,1)=1−1+0=0(1, -1, 0) \cdot (1, 1, 1) = 1 - 1 + 0 = 0: orthogonal, as it must be. So u=(2,2,2)+(1,−1,0)\mathbf{u} = (2, 2, 2) + (1, -1, 0), the first vector a multiple of v\mathbf{v}, the second orthogonal to it. This check costs five seconds and catches almost every arithmetic slip in a): if u−p\mathbf{u} - \mathbf{p} does not dot to zero with v\mathbf{v}, the projection is wrong. It is also the picture on the figure: the leftover arrow stands at a right angle on the line of v\mathbf{v}.

c) The scalar component is u⋅v∥v∥=63=23\dfrac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{v}\|} = \dfrac{6}{\sqrt{3}} = 2\sqrt{3}, a signed NUMBER, whereas p\mathbf{p} is a VECTOR. Here ∥p∥=4+4+4=23\|\mathbf{p}\| = \sqrt{4 + 4 + 4} = 2\sqrt{3}, the same value, because u⋅v>0\mathbf{u} \cdot \mathbf{v} > 0. Had the dot product been negative, the scalar component would be −∥p∥-\|\mathbf{p}\| and p\mathbf{p} would point against v\mathbf{v}. Exam questions say which one they want, projection (a vector) or scalar component (a number), and giving the other loses the part.

d) proj⁡uv=v⋅u∥u∥2 u=614(3,1,2)=(97,37,67)\operatorname{proj}_{\mathbf{u}}\mathbf{v} = \dfrac{\mathbf{v} \cdot \mathbf{u}}{\|\mathbf{u}\|^2}\,\mathbf{u} = \dfrac{6}{14}(3, 1, 2) = \left(\dfrac{9}{7}, \dfrac{3}{7}, \dfrac{6}{7}\right). It is NOT p\mathbf{p}: it lies along u\mathbf{u}, not along v\mathbf{v}, and has a different length, 614\dfrac{6}{\sqrt{14}} instead of 232\sqrt{3}. The dot product in the numerator is symmetric, the rest of the formula is not. Write the subscript, the vector you project ON, before writing anything else.

e) With 2v=(2,2,2)2\mathbf{v} = (2, 2, 2): u⋅2v∥2v∥2 2v=1212(2,2,2)=(2,2,2)\dfrac{\mathbf{u} \cdot 2\mathbf{v}}{\|2\mathbf{v}\|^2}\,2\mathbf{v} = \dfrac{12}{12}(2, 2, 2) = (2, 2, 2). With −v-\mathbf{v}: −63(−1,−1,−1)=(2,2,2)\dfrac{-6}{3}(-1, -1, -1) = (2, 2, 2). The scale factor appears twice on top and twice below, so it cancels: the projection depends only on the line through the origin spanned by v\mathbf{v}. This is precisely why the denominator must be ∥v∥2\|\mathbf{v}\|^2. With ∥v∥\|\mathbf{v}\| alone the answer would double when v\mathbf{v} doubles, and a shadow on a line cannot depend on which arrow you used to name that line.

Exercise 3: Distance from a point to a line: project, then keep the rest

The line LL passes through P0=(1,0,1)P_0 = (1, 0, 1) with direction d=(1,2,2)\mathbf{d} = (1, 2, 2), so its points are X(t)=(1+t,2t,1+2t)X(t) = (1 + t, 2t, 1 + 2t). The point Q=(5,5,3)Q = (5, 5, 3) is not on LL. The figure names w=P0Q→\mathbf{w} = \overrightarrow{P_0Q}.

The idea is the decomposition of the previous exercise, used with a purpose: the part of w\mathbf{w} along d\mathbf{d} tells you where to stop on the line, and the part left over IS the shortest segment from QQ to the line.

P₀dQwL
  • a) Compute w\mathbf{w} and proj⁡dw\operatorname{proj}_{\mathbf{d}}\mathbf{w}.
  • b) Find the point FF of LL closest to QQ.
  • c) Find the distance from QQ to LL.
  • d) Check your answer two ways: FQ→\overrightarrow{FQ} is orthogonal to d\mathbf{d}, and the lengths satisfy Pythagoras.
  • e) Recover FF and the distance without projections, by writing ∥X(t)Q→∥2\|\overrightarrow{X(t)Q}\|^2 as a quadratic in tt and completing the square.
Show the solution

Answers

  • a) w=(4,5,2)\mathbf{w} = (4, 5, 2), proj⁡dw=(2,4,4)\operatorname{proj}_{\mathbf{d}}\mathbf{w} = (2, 4, 4)
  • b) F=(3,4,5)F = (3, 4, 5), reached at t=2t = 2
  • c) distance =3= 3
  • d) (2,1,−2)⋅(1,2,2)=0(2, 1, -2) \cdot (1, 2, 2) = 0 and 45=36+945 = 36 + 9
  • e) 9(t−2)2+99(t - 2)^2 + 9, minimum 99 at t=2t = 2, so again F=(3,4,5)F = (3, 4, 5) and distance 33

a) w=Q−P0=(5−1,5−0,3−1)=(4,5,2)\mathbf{w} = Q - P_0 = (5 - 1, 5 - 0, 3 - 1) = (4, 5, 2). Then w⋅d=4+10+4=18\mathbf{w} \cdot \mathbf{d} = 4 + 10 + 4 = 18 and ∥d∥2=1+4+4=9\|\mathbf{d}\|^2 = 1 + 4 + 4 = 9, so proj⁡dw=189(1,2,2)=(2,4,4)\operatorname{proj}_{\mathbf{d}}\mathbf{w} = \dfrac{18}{9}(1, 2, 2) = (2, 4, 4). The ratio 189=2\frac{18}{9} = 2 is worth keeping: it is the value of the parameter tt at the foot of the perpendicular.

b) Walk from P0P_0 along the line by exactly the projection: F=P0+(2,4,4)=(3,4,5)F = P_0 + (2, 4, 4) = (3, 4, 5), which is X(2)X(2), so FF is indeed on LL. The projection answers where on the line; it does not answer how far from the line.

c) The distance is the length of what is LEFT: w−proj⁡dw=(4,5,2)−(2,4,4)=(2,1,−2)\mathbf{w} - \operatorname{proj}_{\mathbf{d}}\mathbf{w} = (4, 5, 2) - (2, 4, 4) = (2, 1, -2), of length 4+1+4=3\sqrt{4 + 1 + 4} = 3. This is the trap of the exercise and it costs the whole part: ∥proj⁡dw∥=6\|\operatorname{proj}_{\mathbf{d}}\mathbf{w}\| = 6 is the distance from P0P_0 to FF ALONG the line, and it depends on which point P0P_0 was used to write LL. The distance from QQ to the line cannot depend on that choice, and the leftover does not.

d) FQ→=Q−F=(2,1,−2)\overrightarrow{FQ} = Q - F = (2, 1, -2), the leftover of c), and (2,1,−2)⋅(1,2,2)=2+2−4=0(2, 1, -2) \cdot (1, 2, 2) = 2 + 2 - 4 = 0: the segment FQFQ meets LL at a right angle, as on the solution figure. Pythagoras in the right triangle P0FQP_0FQ: ∥w∥2=16+25+4=45\|\mathbf{w}\|^2 = 16 + 25 + 4 = 45, and 62+32=36+9=456^2 + 3^2 = 36 + 9 = 45. Both checks hold, and each takes a line.

e) X(t)Q→=w−td=(4−t,5−2t,2−2t)\overrightarrow{X(t)Q} = \mathbf{w} - t\mathbf{d} = (4 - t, 5 - 2t, 2 - 2t), so ∥X(t)Q→∥2=(4−t)2+(5−2t)2+(2−2t)2=9t2−36t+45=9(t−2)2+9\|\overrightarrow{X(t)Q}\|^2 = (4 - t)^2 + (5 - 2t)^2 + (2 - 2t)^2 = 9t^2 - 36t + 45 = 9(t - 2)^2 + 9. The square is never negative, so the minimum is 99, reached at t=2t = 2: same foot F=X(2)F = X(2), same distance 9=3\sqrt{9} = 3. No derivative is needed, and none is expected in MATH 133. The two methods are the same computation in disguise: expanding gives ∥w∥2−2t(w⋅d)+t2∥d∥2\|\mathbf{w}\|^2 - 2t(\mathbf{w} \cdot \mathbf{d}) + t^2\|\mathbf{d}\|^2, whose vertex sits at t=w⋅d∥d∥2t = \dfrac{\mathbf{w} \cdot \mathbf{d}}{\|\mathbf{d}\|^2}, the coefficient of the projection.

P₀dQwLFdistance 3

Exercise 4: A plane is one point and a normal

A plane in space is determined by one point PP on it and one non-zero vector n\mathbf{n} orthogonal to it, the NORMAL. A point XX lies on the plane exactly when PX→\overrightarrow{PX} lies in the plane, that is when n⋅(X−P)=0\mathbf{n} \cdot (X - P) = 0. Expanded, this is the scalar equation ax+by+cz=dax + by + cz = d, and the coefficients (a,b,c)(a, b, c) ARE the normal.

The figure shows the one relation this exercise uses: every vector that stays inside the plane is orthogonal to n\mathbf{n}.

nPXX − Pplane
  • a) Write the scalar equation of the plane through P=(2,−1,3)P = (2, -1, 3) with normal n=(1,−2,2)\mathbf{n} = (1, -2, 2).
  • b) Do A=(4,1,4)A = (4, 1, 4) and B=(1,1,5)B = (1, 1, 5) lie on this plane? Justify with PA→\overrightarrow{PA} for the first.
  • c) Find the plane through Q=(1,1,1)Q = (1, 1, 1) perpendicular to the line (x,y,z)=(3,0,−1)+t(2,−1,1)(x, y, z) = (3, 0, -1) + t(2, -1, 1).
  • d) Find the plane through R=(1,0,2)R = (1, 0, 2) parallel to the plane 2x+y−2z=52x + y - 2z = 5.
  • e) In R3\mathbb{R}^3, what is the set of points satisfying 3x−y=73x - y = 7? Give a normal and two of its points.
Show the solution

Answers

  • a) x−2y+2z=10x - 2y + 2z = 10
  • b) AA lies on it (PA→⋅n=0\overrightarrow{PA} \cdot \mathbf{n} = 0); BB does not (1−2+10=9≠101 - 2 + 10 = 9 \neq 10).
  • c) 2x−y+z=22x - y + z = 2
  • d) 2x+y−2z=−22x + y - 2z = -2
  • e) A plane with normal (3,−1,0)(3, -1, 0), containing for instance (3,2,0)(3, 2, 0) and (3,2,5)(3, 2, 5).

a) n⋅(X−P)=0\mathbf{n} \cdot (X - P) = 0 reads 1(x−2)−2(y+1)+2(z−3)=01(x - 2) - 2(y + 1) + 2(z - 3) = 0, that is x−2y+2z=2+2+6=10x - 2y + 2z = 2 + 2 + 6 = 10. The shortcut is to write x−2y+2z=dx - 2y + 2z = d straight from the normal and find dd by substituting PP: 2−2(−1)+2(3)=102 - 2(-1) + 2(3) = 10. Always substitute PP back into the final equation; a sign slip on dd is the commonest error here and it moves the plane without changing its tilt.

b) For AA: PA→=(2,2,1)\overrightarrow{PA} = (2, 2, 1) and n⋅PA→=2−4+2=0\mathbf{n} \cdot \overrightarrow{PA} = 2 - 4 + 2 = 0, so PA→\overrightarrow{PA} lies in the plane and AA is on it; substitution agrees, 4−2+8=104 - 2 + 8 = 10. For BB: 1−2+10=9≠101 - 2 + 10 = 9 \neq 10, so BB is NOT on it. Note that BB is off by one unit of the equation, not one unit of distance; the actual distance would be 1∥n∥=13\frac{1}{\|\mathbf{n}\|} = \frac{1}{3}, as exercise 6 will show.

c) A plane perpendicular to a line has the DIRECTION of the line as its normal: n=(2,−1,1)\mathbf{n} = (2, -1, 1). Through QQ: 2x−y+z=2−1+1=22x - y + z = 2 - 1 + 1 = 2. The point (3,0,−1)(3, 0, -1) of the line is irrelevant, since the plane is asked to pass through QQ, and a copy that uses it instead writes 2x−y+z=52x - y + z = 5, a parallel plane in the wrong place. Perpendicular to a line and containing a line are opposite situations: for the second, the direction would have to be ORTHOGONAL to n\mathbf{n}.

d) Parallel planes share their normal, so the answer is 2x+y−2z=d2x + y - 2z = d with d=2(1)+0−2(2)=−2d = 2(1) + 0 - 2(2) = -2: the plane 2x+y−2z=−22x + y - 2z = -2. Only dd changes. The given plane is 2x+y−2z=52x + y - 2z = 5 and RR gives −2≠5-2 \neq 5, so RR is not on it and the new plane is a genuine different, parallel plane. Had RR satisfied the original equation, the only answer would have been the original plane itself.

e) In R3\mathbb{R}^3 the equation 3x−y=73x - y = 7 is 3x−y+0z=73x - y + 0z = 7: a PLANE with normal (3,−1,0)(3, -1, 0), not a line. The missing zz means zz is free, so the plane is vertical: it contains the whole vertical line through every point of the line 3x−y=73x - y = 7 in the xyxy-plane. For instance (3,2,0)(3, 2, 0) and (3,2,5)(3, 2, 5) both satisfy it, since 9−2=79 - 2 = 7. Calling it a line is the classic error of carrying the picture of R2\mathbb{R}^2 into R3\mathbb{R}^3: one linear equation in three unknowns always leaves two free parameters.

Exercise 5: Where a line meets a plane: one point, none, or all of it

The plane is Π:2x−y+3z=6\Pi: 2x - y + 3z = 6, with normal n=(2,−1,3)\mathbf{n} = (2, -1, 3). A line X(t)=P+tdX(t) = P + t\mathbf{d} can cross Π\Pi in exactly one point, run parallel to it without touching it, or lie inside it. One dot product, d⋅n\mathbf{d} \cdot \mathbf{n}, separates the first case from the other two; one substitution separates the last two.

  • a) Find the intersection of Π\Pi with L1:(0,1,1)+t(1,1,1)L_1: (0, 1, 1) + t(1, 1, 1).
  • b) Same question for L2:(0,0,0)+t(1,2,0)L_2: (0, 0, 0) + t(1, 2, 0).
  • c) Same question for L3:(3,0,0)+t(1,−1,−1)L_3: (3, 0, 0) + t(1, -1, -1).
  • d) For which aa is L:(1,2,0)+t(a,2,1)L: (1, 2, 0) + t(a, 2, 1) parallel to Π\Pi? For that value, does LL lie in Π\Pi?
  • e) Give the line through the point found in a) that is perpendicular to Π\Pi.
Show the solution

Answers

  • a) One point, (1,2,2)(1, 2, 2), at t=1t = 1
  • b) No intersection: L2L_2 is parallel to Π\Pi and off it.
  • c) L3L_3 lies in Π\Pi: every tt works.
  • d) a=−12a = -\frac{1}{2}; then LL is parallel to Π\Pi but not in it.
  • e) (1,2,2)+s(2,−1,3)(1, 2, 2) + s(2, -1, 3)

a) First the test: d⋅n=2−1+3=4≠0\mathbf{d} \cdot \mathbf{n} = 2 - 1 + 3 = 4 \neq 0, so L1L_1 is not parallel to Π\Pi and meets it in exactly one point. Substitute X(t)=(t,1+t,1+t)X(t) = (t, 1 + t, 1 + t) into the equation: 2t−(1+t)+3(1+t)=4t+2=62t - (1 + t) + 3(1 + t) = 4t + 2 = 6, so t=1t = 1 and the point is (1,2,2)(1, 2, 2). Check: 2−2+6=62 - 2 + 6 = 6. Notice that the coefficient of tt after substitution, 44, is exactly d⋅n\mathbf{d} \cdot \mathbf{n}. That is not a coincidence, and it is the whole explanation of the three cases.

b) d⋅n=2−2+0=0\mathbf{d} \cdot \mathbf{n} = 2 - 2 + 0 = 0. Substituting (t,2t,0)(t, 2t, 0) gives 2t−2t+0=0=62t - 2t + 0 = 0 = 6, an equation with no solution: the tt has disappeared because its coefficient is d⋅n=0\mathbf{d} \cdot \mathbf{n} = 0, and what remains is false. The line is PARALLEL to Π\Pi and does not meet it. Geometrically, d\mathbf{d} is orthogonal to the normal, so the line runs alongside the plane; the origin is at the wrong level, 0≠60 \neq 6.

c) d⋅n=2+1−3=0\mathbf{d} \cdot \mathbf{n} = 2 + 1 - 3 = 0 again, so L3L_3 is parallel to Π\Pi. Substituting (3+t,−t,−t)(3 + t, -t, -t): 6+2t+t−3t=66 + 2t + t - 3t = 6, that is 6=66 = 6, true for EVERY tt. The line lies inside the plane. Parts b) and c) have the same direction test and opposite conclusions, which is why the test alone never finishes the question: when d⋅n=0\mathbf{d} \cdot \mathbf{n} = 0, check whether ONE point of the line satisfies the equation.

d) Parallel means d⋅n=2a−2+3=2a+1=0\mathbf{d} \cdot \mathbf{n} = 2a - 2 + 3 = 2a + 1 = 0, so a=−12a = -\frac{1}{2}. The point (1,2,0)(1, 2, 0) gives 2−2+0=0≠62 - 2 + 0 = 0 \neq 6, so the line is parallel to Π\Pi and disjoint from it. The trap on this part is the word parallel: d⋅n=0\mathbf{d} \cdot \mathbf{n} = 0 means d\mathbf{d} is perpendicular to the NORMAL, hence parallel to the PLANE. A student who reads it as the line is perpendicular to the plane writes the exact opposite of the truth, and every later part inherits the error.

e) A line perpendicular to Π\Pi has the direction of the NORMAL: (1,2,2)+s(2,−1,3)(1, 2, 2) + s(2, -1, 3). Here d⋅n=∥n∥2=14≠0\mathbf{d} \cdot \mathbf{n} = \|\mathbf{n}\|^2 = 14 \neq 0, so it does cross Π\Pi, at s=0s = 0, as it should. The two conditions to keep apart: a line is PERPENDICULAR to a plane when d\mathbf{d} is a multiple of n\mathbf{n}, and PARALLEL to it when d⋅n=0\mathbf{d} \cdot \mathbf{n} = 0.

Part B: problems and reasoning (/50)

Exercise 6: Distance from a point to a plane, and where the formula comes from

The plane is Π:2x−y+2z=5\Pi: 2x - y + 2z = 5, with normal n=(2,−1,2)\mathbf{n} = (2, -1, 2), and Q=(3,0,4)Q = (3, 0, 4). The formula ∣ax0+by0+cz0−d∣a2+b2+c2\dfrac{|ax_0 + by_0 + cz_0 - d|}{\sqrt{a^2 + b^2 + c^2}} is on every formula sheet. A MATH 133 exam asks where it comes from, and the answer is one projection: pick any point PP of the plane, and project PQ→\overrightarrow{PQ} on the normal.

nPQPQΠ
  • a) Check that P=(0,−5,0)P = (0, -5, 0) lies on Π\Pi, then compute the distance from QQ to Π\Pi by projecting PQ→\overrightarrow{PQ} on n\mathbf{n}.
  • b) Derive the general formula from the same argument, and explain why the choice of PP does not matter.
  • c) Find the point FF of Π\Pi closest to QQ.
  • d) Find the mirror image Q′Q' of QQ across Π\Pi, and check its distance to Π\Pi.
  • e) Are the origin and QQ on the same side of Π\Pi? And the point R=(1,1,1)R = (1, 1, 1)?
Show the solution

Answers

  • a) 0+5+0=50 + 5 + 0 = 5, so P∈ΠP \in \Pi; distance =∣PQ→⋅n∣∥n∥=93=3= \dfrac{|\overrightarrow{PQ} \cdot \mathbf{n}|}{\|\mathbf{n}\|} = \dfrac{9}{3} = 3
  • b) ∣ax0+by0+cz0−d∣a2+b2+c2\dfrac{|ax_0 + by_0 + cz_0 - d|}{\sqrt{a^2 + b^2 + c^2}}, since n⋅P=d\mathbf{n} \cdot P = d for every P∈ΠP \in \Pi
  • c) F=(1,1,2)F = (1, 1, 2)
  • d) Q′=(−1,2,0)Q' = (-1, 2, 0), at distance 33 on the other side
  • e) Origin: opposite side to QQ. RR: same side as the origin.

a) 2(0)−(−5)+2(0)=52(0) - (-5) + 2(0) = 5, so PP is on Π\Pi. Then PQ→=(3,5,4)\overrightarrow{PQ} = (3, 5, 4) and PQ→⋅n=6−5+8=9\overrightarrow{PQ} \cdot \mathbf{n} = 6 - 5 + 8 = 9, with ∥n∥=4+1+4=3\|\mathbf{n}\| = \sqrt{4 + 1 + 4} = 3. The projection of PQ→\overrightarrow{PQ} on n\mathbf{n} is 99n=(2,−1,2)\dfrac{9}{9}\mathbf{n} = (2, -1, 2), of length 33, and this length IS the distance: on the figure, the normal direction is the only direction in which moving changes your distance to the plane. Note the contrast with exercise 3. For a line, the distance was the part LEFT after projecting on the direction; for a plane, it is the projection itself, on the normal. And ∥PQ→∥=50\|\overrightarrow{PQ}\| = \sqrt{50} is not the distance: PP was an arbitrary point.

b) Let Q=(x0,y0,z0)Q = (x_0, y_0, z_0) and let PP be any point of ax+by+cz=dax + by + cz = d, so n⋅P=d\mathbf{n} \cdot P = d. Then PQ→⋅n=n⋅Q−n⋅P=ax0+by0+cz0−d\overrightarrow{PQ} \cdot \mathbf{n} = \mathbf{n} \cdot Q - \mathbf{n} \cdot P = ax_0 + by_0 + cz_0 - d, and the distance is the absolute value of the scalar component: ∣ax0+by0+cz0−d∣a2+b2+c2\dfrac{|ax_0 + by_0 + cz_0 - d|}{\sqrt{a^2 + b^2 + c^2}}. The choice of PP has vanished from the result because n⋅P=d\mathbf{n} \cdot P = d for EVERY point of the plane; equivalently, two choices of PP differ by a vector lying in the plane, which is orthogonal to n\mathbf{n} and projects to zero. Here: ∣6−0+8−5∣3=3\dfrac{|6 - 0 + 8 - 5|}{3} = 3. Forgetting the denominator, the most frequent error, gives 99.

c) From QQ, move back along the normal by the projection found in a): F=Q−n⋅Q−d∥n∥2 n=(3,0,4)−99(2,−1,2)=(1,1,2)F = Q - \dfrac{\mathbf{n} \cdot Q - d}{\|\mathbf{n}\|^2}\,\mathbf{n} = (3, 0, 4) - \dfrac{9}{9}(2, -1, 2) = (1, 1, 2). Check that FF is on Π\Pi: 2−1+4=52 - 1 + 4 = 5. Check that FQ→=(2,−1,2)\overrightarrow{FQ} = (2, -1, 2) is parallel to n\mathbf{n}: it is n\mathbf{n} itself, so FQFQ meets the plane at a right angle, and ∥FQ→∥=3\|\overrightarrow{FQ}\| = 3 as in a). Dividing by ∥n∥\|\mathbf{n}\| here instead of ∥n∥2\|\mathbf{n}\|^2 gives (−3,3,−2)(-3, 3, -2), which is not on Π\Pi (−6−3−4=−13-6 - 3 - 4 = -13), and the substitution catches it at once.

d) The mirror image is as far beyond FF as QQ is before it: Q′=Q−2(2,−1,2)=(−1,2,0)Q' = Q - 2(2, -1, 2) = (-1, 2, 0), and FF is the midpoint of QQ′QQ', since 12(3−1,0+2,4+0)=(1,1,2)\frac{1}{2}(3 - 1, 0 + 2, 4 + 0) = (1, 1, 2). Distance check with the formula: ∣−2−2+0−5∣3=93=3\dfrac{|-2 - 2 + 0 - 5|}{3} = \dfrac{9}{3} = 3. The quantity inside the absolute value is −9-9 for Q′Q' and +9+9 for QQ, which is the subject of e).

e) Drop the absolute value and look at the sign of s(X)=2x−y+2z−5s(X) = 2x - y + 2z - 5. s(Q)=9>0s(Q) = 9 > 0, s(0,0,0)=−5<0s(0, 0, 0) = -5 < 0: opposite signs, so the origin and QQ are on OPPOSITE sides and any segment joining them crosses Π\Pi. s(R)=2−1+2−5=−2<0s(R) = 2 - 1 + 2 - 5 = -2 < 0, the sign of the origin: same side as the origin. The absolute value in the formula is exactly what throws this information away, so a question about sides is answered BEFORE taking it.

nPQPQΠF3

Exercise 7: Parallel planes, and the angle between two planes

Two planes are compared through their normals and nothing else. Proportional normals: the planes are parallel, or the same plane. Otherwise the planes meet, and the angle between them is the angle between their normals, reported as the acute one. The figure shows a cross-section taken perpendicular to both planes, where each plane appears as a line and each normal as an arrow.

Π₁ (edge-on)Π₂n₁n₂θθ
  • a) Show that Π1:x+2y−2z=3\Pi_1: x + 2y - 2z = 3 and Π2:2x+4y−4z=18\Pi_2: 2x + 4y - 4z = 18 are parallel and distinct, and find the distance between them.
  • b) Find every plane parallel to Π1\Pi_1 at distance 11 from it.
  • c) Find the angle between the planes x−z=0x - z = 0 and y−z=2y - z = 2.
  • d) Find the angle between the planes x+y=1x + y = 1 and −x=4-x = 4.
  • e) Find kk so that the plane kx+2y−z=0kx + 2y - z = 0 is perpendicular to Π1\Pi_1.
Show the solution

Answers

  • a) Normals (2,4,−4)=2(1,2,−2)(2, 4, -4) = 2(1, 2, -2), and Π2\Pi_2 is x+2y−2z=9x + 2y - 2z = 9; distance =2= 2
  • b) x+2y−2z=0x + 2y - 2z = 0 and x+2y−2z=6x + 2y - 2z = 6
  • c) π3\frac{\pi}{3} (60∘60^{\circ})
  • d) π4\frac{\pi}{4} (45∘45^{\circ}), not 135∘135^{\circ}
  • e) k=−6k = -6

a) n2=(2,4,−4)=2n1\mathbf{n}_2 = (2, 4, -4) = 2\mathbf{n}_1, so the planes are parallel. Divide the equation of Π2\Pi_2 by 22 to give it the SAME normal: x+2y−2z=9x + 2y - 2z = 9. Same left side, different right side, so the planes are distinct. Now the distance is ∣9−3∣∥n1∥=63=2\dfrac{|9 - 3|}{\|\mathbf{n}_1\|} = \dfrac{6}{3} = 2. The classic wrong line is ∣18−3∣3=5\dfrac{|18 - 3|}{3} = 5, comparing right-hand sides of equations written with different normals. A second route, which needs no rescaling, checks it: (3,0,0)(3, 0, 0) is on Π1\Pi_1, and its distance to Π2\Pi_2 is ∣6−18∣4+16+16=126=2\dfrac{|6 - 18|}{\sqrt{4 + 16 + 16}} = \dfrac{12}{6} = 2.

b) A plane parallel to Π1\Pi_1 is x+2y−2z=cx + 2y - 2z = c, and its distance to Π1\Pi_1 is ∣c−3∣3\dfrac{|c - 3|}{3}. Setting this equal to 11 gives ∣c−3∣=3|c - 3| = 3, so c=0c = 0 or c=6c = 6. There are TWO answers, one on each side, and giving only one loses half the part. A useful sanity check: x+2y−2z=0x + 2y - 2z = 0 passes through the origin, and the distance from the origin to Π1\Pi_1 is indeed 33=1\frac{3}{3} = 1.

c) n1=(1,0,−1)\mathbf{n}_1 = (1, 0, -1) and n2=(0,1,−1)\mathbf{n}_2 = (0, 1, -1): n1⋅n2=1\mathbf{n}_1 \cdot \mathbf{n}_2 = 1 and both lengths are 2\sqrt{2}, so cos⁡θ=12\cos\theta = \dfrac{1}{2} and θ=π3\theta = \dfrac{\pi}{3}. Why the normals: on the figure, turning plane Π1\Pi_1 by θ\theta onto plane Π2\Pi_2 turns its normal by the same θ\theta, since each normal is glued at a right angle to its plane. Using direction vectors lying in the planes instead does not work: a plane contains infinitely many directions, and two of them chosen at random can make any angle at all.

d) n1=(1,1,0)\mathbf{n}_1 = (1, 1, 0), n2=(−1,0,0)\mathbf{n}_2 = (-1, 0, 0): cos⁡φ=−12×1=−12\cos\varphi = \dfrac{-1}{\sqrt{2} \times 1} = -\dfrac{1}{\sqrt{2}}, so the NORMALS make φ=3π4\varphi = \dfrac{3\pi}{4}. The planes make the acute angle θ=π−φ=π4\theta = \pi - \varphi = \dfrac{\pi}{4}. The same plane could have been written x=−4x = -4, with normal (1,0,0)(1, 0, 0), and the computation would then have given π4\frac{\pi}{4} directly: the sign of a normal is arbitrary, so the angle between planes is defined by cos⁡θ=∣n1⋅n2∣∥n1∥ ∥n2∥\cos\theta = \dfrac{|\mathbf{n}_1 \cdot \mathbf{n}_2|}{\|\mathbf{n}_1\|\,\|\mathbf{n}_2\|}, with the absolute value. Answering 135∘135^{\circ} loses the part.

e) Perpendicular planes have perpendicular normals: (k,2,−1)⋅(1,2,−2)=k+4+2=k+6=0(k, 2, -1) \cdot (1, 2, -2) = k + 4 + 2 = k + 6 = 0, so k=−6k = -6. Check: (−6,2,−1)⋅(1,2,−2)=−6+4+2=0(-6, 2, -1) \cdot (1, 2, -2) = -6 + 4 + 2 = 0. Do not confuse with the condition for PARALLEL planes, which asks for proportional normals and would have no solution here, since the zz-coefficients −1-1 and −2-2 force a ratio of 22 that the yy-coefficients 22 and 22 refuse.

Exercise 8: Five statements to correct

Each statement below was written by a student preparing for a MATH 133 midterm, and each is false. Say what is wrong, give the correct statement, and give the smallest example that settles it.

  • a) u⋅v=0\mathbf{u} \cdot \mathbf{v} = 0, so one of the two vectors must be the zero vector.
  • b) proj⁡vu=proj⁡uv\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \operatorname{proj}_{\mathbf{u}}\mathbf{v}, because u⋅v=v⋅u\mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u}.
  • c) The plane 2x−y+z=32x - y + z = 3 contains the line (x,y,z)=t(2,−1,1)(x, y, z) = t(2, -1, 1), since that line has the direction of the plane.
  • d) The distance from (1,1,1)(1, 1, 1) to the plane x+y+z=6x + y + z = 6 is ∣1+1+1−6∣=3|1 + 1 + 1 - 6| = 3.
  • e) ∥u+v∥2=∥u∥2+∥v∥2\|\mathbf{u} + \mathbf{v}\|^2 = \|\mathbf{u}\|^2 + \|\mathbf{v}\|^2 for any two vectors.
Show the solution

Answers

  • a) False: (1,0,0)⋅(0,1,0)=0(1, 0, 0) \cdot (0, 1, 0) = 0. A zero dot product means orthogonal.
  • b) False: with u=(1,0,0)\mathbf{u} = (1, 0, 0), v=(1,1,0)\mathbf{v} = (1, 1, 0) one gets (12,12,0)\left(\frac{1}{2}, \frac{1}{2}, 0\right) and (1,0,0)(1, 0, 0).
  • c) False: (2,−1,1)(2, -1, 1) is the NORMAL, so the line is perpendicular to the plane and meets it once, at (1,−12,12)\left(1, -\frac{1}{2}, \frac{1}{2}\right).
  • d) False: divide by ∥n∥=3\|\mathbf{n}\| = \sqrt{3}; the distance is 3\sqrt{3}.
  • e) False: ∥u+v∥2=∥u∥2+2 u⋅v+∥v∥2\|\mathbf{u} + \mathbf{v}\|^2 = \|\mathbf{u}\|^2 + 2\,\mathbf{u} \cdot \mathbf{v} + \|\mathbf{v}\|^2; equality only when u⋅v=0\mathbf{u} \cdot \mathbf{v} = 0.

a) FALSE. (1,0,0)⋅(0,1,0)=0(1, 0, 0) \cdot (0, 1, 0) = 0 and neither vector is zero. For numbers, ab=0ab = 0 forces a zero factor; the dot product is not a product of numbers but a sum of products, and it vanishes exactly when the angle is a right angle or one vector is zero. Correct statement: u⋅v=0\mathbf{u} \cdot \mathbf{v} = 0 means u\mathbf{u} and v\mathbf{v} are orthogonal. Only u⋅u=0\mathbf{u} \cdot \mathbf{u} = 0 forces u=0\mathbf{u} = \mathbf{0}, since it is a sum of squares.

b) FALSE. proj⁡vu\operatorname{proj}_{\mathbf{v}}\mathbf{u} lies along v\mathbf{v} and proj⁡uv\operatorname{proj}_{\mathbf{u}}\mathbf{v} lies along u\mathbf{u}, so they cannot agree unless something special happens. With u=(1,0,0)\mathbf{u} = (1, 0, 0) and v=(1,1,0)\mathbf{v} = (1, 1, 0): u⋅v=1\mathbf{u} \cdot \mathbf{v} = 1, so proj⁡vu=12(1,1,0)\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{1}{2}(1, 1, 0) while proj⁡uv=11(1,0,0)\operatorname{proj}_{\mathbf{u}}\mathbf{v} = \frac{1}{1}(1, 0, 0). Correct statement: only the numerator is symmetric; the two projections are equal only when u⋅v=0\mathbf{u} \cdot \mathbf{v} = 0, both then being zero, or when u=v\mathbf{u} = \mathbf{v}.

c) FALSE. The coefficients (2,−1,1)(2, -1, 1) are the NORMAL of the plane, so this line is PERPENDICULAR to it. Substituting (2t,−t,t)(2t, -t, t) gives 4t+t+t=6t=34t + t + t = 6t = 3, so t=12t = \frac{1}{2}: exactly one intersection point, (1,−12,12)\left(1, -\frac{1}{2}, \frac{1}{2}\right). A plane has no single direction; it contains every direction orthogonal to n\mathbf{n}. Correct statement: a line lies in the plane when its direction is orthogonal to n\mathbf{n} AND one of its points satisfies the equation, for example (0,0,3)+t(1,2,0)(0, 0, 3) + t(1, 2, 0), since 2−2+0=02 - 2 + 0 = 0 and 0−0+3=30 - 0 + 3 = 3.

d) FALSE. ∣1+1+1−6∣=3|1 + 1 + 1 - 6| = 3 is the value of n⋅Q−d\mathbf{n} \cdot Q - d, the scalar component multiplied by ∥n∥\|\mathbf{n}\|. The distance is 3∥n∥=33=3\dfrac{3}{\|\mathbf{n}\|} = \dfrac{3}{\sqrt{3}} = \sqrt{3}. The quickest way to see the error: 2x+2y+2z=122x + 2y + 2z = 12 is the same plane, and the incorrect method would give 66 for it. A distance cannot depend on how the equation was scaled, and dividing by ∥n∥\|\mathbf{n}\| is exactly what removes that dependence.

e) FALSE. Expanding with the rules of the dot product, ∥u+v∥2=(u+v)⋅(u+v)=∥u∥2+2 u⋅v+∥v∥2\|\mathbf{u} + \mathbf{v}\|^2 = (\mathbf{u} + \mathbf{v}) \cdot (\mathbf{u} + \mathbf{v}) = \|\mathbf{u}\|^2 + 2\,\mathbf{u} \cdot \mathbf{v} + \|\mathbf{v}\|^2. With u=v=(1,0,0)\mathbf{u} = \mathbf{v} = (1, 0, 0), the left side is ∥(2,0,0)∥2=4\|(2, 0, 0)\|^2 = 4 and the right side of the claim is 22. Correct statement: the identity holds exactly when u⋅v=0\mathbf{u} \cdot \mathbf{v} = 0, and it is then Pythagoras' theorem in vector form. It is the identity behind the check in exercise 3 d).

Exercise 9: Work as a dot product: a cart hauled up a track

A cart is hauled in a straight line from A=(0,0,0)A = (0, 0, 0) to B=(6,6,3)B = (6, 6, 3), coordinates in metres with the zz-axis vertical. A winch cable pulls on it with the constant force F=(110,20,100)\mathbf{F} = (110, 20, 100) newtons, and the cart weighs 300300 N. The work done by a constant force along a straight displacement d\mathbf{d} is the dot product W=F⋅dW = \mathbf{F} \cdot \mathbf{d}, in joules.

  • a) Compute the displacement d\mathbf{d}, its length, and the work done by the cable.
  • b) Find the component of F\mathbf{F} along the track, and cos⁡θ\cos\theta for the angle between the cable and the track.
  • c) Split F\mathbf{F} into a part parallel to the track and a part perpendicular to it, and say how much work each part does.
  • d) Find the work done by gravity and the net work of the two forces.
  • e) The cart is instead taken from AA to C=(6,0,0)C = (6, 0, 0), then from CC to BB, the cable force being the same. Compute the work of F\mathbf{F} on this path and explain the result.
Show the solution

Answers

  • a) d=(6,6,3)\mathbf{d} = (6, 6, 3), ∥d∥=9\|\mathbf{d}\| = 9 m, W=1080W = 1080 J
  • b) 120120 N along the track, cos⁡θ=45\cos\theta = \frac{4}{5}
  • c) (80,80,40)+(30,−60,60)(80, 80, 40) + (30, -60, 60): 10801080 J and 00 J
  • d) Wg=−900W_g = -900 J, net work 180180 J
  • e) 660+420=1080660 + 420 = 1080 J, the same, because F⋅(a+b)=F⋅a+F⋅b\mathbf{F} \cdot (\mathbf{a} + \mathbf{b}) = \mathbf{F} \cdot \mathbf{a} + \mathbf{F} \cdot \mathbf{b}

a) d=B−A=(6,6,3)\mathbf{d} = B - A = (6, 6, 3) and ∥d∥=36+36+9=9\|\mathbf{d}\| = \sqrt{36 + 36 + 9} = 9 m. The work is W=F⋅d=110×6+20×6+100×3=660+120+300=1080W = \mathbf{F} \cdot \mathbf{d} = 110 \times 6 + 20 \times 6 + 100 \times 3 = 660 + 120 + 300 = 1080 J. There is no angle to measure and no cosine to look up: in coordinates, the dot product does the trigonometry for you. Writing W=∥F∥ ∥d∥=150×9=1350W = \|\mathbf{F}\|\,\|\mathbf{d}\| = 150 \times 9 = 1350 J ignores the angle and overstates the work by a quarter.

b) ∥F∥=12100+400+10000=22500=150\|\mathbf{F}\| = \sqrt{12100 + 400 + 10000} = \sqrt{22500} = 150 N. The scalar component along the track is F⋅d∥d∥=10809=120\dfrac{\mathbf{F} \cdot \mathbf{d}}{\|\mathbf{d}\|} = \dfrac{1080}{9} = 120 N, and cos⁡θ=1080150×9=45\cos\theta = \dfrac{1080}{150 \times 9} = \dfrac{4}{5}. Only 120120 N of the 150150 N pulls the cart along; the angle itself is arccos⁡45\arccos\frac{4}{5}, and no MATH 133 question would ask for it in degrees.

c) The parallel part is the projection: F∥=108081(6,6,3)=403(6,6,3)=(80,80,40)\mathbf{F}_{\parallel} = \dfrac{1080}{81}(6, 6, 3) = \dfrac{40}{3}(6, 6, 3) = (80, 80, 40). The perpendicular part is what is left: F⊥=(110,20,100)−(80,80,40)=(30,−60,60)\mathbf{F}_{\perp} = (110, 20, 100) - (80, 80, 40) = (30, -60, 60). Check: F⊥⋅d=180−360+180=0\mathbf{F}_{\perp} \cdot \mathbf{d} = 180 - 360 + 180 = 0. Their lengths are 120120 N and 9090 N, and 1202+902=1502120^2 + 90^2 = 150^2, the right triangle on the solution figure. The parallel part does all the work, F∥⋅d=480+480+120=1080\mathbf{F}_{\parallel} \cdot \mathbf{d} = 480 + 480 + 120 = 1080 J, and the perpendicular part does none: it only presses the cart sideways against the track.

d) Gravity is G=(0,0,−300)\mathbf{G} = (0, 0, -300) N, so Wg=G⋅d=−300×3=−900W_g = \mathbf{G} \cdot \mathbf{d} = -300 \times 3 = -900 J. Only the vertical rise of 33 m counts, not the 99 m of track: the dot product with a vertical vector picks out the vertical coordinate and nothing else. The net work of the two forces is 1080−900=1801080 - 900 = 180 J, positive, so if these are the only forces doing work the cart gains 180180 J of kinetic energy.

e) AC→=(6,0,0)\overrightarrow{AC} = (6, 0, 0) and CB→=(0,6,3)\overrightarrow{CB} = (0, 6, 3), so F⋅AC→=660\mathbf{F} \cdot \overrightarrow{AC} = 660 J and F⋅CB→=120+300=420\mathbf{F} \cdot \overrightarrow{CB} = 120 + 300 = 420 J, total 10801080 J, the same as the straight path. The reason is purely algebraic: AC→+CB→=d\overrightarrow{AC} + \overrightarrow{CB} = \mathbf{d} and the dot product distributes, F⋅AC→+F⋅CB→=F⋅d\mathbf{F} \cdot \overrightarrow{AC} + \mathbf{F} \cdot \overrightarrow{CB} = \mathbf{F} \cdot \mathbf{d}. For a CONSTANT force, the work depends only on the start and the end.

F, 150 Nalong the track: 120 N90 Ndθ

Exercise 10: A roof in space: pitch, a lamp, a shadow and the sun

Coordinates in metres, zz vertical, the ridge of a roof running along the xx-axis at height 66 m. The front panel lies in the plane Π:3y+4z=24\Pi: 3y + 4z = 24 for 0≤y≤40 \le y \le 4, the back panel in −3y+4z=24-3y + 4z = 24 for −4≤y≤0-4 \le y \le 0. The figure is the cross-section seen along the ridge. A lamp hangs in the attic at Q=(2,1,4)Q = (2, 1, 4), and a point A=(1,6,7.5)A = (1, 6, 7.5) marks the top of a neighbouring mast. Sunlight travels in the direction s=(0,−4,−3)\mathbf{s} = (0, -4, -3).

-5-4-3-2-11234567812345678QAsun3y + 4z = 24−3y + 4z = 24y (m)z (m)
  • a) Find the normal of Π\Pi and the cosine of the angle between the front panel and the horizontal plane z=0z = 0. Check it against the rise and run of the roof.
  • b) Find the distance from the lamp QQ to the front panel and the point of the panel closest to it. Compare with the VERTICAL gap between QQ and the roof.
  • c) Where does the shadow of the mast top AA fall on the front panel?
  • d) A solar panel lies flat on the front panel. The power it collects is proportional to the cosine of the angle between the sunlight and the normal. Find that factor.
  • e) Find the cosine of the angle between the two panels given by the normals, and the true angle inside the attic under the ridge.
Show the solution

Answers

  • a) n=(0,3,4)\mathbf{n} = (0, 3, 4), cos⁡θ=45\cos\theta = \frac{4}{5}, matching a rise of 33 for a run of 44
  • b) distance 11 m, closest point (2,1.6,4.8)(2, 1.6, 4.8); the vertical gap is 1.251.25 m
  • c) (1,2,4.5)(1, 2, 4.5)
  • d) 2425=0.96\frac{24}{25} = 0.96
  • e) cos⁡=725\cos = \frac{7}{25} between the planes; inside the attic the angle is obtuse, with cosine −725-\frac{7}{25}

a) The normal is read off the equation: n=(0,3,4)\mathbf{n} = (0, 3, 4), with ∥n∥=5\|\mathbf{n}\| = 5. The horizontal plane has normal k=(0,0,1)\mathbf{k} = (0, 0, 1), so cos⁡θ=∣n⋅k∣∥n∥ ∥k∥=45\cos\theta = \dfrac{|\mathbf{n} \cdot \mathbf{k}|}{\|\mathbf{n}\|\,\|\mathbf{k}\|} = \dfrac{4}{5}. Check on the figure: from the ridge (y,z)=(0,6)(y, z) = (0, 6) to the eave (4,3)(4, 3) the roof drops 33 m over a run of 44 m, along a slope of length 55, so cos⁡θ=45\cos\theta = \frac{4}{5} and tan⁡θ=34\tan\theta = \frac{3}{4}. The angle between planes is again the angle between normals, as in exercise 7.

b) n⋅Q=3+16=19\mathbf{n} \cdot Q = 3 + 16 = 19, so the distance is ∣19−24∣5=1\dfrac{|19 - 24|}{5} = 1 m. The closest point is F=Q+24−1925 n=(2,1,4)+15(0,3,4)=(2,1.6,4.8)F = Q + \dfrac{24 - 19}{25}\,\mathbf{n} = (2, 1, 4) + \dfrac{1}{5}(0, 3, 4) = (2, 1.6, 4.8), and indeed 3(1.6)+4(4.8)=4.8+19.2=243(1.6) + 4(4.8) = 4.8 + 19.2 = 24. Straight above the lamp, the roof is at z=24−34=5.25z = \frac{24 - 3}{4} = 5.25, a vertical gap of 1.251.25 m. The vertical gap is NOT the distance to a slanted plane; it is longer, by exactly the factor 1cos⁡θ\frac{1}{\cos\theta}: 1.25×45=11.25 \times \frac{4}{5} = 1. A cable from the lamp to the roof is shortest along the normal.

c) The shadow is where the sun ray through AA meets Π\Pi: X(t)=A+ts=(1,6−4t,7.5−3t)X(t) = A + t\mathbf{s} = (1, 6 - 4t, 7.5 - 3t). First the test, s⋅n=−12−12=−24≠0\mathbf{s} \cdot \mathbf{n} = -12 - 12 = -24 \neq 0, so the ray does cross the plane. Substituting: 3(6−4t)+4(7.5−3t)=48−24t=243(6 - 4t) + 4(7.5 - 3t) = 48 - 24t = 24, so t=1t = 1 and the shadow falls at (1,2,4.5)(1, 2, 4.5). It has 0≤y=2≤40 \le y = 2 \le 4, so it lands on the front panel itself and not on its extension beyond the eave, a check the plane equation alone cannot make.

d) cos⁡α=∣s⋅n∣∥s∥ ∥n∥=245×5=2425=0.96\cos\alpha = \dfrac{|\mathbf{s} \cdot \mathbf{n}|}{\|\mathbf{s}\|\,\|\mathbf{n}\|} = \dfrac{24}{5 \times 5} = \dfrac{24}{25} = 0.96. The panel collects 9696 per cent of what it would collect facing the sun squarely. The absolute value matters: s\mathbf{s} points DOWN into the roof and n\mathbf{n} points up and out, so the raw dot product is negative, but the question is about the angle between the ray and the line of the normal, not about orientation.

e) The back panel has normal m=(0,−3,4)\mathbf{m} = (0, -3, 4), and n⋅m=−9+16=7\mathbf{n} \cdot \mathbf{m} = -9 + 16 = 7, so the angle between the planes has cosine 725\frac{7}{25}, an acute angle. Inside the attic, the two panels meet under the ridge at the angle π−2θ\pi - 2\theta, where θ\theta is the pitch of a): each panel tilts down by θ\theta from the horizontal. Its cosine is −cos⁡2θ=−(2cos⁡2θ−1)=−(3225−1)=−725-\cos 2\theta = -(2\cos^2\theta - 1) = -\left(\frac{32}{25} - 1\right) = -\frac{7}{25}, an obtuse angle. Both numbers are right answers to different questions: the formula gives the acute angle between the two planes, and the attic angle is its supplement. Say which one the question asks for before writing a number.

See also

Looking for a tutor in Montreal?

Get in touch for a first session. We work on problems set at the real level of Montreal assessments.

Site by Studio Squalli