In the 2nd post of this series we have derived an explicit formula for the volume of a n-dimensional ellipsoid (in an Euclidean space). One reason for the relatively simple derivation was that the determinant of the generating linear transformation could be taken in front of the volume integral. Unfortunately, an analogue sequence of steps is not possible for an ellipsoid’s surface area. Reasons, also on a formal mathematical level, are given by P. Masson in [1] and M. Jorgensen in [2]. The metric and varying curvature of the surface do not allow for getting the semi-axes by whatever kind of expression out of the required surface area integrals.
However, as I. Rivin has shown in [3] and [4], statistics can help us – once again and a bit surprisingly. I. Rivin has derived a formula which relates the surface of an ellipsoid with the expectation value of special coordinate dependent function fp weighted by a simple probability density. As we will see, the required function fp involves both components of vectors of the unit sphere and the ellipsoid’s n semi-axes in a kind of norm-like expression. fp depends on polar coordinates in such a way that it can be written as a product given by a power of the radius and an angle-dependent rest-function. The probability density used to calculate the expectation value is simply given by a product of Gaussian functions, which describes a set of combined, but independent normal distributions (one distribution per coordinate).
I admit, this is a very special mathematical topic. But the underlying proof has some elements which are both beautiful and probably not obvious for us normal mortals. I cover the topic here for the sake of completeness of this series and because we get another example for the relation of Gaussian based MVN-statistics and the geometry of objects described by quadratic forms.
I will first briefly repeat Rivin’s ideas below (with slight modifications) – just to make them at least plausible. Afterward, I provide a factor needed for an adaption of Rivin’s result to the standard definition of a Gaussian with a variance equal to 1.
This post focuses on theory. All credits belong to I. Rivin. But, in a sub-sequent post, we will verify the applicability of Rivin’s formula for ellipsoid’s in 2 and 3 dimensions, created from a 4-dim MVN.
Previous posts in this series:
- Post 1: n-dimensional spheres and ellipsoids – I – Gamma-function, volume and surface of n-spheres
- Post 2: n-dimensional spheres and ellipsoids – II – volume of n-ellipsoids
The relation of the volume and the surface area of an ellipsoid
We work with an (n-1)-dimensional convex and closed ellipsoidal surface in the Euclidean ℝn. The center of the enclosed volume is assumed to coincide with the origin of a Cartesian Coordinate system [CCS]. Rivin starts with citing a formula of Cauchy for general bodies K with a closed convex surface; for details of Cauchy’s formulas see e.g. [5] and [8]. This formula relates the convex surface to an averaged integration of volumes/areas of orthogonal projections of K to (n-1)-dimensional sub-spaces of the ℝn.
As we need to measure volumes and surfaces areas across lower dimensional sub-spaces we need Lebesgue measures. Let us call the measure of a (n-1)-dimensional sub-space μn-1 and afterward forget about subtleties and speak of volumes V and surface areas S of respective manifolds.
We use the symbol 𝕊n-1 for the (n-1)-dimensional unit sphere and 𝔹n for the respective n-dim unit ball in the ℝn. The ∂-symbol indicates a surface:
𝕊n-1 and 𝔹n, of course, cover different sets of vectors. As in the first post of this series, we call the volume of the (n-1) dimensional unit sphere vn,1 = VSn,1 and its surface sn-1,1 = SSn-1,1 :
From the first post we know already the following relations between surfaces and volumes of general spheres with radius r
and therefore
Cauchy’s averaging formula for the surface area
Imagine a body K ⊂ ℝn, enclosed in a convex (n-1)-dimensional surface/manifold. Now take a vector u ∈ 𝕊n-1 of the (n-1)-dimensional unit sphere 𝕊n-1 around the origin and regard the (n-1)-dimensional sub-space of the ℝn perpendicular to u. In my understanding, Cauchy’s surface area formula then states the following:
An averaged integral over the areas of all orthogonal projections on the (n-1)-dimensional sub-spaces (each perpendicular to a vector of the unit-sphere) is equal to the surface area of the body, up to a constant in the dimension.
Let μn−1 be the (n−1)-dimensional Lebesgue measure for such a (n-1)-dimensional sub-space. By K|u⊥, we denote the projection of K onto the (n−1)-dimensional subspace of ℝn perpendicular to u. Then:
or with a notation for normal mortals,
Due to formulas for the unit ball and its surface given above we can rewrite this to
dσ denotes a standard surface element of the unit sphere 𝕊n-1 in the ℝn. The volume inside the integral refers to the (n-1)-dim volume of the projection of the n-dim body K to a (n-1)-dim subspace. However, the averaging surface area in the denominator is of dimension (n-2). It is worthwhile to dwell a bit on the message of this formula. You may test e.g its truth for the surface of a sphere in the ℝ3.
Let us follow Rivin and express a proper averaging of an integral over some space S by a special integral symbol (with x being a vector)
For our unit sphere:
Then we can rewrite eq. (8) as
The integrand for ellipsoids
Addendum, 02/06/2026: We choose now to describe the problem in a main-axes system, i.e. in a CCS, whose coordinate axes are aligned with the main axes of the ellipsoid. We also assume that the center of the ellipsoid coincides with the origin of the CCS. This allows for some simplification. Note that both the definition of the ellipsoid (eq. (12) and the formula given for the volume of projections (eq.(13)) given below are only valid in their given form in such a main-axes system. Note also that the probability density of a MVN described in a main axes system of the MVN’s contour ellipsoids gets a particularly simple form (composition of independent Gaussians).
We first denote the (n-1)-dim ellipsoid by E and its n semi-axes by ai. In a CCS (of the ℝn) whose coordinate axes are aligned with the main axes of the ellipsoid, the ellipsoid is defined by :
We just accept a (rather plausible) formula which Rivin derived in [4] for the integrand of eq. (12), i.e. the (n-1)-dim volume of a projection of an ellipsoid’s volume to a sub-space orthogonal to u ∈ 𝕊n-1. In our chosen CCS, the volume of the (n-1)-dim projection is given by:
With the volume Vn(E) enclosed by an (n-1) dim ellipsoid in the ℝn (see the previous 2nd post, eq. 28, in this series)
and with the help of eqs.(5), (6) and (12), we reproduce an intermediate result of Rivin, namely a relation between the volume and the surface area of an ellipsoid
I find it just “beautiful” that such a proportionality relation exists. But there is more to it. The next step exploits the fact that a general MVN and its confidence ellipses in the ℝn can be generated from a spherical MVN to its full extend.
Integrals of certain radius dependent functions over unit spheres, Gaussian statistics, expectation values
I change the more general argumentation of Rivin a bit below. Let us assume you have a function fp of polar coordinates ( dependent on r and angles) with the following property
Now, let us look at the expectation value of the function fp weighted by Gaussians for independent normal distributions Xi along the n coordinate axes with a variance of 1/2:
(We will see below how we adjust such integrals for standard Gaussians with a variance = 1 by a leading factor.)
We change to polar coordinates and use the following integral over the surface of the unit sphere
Then, with a substitution u = r2, we can evaluate the expectation value:
Let us check the normalization factor of Rivin’s somewhat special Gaussian:
Thus we get
All in all
This is a noteworthy relation between a surface integral of a radius dependent function and a Gaussian expectation value for the very same function. And it certainly is a very original idea of I. Rivin.
The normalization factor – directly derived
We first get the normalization factor C of Rivin’s Gaussian for a variance of 0.5:
We look at one of the 1-dim integrals :
So, we find
Application to our (n-1)-dimensional ellipsoids in a n-dimensional Euclidean space
Let us return to eq.(15), we see that
I.e.,
and,
The notation deviates here from the one chosen by Rivin. We mean by Xi2 that a concrete coordinate value of a point in the Gaussian distribution must first be squared and then multiplied by qi2 ahead of the summation over all dimensions (and their Gaussians). See also [6] for this notation. The probability density by which the square root must be multiplied is given by the product of the n probability densities of the n independent Gaussian distributions (all with a variance of 1/2, so far).
Now, we can use our formula for the volume of an ellipsoid derived in post II of this series (see eq. 14 above)
Because
we eventually have
This dependence on an expectation value is also referred to in [6].
Adaption of expectation value to standard Gaussians with a variance equal to 1
Let us evaluate the expectation value a bit further and substitute variable such that a transition to a 1-dim Gaussians for a variance = 1 occurs:
A substitution xi = vi / (21/2 ) leads (for our special function fp) to
(Note, 01/262026: This formula has been corrected; sorry for any inconvenience).
So, to move to standard Gaussians for a variance of 1 we just have to add a n-independent (!) factor 1/sqrt(2). This is of relevance when numerical programs create MVNs based on standard Gaussians.
Conclusion
The surface of an ellipsoid in the ℝn is a surprisingly difficult topic if no rotational symmetries around some axes of the ellipsoid are assumed. Today’s modern treatment normally involve incomplete elliptic and Abelian integrals; see e.g. [7] and [9]. We did not move in that direction. Instead we followed an idea of I. Rivin. We derived a formula which relates the ellipsoid’s (n-1)-dimensional surface area to an expectation value of a certain function of the ellipsoids semi-axes and Gaussian probability densities. This opens up for a numerical calculation of ellipsoidal surfaces by the means of MVN statistics. In the next post
we will show with the help of numerical methods that Rivin’s formula provides correct results for general 2-dimensional ellipses and 3-dimensional ellipsoids.
Links and literature
[1] Paul Masson, Independent Physicist, San Francisco, 2021, contribution at analyticphysics.com on n-dimensional ellipsoids
https://analyticphysics.com/Higher%20Dimensions/Ellipsoids%20in%20Higher%20Dimensions.htm
[2] M.Jorgensen, 2014, “Volumes of n-dimensional spheres and ellipsoids”,
https://www.whitman.edu/Documents/Academics/Mathematics/2014/jorgenmd.pdf
[3] I. Rivin, 2003, “Surface Area of Ellipsoids”, DOI: 10.48550/arXiv.math/0306387,
https://arxiv.org/abs/math/0306387v4
[4] I. Rivin, 2004, “Surface Area And Other Measures Of Ellipsoids”, DOI: https://doi.org/10.48550/arXiv.math/0403375,
https://arxiv.org/abs/math/0403375
[5] E. Tsukerman, E.Veomett, 2016, “A Simple Proof of Cauchy’s Surface Area Formula”, DOI: 10.48550/arXiv.1604.05815 ,
https://arxiv.org/abs/1604.05815
[6] J. D. Cook, 2023, “Hyperellipsoid surface area”, blog post at
https://www.johndcook.com/blog/2023/09/11/hyperellipsoid-surface-area/
[7] G. Tee, 2004, “Surface Area And CapacityOf Ellipsoids In n Dimensions”, publication of the University of Auckland,
https://researchspace.auckland.ac.nz/server/api/core/bitstreams/64845042-d15c-4667-9ffe-c59682665f1d/content
[8] D. Hug, R. Schneider, 2020, “Vectorial analogues of Cauchy’s surface area formula”, Arch. Math. 122, 343–352 (2024).
https://doi.org/10.1007/s00013-023-01962-y and https://link.springer.com/article/10.1007/s00013-023-01962-y
[9] L. Maas, 1994, “On the surface area of an ellipsoid and related integrals of elliptic integrals”, Journal of Computational and Applied Mathematics, Volume 51, Issue 2, 1994, Pages 237-249, ISSN 0377-0427,
https://doi.org/10.1016/0377-0427(92)00009-X.