- Home
- Library
- Computational Quantum Field Theory
- Solving Boundary and Evolution Equations
- Elliptic Field Equations in Several Dimensions
Elliptic Field Equations in Several Dimensions
A small residual answers a question about a system of algebraic equations. It does not yet answer whether a computed field solves the intended boundary problem. We will solve a scalar equation on a square, improve its linear solve with a sine-transform preconditioner, and measure the remaining error against a known continuum field. The same distinction becomes especially important in gravity: solving a gauge-fixed Einstein equation requires checking that the result is an Einstein metric rather than a Ricci soliton.
Preparation: The five-point formula below extends the construction in finite differences. Familiarity with symmetric matrices and integration by parts is sufficient. The gravity section states its additional geometric assumptions explicitly and uses the curvature convention.
A scalar boundary problem with a known answer
Let , with dimensionless coordinates, and consider
For , this is the stationarity equation of the strictly convex functional
with boundary values held fixed. If two solutions have the same data, their difference has zero boundary values and obeys
Thus they agree. This positivity is also what will make conjugate gradients appropriate after discretization.
Choose
Since , the potential satisfies . The function vanishes on every edge, so has the required nonzero boundary values. Differentiation gives
We define by adding to Eq.(5). This manufactured solution supplies the source and an exact test field; it does not put the unknown grid solution into the numerical solver.
Write . Because , the equation to solve is
The subtraction matters even though the lift is harmonic. For a general lift, the right-hand side is . One can instead move each known boundary neighbor into the finite-difference right-hand side. The companion implements both constructions independently and checks their agreement.
Assemble the interior equations
Use interior points per direction, spacing , and indices . The row at is
Boundary entries of are zero. With varying fastest in the flattened vector, define
The matrix is real symmetric. Extend any interior vector by zero to the boundary. If the first sum below counts each nearest-neighbor edge once, including edges joining an interior point to the boundary, then
for nonzero . This is a discrete counterpart of Eq.(3).
Replacing boundary rows in a larger matrix by identity rows while leaving the corresponding columns untouched generally destroys symmetry. Either eliminate the known boundary values consistently or use the lift. The fact that the continuum operator is self-adjoint does not excuse an asymmetric matrix assembly.
Solve a nearby problem cheaply
The constant-potential matrix
has sine eigenvectors. Its eigenvalues are
To apply , take the orthonormal type-I discrete sine transform in both directions, divide each transformed entry by Eq.(11), and transform back. The orthonormal DST-I is its own inverse; this is the normalization used in the SciPy implementation's Type-I definition. The transforms cost and require no dense inverse.
Why is this an effective preconditioner when is not constant? Write , where . For the symmetric preconditioned matrix ,
The upper bound is below on every grid used here and tends to as . The increasingly stiff Laplacian has been removed from the conditioning problem. By contrast, the largest eigenvalue of grows like while its smallest stays bounded below.
Preconditioned conjugate gradients does not construct . Starting with , use , , , and repeat
In exact arithmetic this is conjugate gradients on the equivalent SPD problem involving . It is not ordinary Euclidean conjugate gradients applied blindly to the generally nonsymmetric matrix . The standard energy-norm estimate is
An arbitrary approximate factorization need not preserve these hypotheses. Here both and the applied inverse have explicit positivity proofs. The companion supplies as the inverse-preconditioner argument expected by SciPy's CG interface.
Residual, grid error and measured improvement
Let be the exact solution of the discrete system, and its computed approximation. The algebraic error and true residual satisfy
The factor makes the vector norm approximate a two-dimensional norm. This is an exact-matrix bound; floating-point evaluation of its ingredients introduces its own small rounding errors. It says nothing by itself about . The total error is the sum of the algebraic and discretization errors.
The retained binary64 calculation starts from zero, requests relative residual tolerance with zero absolute tolerance, and obtains the following results. The error column uses the PCG solution; CG agrees at the displayed accuracy.
| CG iterations | DST-PCG iterations | ||
|---|---|---|---|
| 15 | 56 | 7 | |
| 31 | 115 | 7 | |
| 63 | 234 | 7 | |
| 127 | 473 | 7 |
The observed weighted- orders are , and , consistent with the second-order stencil. On the finest grid the maximum pointwise error is . For this potential and these data, PCG took seven iterations at each resolution, consistent with Eq.(12).
Refining one fixed boundary problem. Left: error against the manufactured continuum solution. Right: iteration counts at the same requested tolerance. Each PCG step also applies two-dimensional sine transforms; iteration counts are not wall-clock speedups. Plain CG's finest-grid stopping flag requires the true-residual qualification in the text.
There is a useful failure of a stricter interpretation of the stopping flag. For , plain CG reports success, but its independently recomputed relative residual is , larger than the requested . The recursive residual used during iteration and have drifted apart in floating point. The output retains the failed requested-target flag. Equation (15), evaluated with the recomputed residual, gives an algebraic-error bound , still far below the discretization error. PCG's true relative residual is on this grid.
At fixed , changing only PCG's requested tolerance gives
| Requested tolerance | Iterations | Bound from Eq.(15) | |
|---|---|---|---|
| 3 | |||
| 5 | |||
| 7 |
Here the direct sparse solution is a comparison for the same discrete matrix. Tightening the last tolerance cannot remove the roughly PDE error. Indeed, the loosest solve happens to have slightly smaller total error through cancellation; monotonic improvement of the total continuum error is not guaranteed as the linear solve is tightened.
The reproducible files are elliptic_scalar.py, elliptic_checks.py and elliptic-results.json under examples/computational-qft/field-equations/. Checks include symbolic differentiation of Eq.(5), sine eigenvectors, the DST inverse, independent boundary assembly, sparse direct solves and grid refinement. Operator counts distinguish the CG iteration from the one additional product used to recompute the final residual. This calculation has a fixed finite domain and does not perform a field-theory continuum or infinite-volume extrapolation.
What changes for Einstein–DeTurck equations?
Gauge freedom can prevent an otherwise plausible field equation from being elliptic. Consider a smooth positive-definite metric in dimensions, a reference metric , and
Parentheses denote symmetrization with a factor . The parameter is the Einstein constant: in the usual vacuum Einstein equation it equals . It is not automatically the physical cosmological constant itself. We keep the site's Riemann sign and use Riemannian signature in this section.
Around a flat reference metric, at , put and . Then
The gauge term cancels the diffeomorphism-degenerate derivatives. More generally the principal part is , which is elliptic for a positive-definite metric. This statement neither makes a nonlinear gravity Jacobian SPD nor specifies an elliptic boundary problem.
Boundary data require a separate analysis. Fixing the entire induced boundary metric and imposing supplies the right number of conditions but does not generally give a regular elliptic Einstein boundary problem. One admissible construction fixes the conformal class of the induced metric and the trace of its extrinsic curvature, together with ; see Figueras, Lucietti and Wiseman, §2.2.1, p.7 (PDF). Counting conditions is therefore not a replacement for checking their compatibility with the elliptic operator.
Equation (16) is a Ricci-soliton equation; solving it alone does not establish . The sufficient condition removes the extra term. A nonzero Killing vector also has , so the vector's nonvanishing alone would not prove that a metric fails to be Einstein. A useful argument enforces under specific hypotheses. Let the solution be smooth on a connected compact Riemannian domain with nonempty smooth boundary, assume , and impose on its whole boundary. The contracted Bianchi identity gives
For , this implies
The maximum principle and force . This is the bounded-domain version of the argument in Figueras, Lucietti and Wiseman, §2.1, Eqs.(2.1)–(2.3) (PDF). Noncompact ends require appropriate falloff and boundary hypotheses; Lorentzian signature or positive invalidates this particular positivity argument.
A numerical route must therefore choose a metric ansatz, reference metric and compatible boundary conditions, solve , and inspect both the Einstein residual and the DeTurck-vector norm under resolution refinement. An applicable soliton-exclusion theorem supplies an additional mathematical justification. A small sampled norm alone is not an unconditional exclusion theorem. The scalar computation above tests none of these nonlinear gravitational steps; it supplies the simpler assembly, preconditioning and error-separation tools on which such a calculation can build.
Summary
Boundary lifting gives a symmetric interior problem, and a nearby constant-potential operator gives an inexpensive SPD preconditioner with a mesh-independent condition bound. The recomputed residual controls the algebraic error, while manufactured-solution refinement measures the separate discretization error. For gravity, ellipticity, admissible boundary conditions and the absence of a non-Einstein soliton are distinct requirements.
Exercises
1. Prove the bounds and test a boundary shortcut
Suppose , with SPD and . Derive the spectral bound used in Eq.(12), and bound the Euclidean solution error in terms of the true residual. Explain why replacing only the boundary rows of a symmetric matrix by identity rows may prevent use of CG.
Solution
For any vector ,
The second term is nonnegative and at most . The Rayleigh quotient gives eigenvalues between and . Also , hence
Multiplication by yields Eq.(15). This bound is about the chosen matrix, not its consistency with a differential equation.
Order a larger system into interior and boundary variables. A symmetric original matrix has off-diagonal blocks and . Replacing only boundary rows gives
which is generally not symmetric. Eliminate the prescribed boundary vector instead: solve . The principal interior block is SPD when the original relevant energy is positive. A lift implements the same boundary information without pretending the row-replaced matrix is SPD.
2. When does a DeTurck solution have to be Einstein?
Starting from Eqs.(16) and (18), derive Eq.(19). Show that follows on a compact connected Riemannian domain with nonempty smooth boundary, zero boundary and . Identify the step that fails for a general Lorentzian metric and for positive .
Solution
Metric compatibility and Eq.(18) give
Insert . Since
the result is Eq.(19). A nonconstant function obeying this elliptic drift inequality cannot attain a positive maximum in the interior. Compactness ensures a maximum exists, and the boundary value is zero. The constant case also has value zero. Thus , and positive definiteness implies .
For a Lorentzian metric, and need not be nonnegative and the principal operator is not elliptic, so this proof fails at several essential steps. For positive , the term need not be nonnegative, so the stated maximum-principle inequality no longer follows. On a noncompact space, behavior at every end must also be controlled before making a maximum argument.
References
- Pau Figueras, James Lucietti and Toby Wiseman, Ricci solitons, Ricci flow, and strongly coupled CFT in the Schwarzschild Unruh or Boulware vacua (2011), arXiv:1104.4489v2, §2.1 Eqs.(2.1)–(2.3) and §2.2.1, pp.5–7 (PDF). The boundary conditions and Riemannian maximum-principle assumptions are essential.
- SciPy developers, Conjugate gradients, SciPy 1.13.1 documentation, parameters and stopping criterion; Discrete sine transform, Type-I definition. These are the interfaces used by the retained calculation.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.