How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Positive Conservative Production Destruction Integrators
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Banach-Space Differential Calculus and Banach Manifolds
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability and the Probabilistic Method
- Finite-precision direct factorizations and least squares
- Foundations of the Real Numbers for Analysis
- Global ODE and Log-density Integration Error
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Matrix Norms, Condition Numbers and Numerical Stability
- Metric Spaces
- Mixed Partials, Taylor Formulae, and Extrema
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- One-step ODE Consistency and Local Error
- Order, Zorn's Lemma, and the Axiom of Choice
- Picard-Lindelöf and First-Order Ordinary Differential Equations
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Subspaces, Products, and Quotients
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Logarithm and General Powers
- The Riemann Integral: Definition and Integrability
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
Summary
For a finite closed system of nonnegative compartments, each production rate is paired with the equal destruction rate of its donor. The modified Patankar Euler step freezes these transfers and weights production and destruction by positive destination and source denominators, with rates evaluated at admissible states in the PDS domain. A finite matrix argument proves unique solvability, nonnegativity and exact total-mass conservation for any positive denominators. First-order accuracy is proved only for the standard choice on a smooth compact positive tube; a conditional global first-order bound follows from the local defect and one-step stability estimate.
The usual ratio is undefined when a source compartment is zero. A separate source-factored, ratio-free step extends the first-order method to such states and proves its admissibility and local consistency, without assigning a value. The second-order item is specifically MPRK22(1): positivity and conservation hold for positive inputs at every step size when the stage rate evaluation is in the PDS domain; otherwise the procedure returns a rate-domain failure before that evaluation. Order two and global second-order error require a compact smooth positive tube with uniformly positive stage denominators. No order claim is made for zero-stage variants or for Patankar methods in general. The inexact-solve ledger makes positivity conditional on a certified component margin; a small residual alone does not establish it.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Finite conservative production destruction systems
Definition
Fix an integer and a domain ; its admissible nonnegative states are . For every ordered pair let be production and destruction transfer rates that are nonnegative on . A finite conservative production destruction system (finite conservative PDS) is the autonomous ODE
with internal-transfer identities
The index is the donor/source of and the index is its recipient/destination; is the same transfer viewed as destruction from . The total mass is . The ODE is considered at states in . The definition describes a closed system: external sources and sinks must be specified separately and are not included in the conservation claims on this page. No existence, positivity, or regularity assertion about solutions is part of this definition.
Strict column dominance gives an entrywise nonnegative inverse
Statement
Let for a finite . Suppose , for , and
Then is invertible and every entry of is nonnegative. If has nonnegative coordinates, then ; if every coordinate of is positive, then every coordinate of is positive.
Facts & Assumptions
Given: A finite real matrix satisfying the displayed positive-diagonal, nonpositive-off-diagonal, and strict column-dominance hypotheses.
The hypotheses give for and .
Proof
Let and . Then is invertible, , and for each column , . Since there are finitely many columns, .
For every , and for every column : it holds at , and multiplying by gives . Thus each entry series in converges and is nonnegative.
The finite geometric identity holds by cancellation of adjacent powers. Step 2.1 gives entrywise, so . Since , , proving invertibility and inverse nonnegativity.
If , then by step 3.1. If , then entrywise, so coordinatewise. This proves both vector conclusions.
Modified Patankar Euler for conservative transfer systems
Definition
Let , let be the rates of a finite conservative PDS Finite conservative production destruction systems with state domain , and take an input state , a step size , and declared denominators . If , , or any , return an inadmissible-input status before evaluating any rate. Otherwise the modified Patankar Euler step returns the unique solution of
Equivalently, form by
and solve . The rates in the solve are evaluated only at the admissible state . For every input passing the branch, return the unique exact solution of the stated linear system. The standard first-order choice is , which is admissible only when every . A separately defined rate-factor form extends a first-order step to zero donor coordinates under an additional source-factorization hypothesis.
Source-factored transfer rates for zero compartments
Definition
Let be the rates of a finite conservative PDS Finite conservative production destruction systems. A source-factored transfer representation on an open set containing a compact set consists of functions , , such that each is on the open subset in the multivariable sense of maps and multi-index derivative notation in Euclidean space, is nonnegative on , and, for every ,
Here is the transfer rate from donor to recipient per unit of donor quantity. Nonnegativity is required on admissible nonnegative states; the extension to the open neighborhood is used for local analysis and need not be nonnegative at inadmissible states with negative coordinates. The factorization is an additional hypothesis, not a consequence of nonnegative rates and the identity . On strictly positive states the ratio equals ; at a zero donor coordinate the factorized coefficient remains defined and avoids the indeterminate expression .
Zero-compatible modified Patankar Euler in rate-factor form
Definition
Let be a compact nonnegative state set with a source-factored transfer representation Source-factored transfer rates for zero compartments. Given and a step size , if or , return an inadmissible-input status before evaluating any factor. Otherwise form by
Return the unique solution of
Equivalently, component satisfies
This procedure uses no denominator and is defined when some donor coordinates vanish. It is the factorized extension of the first-order Patankar Euler formula to the zero-state boundary. In exact arithmetic its linear system is uniquely solvable by Strict column dominance gives an entrywise nonnegative inverse.
The positive-interior MPRK22(1) step
Definition
Let be the rates of a finite conservative PDS Finite conservative production destruction systems with state domain . Given and , if , any coordinate of is nonpositive, or , return an inadmissible-input status before evaluating rates or solving a system. First compute the stage by invoking Modified Patankar Euler for conservative transfer systems with denominators :
If the stage solve does not return a unique vector, return stage-failure. If its output , return rate-domain-failure before evaluating rates at . Otherwise form with, for ,
and solve
Equivalently,
If the final solve is not uniquely solvable, return update-failure; otherwise return its unique solution . No zero-stage or denominator-regularized second-order variant is defined here.
Modified Patankar Euler preserves positivity and total mass
Statement
For a finite conservative PDS Finite conservative production destruction systems with domain , an admissible input , step , and any positive denominators , the step of Modified Patankar Euler for conservative transfer systems is uniquely defined, satisfies , and conserves total mass:
If coordinatewise, then coordinatewise. These conclusions do not assert order for arbitrary denominators; the first-order choice and its accuracy hypotheses are treated separately.
Facts & Assumptions
Given: The finite conservative PDS identities, , , and for every compartment.
Modified Patankar Euler for conservative transfer systems: , with and for .
Strict column dominance gives an entrywise nonnegative inverse: a finite matrix with positive diagonal, nonpositive off-diagonal entries, and strict column diagonal dominance has a nonnegative inverse; the inverse maps positive vectors to positive vectors.
Proof
For every , and when by [F1]–[F2]. Moreover, , because makes the two finite sums equal. Thus [F3] applies: is invertible and , with strict positivity when .
The same identity gives each column sum . Therefore . This proves exact summed conservation.
Modified Patankar Euler has a uniform first-order defect and one-step bound on positive tubes
Statement
Let be the vector field of a finite conservative PDS Finite conservative production destruction systems on a bounded open convex set with . Suppose there is an open set with on which the transfer rates are multivariable and their derivatives through order two are bounded. For , let be Modified Patankar Euler for conservative transfer systems with the standard denominators . Then there are constants such that, for :
- for every exact solution whose segment and the method states under consideration remain in a compact subset of , the exact-start local defect satisfies ; and
- for all , .
The defect is the method output minus the exact next state and the second inequality is one-step Lipschitz stability in the convention of One-step ODE methods, local defect, uniform order, and step stability. This result is restricted to a compact positive tube; it does not define the standard ratio formula at zero compartments.
Facts & Assumptions
Given: A finite conservative PDS, the stated multivariable rate data on , an exact solution segment and method states in a compact subset of , and sufficiently small.
Modified Patankar Euler for conservative transfer systems with is the linear system , where for and .
Strict column dominance gives an entrywise nonnegative inverse: the Patankar matrix is invertible; its inverse is entrywise nonnegative.
One-step ODE methods, local defect, uniform order, and step stability: local defect is the exact-start method output minus the exact next state; uniform local order one means a uniform bound; one-step stability is the stated Lipschitz bound.
maps and multi-index derivative notation in Euclidean space: means that coordinate derivatives through order two exist and are continuous.
If all partial derivatives exist on a neighbourhood and are continuous at a point, then the map is totally differentiable there with Jacobian derivative: continuous first coordinate partials on an open set give the total derivative with those partials as its Jacobian; applying it to each first partial also supplies continuous total second derivatives for a map.
The chain rule for total derivatives: and Chain sum product and composition rules for Banach derivatives: total derivatives obey the chain rule, and coordinate products obey the bounded-bilinear product rule.
The matrix norm induced by a published vector p-norm at : is the Euclidean induced operator norm and is a matrix norm.
Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1: and the induced norm is compatible with matrix products.
On a convex open set, a uniform bound implies : on an open convex set, a uniform derivative operator bound implies .
Multivariable Taylor formula with a Lagrange remainder along a line segment: a function on an open convex set has a first-order Taylor expansion with a remainder bounded uniformly by its second-derivative bound on the intervening segment.
Proof
Since , each coordinate stays bounded away from zero on . On the reciprocal has derivatives and , obtained from the difference quotients and ; composing with the coordinate projection gives continuous first and second partials for . Applying the product rule [F7] twice shows every entry (), and hence every diagonal sum, is on ; [F6] applied to these entries and their first partials supplies continuous total derivatives through order two. The row equations give : the off-diagonal terms contribute , and the diagonal term is . For column , because .
The off-diagonal entries of are nonnegative and its diagonal entries are nonpositive. Thus has positive diagonal, nonpositive off-diagonal entries, and strict column diagonal-dominance margin ; [F3] makes it invertible. On , the entries of and its determinant are ; the determinant is nonzero by [F3]. Its cofactors and determinant are finite sums of products of entries, and the scalar reciprocal of the determinant is by the same reciprocal calculation as in step 1.1. The adjugate formula therefore makes the inverse a matrix-valued function there; compactness gives uniform bounds for the inverse and its first derivatives.
The matrix identity yields with . Step 2.1 and compactness bound uniformly. Along the exact solution, [F5]–[F7] give , which is uniformly bounded on the compact tube. Taylor's formula [F11] gives uniformly. Subtracting the expansions proves the local-defect estimate in [F4].
The function in step 3.1 is continuously differentiable in with uniformly bounded derivative on by [F5]–[F7] and step 2.1. Differentiating that identity gives . Compactness bounds by and by . The matrix-norm triangle inequality from [F8] and from [F9] yield for .
Apply [F10] to on the convex open set using the uniform derivative bound from step 4.1. This gives for every , exactly the one-step stability assertion of [F4].
The factorized zero-state step is well-defined, nonnegative, conservative, and locally first order
Statement
Let a finite conservative PDS have a source-factored representation on an open neighborhood of a compact set , with factors that are multivariable on and nonnegative on , as in Source-factored transfer rates for zero compartments. For every and , Zero-compatible modified Patankar Euler in rate-factor form has a unique output and conserves . For the accuracy clause, fix a compact set containing and all exact solution segments under consideration, and define the extension on . If those exact segments remain in , then the exact-start local defect is uniformly as , including when some coordinates of are zero. The claim is local; no global error bound at the boundary is asserted.
Facts & Assumptions
Given: A finite conservative PDS, a source-factored representation on a neighborhood of , , , and the fixed compact tube from the defect clause when local accuracy is asserted.
Finite conservative production destruction systems: and the pair rates satisfy .
Source-factored transfer rates for zero compartments: and with factors that are nonnegative on admissible nonnegative states, including at zero coordinates.
Zero-compatible modified Patankar Euler in rate-factor form: the output solves , where for and .
Strict column dominance gives an entrywise nonnegative inverse: a strict column-diagonally-dominant matrix with positive diagonal and nonpositive off-diagonal entries has an entrywise nonnegative inverse.
First-order systems, initial value problems, and solutions on intervals: an exact trajectory satisfies on its interval.
maps and multi-index derivative notation in Euclidean space and If all partial derivatives exist on a neighbourhood and are continuous at a point, then the map is totally differentiable there with Jacobian derivative: continuous first partials give a total derivative, and the factors give continuous first derivatives.
Chain sum product and composition rules for Banach derivatives and The chain rule for total derivatives: : products of differentiable coordinate maps obey the bounded-bilinear product rule, and composition obeys the total chain rule.
Multivariable Taylor formula with a Lagrange remainder along a line segment: a solution curve on a time interval has a first-order Taylor expansion with remainder bounded by its second derivative on that interval.
One-step ODE methods, local defect, uniform order, and step stability: the exact-start local defect is the method output minus the exact next state.
Proof
For each column , , off the diagonal, and . Therefore has , for , and . By [F4], ; hence the unique solution exists and is nonnegative, including for zero coordinates in .
The column sums of equal one, so .
The factorization [F2] gives for every : its -th component is . The matrix identity used in step 1.1 also gives .
The factors are on , so the coordinate products and have continuous partial derivatives through order two by applying the bounded-bilinear product rule [F7] twice. Applying the continuous-partials theorem [F6] to these components and their first partials shows that is and has continuous first total derivative on . On the compact set of admissible nonnegative starting states, is bounded and is invertible by step 1.1 for and equals at . Its inverse is continuous there, hence uniformly bounded for sufficiently small . The matrix identity from step 2.2 then yields uniformly, without dividing by any coordinate of . On the nonnegative exact path, the PDS field equals the extension defined in the Statement, so [F5]–[F7] give and bounded on . Applying [F8] to the time curve gives the same expansion uniformly. Their difference is therefore uniformly, which is the local-defect bound specified by [F9].
MPRK22(1) preserves positivity and total mass on positive inputs
Statement
For every finite conservative PDS Finite conservative production destruction systems with domain , every strictly positive input , and every step size , compute the Patankar Euler stage . If , the stage and output of The positive-interior MPRK22(1) step are uniquely defined, strictly positive, and conserve total mass:
If , the algorithm returns rate-domain-failure before its second rate evaluation and makes no output claim. These preservation properties do not use the smoothness or compact-tube assumptions needed for the separate second-order error theorem.
Facts & Assumptions
Given: A finite conservative PDS with domain , with , , and its Patankar Euler stage .
Finite conservative production destruction systems: and the PDS uses only paired internal transfers.
The positive-interior MPRK22(1) step: the stage solves with having off-diagonal entries and diagonal entries that make each column sum zero; only if does the algorithm evaluate in the final matrix , where off the diagonal and each column of sums to zero.
Strict column dominance gives an entrywise nonnegative inverse: a matrix with positive diagonal, nonpositive off-diagonal entries, and strict column diagonal dominance is invertible with nonnegative inverse; its inverse maps a positive vector to a positive vector.
Proof
For the stage, has off-diagonal entries and diagonal entries in column . The sum of the absolute off-diagonal entries in that column is , so its strict column-dominance margin is . By [F3], . Also for every column, hence .
Since , every denominator in is positive. Its off-diagonal entries are nonnegative, its diagonal entries are nonpositive, and its columns sum to zero by [F2]. Thus has positive diagonal, nonpositive off-diagonal entries, and column diagonal-dominance margin . Applying [F3] to gives a unique .
Every column of sums to one, so . Together with step 1.1, this proves all stated positivity and conservation equalities.
MPRK22(1) has a uniform second-order defect and one-step bound on positive tubes
Statement
Let be the vector field of a finite conservative PDS Finite conservative production destruction systems on a bounded open convex set with . Assume there is an open set with on which the transfer rates are multivariable , with derivatives through order two bounded there. Let be The positive-interior MPRK22(1) step. For sufficiently small , there are constants such that:
- for every exact solution segment in a compact subset of , the exact-start defect satisfies ; and
- for all , .
The local order-two estimate requires the positive lower bound on the stage denominators and the stated smoothness. Positivity and conservation for every are separate preservation properties and are not used to claim the local error order.
Facts & Assumptions
Given: A finite conservative PDS, the stated multivariable rate data on , an exact solution segment in the tube, and a sufficiently small step size.
Modified Patankar Euler for conservative transfer systems: with , the first stage is , where .
The positive-interior MPRK22(1) step: the final matrix has off-diagonal coefficients , zero column sums before subtracting from , and update .
Strict column dominance gives an entrywise nonnegative inverse: each stage/final matrix with positive declared denominators is invertible with nonnegative inverse, and its inverse maps a strictly positive right-hand side to a strictly positive solution.
First-order systems, initial value problems, and solutions on intervals: an exact trajectory satisfies .
maps and multi-index derivative notation in Euclidean space and If all partial derivatives exist on a neighbourhood and are continuous at a point, then the map is totally differentiable there with Jacobian derivative: continuous coordinate partials give total derivatives; applying the theorem to first partials also supplies the second total derivatives needed here.
The chain rule for total derivatives: and Chain sum product and composition rules for Banach derivatives: compositions and bounded-bilinear products obey their total-derivative rules, including when applied to derivatives.
Multivariable Taylor formula with a Lagrange remainder along a line segment and The Lagrange and Cauchy forms of Taylor's remainder: the rate vector and exact solution have the Taylor expansions with uniform remainders on the compact tube.
One-step ODE methods, local defect, uniform order, and step stability: exact-start defect and one-step stability have the conventions used in this statement.
The matrix norm induced by a published vector p-norm at and Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1: the induced Euclidean operator norm is a matrix norm and .
On a convex open set, a uniform bound implies : a uniform derivative bound on a convex open set implies the corresponding Lipschitz bound.
Proof
Define as in [F2]. On , the coordinate reciprocals have continuous partials and , as follows from the scalar reciprocal difference quotients on ; the product rule [F7] then makes every entry of from the rate data [F6]. By the continuous-partials theorem [F6], these entries have continuous total derivatives through order two. Direct multiplication gives . The matrix is invertible for by [F4] and equals at ; its determinant and cofactors are finite sums of products, and its determinant is nonzero, so the adjugate formula and the scalar reciprocal calculation make its inverse on the compact set of admitted . It is uniformly bounded there for small . Since , [F4] gives . The identity now gives uniformly; in particular , so after decreasing we have uniformly for . Thus all stage denominators and the final rate evaluations are valid.
Write for the final coefficient matrix in [F3]. Its entries are on the compact region of pairs produced inside by step 1.1: the rates are , the stage map is , and each reciprocal has the same coordinate derivative formulas as in step 1.1. Its columns sum to zero, and direct multiplication using gives . For small , step 1.1 keeps every bounded away from zero, so and its first derivatives are uniformly bounded. Also ; the mean-value theorem on the compact tube and give . The final matrix is invertible by [F4] and its inverse is uniformly bounded by the adjugate formula. Expanding its inverse yields . Comparing with step 1.1 gives .
The stage and final maps are in near the compact positive tube: their rates are , their denominators stay bounded away from zero, and their matrix inverses are by the adjugate formula and the reciprocal calculation in steps 1.1–2.1. For any direction , differentiating gives ; boundedness from step 1.1 therefore gives uniformly for .
Using , substitute and use step 2.1 to obtain . Taylor expansion of at , together with from step 1.1, gives . Thus . By [F5]–[F7], the exact solution has the same expansion: and its third derivative is bounded, so the one-variable Taylor remainder applied coordinatewise is . Their difference is the asserted uniform exact-start defect in [F9].
Differentiating in direction gives , with the inverse defined by step 2.1.
Steps 1.1–2.2 give , , , and uniformly. Substitution yields . Differentiating with the chain and product rules identifies the coefficient as ; compactness makes the remainder uniform, so with .
Compactness bounds uniformly, and step 4.1 makes the contribution at most for sufficiently small . The norm properties in [F10] then give after decreasing and increasing . Applying [F11] on convex proves .
Modified Patankar Euler converges globally with first-order error on a positive tube
Statement
Let , , , and . Use sets satisfying the domain and regularity hypotheses of Modified Patankar Euler has a uniform first-order defect and one-step bound on positive tubes, and let be a compact positive tube. Let solve the ODE of a finite conservative PDS Finite conservative production destruction systems, let , and obtain by Modified Patankar Euler for conservative transfer systems with . Suppose the exact path and every numerical state lie in the common compact tube , and for the local constants in that lemma. Then there is a constant , independent of , such that
The conclusion is conditional on the stated positive compact tube; positivity and mass conservation alone do not establish that a trajectory remains in such a tube for a prescribed interval.
Facts & Assumptions
Given: A solution of the finite PDS on , exact initial data, a fixed uniform grid, and the assumption that exact and numerical states stay in the common compact positive tube .
Finite conservative production destruction systems: the ODE has finite paired internal transfer rates.
First-order systems, initial value problems, and solutions on intervals: the exact trajectory is a solution of the stated first-order IVP on its interval.
Modified Patankar Euler for conservative transfer systems: the standard first-order step uses and solves its frozen-rate linear system.
Modified Patankar Euler has a uniform first-order defect and one-step bound on positive tubes: on and for , the exact-start defect is at most and the step map is Lipschitz with factor .
Global error from uniform one-step defect and stability: on a fixed grid and a common compact tube containing the exact path and numerical states, initial error , exact-start defect , and one-step factor imply a uniform global error with the stated exponential constant.
Proof
The assumption makes every standard denominator positive, so [F3] is admissible at every step. By [F4] the local defect is bounded by and the one-step map has factor , with constants independent of and . The initial error is zero, and the tube hypothesis supplies the common-tube condition of [F5].
Apply [F5] with and . If , its bound is ; if , it is . Both are for a constant independent of .
Certified residuals bound mass drift and the exact-solve positivity margin
Statement
Let be the exact real matrix represented by the stored coefficients of a successfully completed Modified Patankar Euler for conservative transfer systems step with admissible positive denominators, or of a completed stage/final solve of The positive-interior MPRK22(1) step, for a finite conservative PDS. Let be its stored right-hand side, interpreted exactly as a real vector. For either scheme, the PDS transfer identity gives and strict column diagonal dominance, so . Let be a stored candidate. Assume all entries of , , and are stored in a common operationwise format with unit roundoff , and compute and in the model of Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add, with , , every nonzero exact intermediate normal, zero operations exact, and successful sequential dot products and subtraction. Let be the certified allowance from Rounded matrix products give certified linear and normal-equation residual allowances, with its norm inputs exact or certified upper bounds. Let be the exact value of or a certified upper bound for it, and set .
If is the exact solution of the stored linear system, then
Consequently, the componentwise margin condition for every certifies . A residual bound alone does not certify that the computed candidate is nonnegative. This certificate is relative to the stated stored matrix and right-hand side; any coefficient-assembly or right-hand-side data error relative to the intended real system must be separately bounded and added to the residual allowance.
Facts & Assumptions
Given: A finite conservative PDS matrix from the stated Patankar systems, its stored real right-hand side , a stored candidate , and their common operationwise format with and . Assume normal nonzero exact intermediates, exact zero operations, successful residual calculations, exact or certified upper bounds for the norm inputs used in , and an exact or certified upper bound .
Finite conservative production destruction systems: paired transfers satisfy .
Modified Patankar Euler for conservative transfer systems and The positive-interior MPRK22(1) step: every completed solve evaluates PDS rates only at states in ; with positive declared denominators, its matrix has nonpositive off-diagonal entries, positive diagonal, and column sums equal to one by .
Strict column dominance gives an entrywise nonnegative inverse: each such solve matrix has an entrywise nonnegative inverse.
Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: successful real additions, subtractions and products follow the stated no-underflow, round-to-nearest operation model.
Rounded matrix products give certified linear and normal-equation residual allowances: for stored and the stated successful evaluation order, when its unit-roundoff and normal-intermediate hypotheses hold; the norms used in are exact or certified upper bounds.
Proof
For modified Patankar Euler, column of has off-diagonal entries and diagonal ; for an MPRK final matrix the same form uses averaged rates and denominators , and its stage is the first form with . By [F1]–[F2], each such matrix has column sum one and strict column-dominance margin one, so [F3] gives .
Put . By [F5] and the triangle inequality, .
Multiplying on the right by gives .
Since , ; [F6] and step 1.2 give .
With , we have and, since and its columns sum to one, by [F6] and step 1.2.
For each coordinate, ; step 2.2 therefore gives whenever . A residual bound alone places no sign condition on , so it does not certify that the computed candidate is nonnegative.
MPRK22(1) has global second-order error on a compact positive tube
Statement
Let , , , and . Use sets satisfying the domain and regularity hypotheses of MPRK22(1) has a uniform second-order defect and one-step bound on positive tubes, and let be a compact positive tube. Let solve the finite conservative PDS Finite conservative production destruction systems, set , and compute each step with The positive-interior MPRK22(1) step. Suppose the exact solution, all numerical states, and every MPRK22(1) stage remain in the common compact tube , and for the local constants in that lemma. Then a constant , independent of , satisfies
This is a fixed-time, compact-tube convergence result; it does not assert a uniform error constant as the tube approaches a zero denominator or as stiffness parameters vary.
Facts & Assumptions
Given: A solution of the finite PDS on , exact initial data, the uniform grid, and the common-tube and step-size hypotheses above.
Finite conservative production destruction systems: the ODE has the paired internal transfer form used by the methods.
First-order systems, initial value problems, and solutions on intervals: the exact trajectory solves the stated first-order IVP.
The positive-interior MPRK22(1) step: every step uses the Patankar Euler stage followed by the averaged-rate linear solve.
MPRK22(1) preserves positivity and total mass on positive inputs: positive inputs whose stage lies in give uniquely defined positive stages and outputs for every .
MPRK22(1) has a uniform second-order defect and one-step bound on positive tubes: on the stated smooth positive tube and for , the exact-start defect is bounded by and the step map has Lipschitz factor .
Global error from uniform one-step defect and stability: for a fixed uniform grid, exact initial data, a common compact tube containing all states and stages, a uniform exact-start defect , and one-step factor , the global error is bounded by its stated exponential recurrence estimate of order .
Proof
Since and all iterates and stages remain in , every rate evaluation in [F3], including the evaluation at each stage, is in ; [F4] gives exact solvability and positivity independently of the order estimate. By [F5], the exact-start defect is uniformly at most and the one-step stability factor is . The exact initial error is zero, and the common-tube assumption is exactly the remaining tube hypothesis of [F6].
Apply [F6] with and . Its case gives and its case gives . In either case the coefficient is independent of , proving the asserted global error.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Stefan Kopecz and Andreas Meister, On order conditions for modified Patankar-Runge-Kutta schemes, §1
- Sergio Blanes, Arieh Iserles, and Shev Macnamara, Positivity-preserving methods for ordinary differential equations, §3.4
- Stefan Kopecz, Ein gekoppeltes Finite-Elemente/Discontinuous-Galerkin-Verfahren zur Simulation von Strömungs-Transport-Problemen, §6.1.2
- Stefan Kopecz and Andreas Meister, On order conditions for modified Patankar-Runge-Kutta schemes, Lemma 2.7
- Stefan Kopecz and Andreas Meister, On order conditions for modified Patankar-Runge-Kutta schemes, §2
- Stefan Kopecz and Andreas Meister, On order conditions for modified Patankar-Runge-Kutta schemes, §2 and §3.2
- Stefan Kopecz and Andreas Meister, On order conditions for modified Patankar-Runge-Kutta schemes, §§2–3.1
- Ernst Hairer, course notes, Chapter III: Équations Différentielles Ordinaires
- Stefan Kopecz and Andreas Meister, On order conditions for modified Patankar-Runge-Kutta schemes, Lemmas 2.6–2.7
- Stefan Kopecz and Andreas Meister, On order conditions for modified Patankar-Runge-Kutta schemes, §3.2
- Mark Embree, Lecture Notes on Numerical Analysis, global error analysis for one-step methods