Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    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 Ω=(0,1)2\Omega=(0,1)^2, with dimensionless coordinates, and consider

    Lu≡−Δu+q(x,y)u=f(x,y),u∣∂Ω=g.(1)\mathcal L u\equiv-\Delta u+q(x,y)u=f(x,y), \qquad u|_{\partial\Omega}=g. \tag{1}

    For q≥q0>0q\ge q_0>0, this is the stationarity equation of the strictly convex functional

    E[u]=∫Ω[12∣∇u∣2+12qu2−fu]d2x(2)\mathcal E[u]=\int_\Omega \left[\frac12|\nabla u|^2+\frac12qu^2-fu\right]d^2x \tag{2}

    with boundary values held fixed. If two solutions have the same data, their difference vv has zero boundary values and obeys

    0=∫ΩvLv d2x=∫Ω(∣∇v∣2+qv2)d2x.(3)0=\int_\Omega v\mathcal Lv\,d^2x =\int_\Omega(|\nabla v|^2+qv^2)d^2x. \tag{3}

    Thus they agree. This positivity is also what will make conjugate gradients appropriate after discretization.

    Choose

    p(x)=x(1−x),q(x,y)=1+80p(x)p(y),g(x,y)=1+x+2y,w∗(x,y)=ex+yp(x)p(y),u∗=g+w∗.(4)\begin{aligned} p(x)&=x(1-x),& q(x,y)&=1+80p(x)p(y),\\ g(x,y)&=1+x+2y,& w_*(x,y)&=e^{x+y}p(x)p(y),\\ u_*&=g+w_*. \end{aligned} \tag{4}

    Since 0≤p≤1/40\le p\le1/4, the potential satisfies 1≤q≤61\le q\le6. The function w∗w_* vanishes on every edge, so u∗u_* has the required nonzero boundary values. Differentiation gives

    −Δw∗=ex+y[(3x+x2)p(y)+p(x)(3y+y2)].(5)-\Delta w_*=e^{x+y} \left[(3x+x^2)p(y)+p(x)(3y+y^2)\right]. \tag{5}

    We define ff by adding q(g+w∗)q(g+w_*) 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 u=g+wu=g+w. Because Δg=0\Delta g=0, the equation to solve is

    (−Δ+q)w=b,b=f−qg,w∣∂Ω=0.(6)(-\Delta+q)w=b,\qquad b=f-qg, \qquad w|_{\partial\Omega}=0. \tag{6}

    The subtraction qgqg matters even though the lift gg is harmonic. For a general lift, the right-hand side is f−Lgf-\mathcal Lg. 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 nn interior points per direction, spacing h=1/(n+1)h=1/(n+1), and indices i,j=1,…,ni,j=1,\ldots,n. The row at (xi,yj)(x_i,y_j) is

    4wij−wi−1,j−wi+1,j−wi,j−1−wi,j+1h2+qijwij=bij.(7)\frac{4w_{ij}-w_{i-1,j}-w_{i+1,j}-w_{i,j-1}-w_{i,j+1}}{h^2} +q_{ij}w_{ij}=b_{ij}. \tag{7}

    Boundary entries of ww are zero. With xx varying fastest in the flattened vector, define

    Th=1h2tridiag⁡(−1,2,−1),A=I⊗Th+Th⊗I+diag⁡(qij).(8)T_h=\frac1{h^2}\operatorname{tridiag}(-1,2,-1), \qquad A=I\otimes T_h+T_h\otimes I+\operatorname{diag}(q_{ij}). \tag{8}

    The matrix is real symmetric. Extend any interior vector vv 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

    h2vTAv=∑edges (a,b)(va−vb)2+h2∑i,jqijvij2>0(9)h^2v^TAv =\sum_{\text{edges }(a,b)}(v_a-v_b)^2 +h^2\sum_{i,j}q_{ij}v_{ij}^2>0 \tag{9}

    for nonzero vv. 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

    P=I⊗Th+Th⊗I+I(10)P=I\otimes T_h+T_h\otimes I+I \tag{10}

    has sine eigenvectors. Its eigenvalues are

    λjk(P)=1+4h2[sin⁡2jπh2+sin⁡2kπh2],j,k=1,…,n.(11)\lambda_{jk}(P)=1+\frac4{h^2} \left[\sin^2\frac{j\pi h}{2}+\sin^2\frac{k\pi h}{2}\right], \qquad j,k=1,\ldots,n. \tag{11}

    To apply P−1P^{-1}, 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 O(n2log⁡n)O(n^2\log n) and require no dense inverse.

    Why is this an effective preconditioner when qq is not constant? Write A=P+VA=P+V, where 0≤V≤5I0\le V\le5I. For the symmetric preconditioned matrix B=P−1/2AP−1/2B=P^{-1/2}AP^{-1/2},

    1≤λ(B)≤1+5λmin⁡(P),λmin⁡(P)=1+8h2sin⁡2πh2.(12)1\le\lambda(B)\le1+\frac5{\lambda_{\min}(P)}, \qquad \lambda_{\min}(P)=1+\frac8{h^2}\sin^2\frac{\pi h}{2}. \tag{12}

    The upper bound is below 1.251.25 on every grid used here and tends to 1+5/(1+2π2)1+5/(1+2\pi^2) as h→0h\to0. The increasingly stiff Laplacian has been removed from the conditioning problem. By contrast, the largest eigenvalue of AA grows like h−2h^{-2} while its smallest stays bounded below.

    Preconditioned conjugate gradients does not construct P−1/2P^{-1/2}. Starting with w0w_0, use r0=b−Aw0r_0=b-Aw_0, z0=P−1r0z_0=P^{-1}r_0, d0=z0d_0=z_0, and repeat

    αk=rkTzkdkTAdk,wk+1=wk+αkdk,rk+1=rk−αkAdk,zk+1=P−1rk+1,βk=rk+1Tzk+1rkTzk,dk+1=zk+1+βkdk.(13)\begin{aligned} \alpha_k&=\frac{r_k^Tz_k}{d_k^TAd_k}, &w_{k+1}&=w_k+\alpha_kd_k,\\ r_{k+1}&=r_k-\alpha_kAd_k, &z_{k+1}&=P^{-1}r_{k+1},\\ \beta_k&=\frac{r_{k+1}^Tz_{k+1}}{r_k^Tz_k}, &d_{k+1}&=z_{k+1}+\beta_kd_k. \end{aligned} \tag{13}

    In exact arithmetic this is conjugate gradients on the equivalent SPD problem involving BB. It is not ordinary Euclidean conjugate gradients applied blindly to the generally nonsymmetric matrix P−1AP^{-1}A. The standard energy-norm estimate is

    ∥ek∥A∥e0∥A≤2(κ(B)−1κ(B)+1)k,∥e∥A2=eTAe.(14)\frac{\|e_k\|_A}{\|e_0\|_A} \le2\left(\frac{\sqrt{\kappa(B)}-1}{\sqrt{\kappa(B)}+1}\right)^k, \qquad \|e\|_A^2=e^TAe. \tag{14}

    An arbitrary approximate factorization need not preserve these hypotheses. Here both AA and the applied inverse P−1P^{-1} have explicit positivity proofs. The companion supplies P−1P^{-1} as the inverse-preconditioner argument expected by SciPy's CG interface.

    Residual, grid error and measured improvement

    Let whw_h be the exact solution of the discrete system, and w~h\widetilde w_h its computed approximation. The algebraic error and true residual satisfy

    ealg=wh−w~h=A−1r,r=b−Aw~h,h∥ealg∥2≤h∥r∥2λmin⁡(P).(15)e_{\rm alg}=w_h-\widetilde w_h=A^{-1}r, \qquad r=b-A\widetilde w_h, \qquad h\|e_{\rm alg}\|_2\le\frac{h\|r\|_2}{\lambda_{\min}(P)}. \tag{15}

    The factor hh makes the vector norm approximate a two-dimensional L2L^2 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 wh−w∗w_h-w_*. The total error is the sum of the algebraic and discretization errors.

    The retained binary64 calculation starts from zero, requests relative residual tolerance 10−1210^{-12} with zero absolute tolerance, and obtains the following results. The error column uses the PCG solution; CG agrees at the displayed accuracy.

    nnh∥uh−u∗∥2h\lVert u_h-u_*\rVert_2CG iterationsDST-PCG iterations
    151.54183×10−41.54183\times10^{-4}567
    313.85773×10−53.85773\times10^{-5}1157
    639.64623×10−69.64623\times10^{-6}2347
    1272.41167×10−62.41167\times10^{-6}4737

    The observed weighted-L2L^2 orders are 1.99881.9988, 1.99971.9997 and 1.99991.9999, consistent with the second-order stencil. On the finest grid the maximum pointwise error is 4.55954×10−64.55954\times10^{-6}. For this potential and these data, PCG took seven iterations at each resolution, consistent with Eq.(12).

    The scalar solution error follows a second-order reference as the grid is refined; plain conjugate-gradient iteration counts rise while the sine-preconditioned count stays at seven.

    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 n=127n=127, plain CG reports success, but its independently recomputed relative residual is 2.62203×10−122.62203\times10^{-12}, larger than the requested 10−1210^{-12}. The recursive residual used during iteration and b−Aw~hb-A\widetilde w_h 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 3.75065×10−133.75065\times10^{-13}, still far below the 2.41167×10−62.41167\times10^{-6} discretization error. PCG's true relative residual is 5.58216×10−135.58216\times10^{-13} on this grid.

    At fixed n=63n=63, changing only PCG's requested tolerance gives

    Requested toleranceIterationsh∥w~h−whdirect∥2h\lVert\widetilde w_h-w_h^{\rm direct}\rVert_2Bound from Eq.(15)
    10−410^{-4}38.36×10−78.36\times10^{-7}8.36×10−68.36\times10^{-6}
    10−810^{-8}53.79×10−113.79\times10^{-11}6.84×10−106.84\times10^{-10}
    10−1210^{-12}74.08×10−154.08\times10^{-15}6.33×10−146.33\times10^{-14}

    Here the direct sparse solution is a comparison for the same discrete matrix. Tightening the last tolerance cannot remove the roughly 10−510^{-5} 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 gabg_{ab} in D>2D>2 dimensions, a reference metric gˉab\bar g_{ab}, and

    ξa=gbc(Γbca−Γˉbca),Eab=Rab−∇(aξb)−λEgab=0.(16)\begin{aligned} \xi^a&=g^{bc}(\Gamma^a_{bc}-\bar\Gamma^a_{bc}),\\ E_{ab}&=R_{ab}-\nabla_{(a}\xi_{b)}-\lambda_Eg_{ab}=0. \end{aligned} \tag{16}

    Parentheses denote symmetrization with a factor 1/21/2. The parameter λE\lambda_E is the Einstein constant: in the usual vacuum Einstein equation it equals 2Λphys/(D−2)2\Lambda_{\rm phys}/(D-2). 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 λE=0\lambda_E=0, put gab=δab+habg_{ab}=\delta_{ab}+h_{ab} and h=δabhabh=\delta^{ab}h_{ab}. Then

    ξa(1)=∂bhab−12∂ah,Rab(1)=12(∂a∂chbc+∂b∂chac−Δhab−∂a∂bh),Eab(1)=−12Δhab.(17)\begin{aligned} \xi_a^{(1)}&=\partial^bh_{ab}-\frac12\partial_a h,\\ R_{ab}^{(1)}&=\frac12\left( \partial_a\partial^ch_{bc}+\partial_b\partial^ch_{ac} -\Delta h_{ab}-\partial_a\partial_bh\right),\\ E_{ab}^{(1)}&=-\frac12\Delta h_{ab}. \end{aligned} \tag{17}

    The gauge term cancels the diffeomorphism-degenerate derivatives. More generally the principal part is −12gcd∂c∂dgab-\tfrac12g^{cd}\partial_c\partial_d g_{ab}, 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 ξ=0\xi=0 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 ξ=0\xi=0; 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 Rab=λEgabR_{ab}=\lambda_Eg_{ab}. The sufficient condition ξ=0\xi=0 removes the extra term. A nonzero Killing vector also has ∇(aξb)=0\nabla_{(a}\xi_{b)}=0, so the vector's nonvanishing alone would not prove that a metric fails to be Einstein. A useful argument enforces ξ=0\xi=0 under specific hypotheses. Let the solution be smooth on a connected compact Riemannian domain with nonempty smooth boundary, assume λE≤0\lambda_E\le0, and impose ξ=0\xi=0 on its whole boundary. The contracted Bianchi identity gives

    ∇2ξb+Rbaξa=0.(18)\nabla^2\xi_b+R_b{}^a\xi_a=0. \tag{18}

    For φ=ξaξa≥0\varphi=\xi^a\xi_a\ge0, this implies

    ∇2φ+ξa∂aφ=−2λEφ+2(∇aξb)(∇aξb)≥0.(19)\nabla^2\varphi+\xi^a\partial_a\varphi =-2\lambda_E\varphi+2(\nabla_a\xi_b)(\nabla^a\xi^b)\ge0. \tag{19}

    The maximum principle and φ∣∂Ω=0\varphi|_{\partial\Omega}=0 force φ=0\varphi=0. 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 λE\lambda_E invalidates this particular positivity argument.

    A numerical route must therefore choose a metric ansatz, reference metric and compatible boundary conditions, solve Eab=0E_{ab}=0, and inspect both the Einstein residual Rab−λEgabR_{ab}-\lambda_Eg_{ab} and the DeTurck-vector norm under resolution refinement. An applicable soliton-exclusion theorem supplies an additional mathematical justification. A small sampled ξ\xi 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 A=P+VA=P+V, with PP SPD and 0≤V≤vmax⁡I0\le V\le v_{\max}I. 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 zz,

    zTP−1/2AP−1/2z=∥z∥22+(P−1/2z)TV(P−1/2z).z^TP^{-1/2}AP^{-1/2}z =\|z\|_2^2+(P^{-1/2}z)^TV(P^{-1/2}z).

    The second term is nonnegative and at most vmax⁡∥z∥22/λmin⁡(P)v_{\max}\|z\|_2^2/\lambda_{\min}(P). The Rayleigh quotient gives eigenvalues between 11 and 1+vmax⁡/λmin⁡(P)1+v_{\max}/\lambda_{\min}(P). Also A≥PA\ge P, hence

    ∥A−1r∥2≤∥r∥2λmin⁡(A)≤∥r∥2λmin⁡(P).\|A^{-1}r\|_2\le\frac{\|r\|_2}{\lambda_{\min}(A)} \le\frac{\|r\|_2}{\lambda_{\min}(P)}.

    Multiplication by hh 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 AIBA_{IB} and ABI=AIBTA_{BI}=A_{IB}^T. Replacing only boundary rows gives

    (AIIAIB0I),\begin{pmatrix}A_{II}&A_{IB}\\0&I\end{pmatrix},

    which is generally not symmetric. Eliminate the prescribed boundary vector gBg_B instead: solve AIIuI=bI−AIBgBA_{II}u_I=b_I-A_{IB}g_B. 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 ξ=0\xi=0 follows on a compact connected Riemannian domain with nonempty smooth boundary, zero boundary ξ\xi and λE≤0\lambda_E\le0. Identify the step that fails for a general Lorentzian metric and for positive λE\lambda_E.

    Solution

    Metric compatibility and Eq.(18) give

    ∇2φ=2∣∇ξ∣2+2ξb∇2ξb=2∣∇ξ∣2−2Rabξaξb.\nabla^2\varphi =2|\nabla\xi|^2+2\xi^b\nabla^2\xi_b =2|\nabla\xi|^2-2R_{ab}\xi^a\xi^b.

    Insert Rab=λEgab+∇(aξb)R_{ab}=\lambda_Eg_{ab}+\nabla_{(a}\xi_{b)}. Since

    2ξaξb∇(aξb)=ξa∇a(ξbξb)=ξa∂aφ,2\xi^a\xi^b\nabla_{(a}\xi_{b)} =\xi^a\nabla_a(\xi^b\xi_b)=\xi^a\partial_a\varphi,

    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 φ=0\varphi=0, and positive definiteness implies ξ=0\xi=0.

    For a Lorentzian metric, φ\varphi and ∣∇ξ∣2|\nabla\xi|^2 need not be nonnegative and the principal operator is not elliptic, so this proof fails at several essential steps. For positive λE\lambda_E, the term −2λEφ-2\lambda_E\varphi 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

    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.