Mathwords logoMathwords

Euclidean Space — Definition, Formula & Examples

Euclidean space is the standard geometric space of nn dimensions where you can measure distances and angles using the familiar rules from everyday geometry. Points in nn-dimensional Euclidean space are represented as ordered lists of nn real numbers, like (x1,x2,,xn)(x_1, x_2, \ldots, x_n).

The nn-dimensional Euclidean space, denoted Rn\mathbb{R}^n, is the set of all nn-tuples of real numbers equipped with the Euclidean inner product x,y=i=1nxiyi\langle \mathbf{x}, \mathbf{y} \rangle = \sum_{i=1}^{n} x_i y_i and the induced norm x=i=1nxi2\|\mathbf{x}\| = \sqrt{\sum_{i=1}^{n} x_i^2}. This structure defines a complete normed inner product space (Hilbert space) over R\mathbb{R}.

Key Formula

d(a,b)=i=1n(aibi)2d(\mathbf{a}, \mathbf{b}) = \sqrt{\sum_{i=1}^{n}(a_i - b_i)^2}
Where:
  • a,b\mathbf{a}, \mathbf{b} = Two points in $\mathbb{R}^n$
  • ai,bia_i, b_i = The $i$-th coordinates of points $\mathbf{a}$ and $\mathbf{b}$
  • nn = The dimension of the space
  • d(a,b)d(\mathbf{a}, \mathbf{b}) = The Euclidean distance between the two points

How It Works

Each point in Rn\mathbb{R}^n is an ordered nn-tuple of real numbers. The Euclidean distance between two points a\mathbf{a} and b\mathbf{b} is ab\|\mathbf{a} - \mathbf{b}\|, which generalizes the Pythagorean theorem to nn dimensions. Angles between vectors are computed via the inner product: cosθ=a,bab\cos\theta = \frac{\langle \mathbf{a}, \mathbf{b} \rangle}{\|\mathbf{a}\|\,\|\mathbf{b}\|}. The familiar cases are the number line (R1\mathbb{R}^1), the coordinate plane (R2\mathbb{R}^2), and three-dimensional space (R3\mathbb{R}^3), but the same algebraic structure extends seamlessly to any positive integer nn.

Worked Example

Problem: Find the Euclidean distance between the points a=(1,3,2)\mathbf{a} = (1, 3, -2) and b=(4,1,2)\mathbf{b} = (4, -1, 2) in R3\mathbb{R}^3.
Compute coordinate differences: Subtract corresponding coordinates.
(41,  13,  2(2))=(3,  4,  4)(4-1,\; -1-3,\; 2-(-2)) = (3,\; -4,\; 4)
Sum the squares: Square each difference and add them.
32+(4)2+42=9+16+16=413^2 + (-4)^2 + 4^2 = 9 + 16 + 16 = 41
Take the square root: Apply the distance formula.
d(a,b)=416.403d(\mathbf{a}, \mathbf{b}) = \sqrt{41} \approx 6.403
Answer: The distance is 416.403\sqrt{41} \approx 6.403.

Why It Matters

Euclidean space is the default setting for multivariable calculus, linear algebra, and physics — nearly every vector, gradient, or force calculation assumes it. Machine learning algorithms like kk-nearest neighbors and principal component analysis rely on Euclidean distance and inner products in high-dimensional Rn\mathbb{R}^n. Understanding where Euclidean assumptions hold (and where they break, such as on curved surfaces) is essential in differential geometry and general relativity.

Common Mistakes

Mistake: Assuming every space with coordinates is Euclidean.
Correction: A space can use real-number coordinates but have a different metric. For example, Minkowski space in special relativity uses coordinates (t,x,y,z)(t, x, y, z) but a non-Euclidean inner product t2+x2+y2+z2-t^2 + x^2 + y^2 + z^2. The Euclidean structure requires the standard positive-definite inner product.