1. Home
  2. Explore
  3. Mathematics
  4. Sums of Squares and Geometry

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Sums of Squares and Geometry

Visualizing Higher-Dimensional Spheres with Coordinates

Geometry and algebra as complementary ways of thinking

A geometric picture can make an algebraic condition easier to understand, while an algebraic description can explain what a geometric object represents. For example, the equation

x2+y2=1x^2+y^2=1x2+y2=1

describes every pair (x,y)(x,y)(x,y) whose point lies on a circle of radius 111 centered at the origin. Geometry makes the relationship between the coordinates visible; algebra states the precise condition every point must satisfy.

The same connection applies to sums of squares and higher-dimensional shapes:

  • In two dimensions, a pair of coordinates describes a point in the plane.

  • In three dimensions, a triple of coordinates describes a point in ordinary space.

  • In higher dimensions, a longer list of coordinates describes a point in a higher-dimensional space, even when that space cannot be directly pictured.

Many problems involving more than three coordinates are routinely studied in mathematics, computer science, and physics. The challenge is not that their definitions are inaccessible: they can be stated analytically. The challenge is developing intuition for them without relying on a complete visual picture.


Coordinates as sliders

A useful way to build intuition is to represent each coordinate with its own number line and slider. A configuration of nnn sliders represents a point with nnn coordinates:

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

Each slider records one coordinate. A movement of one or more sliders corresponds to a movement of the point in the higher-dimensional space.

This approach does not literally draw a higher-dimensional shape. Instead, it makes the coordinate description easier to manipulate and imagine. The same rules apply whether there are two sliders, four, or many more.

Distance in any number of dimensions

The distance from the origin to a point with coordinates (x1,x2,…,xn)(x_1,x_2,\ldots,x_n)(x1​,x2​,…,xn​) is

x12+x22+⋯+xn2.\sqrt{x_1^2+x_2^2+\cdots+x_n^2}.x12​+x22​+⋯+xn2​​.

This generalizes the Pythagorean theorem: the squares of the coordinate components are added, and the square root of their sum gives the distance.

Consequently, a unit sphere centered at the origin in nnn dimensions is the set of all points satisfying

x12+x22+⋯+xn2=1.x_1^2+x_2^2+\cdots+x_n^2=1.x12​+x22​+⋯+xn2​=1.

The coordinates may vary, but their squared values must always add up to 111.


“Real estate”: a way to think about squared coordinates

The squared value of a coordinate can be treated as that coordinate’s share of a limited budget, or “real estate.” On the unit circle, for example, x2x^2x2 and y2y^2y2 share a total of 111:

x2+y2=1.x^2+y^2=1.x2+y2=1.

When one squared coordinate increases, the other must decrease by the same amount. Moving around the circle is therefore a continuous exchange of real estate between the coordinates.

The analogy is useful because the cost of a change in coordinate value depends on where the slider is. A small change in a coordinate near zero can correspond to a small change in its square, while the same-sized change farther from zero can alter its square more. Thus, when a fixed amount of squared-value budget is being exchanged, a slider near zero may move farther than a slider farther from zero.

For instance, if the circle starts at (1,0)(1,0)(1,0) and xxx moves to 0.90.90.9, then its squared value changes from 111 to 0.81:itgivesup0.81: it gives up0.81:itgivesup0.19unitsofrealestate.Forunits of real estate. Forunitsofrealestate.Fory^2togainto gaintogain0.19,,,ymustincreasetoapproximatelymust increase to approximatelymustincreasetoapproximately0.44.Arelativelysmallmovementof. A relatively small movement of.Arelativelysmallmovementofxhasallowedamuchlargermovementofhas allowed a much larger movement ofhasallowedamuchlargermovementofy$.

The same exchange is visible in a conventional drawing of the circle: near the point (1,0)(1,0)(1,0), a small horizontal movement can correspond to a large vertical movement. In the slider model, the motion can be imagined as a piston-like exchange, with the coordinates moving at different rates as their squared values trade off.

Key idea: The squared coordinates are the shared budget; the coordinates themselves are the slider positions.

The analogy also matches the units of distance. The total real estate is the squared distance from the origin, so taking its square root gives the actual distance.


Slices of spheres

The slider model extends from circles to spheres by adding coordinates while keeping the same total budget.

A three-dimensional sphere

A unit sphere in three dimensions consists of the points (x,y,z)(x,y,z)(x,y,z) satisfying

x2+y2+z2=1.x^2+y^2+z^2=1.x2+y2+z2=1.

The three coordinates share one unit of real estate. If xxx is fixed at 0.50.50.5, it uses 0.250.250.25 units, leaving 0.750.750.75 for yyy and zzz:

y2+z2=0.75.y^2+z^2=0.75.y2+z2=0.75.

This equation describes a circular slice of the sphere. More generally, fixing x=ax=ax=a leaves the other coordinates satisfying

y2+z2=1−a2.y^2+z^2=1-a^2.y2+z2=1−a2.

As ∣a∣|a|∣a∣ increases, less real estate remains for yyy and zzz, so the circular slice becomes smaller. At x=1x=1x=1, no real estate remains, forcing y=z=0y=z=0y=z=0; the slice has shrunk to a single point.

Higher-dimensional slices

For a unit sphere in four dimensions,

x2+y2+z2+w2=1,x^2+y^2+z^2+w^2=1,x2+y2+z2+w2=1,

all four sliders share the same one-unit budget. Fixing one coordinate leaves the other three to trade off the remaining real estate. Geometrically, this is a three-dimensional spherical slice of the four-dimensional sphere.

The same principle works in any dimension: fixing one coordinate of a unit sphere leaves the remaining coordinates on a sphere whose squared radius is the unspent budget.

This method focuses on which movements are allowed locally, rather than trying to picture the entire object at once. It is like understanding the rules for moving at one point on a surface without seeing the whole surface.


A surprising arrangement of spheres around a box

A useful example shows why higher-dimensional intuition can differ sharply from intuition based on two or three dimensions.

Consider the nnn-dimensional box

[−1,1]n.[-1,1]^n.[−1,1]n.

Its vertices have coordinates in which every coordinate is either 111 or −1-1−1. There are 2n2^n2n such vertices. Place a unit sphere at each vertex. Each sphere is tangent to its nnn neighboring spheres, because neighboring vertices differ by 222 in exactly one coordinate, so their centers are 222 units apart.

Now consider a sphere centered at the origin that is just large enough to touch the corner spheres. Its radius is determined by the distance from the origin to a vertex, minus the radius 111 of a corner sphere.

The distance from the origin to any vertex is

12+12+⋯+12=n.\sqrt{1^2+1^2+\cdots+1^2}=\sqrt{n}.12+12+⋯+12​=n​.

Therefore, the radius of the central sphere is

rn=n−1.r_n=\sqrt{n}-1.rn​=n​−1.

This formula explains the pattern across dimensions. In low dimensions, the central sphere is smaller than the corner spheres. As the number of dimensions increases, it grows; from dimension 444 onward, it is at least as large as the corner spheres.


Understanding the radius with sliders

The formula rn=n−1r_n=\sqrt{n}-1rn​=n​−1 gives the answer, but the slider model explains why the result changes with dimension.

Focus on the corner sphere centered at

(1,1,…,1).(1,1,\ldots,1).(1,1,…,1).

Its points satisfy

(x1−1)2+(x2−1)2+⋯+(xn−1)2=1.(x_1-1)^2+(x_2-1)^2+\cdots+(x_n-1)^2=1.(x1​−1)2+(x2​−1)2+⋯+(xn​−1)2=1.

Each term represents one coordinate’s share of the sphere’s unit budget, measured relative to the corner’s coordinates rather than relative to the origin.

The point on this corner sphere closest to the origin is symmetric: every coordinate moves the same amount away from 111. To share the unit budget equally, each coordinate contributes 1/n1/n1/n:

(xi−1)2=1n.(x_i-1)^2=\frac{1}{n}.(xi​−1)2=n1​.

For the closest point, the coordinates move from 111 toward 000, so

xi=1−1n.x_i=1-\frac{1}{\sqrt{n}}.xi​=1−n​1​.

The distance of this point from the origin is

n(1−1n)2=n−1.\sqrt{n\left(1-\frac{1}{\sqrt{n}}\right)^2} =\sqrt{n}-1.n(1−n​1​)2​=n​−1.

Because this point is where the corner sphere touches the central sphere, that distance is the central sphere’s radius.

The real-estate interpretation compares two different reference points:

  • Measured from the corner: the coordinates share one unit of budget in the quantities (xi−1)2(x_i-1)^2(xi​−1)2.

  • Measured from the origin: the same point has total real estate ∑i=1nxi2\sum_{i=1}^{n}x_i^2∑i=1n​xi2​, which determines the square of the central sphere’s radius.

That second total depends strongly on how many coordinates contribute.


What happens in different dimensions?

Two dimensions

A square has four vertices, and a unit circle is placed at each vertex. The distance from the origin to a vertex is 2\sqrt{2}2​, so the central circle has radius

r2=2−1≈0.414.r_2=\sqrt{2}-1\approx 0.414.r2​=2​−1≈0.414.

At the closest point on a corner circle, the coordinates have equal absolute values, each smaller than 0.50.50.5. Their squared values therefore add to less than 0.50.50.5, consistent with a relatively small central radius.

Three dimensions

A cube has eight vertices, each with a unit sphere centered there. The distance from the origin to a vertex is 3\sqrt{3}3​, giving the central sphere radius

r3=3−1≈0.732.r_3=\sqrt{3}-1\approx 0.732.r3​=3​−1≈0.732.

The closest point on a corner sphere again shares its budget equally across the coordinates. Relative to the origin, each coordinate is still less than 0.50.50.5, so the central sphere remains smaller than the corner spheres.

Four dimensions

A four-dimensional box has 161616 vertices and therefore 161616 corner spheres. The central radius is

r4=4−1=1.r_4=\sqrt{4}-1=1.r4​=4​−1=1.

At the closest point on a corner sphere, each coordinate is exactly 0.50.50.5. Relative to the origin, each coordinate contributes 0.250.250.25 units of real estate, for a total of 111. The central sphere is therefore the same size as each corner sphere.

This is a dimensional turning point: a central sphere of radius 111 reaches the faces of the box [−1,1]4[-1,1]^4[−1,1]4 when it extends along a coordinate axis.

Five dimensions

A five-dimensional box has 323232 vertices. The central sphere has radius

r5=5−1≈1.236.r_5=\sqrt{5}-1\approx 1.236.r5​=5​−1≈1.236.

At the closest point on a corner sphere, each coordinate is

1−15,1-\frac{1}{\sqrt{5}},1−5​1​,

which is greater than 0.50.50.5. The squared coordinates, measured from the origin, therefore add to more than 111. The central sphere is larger than the corner spheres and extends beyond the original box [−1,1]5[-1,1]^5[−1,1]5 along its coordinate directions.

Ten dimensions

In ten dimensions, each point has ten coordinates and a unit sphere’s real estate is shared among all ten. The central radius is

r10=10−1≈2.162.r_{10}=\sqrt{10}-1\approx 2.162.r10​=10​−1≈2.162.

The central sphere has a diameter greater than 444. The smallest axis-aligned box that bounds all the corner spheres is [−2,2]10[-2,2]^{10}[−2,2]10, whose side length is 444. Since the central sphere extends more than 222 units from the origin along each coordinate axis, it protrudes beyond this outer bounding box.

This does not conflict with the fact that every face of the original box [−1,1]10[-1,1]^{10}[−1,1]10 is only 111 unit from the origin. The central sphere’s radius is set by a point with contributions from all ten coordinates, whereas reaching a face along a coordinate axis involves changing only one coordinate.


Growth and the high-dimensional effect

As the dimension increases, the central radius

rn=n−1r_n=\sqrt{n}-1rn​=n​−1

grows without bound. The corner of the box moves farther from the origin because each additional coordinate contributes another 111 to the squared distance.

The central sphere also occupies a decreasing proportion of the outer box [−2,2]n[-2,2]^n[−2,2]n as the dimension grows. Although the box continues to contain the corner spheres, more and more of the central sphere lies outside it; the proportion lying inside the box tends toward zero exponentially with dimension.

These effects are examples of why simple extensions of two- or three-dimensional intuition can fail. A high-dimensional point can be far from the origin because many coordinates contribute to its total squared distance, even when each individual coordinate is modest.


What the slider model can—and cannot—show

The slider approach is a visual aid for analytic reasoning, not a substitute for a literal picture of a high-dimensional object. It helps make several ideas more concrete:

  • A point is a list of coordinates.

  • A sphere is defined by a constraint on the sum of squared coordinate values.

  • Changing one coordinate affects how much budget remains for the others.

  • A slice is formed by fixing some coordinates and allowing the rest to vary.

  • Distance depends on contributions from all coordinates, not just one.

The approach also has limits. It presents coordinates one at a time and does not provide the global view available in ordinary geometry. It is coordinate-based, while some geometric arguments can be more naturally expressed without choosing coordinates.

Nevertheless, representing each coordinate directly can make higher-dimensional reasoning easier to explore. Thinking of squared values as shared real estate gives an intuitive way to understand how coordinates trade off, how slices shrink, and why distant corners become increasingly far from the origin as dimensions are added.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent