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
describes every pair (x,y) whose point lies on a circle of radius 1 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 n sliders represents a point with n coordinates:
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) is
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 n dimensions is the set of all points satisfying
The coordinates may vary, but their squared values must always add up to 1.
“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, x2 and y2 share a total of 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) and x moves to 0.9, then its squared value changes from 1 to 0.81:itgivesup0.19unitsofrealestate.Fory^2togain0.19,ymustincreasetoapproximately0.44.Arelativelysmallmovementofxhasallowedamuchlargermovementofy$.
The same exchange is visible in a conventional drawing of the circle: near the point (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) satisfying
The three coordinates share one unit of real estate. If x is fixed at 0.5, it uses 0.25 units, leaving 0.75 for y and z:
This equation describes a circular slice of the sphere. More generally, fixing x=a leaves the other coordinates satisfying
As ∣a∣ increases, less real estate remains for y and z, so the circular slice becomes smaller. At x=1, no real estate remains, forcing y=z=0; the slice has shrunk to a single point.
Higher-dimensional slices
For a unit sphere in four dimensions,
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 n-dimensional box
Its vertices have coordinates in which every coordinate is either 1 or −1. There are 2n such vertices. Place a unit sphere at each vertex. Each sphere is tangent to its n neighboring spheres, because neighboring vertices differ by 2 in exactly one coordinate, so their centers are 2 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 1 of a corner sphere.
The distance from the origin to any vertex is
Therefore, the radius of the central sphere is
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 4 onward, it is at least as large as the corner spheres.
Understanding the radius with sliders
The formula rn=n−1 gives the answer, but the slider model explains why the result changes with dimension.
Focus on the corner sphere centered at
Its points satisfy
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 1. To share the unit budget equally, each coordinate contributes 1/n:
For the closest point, the coordinates move from 1 toward 0, so
The distance of this point from the origin is
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.
Measured from the origin: the same point has total real estate ∑i=1nxi2, 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, so the central circle has radius
At the closest point on a corner circle, the coordinates have equal absolute values, each smaller than 0.5. Their squared values therefore add to less than 0.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, giving the central sphere radius
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.5, so the central sphere remains smaller than the corner spheres.
Four dimensions
A four-dimensional box has 16 vertices and therefore 16 corner spheres. The central radius is
At the closest point on a corner sphere, each coordinate is exactly 0.5. Relative to the origin, each coordinate contributes 0.25 units of real estate, for a total of 1. The central sphere is therefore the same size as each corner sphere.
This is a dimensional turning point: a central sphere of radius 1 reaches the faces of the box [−1,1]4 when it extends along a coordinate axis.
Five dimensions
A five-dimensional box has 32 vertices. The central sphere has radius
At the closest point on a corner sphere, each coordinate is
which is greater than 0.5. The squared coordinates, measured from the origin, therefore add to more than 1. The central sphere is larger than the corner spheres and extends beyond the original box [−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
The central sphere has a diameter greater than 4. The smallest axis-aligned box that bounds all the corner spheres is [−2,2]10, whose side length is 4. Since the central sphere extends more than 2 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 is only 1 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
grows without bound. The corner of the box moves farther from the origin because each additional coordinate contributes another 1 to the squared distance.
The central sphere also occupies a decreasing proportion of the outer box [−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.