For algebraic stability of a Runge-Kutta method, the weights must be nonnegative and
must be a positive semidefinite matrix. Here all weights are positive, but direct calculation gives
In particular ; equivalently, its eigenvalues are . Therefore the method is not algebraically stable. This does not contradict its A-stability: algebraic stability is a stronger condition designed to guarantee nonlinear B-stability through the Runge-Kutta contractivity identity.
The starting point of a conforming finite element method is a weak formulation in a Hilbert space . For example, a homogeneous Dirichlet boundary condition on a bounded Lipschitz domain gives . One seeks
where is a bounded bilinear form, , and is a bounded linear functional. A conforming finite element space is finite dimensional and is typically built from functions that are polynomial on each element of a finite element mesh. With a basis , the Galerkin method imposes the same identity only for , giving
The stiffness matrix is sparse when basis supports overlap only locally. Local element integrals assemble its entries; the mass matrix represents an term. This separates the choice of trial functions from the variational principle determining their coefficients.
The fundamental well-posedness theorem is the Lax-Milgram theorem: if for some , there is a unique solution for each , with . The same theorem on gives a unique discrete solution. The constants must be independent of the mesh for uniform stability of a numerical method. Boundary conditions are built into the trial space when they are essential constraints; flux conditions arise through boundary terms in integration by parts and are natural constraints in the weak formulation.
When is symmetric and a coercive bilinear form, the Ritz method minimizes
over . Its first variation is exactly the Galerkin method, so Ritz minimization and Galerkin testing coincide for symmetric coercive problems. The energy norm turns the approximation into an orthogonal projection. Indeed, subtracting the exact and discrete weak equations gives Galerkin orthogonality, . For every the Pythagorean identity becomes
so
This exact best-approximation property is the central advantage of the Ritz method.
Symmetry is unnecessary for the Galerkin method. For any bounded, coercive form, the Céa lemma gives
To prove it, put . Galerkin orthogonality yields , so coercivity and boundedness give . Divide when and take the infimum. Thus approximation capability plus uniform coercivity gives convergence. In contrast, minimizing for a nonsymmetric form differentiates its symmetric part and generally does not solve the original weak equation.
A concrete symmetric example is the one-dimensional reaction-diffusion problem from Question 5. Continuous piecewise-linear hat functions give the diffusion stiffness matrix with diagonal and neighbouring entries , and the mass matrix with diagonal and neighbouring entries . Therefore and . Its positive-definite matrix is the coordinate form of the continuous energy. The exact smooth solution makes this an explicit test of the method, not just an abstract existence result.
For a nonsymmetric example, take positive , constant real , and
Its form is . Since , it has coercivity constant in the full norm, although it is not symmetric when . The Galerkin method remains well posed. On the uniform hat basis, , where , and . The skew-symmetric matrix cancels from , proving nonsingularity. A Ritz energy would omit precisely this advection contribution. Small may nevertheless make the approximation constant large and produce poorly resolved layers; algebraic solvability is not an accuracy guarantee.
Quantitative convergence uses a finite element interpolation estimate. On a shape-regular mesh, for piecewise-linear conforming elements and in the usual low-dimensional setting,
The Céa lemma therefore gives an energy error. The Aubin–Nitsche duality argument improves the L2 norm error when the dual elliptic problem has regularity: solve and use
Consequently
with constants depending on the solution and regularity bounds. The second estimate is conditional on dual regularity; corners or insufficient data regularity can reduce the rate.
The same Galerkin method handles evolution equations. For the homogeneous heat equation, the semidiscrete finite element heat equation is . Because is a positive-definite matrix and is a positive semidefinite matrix,
The decreasing quadratic form is exactly the L2 norm squared of the finite-element function. This separates spatial stability of a numerical method from the subsequent time integrator, just as in the Schrodinger equation example. Conformity, coercivity and approximation estimates together explain convergence.
An -stage Runge-Kutta method for is defined by
The Butcher tableau records , and ; internal consistency usually sets , and first-order consistency requires . A strictly lower triangular gives an explicit method, while other stage dependencies generally require an implicit Runge-Kutta method. The stage solvability of an implicit Runge-Kutta method must be checked separately: if is globally Lipschitz continuous in with constant , the stage fixed-point map is a contraction in the maximum stage norm whenever . This is a sufficient small-step condition, not a restriction intrinsic to the definitions of A-stability or B-stability.
Linear stability begins with the Dahlquist test equation . Solving the stages gives
The linear stability domain consists of test values for which the stage system is well defined and . A-stability means this includes the closed left half-plane. For , this gives stability with no scalar decay-mode step restriction. For a normal matrix in , unitary diagonalization of a normal matrix reduces the norm estimate to these scalar factors. For a non-normal matrix, eigenvalues alone do not establish a uniform norm bound: eigenvector conditioning and transient amplification matter. Mesh-uniform estimates for discretized PDEs must control operator powers, not only their spectra.
Every consistent explicit Runge-Kutta method has a nonconstant polynomial stability function and therefore cannot be A-stable, since that polynomial is unbounded on the negative real axis. For example, Forward Euler method has , stability disk , and restriction for . For a pure imaginary mode , , so it is unstable for every positive step. The classical fourth-order Runge-Kutta method instead has
It is stable on the imaginary axis exactly for , an illustrative conditional stability range for oscillatory evolution.
Backward Euler method has and is A-stable. L-stability adds as in the left half-plane; backward Euler satisfies this and strongly damps unresolved rapidly decaying modes in a stiff differential equation. The implicit midpoint rule and the trapezoidal rule both have , so they are A-stable but not L-stable. They preserve the modulus of a pure imaginary test mode, but their stiff-decay limit is , leaving oscillatory numerical remnants. The three-stage Lobatto IIIA method has the fourth-order rational function found in Question 2 and likewise lacks L-stability. Thus high order and A-stability do not themselves imply efficient stiff damping.
Nonlinear stability measures differences between solutions of the same equation. A one-sided Lipschitz condition is
Differentiating the squared difference and applying the Gronwall inequality gives . A dissipative vector field has and is contractive. A B-stable method preserves this property for every positive step size for which the stages are well defined:
This includes time-dependent vector fields when dissipativity holds at each common time argument. Applying it to scalar linear dissipative fields shows that B-stability implies A-stability when the linear stages are well defined; the converse fails.
The standard sufficient theorem is algebraic stability implies B-stability, subject to stage solvability. Define and . Algebraic stability of a Runge-Kutta method means and is a positive semidefinite matrix. To prove the theorem, set , and . Expanding the output difference and using yields the Runge-Kutta contractivity identity
Dissipativity makes the first sum nonpositive, while positive semidefiniteness makes the last quadratic form nonnegative. The latter follows by factoring and writing it as a sum of squared norms of linear combinations of the . This proves the claimed contraction. It is a sufficient theorem; absence of algebraic stability is not, by itself, a proof of failure of B-stability for every representation.
Several examples make the distinctions concrete. For backward Euler, , , so : it is both L-stable and B-stable. For implicit midpoint, , , so : it is B-stable and preserves squared norms for a skew-Hermitian linear equation, but lacks stiff damping. For the two-stage Gauss--Legendre Runge-Kutta method,
the matrix vanishes as well. The collocation theorem gives order four, and its stability function is exactly the same as the three-stage Lobatto IIIA function. Yet the Gauss method is algebraically stable, whereas that Lobatto method is not. Identical scalar linear stability functions need not imply identical nonlinear stability properties.
An example combining stiff damping and nonlinear contraction is the two-stage Radau IIA method, with
Its positive weights and positive semidefinite prove B-stability; its rational function has denominator roots and, for , satisfies
Thus it is A-stable; the limit then proves L-stability. The standard Radau IIA collocation theorem gives order , here three. These properties explain its usefulness for stiff nonlinear equations.
Finally, A-stability alone does not imply B-stability. The trapezoidal rule fails B-stability even for the scalar dissipative equation . With , its step map is uniquely defined by
At , . Implicit differentiation gives
Thus nearby starting values are separated by approximately twice their original distance after one step, although the exact flow is contractive. This example and the contractivity theorem show why scalar linear analysis, stiff damping and genuinely nonlinear norm estimates answer different stability questions.
Let be the all-ones matrix. Every feasible block matrix in the first formulation has , because its principal submatrix on indices is and is a positive semidefinite matrix. In particular, .
By the Schur complement,
Set . Then , , and on every edge. Conversely, for a feasible in the second formulation, its nonnegative diagonal gives , and has , on edges, and .
Both transformations preserve the objective . Hence the two semidefinite programs defining the complement theta number have the same feasible objective values and the same minimum.
For a proper three-graph colouring , associate the colors with the three roots of unity , viewed as unit vectors in . Define using the real inner product.
This is twice a Gram matrix, so it is a positive semidefinite matrix. Its diagonal is . On every edge, the endpoint colors differ, so their vectors make angle or and . Thus and this are feasible in the second semidefinite program, proving
This is the regular simplex construction of a strict vector coloring.
First suppose , with a real positive semidefinite matrix and a symmetric nonnegative matrix. Factor , and write . Then
Each term is a square multiplied by a nonnegative scalar, so is a sum of squares polynomial.
Conversely, suppose . Because is a degree-four homogeneous polynomial, the homogeneous sum of squares representation allows every to be quadratic and homogeneous. Explicitly, higher-degree parts cannot cancel in a sum of squares; constant parts vanish because , and the degree-two part forces all linear parts to vanish. Write
Since is invariant under every coordinate sign change, sign averaging of a sum of squares over independent Rademacher random variables gives
The cross terms vanish because their sign products contain an odd power of at least one independent sign. Set
Then is a positive semidefinite matrix and is a symmetric nonnegative matrix. Comparing the coefficients of and gives . This proves the sum of squares criterion for a biquadratic form.
Let . Direct multiplication gives , so .
Suppose , where is a positive semidefinite matrix and is a symmetric nonnegative matrix. Since , both and are nonnegative. Their sum is zero, so both vanish. In particular,
Every coefficient in this sum is strictly positive and every is nonnegative, forcing for .
Now apply the same argument to all five cyclic shifts of . The Horn copositive matrix is cyclically invariant, so every shifted vector also has zero quadratic form. It follows that the entries of vanish on every cyclic block of three consecutive indices. Every pair of indices on a five-cycle lies in such a block, hence .
This would imply . But the zero quadratic form of a positive semidefinite matrix would then force , contradicting . Therefore lies outside the positive-semidefinite-plus-nonnegative cone. By the previous equivalence, its quartic form is a nonnegative polynomial that is not a sum of squares polynomial.
For algebraic stability, the weights must be nonnegative and the real symmetric matrix , where , must be a positive semidefinite matrix.
The weights are positive, but and , so
A positive semidefinite matrix cannot have a negative diagonal entry, as its quadratic form at the first standard basis vector would be negative. Thus this Lobatto IIIA method is not algebraically stable, despite its A-stability.
A Runge-Kutta method with stage matrix , weights and step size is
Its order measures accuracy as , while stability concerns how errors or stiff components propagate. Linear A-stability, strong stiff damping through L-stability, and nonlinear B-stability address different questions.
For the Dahlquist test equation , elimination of the stages gives the stability function
The linear stability domain is . The method is A-stable when it contains the closed left half-plane, and L-stable when it is also true that as there. These conditions describe, respectively, stability for every non-growing scalar linear mode and damping of very rapidly decaying modes.
The Forward Euler method has , so it fails A-stability, for example at . In fact no nontrivial explicit Runge-Kutta method is A-stable: its stability function is a nonconstant polynomial, which is unbounded along the negative real axis. The Backward Euler method has . For , , and the function tends to zero at infinity, proving both A-stability and L-stability. The implicit midpoint rule has . The identity proves A-stability, but its limit rules out L-stability.
For nonlinear equations, a dissipative vector field satisfies . The corresponding exact solutions contract because the time derivative of their squared distance is twice that inner product. A B-stable method preserves this contraction for every , whenever its stages are well defined.
Let , , and . Expanding the update's squared norm, substituting , and symmetrizing the double sum proves the Runge-Kutta contractivity identity
If and the matrix is a positive semidefinite matrix, the first sum is nonpositive by dissipativity. The second double sum is nonnegative: sum the quadratic form of over each coordinate of the . Thus algebraic stability implies B-stability. Applied to complex scalar linear equations with the real part of the Hermitian inner product, the same argument also implies A-stability, where the stages are defined.
The Backward Euler method has , hence , and is algebraically stable. One can prove its nonlinear contraction directly: gives . The implicit midpoint rule has , and , so it is B-stable even though it is not L-stable.
Linear A-stability does not by itself imply nonlinear B-stability. The ODE trapezoidal rule has the same stability function as the implicit midpoint rule, but take the dissipative scalar field and . For any positive starting value, its trapezoidal update is . Thus two positive starting values have their distance doubled, violating B-stability. Its algebraic stability matrix also has a negative first diagonal entry. The field is globally Lipschitz continuous, so this is a well-defined nonlinear counterexample.
These examples distinguish accuracy, scalar stiff-mode stability, nonlinear contraction, and rapid stiff-mode damping. For implicit methods, solvability of the stage equations remains an additional requirement; a formal stability function alone does not establish it for arbitrary nonlinear problems.
Restrict to an arbitrary line segment by defining for . The chain rule and the assumed positive semidefinite matrix condition on the Hessian matrix give
Thus is non-decreasing. For , integrating on the two subintervals gives
Rearranging, and including the immediate endpoint cases, yields
This is precisely the definition of a convex function.
Because , the two orthogonal projection matrices satisfy
Consequently is itself an orthogonal projection, onto the orthogonal complement of within . In particular it is a positive semidefinite matrix, so for every ,
The empirical risk is
For ,
so is a convex function. Each signed margin is an affine function of , and composition with an affine function preserves convexity. Equivalently,
is a positive semidefinite matrix. Therefore is convex.
By the real spectral theorem, a real symmetric matrix has an orthogonal diagonalization
Writing gives
This is nonnegative for every exactly when every . Thus the quadratic-form and eigenvalue definitions of a positive semidefinite matrix agree.
When is positive semidefinite, define
This matrix is symmetric and positive semidefinite, and its square is , so it is the principal square root of a positive semidefinite matrix.
For nonsingular , the matrix is symmetric and
for every nonzero . Thus is positive definite, and
exists and is nonsingular. Let . Since is symmetric,
Hence is an orthogonal matrix and
the polar decomposition of an invertible real matrix.
In three dimensions, stretches or contracts along three mutually perpendicular eigenvector directions by its positive eigenvalues. The orthogonal map is then applied: it is a rotation when , and a rotation combined with a reflection when .
For , let be the collection of interval components of the superlevel set . Two times lie in the same member of exactly when . Therefore
For arbitrary real , the Tonelli theorem now gives
Thus is a positive semidefinite matrix.
No. Consider the two orthogonal projections
Their product is
For ,
Thus is not a positive semidefinite matrix. It is also not Hermitian; products of orthogonal projections need not remain orthogonal projections unless the factors commute.
For algebraic stability of a Runge-Kutta method, the weights must be nonnegative and
must be positive semidefinite. With the intended collocation weights,
Positive semidefiniteness is therefore possible only at ; substitution gives nonnegative weights and a positive-semidefinite . Hence the intended family is algebraically stable exactly when
With the sign printed in the paper, one instead obtains
Equality forces , where still has nonzero off-diagonal entries and is indefinite. The literal printed tableau is consequently algebraically stable for no value of .
A positive-semidefinite kernel on a nonempty set is a symmetric function such that, for every , every , and every ,
Equivalently, every finite kernel matrix is a positive semidefinite matrix.