Linear geometry
Vectors in ℝn, lines, planes and hyperplanes in parametric and Cartesian form, the dot product, length, angle, perpendicularity and distances.
Course notes: Syllabus ch. 2 (Linear Geometry) · Exercise sessions: Sheet 1 (Vectors) · About 45 minutes
Vectors in ℝnImportant
A vector is an arrow with a length and a direction. Two arrows with the same length and direction are the same vector, wherever they are drawn. We always draw it in canonical position, with the tail at the origin, so that the vector is fully described by the coordinates of its head: v = (v1, ..., vn), written as a column v1⋮vn.
The vector from point P to point Q is Q − P. Vectors are added component by component, and a scalar r multiplies every component: r v = (r v1, ..., r vn). Geometrically, u + v is the diagonal of the parallelogram on u and v, and r v stretches v by the factor |r| (and flips it when r < 0).
Component-wise arithmetic
Take u = (2, −1, 3) and v = (1, 4, −2) in ℝ3.
Sum
Linear combination
From point to point
A linear combination a u + b v is the basic building block of the whole course: spans, bases, linear maps and solution sets are all built from it.
Economic reading: a bundle of n goods is a vector x in ℝn, prices form a vector p, and the cost of the bundle is the dot product p · x (section 3).
Lines, planes and hyperplanesImportant
A line through the point p with direction v ≠ 0 is the set {p + t v | t ∈ ℝ}. A plane through p is {p + s v + t w | s, t ∈ ℝ}, where v and w must not be multiples of each other (otherwise you only get a line). In general a k-flat is p plus all combinations of k linearly independent direction vectors.
In ℝn one linear equation a1x1 + ... + anxn = c (with not all ai zero) describes a hyperplane: an (n − 1)-flat. In ℝ2 that is a line, in ℝ3 a plane, in ℝ4 a three-dimensional flat. The coefficient vector a = (a1, ..., an) is perpendicular to the hyperplane: it is the normal vector.
| Task | Method |
|---|---|
| Is a point q on the flat p + s v + t w? | solve q = p + s v + t w for s and t; the point is on the flat exactly when this system has a solution |
| Cartesian equation to parametric form | solve the equation for one variable and let the others be free parameters |
| Parametric form to Cartesian equation (plane in ℝ3) | find a normal n with n · v = n · w = 0 (for example the cross product v × w), then n · x = n · p |
| Does the flat pass through the origin? | only then is it a subspace (chapter 2); for n · x = c this means c = 0 |
A plane through three points
Find the plane through P = (1, 0, 2), Q = (3, 1, 2) and R = (1, 2, 5), and test the point (5, 0, −1).
Two directions
Parametric form
Normal vector
Cartesian equation
Test the point
The plane is 3x − 6y + 4z = 11. Since 11 ≠ 0 it misses the origin, so it is a flat but not a subspace.
A hyperplane in ℝ4 and its slice
Take H: x1 + 2x2 − x3 + 3x4 = 4.
Free variables
Parametric form
Cut with the x1x2-plane
Each extra equation usually lowers the dimension by one: three directions minus two conditions leaves one direction, a line.
Dot product, length and angleImportant
The dot product of u and v in ℝn is the number u · v = u1v1 + ... + unvn. It gives the length |v| = √(v · v) and the angle θ between non-zero vectors:
Two vectors are perpendicular (orthogonal) exactly when u · v = 0. The formula is well defined thanks to the Cauchy-Schwarz inequality |u · v| ≤ |u| |v|, which also gives the triangle inequality |u + v| ≤ |u| + |v|. A vector of length 1 is a unit vector; v / |v| is the unit vector in the direction of v.
Angle between two vectors
u = (1, 2, 2) and v = (3, 0, 4).
Dot product
Lengths
Angle
A positive dot product means an acute angle, zero a right angle, negative an obtuse angle.
A parameter that fixes the angle
For which x is the angle between u = (1, 1, 0) and v = (x, 0, 1) equal to 60°?
Set up
Equation
Square
Keep the valid root
x = 1. Squaring can add false roots, so always check the sign.
Distances and projectionNeutral
The distance between points P and Q is |Q − P|. The distance from a point q to the hyperplane a · x = c is
In ℝ2 this is the familiar |u x0 + v y0 + w| / √(u2 + v2) for the line u x + v y + w = 0. The orthogonal projection of u onto the direction v is projv u = (u · v / v · v) v; the distance from a point to a line through the origin with direction v is the length of u − projv u.
Point to plane
Distance from q = (2, 1, 0) to the plane 3x − 6y + 4z = 11.
Numerator
Denominator
d = 11/√61 ≈ 1.408.
Key takeaways
- Vectors add and scale component by component; Q − P runs from P to Q.
- A line is p + t v, a plane p + s v + t w with independent v and w.
- One linear equation in ℝn is a hyperplane of dimension n − 1 with normal vector a.
- u · v = 0 means perpendicular; cos θ = u · v / (|u| |v|).
- Distance from q to a · x = c: |a · q − c| / |a|.
- A flat is a subspace only when it passes through the origin.
True or false (5)
The vectors (2, −1, 4) and (3, 2, −1) are perpendicular.
{(1, 1, 0) + s(2, −1, 3) + t(−4, 2, −6)} is a plane in ℝ3.
The plane x + y + z = 1 is a subspace of ℝ3.
A negative dot product means the angle between the vectors is larger than 90°.
In ℝ4 a single non-trivial linear equation describes a plane of dimension 2.
Multiple choice (7)
The length of v = (1, −2, 2, 4) is...
cos θ between (1, 0, 1) and (0, 1, 1) equals...
Which point lies on the plane 2x − y + z = 3?
For which k are (1, k, 2) and (k, 3, −4) perpendicular?
The distance from (1, 1) to the line 3x + 4y = 2 is...
A normal vector of the plane through the origin spanned by (1, 0, 0) and (0, 1, 1) is...
The dimension of the hyperplane x1 − x5 = 0 in ℝ5 is...
Exam-style open questions (3)
A plane through three points
Find a parametric and a Cartesian equation of the plane through A = (2, 1, 0), B = (3, 1, 1) and C = (2, 3, 1). Does it contain (4, 0, 1)?
Show a model answer outline
- Directions v = B − A = (1, 0, 1), w = C − A = (0, 2, 1).
- Normal v × w = (0·1 − 1·2, 1·0 − 1·1, 1·2 − 0) = (−2, −1, 2).
- Equation −2x − y + 2z = −5, or 2x + y − 2z = 5.
- Test (4, 0, 1): 8 + 0 − 2 = 6 ≠ 5, so the point is not on the plane.
An angle with a parameter
For which a is the angle between (1, 0, 1) and (a, 1, 0) equal to 45°?
Show a model answer outline
- Dot product a; lengths √2 and √(a2 + 1); cos 45° = √2/2.
- a / (√2 √(a2 + 1)) = √2/2 gives a = √(a2 + 1), which has no solution.
- So no a works: the angle is always larger than 45° (it tends to 45° as a → ∞).
A hyperplane in ℝ4
Give the hyperplane through the origin in ℝ4 that is perpendicular to (1, −1, 2, 0) and describe it with three direction vectors.
Show a model answer outline
- Equation x1 − x2 + 2x3 = 0.
- Free x2 = s, x3 = t, x4 = u: x1 = s − 2t.
- Directions (1, 1, 0, 0), (−2, 0, 1, 0), (0, 0, 0, 1); each is perpendicular to the normal.
LabVector calculator
Type the components separated by spaces or commas. Fractions such as 1/2 are allowed.
LabHyperplane and point lab
Try a point on the plane of the worked example, then move it.