hanegreefs.com/Math II
Chapter 1 · unit 1 of 12

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).

Worked example

Component-wise arithmetic

Take u = (2, −1, 3) and v = (1, 4, −2) in ℝ3.

1

Sum

u + v = (2 + 1, −1 + 4, 3 − 2) = (3, 3, 1)
2

Linear combination

3u − 2v = (6 − 2, −3 − 8, 9 + 4) = (4, −11, 13)
3

From point to point

from P = (1, 1, 1) to Q = (4, 0, 3) runs the vector Q − P = (3, −1, 2)
Answer

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.

TaskMethod
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 formsolve 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
Worked example

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).

1

Two directions

v = Q − P = (2, 1, 0) and w = R − P = (0, 2, 3), not multiples of each other
2

Parametric form

{(1, 0, 2) + s(2, 1, 0) + t(0, 2, 3) | s, t ∈ ℝ}
3

Normal vector

n = v × w = (1·3 − 0·2, 0·0 − 2·3, 2·2 − 1·0) = (3, −6, 4)
4

Cartesian equation

3x − 6y + 4z = n · P = 3 + 0 + 8 = 11; check Q: 9 − 6 + 8 = 11 and R: 3 − 12 + 20 = 11
5

Test the point

3·5 − 0 + 4·(−1) = 11, so (5, 0, −1) lies on the plane
Answer

The plane is 3x − 6y + 4z = 11. Since 11 ≠ 0 it misses the origin, so it is a flat but not a subspace.

Worked example

A hyperplane in ℝ4 and its slice

Take H: x1 + 2x2 − x3 + 3x4 = 4.

1

Free variables

x2 = s, x3 = t, x4 = u, so x1 = 4 − 2s + t − 3u
2

Parametric form

(4, 0, 0, 0) + s(−2, 1, 0, 0) + t(1, 0, 1, 0) + u(−3, 0, 0, 1): a 3-flat
3

Cut with the x1x2-plane

set x3 = x4 = 0: x1 + 2x2 = 4, a line in that plane
Answer

Each extra equation usually lowers the dimension by one: three directions minus two conditions leaves one direction, a line.

Common trapTwo direction vectors that are multiples of each other do not span a plane. Always check that the directions are linearly independent.

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:

Formula
cos θ = u · v|u| |v|,   0 ≤ θ ≤ π

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.

Worked example

Angle between two vectors

u = (1, 2, 2) and v = (3, 0, 4).

1

Dot product

u · v = 3 + 0 + 8 = 11
2

Lengths

|u| = √(1 + 4 + 4) = 3 and |v| = √(9 + 0 + 16) = 5
3

Angle

cos θ = 11/15, so θ = arccos(11/15) ≈ 42.8°
Answer

A positive dot product means an acute angle, zero a right angle, negative an obtuse angle.

Worked example

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°?

1

Set up

u · v = x, |u| = √2, |v| = √(x2 + 1), and cos 60° = 1/2
2

Equation

x / (√2 √(x2 + 1)) = 1/2, which needs x > 0
3

Square

4x2 = 2(x2 + 1), so x2 = 1
4

Keep the valid root

x = 1 (x = −1 gives cos θ = −1/2, an angle of 120°)
Answer

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

Formula
d = |a · q − c||a|

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.

Worked example

Point to plane

Distance from q = (2, 1, 0) to the plane 3x − 6y + 4z = 11.

1

Numerator

|3·2 − 6·1 + 4·0 − 11| = |−11| = 11
2

Denominator

|a| = √(9 + 36 + 16) = √61
Answer

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.

Loading cards
Question
Click, tap or press space to flip
Answer

True or false (5)

Statement 1 · Chapter 1 · true or false

The vectors (2, −1, 4) and (3, 2, −1) are perpendicular.

Why: 6 − 2 − 4 = 0.
Statement 2 · Chapter 1 · true or false

{(1, 1, 0) + s(2, −1, 3) + t(−4, 2, −6)} is a plane in ℝ3.

Why: (−4, 2, −6) = −2(2, −1, 3), so the set is only a line.
Statement 3 · Chapter 1 · true or false

The plane x + y + z = 1 is a subspace of ℝ3.

Why: It does not contain the origin.
Statement 4 · Chapter 1 · true or false

A negative dot product means the angle between the vectors is larger than 90°.

Why: The cosine has the sign of the dot product.
Statement 5 · Chapter 1 · true or false

In ℝ4 a single non-trivial linear equation describes a plane of dimension 2.

Why: It describes a hyperplane of dimension 3.

Multiple choice (7)

Question 1 · Chapter 1

The length of v = (1, −2, 2, 4) is...

Why: 1 + 4 + 4 + 16 = 25 and √25 = 5.
Question 2 · Chapter 1

cos θ between (1, 0, 1) and (0, 1, 1) equals...

Why: Dot product 1, lengths √2 and √2.
Question 3 · Chapter 1

Which point lies on the plane 2x − y + z = 3?

Why: 2 − 0 + 1 = 3.
Question 4 · Chapter 1

For which k are (1, k, 2) and (k, 3, −4) perpendicular?

Why: k + 3k − 8 = 0 gives k = 2.
Question 5 · Chapter 1

The distance from (1, 1) to the line 3x + 4y = 2 is...

Why: |3 + 4 − 2| / 5 = 1.
Question 6 · Chapter 1

A normal vector of the plane through the origin spanned by (1, 0, 0) and (0, 1, 1) is...

Why: It must be perpendicular to both: (0, 1, −1) · (1, 0, 0) = 0 and · (0, 1, 1) = 0.
Question 7 · Chapter 1

The dimension of the hyperplane x1 − x5 = 0 in ℝ5 is...

Why: One equation removes one dimension.

Exam-style open questions (3)

Open question · Chapter 1

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.
Open question · Chapter 1

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 → ∞).
Open question · Chapter 1

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.