Skip to content

Chapter 3. Geometry of Euclidean Space

Euclidean space is the geometric model behind the coordinate spaces R1\mathbb{R}^1, R2\mathbb{R}^2, R3\mathbb{R}^3, and more generally Rn\mathbb{R}^n. It supplies the usual notions of length, distance, angle, line, plane, and orthogonality.

Linear algebra gives these geometric ideas an algebraic form. A point becomes a list of coordinates. A displacement becomes a vector. Length is computed from a dot product. Distance is computed from the difference of two vectors. Orthogonality is expressed by a zero dot product. These definitions allow geometry to be used in any finite dimension, not only in the plane or in ordinary three-dimensional space. The dot product of two coordinate vectors is the sum of products of corresponding coordinates, and it is the standard tool used to define length and angle in Euclidean coordinate space.

3.1 Points and Coordinates

The set Rn\mathbb{R}^n consists of all ordered nn-tuples of real numbers:

(x1,x2,,xn). (x_1,x_2,\ldots,x_n).

Each entry is a coordinate. The number nn is the dimension of the coordinate space.

For example, R2\mathbb{R}^2 is the plane. A point in R2\mathbb{R}^2 has the form

(x,y). (x,y).

The space R3\mathbb{R}^3 is ordinary three-dimensional coordinate space. A point in R3\mathbb{R}^3 has the form

(x,y,z). (x,y,z).

The space Rn\mathbb{R}^n generalizes this idea. A point in Rn\mathbb{R}^n has nn real coordinates.

3.2 Points and Vectors

A point describes a location. A vector describes a displacement.

In coordinates, both may be written as lists of numbers. The distinction is conceptual. The point

p=[23] p = \begin{bmatrix} 2 \\ 3 \end{bmatrix}

marks a location in the plane. The vector

v=[23] v = \begin{bmatrix} 2 \\ 3 \end{bmatrix}

may be interpreted as the displacement that moves 22 units in the first coordinate direction and 33 units in the second coordinate direction.

The same coordinate list can therefore represent a point or a vector, depending on context. Linear algebra usually treats coordinate lists as vectors. Geometry often shifts between both views.

3.3 Displacement Between Points

Given two points p,qRnp,q \in \mathbb{R}^n, the displacement from pp to qq is

qp. q-p.

If

p=[p1p2pn],q=[q1q2qn], p = \begin{bmatrix} p_1 \\ p_2 \\ \vdots \\ p_n \end{bmatrix}, \qquad q = \begin{bmatrix} q_1 \\ q_2 \\ \vdots \\ q_n \end{bmatrix},

then

qp=[q1p1q2p2qnpn]. q-p = \begin{bmatrix} q_1-p_1 \\ q_2-p_2 \\ \vdots \\ q_n-p_n \end{bmatrix}.

For example, if

p=[14],q=[52], p = \begin{bmatrix} 1 \\ 4 \end{bmatrix}, \qquad q = \begin{bmatrix} 5 \\ 2 \end{bmatrix},

then

qp=[42]. q-p = \begin{bmatrix} 4 \\ -2 \end{bmatrix}.

This vector says that one moves 44 units in the first coordinate direction and 2-2 units in the second coordinate direction.

3.4 The Dot Product

The dot product of two vectors in Rn\mathbb{R}^n is defined by

uv=u1v1+u2v2++unvn. u \cdot v = u_1v_1 + u_2v_2 + \cdots + u_nv_n.

If

u=[u1u2un],v=[v1v2vn], u = \begin{bmatrix} u_1 \\ u_2 \\ \vdots \\ u_n \end{bmatrix}, \qquad v = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix},

then

uv=i=1nuivi. u \cdot v = \sum_{i=1}^{n} u_i v_i.

The dot product takes two vectors and returns a scalar. It is therefore also called the scalar product. In Euclidean geometry, it connects coordinates with length and angle.

For example,

[135][421]=14+3(2)+(5)(1)=3. \begin{bmatrix} 1 \\ 3 \\ -5 \end{bmatrix} \cdot \begin{bmatrix} 4 \\ -2 \\ -1 \end{bmatrix} = 1\cdot 4 + 3\cdot(-2) + (-5)\cdot(-1) = 3.

3.5 Length of a Vector

The length, or Euclidean norm, of a vector vRnv\in\mathbb{R}^n is defined by

v=vv. \|v\| = \sqrt{v\cdot v}.

If

v=[v1v2vn], v = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix},

then

v=v12+v22++vn2. \|v\| = \sqrt{v_1^2+v_2^2+\cdots+v_n^2}.

This is the higher-dimensional form of the Pythagorean theorem. The Euclidean norm is interpreted as the length of the vector.

For example,

v=[34] v = \begin{bmatrix} 3 \\ 4 \end{bmatrix}

has length

v=32+42=5. \|v\| = \sqrt{3^2+4^2} = 5.

3.6 Distance Between Points

The distance between two points p,qRnp,q \in \mathbb{R}^n is the length of the displacement vector qpq-p:

d(p,q)=qp. d(p,q) = \|q-p\|.

Thus

d(p,q)=(q1p1)2+(q2p2)2++(qnpn)2. d(p,q) = \sqrt{(q_1-p_1)^2+(q_2-p_2)^2+\cdots+(q_n-p_n)^2}.

For example, if

p=[12],q=[46], p = \begin{bmatrix} 1 \\ 2 \end{bmatrix}, \qquad q = \begin{bmatrix} 4 \\ 6 \end{bmatrix},

then

qp=[34], q-p = \begin{bmatrix} 3 \\ 4 \end{bmatrix},

and

d(p,q)=5. d(p,q)=5.

Distance is therefore a derived notion. It comes from subtraction of points followed by the Euclidean norm.

3.7 Unit Vectors

A unit vector is a vector of length 11.

If v0v\ne 0, then

vv \frac{v}{\|v\|}

is a unit vector in the same direction as vv.

For example, if

v=[34], v = \begin{bmatrix} 3 \\ 4 \end{bmatrix},

then v=5\|v\|=5, so

vv=[3/54/5]. \frac{v}{\|v\|} = \begin{bmatrix} 3/5 \\ 4/5 \end{bmatrix}.

This vector has length 11. It preserves direction and removes scale.

3.8 Angles

The angle θ\theta between two nonzero vectors uu and vv is defined by

cosθ=uvuv. \cos\theta = \frac{u\cdot v}{\|u\|\|v\|}.

Equivalently,

uv=uvcosθ. u\cdot v = \|u\|\|v\|\cos\theta.

This formula shows the geometric meaning of the dot product. It measures how much two vectors point in the same direction.

If uv>0u\cdot v>0, the angle is acute. If uv<0u\cdot v<0, the angle is obtuse. If uv=0u\cdot v=0, the angle is right.

3.9 Orthogonality

Two vectors uu and vv are orthogonal if

uv=0. u\cdot v = 0.

Geometrically, nonzero orthogonal vectors meet at a right angle. The zero vector is orthogonal to every vector because

0v=0. 0\cdot v = 0.

For example,

[12][21]=12+2(1)=0. \begin{bmatrix} 1 \\ 2 \end{bmatrix} \cdot \begin{bmatrix} 2 \\ -1 \end{bmatrix} = 1\cdot 2 + 2\cdot(-1) = 0.

Therefore the two vectors are orthogonal.

Orthogonality is one of the central ideas of Euclidean geometry and linear algebra. It appears in projections, least squares, QR decomposition, Fourier series, and numerical methods.

3.10 Lines in Euclidean Space

A line through a point pp in direction v0v\ne 0 is the set

L={p+tv:tR}. L = \{p + tv : t\in\mathbb{R}\}.

The parameter tt moves along the line. When t=0t=0, the point is pp. When t=1t=1, the point is p+vp+v. Negative values of tt move in the opposite direction.

For example, the line through

p=[12] p = \begin{bmatrix} 1 \\ 2 \end{bmatrix}

with direction

v=[31] v = \begin{bmatrix} 3 \\ -1 \end{bmatrix}

is

[12]+t[31]=[1+3t2t]. \begin{bmatrix} 1 \\ 2 \end{bmatrix} + t \begin{bmatrix} 3 \\ -1 \end{bmatrix} = \begin{bmatrix} 1+3t \\ 2-t \end{bmatrix}.

A line is therefore an affine set: it is formed by translating a one-dimensional subspace.

3.11 Planes

A plane in R3\mathbb{R}^3 can be described by a point and two independent direction vectors:

P={p+su+tv:s,tR}. P = \{p + su + tv : s,t\in\mathbb{R}\}.

Here uu and vv must not be scalar multiples of each other. They give two independent directions inside the plane.

A plane may also be described by a normal vector. If n0n\ne 0 is perpendicular to the plane and pp is a point on the plane, then

n(xp)=0. n\cdot(x-p)=0.

This equation says that the displacement from pp to any point xx on the plane is orthogonal to nn.

If

n=[abc],p=[p1p2p3], n = \begin{bmatrix} a \\ b \\ c \end{bmatrix}, \qquad p = \begin{bmatrix} p_1 \\ p_2 \\ p_3 \end{bmatrix},

then the plane equation becomes

a(x1p1)+b(x2p2)+c(x3p3)=0. a(x_1-p_1)+b(x_2-p_2)+c(x_3-p_3)=0.

Equivalently,

ax1+bx2+cx3=d ax_1+bx_2+cx_3=d

for some scalar dd.

3.12 Hyperplanes

In Rn\mathbb{R}^n, a hyperplane is the higher-dimensional analogue of a line in R2\mathbb{R}^2 or a plane in R3\mathbb{R}^3.

A hyperplane can be written as

H={xRn:ax=b}, H = \{x\in\mathbb{R}^n : a\cdot x = b\},

where a0a\ne 0. The vector aa is normal to the hyperplane.

If b=0b=0, the hyperplane passes through the origin and is a subspace. If b0b\ne 0, the hyperplane is an affine set.

Hyperplanes occur throughout linear algebra. Each linear equation

a1x1+a2x2++anxn=b a_1x_1+a_2x_2+\cdots+a_nx_n=b

defines a hyperplane in Rn\mathbb{R}^n. A system of linear equations describes the intersection of several hyperplanes.

3.13 Projections

The projection of a vector vv onto a nonzero vector uu is the component of vv in the direction of uu.

It is given by

proju(v)=vuuuu. \operatorname{proj}_u(v) = \frac{v\cdot u}{u\cdot u}u.

The scalar

vuuu \frac{v\cdot u}{u\cdot u}

measures how much of uu is needed to form the projection.

For example, let

v=[34],u=[10]. v = \begin{bmatrix} 3 \\ 4 \end{bmatrix}, \qquad u = \begin{bmatrix} 1 \\ 0 \end{bmatrix}.

Then

vu=3,uu=1, v\cdot u = 3, \qquad u\cdot u = 1,

so

proju(v)=3[10]=[30]. \operatorname{proj}_u(v) = 3 \begin{bmatrix} 1 \\ 0 \end{bmatrix} = \begin{bmatrix} 3 \\ 0 \end{bmatrix}.

Projection separates a vector into a part along a direction and a part orthogonal to that direction.

3.14 Orthogonal Decomposition

Let u0u\ne 0. Every vector vv can be decomposed as

v=p+r, v = p + r,

where pp is parallel to uu and rr is orthogonal to uu.

The parallel part is

p=proju(v). p = \operatorname{proj}_u(v).

The orthogonal part is

r=vproju(v). r = v - \operatorname{proj}_u(v).

Then

ru=0. r\cdot u = 0.

This decomposition is fundamental. It is the geometric basis of least squares approximation, orthogonal projection onto subspaces, and many numerical algorithms.

3.15 Spheres and Balls

A sphere in Rn\mathbb{R}^n with center cc and radius r>0r>0 is the set

S={xRn:xc=r}. S = \{x\in\mathbb{R}^n : \|x-c\| = r\}.

A ball is the set of points whose distance from the center is less than or equal to the radius:

B={xRn:xcr}. B = \{x\in\mathbb{R}^n : \|x-c\| \le r\}.

In R2\mathbb{R}^2, a sphere is a circle and a ball is a disk. In R3\mathbb{R}^3, a sphere is the usual surface of a sphere and a ball is the solid region inside it.

The formulas remain valid in all dimensions.

3.16 Geometry and Linear Equations

A linear equation in nn variables,

a1x1+a2x2++anxn=b, a_1x_1+a_2x_2+\cdots+a_nx_n=b,

can be written as

ax=b, a\cdot x=b,

where

a=[a1a2an]. a = \begin{bmatrix} a_1 \\ a_2 \\ \vdots \\ a_n \end{bmatrix}.

Thus each linear equation defines a hyperplane with normal vector aa.

A system of equations

Ax=b Ax=b

describes the intersection of hyperplanes. Depending on the arrangement, the intersection may be empty, a point, a line, a plane, or a higher-dimensional affine set.

This geometric view explains why systems of linear equations may have no solution, one solution, or infinitely many solutions.

3.17 Euclidean Geometry in Matrix Form

Matrices act on Euclidean space by sending vectors to vectors.

If AA is an m×nm\times n matrix, then the rule

xAx x \mapsto Ax

maps Rn\mathbb{R}^n into Rm\mathbb{R}^m.

Some matrices preserve Euclidean geometry. For example, an orthogonal matrix QQ satisfies

QTQ=I. Q^TQ = I.

Such a matrix preserves dot products:

(Qu)(Qv)=uv. (Qu)\cdot(Qv)=u\cdot v.

Therefore it preserves lengths and angles. Rotations and reflections are examples of orthogonal transformations.

Other matrices distort geometry. They may stretch, shrink, shear, or collapse dimensions. Much of linear algebra studies these changes by examining rank, determinant, eigenvalues, singular values, and invariant subspaces.

3.18 Summary

Euclidean space combines coordinates with geometry. Points describe locations. Vectors describe displacements. The dot product gives algebraic definitions of length, distance, angle, and orthogonality. Lines, planes, and hyperplanes are described using vectors and linear equations.

The main formulas are:

ConceptFormula
Dot productuv=i=1nuiviu\cdot v=\sum_{i=1}^{n}u_iv_i
Normv=vv\|v\|=\sqrt{v\cdot v}
Distanced(p,q)=qpd(p,q)=\|q-p\|
Anglecosθ=uvuv\cos\theta=\frac{u\cdot v}{\|u\|\|v\|}
Orthogonalityuv=0u\cdot v=0
Linep+tvp+tv
Hyperplaneax=ba\cdot x=b
Projectionproju(v)=vuuuu\operatorname{proj}_u(v)=\frac{v\cdot u}{u\cdot u}u

Euclidean geometry is therefore not separate from linear algebra. It is one of its basic interpretations.