← Back to course

Math — Mechina

Vectors in space: lines and planes

Summary

In space every line is given by a point and a direction, and every plane by a point and a normal (a vector perpendicular to the plane). Almost every problem becomes a dot or a cross product.

u⃗⋅v⃗=u1v1+u2v2+u3v3=∣u⃗∣∣v⃗∣cos⁡θ\vec u\cdot\vec v=u_1v_1+u_2v_2+u_3v_3=|\vec u||\vec v|\cos\theta
u⃗×v⃗=(u2v3−u3v2, u3v1−u1v3, u1v2−u2v1)\vec u\times\vec v=(u_2v_3-u_3v_2,\ u_3v_1-u_1v_3,\ u_1v_2-u_2v_1)
ℓ: x⃗=A+td⃗,Π: ax+by+cz+d=0, n⃗=(a,b,c),dist(P,Π)=∣ax0+by0+cz0+d∣∣n⃗∣\ell:\ \vec x=A+t\vec d,\qquad \Pi:\ ax+by+cz+d=0,\ \vec n=(a,b,c),\qquad \text{dist}(P,\Pi)=\frac{|ax_0+by_0+cz_0+d|}{|\vec n|}
  • A plane through three points: n⃗=AB→×AC→\vec n=\overrightarrow{AB}\times\overrightarrow{AC}.
  • A line meeting a plane: substitute the line into the plane's equation and solve for tt.
  • A line parallel to a plane: d⃗⋅n⃗=0\vec d\cdot\vec n=0. Perpendicular: d⃗∥n⃗\vec d\parallel\vec n.
  • The angle between a line and a plane: sin⁡α=∣d⃗⋅n⃗∣∣d⃗∣∣n⃗∣\sin\alpha=\frac{|\vec d\cdot\vec n|}{|\vec d||\vec n|}.
  • Skew lines: neither parallel nor intersecting.

What is new here

In the plane y=mx+by=mx+b was enough, but in space there is no such thing as "one slope": a line has a direction in three dimensions. So we switch to the language of vectors — arrows with three components (x,y,z)(x,y,z). This is how a plane's flight path, a light ray, 3D graphics in games and forces in physics are described. The advantage: the same formulas work both in the plane and in space.

What the dot product tells you

The dot product is a number that measures "how much two vectors point the same way". If it is positive the angle is acute; zero — the vectors are perpendicular; negative — the angle is obtuse. Example: u⃗=(1,2,2)\vec u=(1,2,2), v⃗=(2,0,−1)\vec v=(2,0,-1). u⃗⋅v⃗=2+0−2=0\vec u\cdot\vec v=2+0-2=0 — they are perpendicular. It is the main tool for checking perpendicularity and computing angles.

What the cross product tells you

The cross product gives a vector perpendicular to both vectors, and its length equals the area of the parallelogram they span. So the area of triangle ABCABC is 12∣AB→×AC→∣\tfrac12|\overrightarrow{AB}\times\overrightarrow{AC}|. Order matters: v⃗×u⃗=−u⃗×v⃗\vec v\times\vec u=-\vec u\times\vec v. To avoid mistakes in the components, write the two vectors one under the other and cover one column at a time.

Line and plane — why these forms

A line: start at a point AA and move as far as you like in the direction d⃗\vec d — each value of the parameter tt gives another point of the line. A plane: every vector that starts at a point of the plane and stays in it is perpendicular to the normal n⃗\vec n, so n⃗⋅(P−A)=0\vec n\cdot(P-A)=0, which expands to ax+by+cz+d=0ax+by+cz+d=0. The coefficients of x,y,zx,y,z in a plane's equation are exactly the normal.

Full example: a plane through three points

A(1,0,0)A(1,0,0), B(0,2,0)B(0,2,0), C(0,0,3)C(0,0,3). AB→=(−1,2,0)\overrightarrow{AB}=(-1,2,0), AC→=(−1,0,3)\overrightarrow{AC}=(-1,0,3). The normal: AB→×AC→=(6,3,2)\overrightarrow{AB}\times\overrightarrow{AC}=(6,3,2). The equation: 6x+3y+2z+d=06x+3y+2z+d=0, and substituting AA gives d=−6d=-6, i.e. 6x+3y+2z=66x+3y+2z=6. Check: both BB and CC satisfy it ✓. The distance of the origin from the plane: ∣−6∣36+9+4=67\frac{|-6|}{\sqrt{36+9+4}}=\frac67.

Relative positions of two lines

  1. Check whether the direction vectors are proportional. If so, the lines are parallel or coincide (test one point).
  2. If not, equate the components: A+td⃗1=B+sd⃗2A+t\vec d_1=B+s\vec d_2 — three equations in two unknowns.
  3. Solve two of them and substitute into the third. If it holds, the lines intersect; if not, they are skew.

Common mistakes

  • An angle between a line and a plane with cos⁡\cos instead of sin⁡\sin — the normal is perpendicular to the plane, not lying in it.
  • A sign error in the middle component of the cross product.
  • Forgetting the absolute value in the distance formula.
  • Concluding "parallel" just because two lines do not meet — in space they may be skew.
  • Using the same parameter tt for two different lines when looking for an intersection.

Question types

1

A plane through three points

Three points are given, or a point and two directions.

Worked example

Find the plane through A(1,0,0)A(1,0,0), B(0,2,0)B(0,2,0), C(0,0,3)C(0,0,3).

Solution

IdeaNormal = cross product.
  1. AB→=(−1,2,0)\overrightarrow{AB}=(-1,2,0), AC→=(−1,0,3)\overrightarrow{AC}=(-1,0,3).
  2. n⃗=(6,3,2)\vec n=(6,3,2).
  3. 6x+3y+2z=66x+3y+2z=6 (substituting AA).
CheckBB: 66 ✓; CC: 66 ✓.
Common mistakeThe wrong sign in the middle component of the cross product.

Variants of this type · 1

1.1Intercept form

Worked example

The same plane in the form xa+yb+zc=1\frac xa+\frac yb+\frac zc=1.

Solution

IdeaIntersections with the axes.
  1. x1+y2+z3=1\frac x1+\frac y2+\frac z3=1.
CheckMultiplying by 66 gives the same equation ✓.
Common mistakeSwapping bb and cc.
2

Line–plane intersection, angle and distance

A line in parametric form and a plane by an equation.

Worked example

ℓ:(1,1,1)+t(1,0,−1)\ell:(1,1,1)+t(1,0,-1) and Π:x+y+z=6\Pi:x+y+z=6. Find the intersection.

Solution

IdeaSubstitution.
  1. (1+t)+1+(1−t)=3≠6(1+t)+1+(1-t)=3\ne6 — for every tt.
  2. d⃗⋅n⃗=0\vec d\cdot\vec n=0: the line is parallel to the plane and not in it.
  3. Distance: ∣3−6∣3=3\frac{|3-6|}{\sqrt3}=\sqrt3.
Checktt disappears — a sign of parallelism ✓.
Common mistakeConcluding “no solution” without checking whether the line lies in the plane.
3

The relative position of two lines

Intersecting, parallel or skew.

Worked example

ℓ1:(0,0,0)+t(1,1,0)\ell_1:(0,0,0)+t(1,1,0), ℓ2:(1,0,1)+s(0,1,1)\ell_2:(1,0,1)+s(0,1,1).

Solution

IdeaThe directions are not parallel — check for an intersection.
  1. t=1t=1, t=st=s, 0=1+s0=1+s.
  2. s=−1s=-1 but t=1t=1 — a contradiction.
  3. Skew.
CheckThe scalar triple product is nonzero ✓.
Common mistakeUsing the same parameter for both lines.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice