Numerical smoothness
This lecture notes is to introduce the idea and framework of numerical smoothness to the audience. The goal of the discussions is to show that numerical smoothness provides a fundamental framework to do error analysis for numerical solutions of time-dependent ordinary and partial differential equations, or evolution equations. Unlike the Lax equivalence theorem focusing on numerical stability, where one encounters many difficulties with nonlinear equations solved with complex numerical schemes, the numerical smoothness framework can naturally handle nonlinear multi-physics equations solved by complex numerical schemes.
We are going to show that, given a well-posed time-dependent differential equation and a consistent numerical scheme, one can do the following.
(A) A set of smoothness indicators can be designed for the numerical solution, denoted as S p S^p S p and T k T^k T k , where S p S^p S p shows whether the numerical solution is numerically smooth in space, T k T^k T k shows whether the numerical solution is numerically smooth in time.
(B) It can be proven that the boundedness of the smoothness indicators is a necessary condition for the numerical solution to converge to any smooth function in the desired optimal convergence rate of the scheme. If a numerical solution is not converging to any smooth function, it is certainly not converging to a smooth solution of an evolution equation.
(C) It can be proven that the numerical solution is within an error estimate of the form
h p + 1 F ( S p ) + τ k G ( S p , T k ) (1) h^{p+1}F(S^p) + \tau^kG(S^p,T^k) \tag*{(1)} h p + 1 F ( S p ) + τ k G ( S p , T k ) (1)
from the true solution, where h h h is the mesh size, τ \tau τ is the time step size, p p p and k k k are the desired convergence orders, F F F and G G G are computable functions of S S S and T T T .
(D) The functions F F F and G G G also contain the estimation on how the error is propagated. The propagation rate is how error should be propagated by the evolution equation, which is obviously at least as good as the error propagation of any convergent numerical scheme.
Here are a few remarks on the significance of the above:
(a) If one can prove the boundedness of S p S^p S p and T k T^k T k before the computation, the error estimate is a priori .
(b) One can always compute the indicators S p S^p S p and T k T^k T k , hence always has an a posteriori error estimate.
(c) If S p S^p S p or T k T^k T k are proven or computed to be too large, the optimal convergence rate must have been lost.
(d) Thus, the numerical smoothness framework has a priori error estimate, a posteriori error estimate and failure detection done in a unified theoretical analysis.
Now the audience may have a lot of doubts or questions, such as how the smoothness indicators are defined, how the so called numerical smoothness comes into play, or even what it means by saying that a numerical solution is numerically smooth. The answers to these questions need to start from the two alternatives ways of error splitting, one leading to numerical stability in the numerical stability framework, the other one leading to the innovative numerical smoothness concept and the numerical smoothness framework.
These lecture notes are based mostly on the author’s work listed among the bibliography references.
Numerical stability vs. numerical smoothness
The evolution equations we consider can be represented abstractly, using Banach space terminology, as in the textbook of Richtmyer and Morton [10]. We wish to find a solution of the evolution equation
u t = f ( u ) , t ∈ [ 0 , T ] , (2) u_t = f(u), \qquad t \in[0,T], \tag*{(2)} u t = f ( u ) , t ∈ [ 0 , T ] , (2)
with the initial condition
u ( 0 ) = u 0 , (3) u(0) = u_0, \tag*{(3)} u ( 0 ) = u 0 , (3)
where f f f is a nonlinear operator from the Banach space B \mathcal{B} B containing u u u to a proper range space. For more details of the abstract problem, one can go to Chapter 3 of the reference [10], where a linear problem is presented. Here we will not specify the details about the well-posedness of our abstract problem. However, one can find more details in the concrete cases from [16 ] , [17 ] , [18 ] , [20 ] , [19 ] and [21 ] . We choose to consider an autonomous problem in order to avoid tedious notations.
Numerical Stability vs. Numerical Smoothness
A numerical scheme solving (1.1.1) can be abstractly written as
u N ( t n + 1 ) = u N ( t n ) + τ Φ ( u N ( t n ) ) , (4) u_N(t_{n+1}) = u_N(t_n) + \tau\Phi(u_N(t_n)), \tag*{(4)} u N ( t n + 1 ) = u N ( t n ) + τ Φ ( u N ( t n )) , (4)
where the index N stands for numerical solution. The index n n n is the step number in the discretization of the time domain [ 0 , T ] [0,T] [ 0 , T ] , where τ = T / K \tau= T/K τ = T / K , K K K is the total number of time steps, so the time domain is partitioned by t 0 = 0 t_0 = 0 t 0 = 0 , t 1 = τ t_1 = \tau t 1 = τ , ⋯ \cdots ⋯ , t n + 1 = t n + τ t_{n+1} = t_n + \tau t n + 1 = t n + τ , ⋯ \cdots ⋯ , t K = K τ = T t_K = K\tau= T t K = K τ = T . Φ \Phi Φ is the function (rule, formulas) of computing u N ( t n + 1 ) u_N(t_{n+1}) u N ( t n + 1 ) from u N ( t n ) u_N(t_n) u N ( t n ) , which could be a Runge-Kutta scheme, a WENO scheme for a conservation law, or any single step scheme for solving (1.1.1). The spatial discretization are hiding in the details of the Φ \Phi Φ for now.
The global error of the numerical solution u N ( t n ) u_N(t_n) u N ( t n ) , n = 1 , ⋯ , K n = 1,\cdots,K n = 1 , ⋯ , K is
e n = u ( t n ) − u N ( t n ) , n = 1 , ⋯ , K . e_n = u(t_n) - u_N(t_n), \qquad n = 1,\cdots,K. e n = u ( t n ) − u N ( t n ) , n = 1 , ⋯ , K .
After e n e_n e n has been estimated and u N ( t n + 1 ) u_N(t_{n+1}) u N ( t n + 1 ) has been computed, to estimate e n + 1 e_{n+1} e n + 1 , one needs to split it to a local error occuring in the step and a propagated error of e n e_n e n . There are two fundamentally different ways of error splitting, which are figured as in Splitting 1 and Splitting 2.
Figure 1. Splitting 1. Numerical Stability
Figure 2. Splitting 2. Numerical Smoothness
Here, in Splitting 1, u ^ N ( t n + 1 ) \hat{u}_N(t_{n+1}) u ^ N ( t n + 1 ) is defined by
u ^ N ( t n + 1 ) = u ( t n ) + τ Φ ( u ( t n ) ) . (5) \hat{u}_N(t_{n+1}) = u(t_n) + \tau\Phi(u(t_n)). \tag*{(5)} u ^ N ( t n + 1 ) = u ( t n ) + τ Φ ( u ( t n )) . (5)
In Splitting 2, u ~ ( t ) \tilde{u}(t) u ~ ( t ) is defined in each time step [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] by
u ~ t = f ( u ~ ) , t ∈ [ t n , t n + 1 ] , (6) \tilde{u}_t = f(\tilde{u}), \qquad t \in[t_n,t_{n+1}], \tag*{(6)} u ~ t = f ( u ~ ) , t ∈ [ t n , t n + 1 ] , (6)
with the initial condition
u ~ ( t n ) = u N ( t n ) . (7) \tilde{u}(t_n) = u_N(t_n). \tag*{(7)} u ~ ( t n ) = u N ( t n ) . (7)
Remark: Both of these splittings appeared in the more specialized numerical ODE books, such as [1], [5] and [7], but the authors did not go very far along
Splitting 2. In most numerical analysis textbooks, we often see authors using Splitting 1.
Numerical stability along with ideal local error
As seen in (1.1.4), u ^ N ( t n + 1 ) \hat{u}_N(t_{n+1}) u ^ N ( t n + 1 ) is the non-computable numerical solution which would be obtained by using the same scheme Φ \Phi Φ , in the step [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] , with initial value u ( t n ) u(t_n) u ( t n ) . After rewriting Splitting 1 in a formula, the total error at t n + 1 t_{n+1} t n + 1 is split into a local error and a propagation error by u ^ N ( t n + 1 ) \hat{u}_N(t_{n+1}) u ^ N ( t n + 1 ) as
u ( t n + 1 ) − u N ( t n + 1 ) = u ( t n + 1 ) − u ^ N ( t n + 1 ) ⏟ + u ^ N ( t n + 1 ) − u N ( t n + 1 ) ⏟ . (8) u(t_{n+1})-u_N(t_{n+1})=\underbrace{u(t_{n+1})-\hat{u}_N(t_{n+1})}+\underbrace{\hat{u}_N(t_{n+1})-u_N(t_{n+1})}. \tag*{(8)} u ( t n + 1 ) − u N ( t n + 1 ) = u ( t n + 1 ) − u ^ N ( t n + 1 ) + u ^ N ( t n + 1 ) − u N ( t n + 1 ) . (8)
In most textbooks, a typical way of defining local error is to put the real solution u ( t ) u(t) u ( t ) in a scheme to find the residual ξ ^ n + 1 \hat{\xi}_{n+1} ξ ^ n + 1 , which is equivalent to looking at u ( t n + 1 ) − u ^ N ( t n + 1 ) u(t_{n+1})-\hat{u}_N(t_{n+1}) u ( t n + 1 ) − u ^ N ( t n + 1 ) . In fact, let
u ( t n + 1 ) = u ( t n ) + τ Φ ( u ( t n ) ) + ξ ^ n + 1 , (9) u(t_{n+1})=u(t_n)+\tau\Phi(u(t_n))+\hat{\xi}_{n+1}, \tag*{(9)} u ( t n + 1 ) = u ( t n ) + τ Φ ( u ( t n )) + ξ ^ n + 1 , (9)
where ξ ^ n + 1 \hat{\xi}_{n+1} ξ ^ n + 1 is the residual, telling us by how much the exact solution u ( t ) u(t) u ( t ) does not satisfy the scheme. Subtracting this equation (1.1.8) by (1.1.4), we get
ξ ^ n + 1 = u ( t n + 1 ) − u ^ N ( t n + 1 ) = u ( t n + 1 ) − u ( t n ) − τ Φ ( u ( t n ) ) . \hat{\xi}_{n+1}=u(t_{n+1})-\hat{u}_N(t_{n+1})=u(t_{n+1})-u(t_n)-\tau\Phi(u(t_n)). ξ ^ n + 1 = u ( t n + 1 ) − u ^ N ( t n + 1 ) = u ( t n + 1 ) − u ( t n ) − τ Φ ( u ( t n )) .
The residual ξ ^ n + 1 \hat{\xi}_{n+1} ξ ^ n + 1 is defined to be the local error in Splitting 1. In the form u ( t n + 1 ) − u ( t n ) − τ Φ ( u ( t n ) ) u(t_{n+1})-u(t_n)-\tau\Phi(u(t_n)) u ( t n + 1 ) − u ( t n ) − τ Φ ( u ( t n )) at the very right hand side of the last equation, one can use Taylor expansion or other tools to convert the local error to the form of
∥ ξ ^ n + 1 ∥ ≤ C τ k + 1 max t ∈ [ t n , t n + 1 ] { ∥ u ( k + 1 ) ( t ) ∥ } , (10) \left\|\hat{\xi}^{n+1}\right\|\leq C\tau^{k+1}\max_{t\in[t_n,t_{n+1}]}\left\{\left\|u^{(k+1)}(t)\right\|\right\}, \tag*{(10)} ξ ^ n + 1 ≤ C τ k + 1 t ∈ [ t n , t n + 1 ] max { u ( k + 1 ) ( t ) } , (10)
where k ≥ 1 k\geq1 k ≥ 1 depends on the scheme Φ \Phi Φ .
The reason of defining u ( t n + 1 ) − u ^ N ( t n + 1 ) u(t_{n+1})-\hat{u}_N(t_{n+1}) u ( t n + 1 ) − u ^ N ( t n + 1 ) to be the local error is quite obvious: the smoothness of u ( t ) u(t) u ( t ) can be used only in this way to estimate the local error.
As a consequence of this convenient local error definition, one has to face the second part of the split error, namely, u ^ N ( t n + 1 ) − u N ( t n + 1 ) \hat{u}_N(t_{n+1})-u_N(t_{n+1}) u ^ N ( t n + 1 ) − u N ( t n + 1 ) , which is clearly the numerical propagation of the error e n = u ( t n ) − u N ( t n ) e_n=u(t_n)-u_N(t_n) e n = u ( t n ) − u N ( t n ) by the scheme. Thus, Splitting 1 leads to the numerical error propagation, also considered as numerical stability in the form of the distance of two numerical solutions.
When people use numerical stability in proving the convergence of the scheme, they usually try to prove that, in an appropriate norm,
∥ u ^ N ( t n + 1 ) − u N ( t n + 1 ) ∥ ≤ ( 1 + β τ ) ∥ u ( t n ) − u N ( t n ) ∥ ≤ e β τ ∥ u ( t n ) − u N ( t n ) ∥ , (11) \left\|\hat{u}_N(t_{n+1})-u_N(t_{n+1})\right\|\leq(1+\beta\tau)\left\|u(t_n)-u_N(t_n)\right\|\leq e^{\beta\tau}\left\|u(t_n)-u_N(t_n)\right\|, \tag*{(11)} ∥ u ^ N ( t n + 1 ) − u N ( t n + 1 ) ∥ ≤ ( 1 + β τ ) ∥ u ( t n ) − u N ( t n ) ∥ ≤ e β τ ∥ u ( t n ) − u N ( t n ) ∥ , (11)
where β \beta β can be the Lipschitz constant of Φ \Phi Φ , depending on the scheme. In most textbooks and research papers, people combine (1.1.7), (1.1.9), and (1.1.10) to prove their main theorem on the global error estimate, which typically looks like
∥ u ( T ) − u N ( T ) ∥ ≤ C max t ∈ [ 0 , T ] ∥ u ( k + 1 ) ( t ) ∥ e β T τ k \lVert u(T)-u_N(T)\rVert\le C \max_{t\in[0,T]} \lVert u^{(k+1)}(t)\rVert e^{\beta T}\tau^k ∥ u ( T ) − u N ( T )∥ ≤ C t ∈ [ 0 , T ] max ∥ u ( k + 1 ) ( t )∥ e β T τ k
It would be ideal to have β < 0 \beta< 0 β < 0 , with which one can prove a uniform convergence of the numerical solution in the entire time domain. The analysis to take advantage of β < 0 \beta< 0 β < 0 is related to the one-sided Lipschitz condition and the B-stability concept, which only works for very few very simple schemes of low order. For nonlinear ODE systems, the distance between two solutions is often expected to have exponential growth for short period of time. In such cases, β < 0 \beta< 0 β < 0 is impossible. Hence more sophisticated technical research is needed.
If β = 0 \beta= 0 β = 0 , there will be a simple accumulation of local error into global error. This is often related to the conservation of certain physics quantities. For example, the mass conservation of the scaler hyperbolic conservation laws resulted to the L 1 L_1 L 1 -contraction. It is desirable in this case to look for a scheme which also possesses a L 1 L_1 L 1 -contraction property between two numerical solutions, but all the modern schemes like discontinuous Galerkin finite element method or WENO method cannot be proven to have L 1 L_1 L 1 -contraction. Instead, people often settle down with β > 0 \beta> 0 β > 0 in their proof of numerical stability.
For some strongly nonlinear dynamical systems, there exist short time exponential growth in certain components of the solutions of the system. In a case like this, it is impossible to expect β ≤ 0 \beta\le0 β ≤ 0 in a Lipschitz condition or one-sided Lipschitz condition. For such systems, one has to deal with long term error analysis by other methods. There is very limited research on this topic.
Another thing ruining β ≤ 0 \beta\le0 β ≤ 0 is the choice of the norm used in the analysis of nonlinear evolution equations. Using the scalar conservations law again as an example, we know that the distance between two solutions of the evolution equation is preserved in the L 1 L_1 L 1 -norm, but it is to grow to the height of the shock in L ∞ L_\infty L ∞ -norm. While using a finite element method, people tend to choose L 2 L_2 L 2 -norm for its convenience in the finite element formulation. However, near a location of shock formation, the L 2 L_2 L 2 -norm of the distance between two solutions is doomed to have exponential growth.
Unfortunately, away from some simple equations of ODEs or parabolic PDEs solved by a few simple schemes, one often ends up getting β > 0 \beta> 0 β > 0 . Both nonlinearity of the evolution equation and complexity of the numerical scheme will contribute to make β \beta β larger. In the global error estimate, one will see a factor e β T e^{\beta T} e β T , if the numerical solution is to be computed in t ∈ [ 0 , T ] t\in[0,T] t ∈ [ 0 , T ] .
In many cases, proving (1.1.10) is simply too hard due to nonlinearity, scheme complexity, and other technical difficulties. For this reason, in many cases, although we can produce a numerical solution which looks perfect, we just cannot prove the convergence of the scheme, even more hopeless for having a practically useful error estimate.
For linear evolution equations, there is the well-known Lax Equivalence Theorem [9]. Assuming a scheme is consistent with the equation, numerical stability is necessary and sufficient for convergence. By careful reading into the details of the original proof of the Lax Equivalence Theorem, one can recognize that the sufficiency proof was in the framework of our Splitting 1. One can also read the textbook of Richtmyer and Morton, Section 3.5 of [10].
Numerical smoothness along with exact error propagation
In Splitting 2, the error is split in a different way. u ( t ) u(t) u ( t ) and u N ( t ) u_N(t) u N ( t ) are defined as before. For the entire time domain, u ~ ( t ) \widetilde{u}(t) u ( t ) is defined piecewise, (1.1.5) and (1.1.6). Namely, in each time step ( t n , t n + 1 ] (t_n,t_{n+1}] ( t n , t n + 1 ] , u ~ ( t ) \widetilde{u}(t) u ( t ) is the solution of the evolution equation with initial value u N ( t n ) u_N(t_n) u N ( t n ) . Here the total error at t n + 1 t_{n+1} t n + 1 is split as
u ( t n + 1 ) − u N ( t n + 1 ) = u ( t n + 1 ) − u ~ ( t n + 1 ) ⏟ u ( t n + 1 ) − u ~ ( t n + 1 ) + u ~ ( t n + 1 ) − u N ( t n + 1 ) ⏟ u ~ ( t n + 1 ) − u N ( t n + 1 ) . (12) u(t_{n+1})-u_N(t_{n+1})=\underbrace{u(t_{n+1})-\widetilde{u}(t_{n+1})}_{\phantom{u(t_{n+1})-\widetilde{u}(t_{n+1})}}+\underbrace{\widetilde{u}(t_{n+1})-u_N(t_{n+1})}_{\phantom{\widetilde{u}(t_{n+1})-u_N(t_{n+1})}}. \tag*{(12)} u ( t n + 1 ) − u N ( t n + 1 ) = u ( t n + 1 ) − u ( t n + 1 ) u ( t n + 1 ) − u ( t n + 1 ) + u ( t n + 1 ) − u N ( t n + 1 ) u ( t n + 1 ) − u N ( t n + 1 ) . (12)
The first difference on the right hand side (RHS) is the propagation of e n = u ( t n ) − u N ( t n ) e_n=u(t_n)-u_N(t_n) e n = u ( t n ) − u N ( t n ) by the evolution equation. The second difference is the actual local error, which is the error of u N ( t n + 1 ) u_N(t_{n+1}) u N ( t n + 1 ) while approximating u ~ ( t n + 1 ) \widetilde{u}(t_{n+1}) u ( t n + 1 ) .
The easy part of Splitting 2 is its error propagation. The error propagation by the evolution equation (exact error propagation) is exactly how error should be propagated. Even if one does not know how the solutions of the differential equation propagate error, the bottom line is that the exact error propagation is at least as good as the numerical error propagation of any convergent scheme. One famous example is the proof of the L 1 L_1 L 1 -contraction property of scalar conservation laws, the tool used for the proof was the Lax-Friedrichs scheme. For ODE problems, the readers will see a case study in Chapter 3, where the advantage of the error propagation by evolution equations will be demonstrated with a very different technique.
The other part of Splitting 2 is the local error ξ n + 1 = u ~ ( t n + 1 ) − u N ( t n + 1 ) \xi_{n+1}=\widetilde{u}(t_{n+1})-u_N(t_{n+1}) ξ n + 1 = u ( t n + 1 ) − u N ( t n + 1 ) . This is where the innovative concept of numerical smoothness comes into play. For readers who are not yet familiar with the idea of numerical smoothness for error analysis, the following explanations may be important.
Among the pioneers in this field, C.W. Gear was one of very few experts who used Splitting 2 in his textbook [5]. After all, when the solution process has obtained ( t n , u N ( t n ) ) (t_n,u_N(t_n)) ( t n , u N ( t n )) , the natural thing to do next is to approximate u ~ ( t ) \tilde{u}(t) u ~ ( t ) to get a ( t n + 1 , u N ( t n + 1 ) ) (t_{n+1},u_N(t_{n+1})) ( t n + 1 , u N ( t n + 1 )) . Gear focused on ODE problems. For non-stiff ODEs, u ~ ( t ) \tilde{u}(t) u ~ ( t ) is typically smooth in the classical sense, hence estimating the local error u ~ ( t n + 1 ) − u N ( t n + 1 ) \tilde{u}(t_{n+1})-u_N(t_{n+1}) u ~ ( t n + 1 ) − u N ( t n + 1 ) meets no trouble. For stiff ODEs, the Lipschitz constant L L L is large. Gear tolerated the fact that the ( k + 1 ) (k+1) ( k + 1 ) -st derivative u ~ ( k + 1 ) ( t ) \tilde{u}^{(k+1)}(t) u ~ ( k + 1 ) ( t ) is proportional to L k + 1 L^{k+1} L k + 1 in most part of the domain. Because L L L can be considered as a fixed constant, as long as the original problem is indeed an ODE, the error bound still implies convergence.
In fact, only when the numerical scheme send the stiff components of the numerical solution into a small part of the domain, u ~ ( t ) \tilde{u}(t) u ~ ( t ) can be small. The solutions of the stiff ODEs do have the property of doing this. Good numerical schemes should also have this property. This property is understood as numerical smoothing or smoothness maintenance. Splitting 2 provides the framework in which numerical analysts can monitor if the schemes have this property, as well as to use this property in local error control.
A trivial example might help some readers here. Consider the model problem
w ′ = λ w , w ( 0 ) = 1 , λ = − 100. w'=\lambda w,\qquad w(0)=1,\qquad\lambda=-100. w ′ = λ w , w ( 0 ) = 1 , λ = − 100.
On the surface, the high order derivative w ( k ) ( t ) = λ k w ( t ) w^{(k)}(t)=\lambda^k w(t) w ( k ) ( t ) = λ k w ( t ) , which looks huge. Digging slightly deeper, since w ( k + 1 ) ( t ) = λ w ( k ) w^{(k+1)}(t)=\lambda w^{(k)} w ( k + 1 ) ( t ) = λ w ( k ) , we get w ( k ) ( t ) = e λ t w ( k ) ( 0 ) = e λ t λ k w^{(k)}(t)=e^{\lambda t}w^{(k)}(0)=e^{\lambda t}\lambda^k w ( k ) ( t ) = e λ t w ( k ) ( 0 ) = e λ t λ k , which quickly decays toward 0 through a short transient process. In fact, if we consider the 4th derivative, w ( 4 ) ( 0 ) = 100 4 = 10 8 w^{(4)}(0)=100^4=10^8 w ( 4 ) ( 0 ) = 10 0 4 = 1 0 8 , w ( 4 ) ( 0.1 ) ≈ 4540 w^{(4)}(0.1)\approx4540 w ( 4 ) ( 0.1 ) ≈ 4540 , w ( 4 ) ( 0.2 ) ≈ 0.2062 w^{(4)}(0.2)\approx0.2062 w ( 4 ) ( 0.2 ) ≈ 0.2062 , w ( 4 ) ( 0.3 ) ≈ 0.000009358 w^{(4)}(0.3)\approx0.000009358 w ( 4 ) ( 0.3 ) ≈ 0.000009358 . Obviously, the original solution of the equation goes into the narrow region of the domain where the smoothness of the solution improves quickly. One wants to choose a numerical scheme and an appropriate step size so that the u ~ ( t ) \tilde{u}(t) u ~ ( t ) also appears in the narrow region. A numerically stable solution does not necessarily guarantee that this will happen.
In another way of wording, a good numerical scheme should mimic a transient process for a stiff problem, and a corresponding good error analysis needs to take advantage of this. This kind of good schemes have correct numerical smoothing property. For example, the backward Euler method mimics the smoothing process much better than the forward Euler method with large step sizes. However, if we use tiny time step sizes, both the methods will do well.
In real life, a large chunk of ODEs to be numerically solved are the semi-discretization of hyperbolic or parabolic PDEs, which are severely stiff because the Lipschitz constant L L L is proportional to 1 / h 1/h 1/ h or 1 / h 2 1/h^2 1/ h 2 , where h h h is the mesh size of the spatial discretization, and L L L goes to ∞ \infty ∞ as h h h goes to 0. What seems even worse is that the semi-discrete solutions for PDEs are piecewise polynomials, cell averages, or discrete nodal points, which are not smooth functions for sure. For example, piecewise polynomials have jumps or derivative jumps along cell boundaries all over the domain, consequently u ~ ( t ) \tilde{u}(t) u ~ ( t ) can be full of shocks and rarefaction waves. If framed by these facts, one would believe that there is no smoothness to talk about for u ~ ( t ) \tilde{u}(t) u ~ ( t ) . Perhaps for this reason, the concept of numerical smoothness as we are talking about here did not appear earlier.
While the exact error propagation is an advantage for us to take, there is a new issue: the smoothness of u ~ ( t ) \tilde{u}(t) u ~ ( t ) needs to be established, so that the local error u ~ ( t n + 1 ) − u N ( t n + 1 ) \tilde{u}(t_{n+1}) - u_N(t_{n+1}) u ~ ( t n + 1 ) − u N ( t n + 1 ) can be estimated. Since u ~ ( t ) \tilde{u}(t) u ~ ( t ) is a solution of the evolution equation, its smoothness relies on its initial value u N ( t n ) u_N(t_n) u N ( t n ) . Because u N ( t n ) u_N(t_n) u N ( t n ) is the result of the numerical computation in the past steps before reaching t n t_n t n , we need that the scheme or schemes we have used so far have had certain numerical smoothing effect or smoothness maintenance, so that u ~ ( t ) \tilde{u}(t) u ~ ( t ) has certain smoothness. Once we have established the smoothness of u ~ ( t ) \tilde{u}(t) u ~ ( t ) , we can obtain a local error estimate for u ~ ( t n + 1 ) − u N ( t n + 1 ) \tilde{u}(t_{n+1}) - u_N(t_{n+1}) u ~ ( t n + 1 ) − u N ( t n + 1 ) by using the consistency of the schemes.
The above approach of exact error propagation and numerical smoothness analysis has been used in [16 ] , [17 ] , [18 ] , [19 ] , [20 ] and [21 ] for long time error analysis. In these papers, some examples of nonlinear problems and complex schemes are presented. There are also details about how to apply the idea to parabolic and hyperbolic equations with various spatial discretization. Here we summarize the idea in the following simple paradigm, to point out that numerical stability can be replaced by numerical smoothness.
Theoretical Paradigm: Under the assumption of consistency,
Numerical Smoothness ⇔ Optimal Error Estimate . \text{Numerical Smoothness} \Leftrightarrow\text{Optimal Error Estimate}. Numerical Smoothness ⇔ Optimal Error Estimate .
This paradigm also applies to nonlinear evolution equations and complex schemes.
Remarks: For non-stiff ODEs, u ~ ( t ) \tilde{u}(t) u ~ ( t ) should be smooth naturally. For stiff ODEs, u ~ ( t ) \tilde{u}(t) u ~ ( t ) can be not so smooth if the scheme did not handle the stiffness well, see the following example. For PDEs, u ~ ( t ) \tilde{u}(t) u ~ ( t ) is typically nonsmooth as piecewise polynomial approximation functions, thus the local error analysis can be very tedious, but doable because the local error analysis is usually local in space and time. Thus, parabolic problems are harder than hyperbolic problems here, because hyperbolic waves are purely local.
In many textbooks, one can find explanations about the concept of numerical stability. Typically, the understanding is that a stable scheme does not amplify small local truncation errors too badly, while a unstable scheme amplify small errors too much and ruin the numerical solution. When we work with numerical smoothness instead of numerical stability, we have a totally different understanding. We choose the framework where error propagation is only done by the evolution equation. If we do not have enough numerical smoothness, we produce a large local error at each step. If we use an anti-smoothing scheme, we produce larger and larger local error step after step. Meanwhile, if we use a scheme with certain numerical smoothing property and adaptively choose time step sizes, we can control the local error.
An illustrative example: numerical smoothness
Figure 1.1 shows an example which explains the understanding of the role of numerical smoothness. The equation is the ODE
Figure 1.1. Numerical Stability vs. Numerical Smoothness
u ′ = 18 ( cos t − u ) u' = 18(\cos t-u) u ′ = 18 ( cos t − u )
in the time domain [ 0 , 2 ] [0,2] [ 0 , 2 ] with the initial condition u ( 0 ) = 0 u(0)=0 u ( 0 ) = 0 . This is a typical negative feedback model with the control signal cos t \cos t cos t to be followed by the solution u ( t ) u(t) u ( t ) . The coefficient 18 makes the problem slightly stiff. The exact solution is
u ( t ) = 324 325 ( cos t − e − 18 t ) + 18 325 sin t , u(t) = \frac{324}{325}(\cos t-e^{-18t})+\frac{18}{325}\sin t, u ( t ) = 325 324 ( cos t − e − 18 t ) + 325 18 sin t ,
or, in a more informative form,
u ( t ) = 324 325 cos ( t − α ) − 324 325 e − 18 t , u(t) = \sqrt{\frac{324}{325}}\cos(t-\alpha)-\frac{324}{325}e^{-18t}, u ( t ) = 325 324 cos ( t − α ) − 325 324 e − 18 t ,
where α = arctan 1 18 \alpha=\arctan\frac{1}{18} α = arctan 18 1 is the angle of the phase lag, 324 325 \sqrt{\frac{324}{325}} 325 324 shows the small amplitude shrink from the amplitude 1 of cos t \cos t cos t . The exponential term e − 18 t e^{-18t} e − 18 t gives us the transient process, and the coefficient 18 tells us the strong contraction of u ( t ) u(t) u ( t ) as a moving attractor [17 ] .
In the picture, the grey dash-dot curve is cos ( t ) \cos(t) cos ( t ) . The blue solid curve is the exact solution satisfying u ( 0 ) = 0 u(0)=0 u ( 0 ) = 0 . The red dot curve is the explicit Euler solution with step size τ = 0.1 \tau=0.1 τ = 0.1 . Obviously, with τ = 0.1 \tau=0.1 τ = 0.1 , the Euler solution is stable but has insufficient smoothing, resulting in the oscillation, which makes the red solution unacceptable. More importantly, if we consider the DE solution u ~ ( t ) \tilde{u}(t) u ~ ( t ) satisfying u ~ ( t k ) = u k \tilde{u}(t_k)=u_k u ~ ( t k ) = u k , where u k u_k u k is the nodal value of the red solution at t k t_k t k , this DE solution does not mimic the smoothness of the original solution u ( t ) u(t) u ( t ) until k k k gets fairly large. The green dash curve is the backward Euler solution also with τ = 0.1 \tau=0.1 τ = 0.1 , obviously stable, and also provides sufficient smoothing, but has large local error in the first a few steps due to the low convergence rate, which in turn hurt the smoothing effect.
In the Lax framework, the behavior of the explicit Euler solution is usually said to be already stable when τ \tau τ is reduced to 0.1, but not converging yet. As for the understanding of the behavior under the numerical smoothness framework, let us focus on the step [ t 2 , t 3 ] [t_2,t_3] [ t 2 , t 3 ] . The solid orange curve is the ODE’s solution u ~ ( t ) \tilde{u}(t) u ~ ( t ) with the initial point marked by the big orange dot ( t 2 , u 2 ) (t_2,u_2) ( t 2 , u 2 ) , where u 2 u_2 u 2 is the solution of the explicit Euler scheme at t 2 t_2 t 2 . In the time step [ t 2 , t 3 ] [t_2,t_3] [ t 2 , t 3 ] , the explicit Euler solution ( t 3 , u 3 ) (t_3,u_3) ( t 3 , u 3 ) (in red) still has a huge local error from the orange curve. The backward Euler solution (in purple) also has a pretty bad local error from the orange curve, even though it is much better than the explicit solution. Here, instead of blaming the stability of the explicit Euler, we blame the insufficient smoothing of the explicit Euler which made the u ~ ( t ) \tilde{u}(t) u ~ ( t ) not as smooth as u ( t ) u(t) u ( t ) in [ t 2 , t 3 ] [t_2,t_3] [ t 2 , t 3 ] . After all, the local error defined in Splitting 2 for either scheme is the distance from the numerical solution to the orange curve. Since the previous steps of the explicit Euler have given us the orange curve u ~ ( t ) \tilde{u}(t) u ~ ( t ) in [ t 2 , t 3 ] [t_2,t_3] [ t 2 , t 3 ] which is not very smooth, there is no way to make the local error small unless we adaptively adjust the time step size τ \tau τ . Based on the above understanding, the so called numerical smoothness is about the smoothness of the u ~ ( t ) \tilde{u}(t) u ~ ( t ) in each step.
To summarize the idea in other words, numerical smoothness is to see, for each n n n , whether a scheme delivers a u n = u N ( t n ) u_n=u_N(t_n) u n = u N ( t n ) which makes the DE solution u ~ ( t ) \tilde{u}(t) u ~ ( t ) smooth enough in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] . If u ~ ( t ) \tilde{u}(t) u ~ ( t ) is not smooth enough, the numerical solution is already ruined. If u ~ ( t ) \tilde{u}(t) u ~ ( t ) is numerically smooth enough in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] as the boundedness of the smoothness indicator has told us, we just need to choose the scheme for [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] and make sure u n + 1 = u N ( t n + 1 ) u_{n+1}=u_N(t_{n+1}) u n + 1 = u N ( t n + 1 ) will be as good as u n u_n u n in the following two sense: error control and numerical smoothness. Instead of the two design goals for schemes in the Lax framework, consistency and numerical stability, our two design goals are consistency and numerical smoothness. When the smoothness indicators inform us a failure, we should either adjust the time step size or modify the scheme.
Advantages of numerical smoothness over stability
There are several advantages of using numerical smoothness over numerical stability in error analysis. The fundamental difference between numerical smoothness and numerical stability is the following. To be used in error propagation analysis, numerical stability is about the relation between two numerical solutions, one of them is always not computable, hence there is no natural stability indicator. On the contrary, numerical smoothness is only about one numerical solution, namely the computed numerical solution, so smoothness indicators are always available. The impact of this difference is far and wide reaching.
Since only the computed numerical solution is involved, the loss of superposition in a nonlinear problem will not block us from computing a smoothness indicator. Hence numerical smoothness analysis works better for nonlinear problems.
No matter what numerical schemes are used for time-discretization, the smoothness indicator at each t n t_n t n is computed in the same way based only on the spatial discretization. Hence an error estimate can be done regardless of scheme complications in time. For ODEs, the smoothness indicator only depends on the equation, not the scheme.
Error propagation is estimated by using evolution equations instead of schemes. All the potential troubles of numerical error propagation analysis are avoided. After all, error propagation by evolution equation is exactly how error should be propagated. Without complication of a numerical scheme, one can apply any contraction properties of the ODE and PDE solutions, including the attraction property of a solution, a limit cycle, a strange (chaotic) attractor, the L 1 L^1 L 1 -contraction of the conservation laws, or any other attractive objects useful for error analysis. This is actually what makes long time error estimation possible [17 ] [18 ] [20 ] [21 ] .
Adaptive time-stepping is natural, since the smoothness of u ~ ( t ) \tilde{u}(t) u ~ ( t ) is revealed by the smoothness indicator in each step [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] [16 ] at the beginning of the time step. Within a step, the local error estimation is a priori .
The additional cost on computing the smoothness indicator is almost negligible. As shown in [16 ] , [17 ] , [18 ] , [20 ] , [19 ] and [21 ] , computing the smoothness indicator involves a few actions of a sparse stiffness matrix and a mass matrix inversion. The stiffness matrices are computed anyway, while the mass matrix inversion can be avoided by mass lumping.
When u N ( t n ) u_N(t_n) u N ( t n ) has been obtained, according to our way of error analysis for the next step to be done by Splitting 2, we focus on (1) the exact error propagation and (2) the estimation of the real local error relying on the numerical smoothness indicator. One can see how much freedom we have in making the choice of the scheme(s) to be used in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] . We can choose a different time discretization scheme for every step as long as we can control the local error as desired. We prefer to keep the spatial mesh for efficiency, but we can adjust the mesh whenever necessary as long as the reconstruction of u N ( t n ) u_N(t_n) u N ( t n ) to fit the new mesh does not contribute too much (big) error toward the local error of the new time step. There is no need to worry about how any modification of the scheme could ruin our numerical stability.
The smoothness indicators play the role of a two-fold sword. Checking whether the scheme(s) used before t n t_n t n has maintained smoothness or delivered smoothing;
and providing the current smoothness we have to use for controlling the local error.
From the case study of Chapter 3, one can see that, under the numerical smoothness framework, we can even estimate error propagation with localized analysis. This is very important for nonlinear systems, especially when there is short time exponential growth in a nonlinear problem.
With the list of all the advantages, one can see the significance of the innovative concept of numerical smoothness.
Considerations on numerical stability
The concept of numerical stability has a long history, starting from 1928 when Courant, Friedrichs and Levy proved the CFL necessity condition, which points out that the discrete domain of dependence must cover the continuous domain of dependence for finite difference schemes solving hyperbolic PDEs. This has been considered as the earliest stability condition, although it is not about the continuous reliance of a solution on initial value but about if all the information affecting the solution is approximately taking into account.
In the 1940s, von Neumann developed the Fourier analysis method for analyzing the error of a finite difference solutions of linear parabolic and hyperbolic PDEs. This method allows people to observe what happens with the error in the frequency domain, in addition to space-time domain. It helps people identifying what is going wrong at the high frequencies, where the numerical solutions usually present symptoms of fast exponential growth first. These symptoms are called numerical instability, although the right understanding should be numerical anti-smoothing. Nevertheless, the necessary conditions of the form Δ t ≤ C h k \Delta t \le Ch^{k} Δ t ≤ C h k with k = 1 k = 1 k = 1 or 2 derived from the von Neumann analysis are indeed necessary, sometimes even inadequate for the needed smoothing of parabolic equations.
In 1956, Lax and Richtmyer establish the well-known Lax Equivalence Theorem: for a well-posed linear initial-value problem,
Consistency + Stability ⟺ Convergence . \text{Consistency} + \text{Stability} \Longleftrightarrow\text{Convergence}. Consistency + Stability ⟺ Convergence .
This has been unofficially referred as the fundamental theorem of numerical analysis, although the theorem is limited to linear time-dependent differential equations solved by linear numerical schemes. The result of the equivalence theorem has been considered as applicable in all branches of numerical analysis, although the meaning of stability is different in different branches. For example, the loss or weakening of coerciveness or inf-sup condition in an elliptic PDE problem is a well-posedness issue, very different from the issue of continuous reliance on initial value in time-dependent differential equations. Mixing all error sensitivity issues under the name of stability or instability do not help us.
Frankly speaking, the Equivalence Theorem may have done more harm then help over the years. As an equivalence statement, the necessity is inadequate, the sufficiency is limited to linearity. Meanwhile, most people were believing that the equivalence means numerical stability of schemes can never be bypassed. A second thought won’t even get started. People simply believe that a consistent scheme must be stable and only need to be stable, and the scheme is certainly responsible for error propagation. Thus, we are trapped in the problematic equivalence.
In the literature of numerical solutions of evolution equations, numerical stability has dozens of different definitions. One can divide them into two categories, (A) about a single numerical solution; and (B) about the difference between a pair of numerical solutions. In category (A), we have the Lax stability as in the Lax Equivalence Theorem, A stability, AN-stability, A(α \alpha α )-stability, TVD stability, and so on. In category (B), we have algebraic stability, B-stability, and so on.
For a linear evolution equation u ′ = A u u^{\prime}=Au u ′ = A u and a numerical scheme u n + 1 = C τ u n u_{n+1}=C_{\tau}u_n u n + 1 = C τ u n , Lax defined the numerical stability of the scheme by the uniform boundedness of ∥ C τ n ∥ \lVert C_{\tau}^{n}\rVert ∥ C τ n ∥ for all τ ≤ δ \tau\leq\delta τ ≤ δ for a δ > 0 \delta>0 δ > 0 and n τ = T n\tau=T n τ = T . This is about one numerical solution, and only involve the numerical solution itself, not involving the derivatives of the numerical solution of any order. Obviously, Lax stability belongs to category A. Some other stability definitions of category A take the spectrum of the coefficient matrix (such as A-stability) into the consideration, some other stability definitions take a bit of the solution operator’s compactness into account, such as the TVD stability. If we consider the numerical smoothness indicators as a kind of stability indicator, they have the compactness of solution operators taken into account by 100%. Only in the case of a linear equation solved by a linear scheme, the Lax stability was applied to the distance between two numerical solutions to do error propagation estimation. Hence the sufficiency of the Lax equivalence theorem was proven only for linear equations solved by linear schemes.
Only stability in category (B) can be directly used in proving the error propagation properties of a scheme, but the error propagation properties of schemes are usually not as good the error propagation properties of differential equations. As for the stability definitions in category (A), they actually help people in obtaining numerical smoothing or smoothness maintenance properties, see [14 ] . If we review the familiar schemes, many of them have smoothing or smoothness maintenance ability while the designers of them were using numerical stability as a design criterion.
It should be emphasized that most of the definitions of numerical stability in category (A), although help in making the schemes in smoothing or smoothness maintenance because they require the numerical solutions themselves to be bounded, they do not do enough because those definitions do not directly enforce the boundedness of high order derivatives. Please see [14 ] .
A. Stuart and A. Humphries has a review paper [12 ] on the stability of numerical solutions and schemes. In the article they discussed six kinds of problems: linear decay problems, contractive nonlinear problems, gradient systems, dissipative systems, conservative systems, and Hamiltonian systems. Among these six kinds of problems, only for linear decay and contractive systems, the equations can be hoped to satisfy a one-sided Lipschitz condition and use a scheme with B-stability to obtain a uniform error estimate. The number of schemes having B-stability is very limited.
The vast majority of equations and the desired schemes for each of them individually are not so lucky. Most interesting equations, such as the Van der Pol equation, the Lorenz equation, many semi-linear parabolic equations, conservations laws with shocks, they are not so ideal. Only when the equation and the scheme used are both linear, stability of category (A) is also in category (B), which is why the Lax Equivalence Theorem is limited to linear cases. For example, a scheme can be proven to be dissipative stable, but one cannot use this to prove the scheme is convergent. Hence dissipative stability is merely a necessary condition for convergence.
There are various kinds of nonlinearities which make the equation non-contractive, but dissipative in long-time scales or a significant part of the domain. Before we have sufficient knowledge about the locations of the original solution and the numerical solution, we cannot utilize these nice facts. If we use the Lipschitz or one-sided Lipschitz condition in a fairly large subdomain with a Lipschitz constant m > 0 m > 0 m > 0 , there is going to have excessive exponential error growth in our global error estimate. For example, if m = 5 m = 5 m = 5 and T = 60 T = 60 T = 60 , a coefficient e m T = e 300 ≈ 10 130 e^{mT} = e^{300} \approx10^{130} e m T = e 300 ≈ 1 0 130 will easily submerge h p h^p h p for an h h h and a p p p which give us a good numerical solution.
In Chapter 3, we do a case study on the Van der Pol equation, where we show how the numerical smoothness framework overcome the difficulties and get a perfect global error estimate.
Chapter 2
Smoothness indicators
In this section we present a simple temporal smoothness indicator for time-dependent ODE and a simple case of spatial smoothness indicator in approximation theory.
For ODEs or ODE systems, the smoothness of a function in a time domain means two things. (1) The existence of derivatives up to a positive order k > 1 k>1 k > 1 . (2) All the derivatives up to order k k k are bounded. Therefore the numerical smoothness for ODE solutions should be given by the smoothness of the u ~ ( t ) \tilde{u}(t) u ~ ( t ) in each step [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] , which is to be established or disqualified in two step. (1) Find whether u ~ ( t ) \tilde{u}(t) u ~ ( t ) is smooth at initial time t n t_n t n , which is given by an indicator computable from u N ( t n ) u_N(t_n) u N ( t n ) . (2) Prove u ~ ( t ) \tilde{u}(t) u ~ ( t ) being smooth in the entire step [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] .
For the spatial indicators, we stay away from differential equations for now. Instead, we will show a necessity result in approximation theory in general. The result is that numerical smoothness is necessary for a discrete approximation function to converge to any smooth function. This necessity result has far reaching consequences as it validates a new logical argument. That is, one can assume the numerical smoothness of a computed solution before doing error estimation, because otherwise the loss of numerical smoothness has already lost the desired convergence for us. On the other side, numerical smoothness should be taken as a criterion when a scheme is designed.
Temporal smoothness indicator
For the ODE
u ′ = f ( u ) , u' = f(u), u ′ = f ( u ) ,
consider the first a few successive derivatives
v = u ′ , w = v ′ , p = w ′ , q = p ′ . v = u', \qquad w = v', \qquad p = w', \qquad q = p'. v = u ′ , w = v ′ , p = w ′ , q = p ′ .
Then, using the chain rule, we get
v = u ′ = f ( u ) w = v ′ = f ′ ( u ) v p = w ′ = f ′ ′ ( u ) v 2 + f ′ ( u ) w q = p ′ = f ′ ′ ′ ( u ) v 3 + 3 f ′ ′ ( u ) v w + f ′ ( u ) p q ′ = f ( 4 ) ( u ) v 4 + 6 f ′ ′ ′ ( u ) v 2 w + 3 f ′ ′ ( u ) w 2 + 4 f ′ ′ ( u ) v p + f ′ ( u ) q ⋯ ⋯ (13) \begin{aligned}
v &= u' = f(u)\\
w &= v' = f'(u)v\\
p &= w' = f''(u)v^2 + f'(u)w\\
q &= p' = f'''(u)v^3 + 3f''(u)vw + f'(u)p\\
q' &= f^{(4)}(u)v^4 + 6f'''(u)v^2w + 3f''(u)w^2 + 4f''(u)vp + f'(u)q\\
&\cdots\cdots \tag*{(13)}
\end{aligned} v w p q q ′ = u ′ = f ( u ) = v ′ = f ′ ( u ) v = w ′ = f ′′ ( u ) v 2 + f ′ ( u ) w = p ′ = f ′′′ ( u ) v 3 + 3 f ′′ ( u ) v w + f ′ ( u ) p = f ( 4 ) ( u ) v 4 + 6 f ′′′ ( u ) v 2 w + 3 f ′′ ( u ) w 2 + 4 f ′′ ( u ) v p + f ′ ( u ) q ⋯⋯ (13)
It can be seen that u , v , w , p , q , ⋯ u,v,w,p,q,\cdots u , v , w , p , q , ⋯ are used here to keep the formulas brief and the computations efficient. All these equations can be used as evaluation formulas successively to compute, at each t n t_n t n ,
u ~ ′ ( t n + ) = v ( t n + ) , u ~ ′ ′ ( t n + ) = w ( t n + ) , ⋯ , u ~ ( 4 ) ( t n + ) = q ( t n + ) . \widetilde{u}'(t_n^+) = v(t_n^+), \qquad\widetilde{u}''(t_n^+) = w(t_n^+), \qquad\cdots, \qquad\widetilde{u}^{(4)}(t_n^+) = q(t_n^+). u ′ ( t n + ) = v ( t n + ) , u ′′ ( t n + ) = w ( t n + ) , ⋯ , u ( 4 ) ( t n + ) = q ( t n + ) .
If we substituted each derivative by its form in terms of f ( u ) , f ′ ( u ) f ( u ) , f ′ ′ ( u ) ( f ( u ) ) 2 + ( f ′ ( u ) ) 2 f ( u ) , ⋯ f(u), f'(u)f(u), f''(u)(f(u))^2 + (f'(u))^2f(u), \cdots f ( u ) , f ′ ( u ) f ( u ) , f ′′ ( u ) ( f ( u ) ) 2 + ( f ′ ( u ) ) 2 f ( u ) , ⋯ , the expressions would be much longer. Moreover, we want to point out that each equation in (B) is linear in terms of its new unknown function, such as w ′ = ⋯ + f ′ ( u ) w w'=\cdots+f'(u)w w ′ = ⋯ + f ′ ( u ) w , where no w w w is hiding in the dots. This observation tells us that, where u ( t ) u(t) u ( t ) does not blow-up, none of v , w , p , q , ⋯ v,w,p,q,\cdots v , w , p , q , ⋯ can blow-up. This kind of linearity will be useful in many other ways down the road.
For any numerical scheme, at t n t_n t n with u N ( t n ) u_N(t_n) u N ( t n ) obtained, we are going to define the temporal smoothness indicator in the following way. The fixed order 5 here is used to avoid tedious expressions. In practice, one can choose to go with lower or higher order.
Definition 2.1.1 For a numerical solution u N ( t n ) u_N(t_n) u N ( t n ) of (1.1.1), n = 1 , 2 , ⋯ , K n=1,2,\cdots,K n = 1 , 2 , ⋯ , K , its temporal smoothness indicator of order k k k is
T k = ( T 0 , T 1 , ⋯ , T K − 1 ) , T^k=(T_0,T_1,\cdots,T_{K-1}), T k = ( T 0 , T 1 , ⋯ , T K − 1 ) , where
T n = ( u N ( t n ) , u ~ ′ ( t n + ) , u ~ ′ ′ ( t n + ) , ⋯ , u ~ ( k + 1 ) ( t n + ) ) . T_n=\left(u_N(t_n),\widetilde{u}'(t_n^+),\widetilde{u}''(t_n^+),\cdots,\widetilde{u}^{(k+1)}(t_n^+)\right). T n = ( u N ( t n ) , u ′ ( t n + ) , u ′′ ( t n + ) , ⋯ , u ( k + 1 ) ( t n + ) ) . The j j j -th derivative u ~ ( j ) ( t n + ) \widetilde{u}^{(j)}(t_n^+) u ( j ) ( t n + ) in T n T_n T n can be computed by the j j j -th equation in (B), with everything evaluated at t n t_n t n .
Temporal Smoothness Indicator
Remark: In the era of MatLab, Python and AI LLM, the symbolic computation should no longer be considered as something hard to do.
Remark: The definiton also applies to ODE systems. For a system of m m m unknown functions and m m m equations, f ( u ) f(u) f ( u ) is a vector of m m m components. f ′ ( u ) f'(u) f ′ ( u ) is an m m m by m m m matrix, which is the Jacobi matrix acting on vector. f ′ ′ ( u ) f''(u) f ′′ ( u ) is a cubic matrix, or better called a 3D tenser, acting on 2 vectors consecutively. f ′ ′ ′ ( u ) f'''(u) f ′′′ ( u ) is a 4D tensor acting on 3 vectors consecutively. f ( 4 ) ( u ) f^{(4)}(u) f ( 4 ) ( u ) is a 5D tensor, acting on 4 vectors in a row. When f ( u ) f(u) f ( u ) is sufficiently smooth, the orders of the actions can be permuted.
This indicator gives us the key information on the smoothness of u ~ ( t ) \widetilde{u}(t) u ( t ) at the initial time of each step [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] . What’s still missing is the smoothness of u ~ ( t ) \widetilde{u}(t) u ( t ) in the entire step. We address this issue separately for the cases of non-stiff equations and stiff equations. It is worth to point out that, with the indicator computed, the remaining theoretical analysis is a local analysis in a time step, which should be doable.
In the case of temporal indicators, by numerical smoothness we mean that the indicator ( T 0 , T 1 , ⋯ , T K − 1 ) (T_0,T_1,\cdots,T_{K-1}) ( T 0 , T 1 , ⋯ , T K − 1 ) is bounded. The necessity of the boundedness is obvious, if we want to guarantee that u N ( t n + 1 ) u_N(t_{n+1}) u N ( t n + 1 ) to approximate u ~ ( t n + 1 ) \widetilde{u}(t_{n+1}) u ( t n + 1 ) well. There is no need to worry about how bounded is the indicator T k T^k T k , because the indicator will eventually appear in an error estimate h p + 1 F ( S p ) + τ k G ( S p , T k ) h^{p+1}F(S^p)+\tau^kG(S^p,T^k) h p + 1 F ( S p ) + τ k G ( S p , T k ) , or τ k G ( T k ) \tau^kG(T^k) τ k G ( T k ) for pure ODEs.
The cases of non-stiff ODEs
For non-stiff equations, we start with observing that each equation in (B) is in the pattern
d d t z = A ( t ) + f ′ ( u ) z , \frac{d}{dt}z=A(t)+f'(u)z, d t d z = A ( t ) + f ′ ( u ) z ,
where A ( t ) A(t) A ( t ) consists of a sum of products of lower-order derivatives of u ~ ( t ) \widetilde{u}(t) u ( t ) multiplied by a derivative of f f f (in a low order) evaluated at u ~ ( t ) \widetilde{u}(t) u ( t ) for t ∈ [ t n , t n + 1 ] t\in[t_n,t_{n+1}] t ∈ [ t n , t n + 1 ] . Obviously, such an equation is linear in its unknown solution z z z . This observation can be summarize as a trivial theorem, if desired. For the linear equation of z z z , with initial condition
z ( t n ) = u ~ ( k ) ( t n + ) z(t_n)=\widetilde{u}^{(k)}(t_n^+) z ( t n ) = u ( k ) ( t n + )
and the right choice of A ( t ) A(t) A ( t ) , we have z ( t ) = u ~ ( k ) ( t ) z(t)=\widetilde{u}^{(k)}(t) z ( t ) = u ( k ) ( t ) in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] . By the method of integrating factors, the solution must be
z ( t ) = u ~ ( k ) ( t n + ) exp ( ∫ t n t f ′ ( u ~ ( s ) ) d s ) + ∫ t n t A ( s ) exp ( ∫ s t f ′ ( u ~ ( ξ ) ) d ξ ) d s . z(t)=\widetilde{u}^{(k)}(t_n^+)\exp\left(\int_{t_n}^{t}f'(\widetilde{u}(s))\,ds\right)+\int_{t_n}^{t}A(s)\exp\left(\int_s^t f'(\widetilde{u}(\xi))\,d\xi\right)\,ds. z ( t ) = u ( k ) ( t n + ) exp ( ∫ t n t f ′ ( u ( s )) d s ) + ∫ t n t A ( s ) exp ( ∫ s t f ′ ( u ( ξ )) d ξ ) d s .
When the original DE is assumed as non-stiff, f ′ ( u ~ ) f'(\widetilde{u}) f ′ ( u ) is well bounded, the exponential part in the equations must be proportional to max ∣ f ′ ( u ~ ) ∣ \max|f'(\widetilde{u})| max ∣ f ′ ( u ) ∣ , then it’s easy to see that both A ( t ) A(t) A ( t ) and z ( t ) z(t) z ( t ) must be well bounded. Specifically, the first part of z ( t ) z(t) z ( t ) is close to u ~ ( k ) ( t n + ) \tilde{u}^{(k)}(t_n^+) u ~ ( k ) ( t n + ) , and the second part is close to 0. Hence the smoothness of u ~ ( t ) \tilde{u}(t) u ~ ( t ) in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] is well presented by the smoothness indicator.
Cases of stiff ODEs
There are too many different cases of nonlinear stiff ODEs, so we start with considering an example of a linear stiff ODE. We are already familiar with the equation
u ′ = λ ( a ( t ) − u ) , u ( 0 ) = 0. u' = \lambda(a(t)-u), \qquad u(0)=0. u ′ = λ ( a ( t ) − u ) , u ( 0 ) = 0.
Earlier, we have studied the equation in the case of λ = 18 \lambda=18 λ = 18 and a ( t ) = cos ( t ) a(t)=\cos(t) a ( t ) = cos ( t ) . In the more general case here, after letting v = u ′ v=u' v = u ′ , w = v ′ w=v' w = v ′ , p = w ′ p=w' p = w ′ and q = p ′ q=p' q = p ′ , we have
v ′ = λ ( a ′ ( t ) − v ) , w ′ = λ ( a ′ ′ ( t ) − w ) , p ′ = λ ( a ′ ′ ′ ( t ) − p ) , q ′ = λ ( a ( 4 ) ( t ) − q ) . \begin{aligned}
v' &= \lambda(a'(t)-v),\\
w' &= \lambda(a''(t)-w),\\
p' &= \lambda(a'''(t)-p),\\
q' &= \lambda(a^{(4)}(t)-q).
\end{aligned} v ′ w ′ p ′ q ′ = λ ( a ′ ( t ) − v ) , = λ ( a ′′ ( t ) − w ) , = λ ( a ′′′ ( t ) − p ) , = λ ( a ( 4 ) ( t ) − q ) .
If we try to find an upper bound for u ~ ( 5 ) ( t ) \tilde{u}^{(5)}(t) u ~ ( 5 ) ( t ) by straight forward computation,
u ~ ( 5 ) = q ′ = a ( 4 ) λ − a ′ ′ ′ λ 2 + a ′ ′ λ 3 − a ′ λ 4 + a λ 5 − λ 5 u ~ \tilde{u}^{(5)}=q'=a^{(4)}\lambda-a'''\lambda^2+a''\lambda^3-a'\lambda^4+a\lambda^5-\lambda^5\tilde{u} u ~ ( 5 ) = q ′ = a ( 4 ) λ − a ′′′ λ 2 + a ′′ λ 3 − a ′ λ 4 + a λ 5 − λ 5 u ~
evaluated for t ∈ [ t n , t n + 1 ] t\in[t_n,t_{n+1}] t ∈ [ t n , t n + 1 ] . For a large value of λ \lambda λ in the stiff case, with the non-constant a ( t ) a(t) a ( t ) , it might be hard to get a good estimate of u ~ ( 5 ) \tilde{u}^{(5)} u ~ ( 5 ) . However, we haven’t taken the advantage of the properties of negative feedback. In fact, we have
u ~ ′ ( t ) = v ( t ) = u ~ ′ ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ′ ( s ) e − λ ( t − s ) d s , \tilde{u}'(t)=v(t)=\tilde{u}'(t_n^+)e^{-\lambda(t-t_n)}+\lambda\int_{t_n}^{t}a'(s)e^{-\lambda(t-s)}\,ds, u ~ ′ ( t ) = v ( t ) = u ~ ′ ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ′ ( s ) e − λ ( t − s ) d s ,
u ~ ′ ′ ( t ) = w ( t ) = u ~ ′ ′ ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ′ ′ ( s ) e − λ ( t − s ) d s , \tilde{u}''(t)=w(t)=\tilde{u}''(t_n^+)e^{-\lambda(t-t_n)}+\lambda\int_{t_n}^{t}a''(s)e^{-\lambda(t-s)}\,ds, u ~ ′′ ( t ) = w ( t ) = u ~ ′′ ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ′′ ( s ) e − λ ( t − s ) d s ,
u ~ ′ ′ ′ ( t ) = p ( t ) = u ~ ′ ′ ′ ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ′ ′ ′ ( s ) e − λ ( t − s ) d s , \tilde{u}'''(t)=p(t)=\tilde{u}'''(t_n^+)e^{-\lambda(t-t_n)}+\lambda\int_{t_n}^{t}a'''(s)e^{-\lambda(t-s)}\,ds, u ~ ′′′ ( t ) = p ( t ) = u ~ ′′′ ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ′′′ ( s ) e − λ ( t − s ) d s ,
u ~ ( 4 ) ( t ) = q ( t ) = u ~ ( 4 ) ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ( 4 ) ( s ) e − λ ( t − s ) d s . \tilde{u}^{(4)}(t)=q(t)=\tilde{u}^{(4)}(t_n^+)e^{-\lambda(t-t_n)}+\lambda\int_{t_n}^{t}a^{(4)}(s)e^{-\lambda(t-s)}\,ds. u ~ ( 4 ) ( t ) = q ( t ) = u ~ ( 4 ) ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ( 4 ) ( s ) e − λ ( t − s ) d s .
Similarly, we also have
u ~ ( 5 ) ( t ) = q ′ ( t ) = u ~ ( 5 ) ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ( 5 ) ( s ) e − λ ( t − s ) d s . \tilde{u}^{(5)}(t)=q'(t)=\tilde{u}^{(5)}(t_n^+)e^{-\lambda(t-t_n)}+\lambda\int_{t_n}^{t}a^{(5)}(s)e^{-\lambda(t-s)}\,ds. u ~ ( 5 ) ( t ) = q ′ ( t ) = u ~ ( 5 ) ( t n + ) e − λ ( t − t n ) + λ ∫ t n t a ( 5 ) ( s ) e − λ ( t − s ) d s .
All these derivatives are to be evaluated in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] . Since
∫ t n t e − λ ( t − s ) d s = 1 − e − λ ( t − t n ) λ , \int_{t_n}^{t}e^{-\lambda(t-s)}\,ds=\frac{1-e^{-\lambda(t-t_n)}}{\lambda}, ∫ t n t e − λ ( t − s ) d s = λ 1 − e − λ ( t − t n ) ,
within the step we have, for k = 1 , 2 , 3 , 4 , 5 k = 1, 2, 3, 4, 5 k = 1 , 2 , 3 , 4 , 5 , ∣ u ~ ( k ) ( t ) ∣ |\tilde{u}^{(k)}(t)| ∣ u ~ ( k ) ( t ) ∣ bounded by the weighted average of ∣ u ~ ( k ) ( t n ) ∣ |\tilde{u}^{(k)}(t_n)| ∣ u ~ ( k ) ( t n ) ∣ and max ∣ a ( k ) ( t ) ∣ \max|a^{(k)}(t)| max ∣ a ( k ) ( t ) ∣ ,
∣ u ~ ( k ) ( t ) ∣ ≤ e − λ ( t − t n ) ∣ u ~ ( k ) ( t n ) ∣ + ( 1 − e − λ ( t − t n ) ) max t ∈ [ t n , t n + 1 ] ∣ a ( k ) ( t ) ∣ . |\tilde{u}^{(k)}(t)| \le e^{-\lambda(t-t_n)}|\tilde{u}^{(k)}(t_n)| + \left(1-e^{-\lambda(t-t_n)}\right)\max_{t\in[t_n,t_{n+1}]}|a^{(k)}(t)|. ∣ u ~ ( k ) ( t ) ∣ ≤ e − λ ( t − t n ) ∣ u ~ ( k ) ( t n ) ∣ + ( 1 − e − λ ( t − t n ) ) t ∈ [ t n , t n + 1 ] max ∣ a ( k ) ( t ) ∣.
For the linear stiff case, the last inequality for each k k k tells us that the numerical smoothness in the n n n -th step only depends on the smoothness indicator T n T_n T n .
Now it remains to deal with the general cases of nonlinear stiff equations and systems. Since each concrete problem has its own difficulties, it is probably impossible to deal with these problems in general. We want to emphasize here that these analyses are local analyses, so one can do things relatively easily.
A spatial smoothness indicator
As we have said, the spatial smoothness indicator is to be presented in pure approximation theory. Let P \mathcal{P} P be the space of polynomials of degree p p p or less, and P h \mathcal{P}_h P h be the space of piecewise polynomials of degree p p p or less on the uniform partition a = x 0 < x 1 < ⋯ < x N = b a=x_0<x_1<\cdots<x_N=b a = x 0 < x 1 < ⋯ < x N = b , h = x i + 1 − x i = ( b − a ) / N h=x_{i+1}-x_i=(b-a)/N h = x i + 1 − x i = ( b − a ) / N . Let u R u^R u R be a piecewise polynomial in P h \mathcal{P}_h P h . The reason for using the superscript R R R is to indicate that u R u^R u R might be a reconstructed numerical solution, possibly from nodal values, cell averages, or other forms of numerical solutions. Define a smoothness indicator for any u R ∈ P h u^R\in\mathcal{P}_h u R ∈ P h as
S p = ( M , D ) S^p=(\mathcal{M},\mathcal{D}) S p = ( M , D )
with
M = ( M 0 , M 1 , ⋯ , M N − 1 ) , where M i = ( M i 0 , M i 1 , ⋯ , M i p ) , \mathcal{M}=(M_0,M_1,\cdots,M_{N-1}), \qquad\text{where } M_i=(M_i^0,M_i^1,\cdots,M_i^p), M = ( M 0 , M 1 , ⋯ , M N − 1 ) , where M i = ( M i 0 , M i 1 , ⋯ , M i p ) ,
and
D = ( D 1 , ⋯ , D N − 1 ) , where D i = ( D i 0 , D i 1 , ⋯ , D i p ) . \mathcal{D}=(D_1,\cdots,D_{N-1}), \qquad\text{where } D_i=(D_i^0,D_i^1,\cdots,D_i^p). D = ( D 1 , ⋯ , D N − 1 ) , where D i = ( D i 0 , D i 1 , ⋯ , D i p ) .
Furthermore,
M i k = d k d x k u R ( x i + ) , L i k = d k d x k u R ( x i − ) , J i k = M i k − L i k M_i^k=\frac{d^k}{dx^k}u^R(x_i^+), \qquad L_i^k=\frac{d^k}{dx^k}u^R(x_i^-), \qquad J_i^k=M_i^k-L_i^k M i k = d x k d k u R ( x i + ) , L i k = d x k d k u R ( x i − ) , J i k = M i k − L i k
and, finally,
D i k = J i k / h p + 1 − k . D_i^k=J_i^k/h^{p+1-k}. D i k = J i k / h p + 1 − k .
Remark: This definition of spatial smoothness indicator is taken from [15 ] . In practice one can make some adjustments based on the mesh and the needs of the subsequent error estimations. We choose to show a simplest indicator here to ease the following statement and proof of the theorem on the necessity of numerical smoothness. Since this is a necessity result, it is sufficient to discuss it in the simplest case. Obviously, if it is a necessity in a very simple case, one expects it to be also a necessity in more complex cases. If unsure, one can try to prove a necessity result in a similar way for a complex case, see [2, 3].
In this article, W q k W_q^k W q k is the standard notation of the Sobolev space of the functions, where the k k k -th derivative is L q L^q L q -integrable. H k = W 2 k H^k=W_2^k H k = W 2 k .
Definition 2.2.1 A piecewise polynomial u R ∈ P h u^R\in P_h u R ∈ P h is numerically W ∞ p + 1 W_\infty^{p+1} W ∞ p + 1 -smooth in the partition of cell size h h h , if there is a constant M ∞ M_\infty M ∞ such that all the components of S p S^p S p are bounded by M ∞ M_\infty M ∞ ; u R u^R u R is numerically H p + 1 H^{p+1} H p + 1 -smooth in the partition if there is a constant M 2 M_2 M 2 such that ∑ i = 1 N − 1 h [ ( D i 0 ) 2 + ( D i 1 ) 2 + ⋯ + ( D i p ) 2 ] ≤ M 2 2 \sum_{i=1}^{N-1}h\left[(D_i^0)^2+(D_i^1)^2+\cdots+(D_i^p)^2\right]\le M_2^2 ∑ i = 1 N − 1 h [ ( D i 0 ) 2 + ( D i 1 ) 2 + ⋯ + ( D i p ) 2 ] ≤ M 2 2 ; u R u^R u R is numerically W 1 p + 1 W_1^{p+1} W 1 p + 1 -smooth in the partition if there is a constant M 1 M_1 M 1 such that ∑ i = 1 N − 1 h [ ∣ D i 0 ∣ + ∣ D i 1 ∣ + ⋯ + ∣ D i p ∣ ] ≤ M 1 \sum_{i=1}^{N-1}h\left[|D_i^0|+|D_i^1|+\cdots+|D_i^p|\right]\le M_1 ∑ i = 1 N − 1 h [ ∣ D i 0 ∣ + ∣ D i 1 ∣ + ⋯ + ∣ D i p ∣ ] ≤ M 1 .
Remark: There is no need to worry about how large the M ∞ M_\infty M ∞ , M 2 M_2 M 2 and M 1 M_1 M 1 are. All components of the indicator S p S^p S p will appear in the error estimates. In the practice of numerical computation, no one will make a numerical solution converge. The really important thing is to have an error estimate when the converging sequence is truncated.
Necessity of numerical smoothness
Portions of this Section expand upon the theoretical framework originally developed in T. Sun, ’Necessity of numerical smoothness,’ Int. J. Inf. Sci., 1 (2012), 1–6 (arXiv:1207.3026), [15 ] .
It is obvious that, for the piecewise polynomial u R u^R u R to approximate a smooth function in the interior of all the cells in the domain, one expects ∣ M i k ∣ ≤ O ( 1 ) |M_i^k|\le O(1) ∣ M i k ∣ ≤ O ( 1 ) for all k k k and i i i . It is also obvious that, if u R u^R u R is an approximation of a smooth function with the optimal convergence rate, one can expect ∣ D i 0 ∣ ≤ O ( 1 ) |D_i^0|\le O(1) ∣ D i 0 ∣ ≤ O ( 1 ) for all i i i . In the case k = p k=p k = p , it is obvious that ∣ D i p ∣ ≤ O ( 1 ) |D_i^p|\le O(1) ∣ D i p ∣ ≤ O ( 1 ) implies that the piecewise constant function d p d x p u R ( x ) \frac{\mathrm{d}^p}{\mathrm{d}x^p}u^R(x) d x p d p u R ( x ) has bounded variation. In the main theorem below, we show the necessity of the boundedness of the other components of the smoothness indicator. Let’s start with a simple lemma.
Lemma 2.3.1
Q ( D 0 , ⋯ , D p ) = min v ^ ∈ P ( ∥ v ^ + 1 2 ∑ k = 0 p D k k ! ξ k ∥ L 2 ( − 1 2 , 0 ) 2 + ∥ v ^ − 1 2 ∑ k = 0 p D k k ! ξ k ∥ L 2 ( 0 , 1 2 ) 2 ) Q(D^0,\cdots,D^p)=\min_{\hat v\in P}\left(\left\|\hat v+\frac{1}{2}\sum_{k=0}^{p}\frac{D^k}{k!}\xi^k\right\|_{L^2(-\frac{1}{2},0)}^2+\left\|\hat v-\frac{1}{2}\sum_{k=0}^{p}\frac{D^k}{k!}\xi^k\right\|_{L^2(0,\frac{1}{2})}^2\right) Q ( D 0 , ⋯ , D p ) = v ^ ∈ P min v ^ + 2 1 k = 0 ∑ p k ! D k ξ k L 2 ( − 2 1 , 0 ) 2 + v ^ − 2 1 k = 0 ∑ p k ! D k ξ k L 2 ( 0 , 2 1 ) 2
is a positive definite quadratic form.
Proof. In the process of calculating the coefficients of the polynomial
v ^ = ∑ k = 0 p V k ξ k \hat{v} = \sum_{k=0}^{p} V_k \xi^k v ^ = k = 0 ∑ p V k ξ k
to attain the minimum, each V k V_k V k must be a linear combination of D 0 , D 1 , … , D p D^0,D^1,\ldots,D^p D 0 , D 1 , … , D p , hence the minimum is a quadratic form of D 0 , D 1 , … , D p D^0,D^1,\ldots,D^p D 0 , D 1 , … , D p . The quadratic form is positive definite because, if any entry D k D^k D k of ( D 0 , D 1 , … , D p ) (D^0,D^1,\ldots,D^p) ( D 0 , D 1 , … , D p ) is non-zero, then we have either V k + 1 2 D k k ! ≠ 0 V_k+\frac{1}{2}\frac{D^k}{k!}\ne0 V k + 2 1 k ! D k = 0 or V k − 1 2 D k k ! ≠ 0 V_k-\frac{1}{2}\frac{D^k}{k!}\ne0 V k − 2 1 k ! D k = 0 . Due to the linear independence of { 1 , ξ , … , ξ p } \{1,\xi,\ldots,\xi^p\} { 1 , ξ , … , ξ p } , one of the two terms in the minimum must be positive. #
Theorem 2.3.2 Suppose that u ∈ H p + 1 ( a , b ) u\in H^{p+1}(a,b) u ∈ H p + 1 ( a , b ) , and u R u^R u R is a piecewise polynomial function described as above. Then, there is a constant C 2 > 0 C_2>0 C 2 > 0 , independent of h h h , u u u and u R u^R u R , such that
∥ u − u R ∥ L 2 ( a , b ) ≥ h p + 1 [ ∑ i = 1 N − 1 h Q ( D i 0 , D i 1 , … , D i p ) − C 2 ∣ u ∣ H p + 1 ( a , b ) ] . (14) \lVert u-u^R\rVert_{L^2(a,b)}\ge h^{p+1}\left[\sqrt{\sum_{i=1}^{N-1}hQ(D_i^0,D_i^1,\ldots,D_i^p)}-C_2\lvert u\rvert_{H^{p+1}(a,b)}\right]. \tag*{(14)} ∥ u − u R ∥ L 2 ( a , b ) ≥ h p + 1 i = 1 ∑ N − 1 h Q ( D i 0 , D i 1 , … , D i p ) − C 2 ∣ u ∣ H p + 1 ( a , b ) . (14)
Proof. Let P c \mathcal{P}_c P c be the space of piecewise polynomials of degree p p p or less on the partition a < x 1 2 < x 3 2 < ⋯ < x N − 1 2 < b a<x_{\frac{1}{2}}<x_{\frac{3}{2}}<\cdots<x_{N-\frac{1}{2}}<b a < x 2 1 < x 2 3 < ⋯ < x N − 2 1 < b , where x i − 1 2 = ( x i − 1 + x i ) / 2 x_{i-\frac{1}{2}}=(x_{i-1}+x_i)/2 x i − 2 1 = ( x i − 1 + x i ) /2 . Since u ∈ H p + 1 ( a , b ) u\in H^{p+1}(a,b) u ∈ H p + 1 ( a , b ) , there is a constant C 2 > 0 C_2>0 C 2 > 0 , independent of h h h and u u u , and a piecewise polynomial u I ∈ P c u^I\in\mathcal{P}_c u I ∈ P c , such that
∥ u − u I ∥ L 2 ( a , b ) ≤ C 2 h p + 1 ∣ u ∣ H p + 1 ( a , b ) . (15) \lVert u-u^I\rVert_{L^2(a,b)}\le C_2h^{p+1}\lvert u\rvert_{H^{p+1}(a,b)}. \tag*{(15)} ∥ u − u I ∥ L 2 ( a , b ) ≤ C 2 h p + 1 ∣ u ∣ H p + 1 ( a , b ) . (15)
Now, since ∥ u I − u R ∥ L 2 ( a , b ) ≤ ∥ u I − u ∥ L 2 ( a , b ) + ∥ u − u R ∥ L 2 ( a , b ) \lVert u^I-u^R\rVert_{L^2(a,b)}\le\lVert u^I-u\rVert_{L^2(a,b)}+\lVert u-u^R\rVert_{L^2(a,b)} ∥ u I − u R ∥ L 2 ( a , b ) ≤ ∥ u I − u ∥ L 2 ( a , b ) + ∥ u − u R ∥ L 2 ( a , b ) , we have
∥ u − u R ∥ L 2 ( a , b ) ≥ ∥ u I − u R ∥ L 2 ( a , b ) − ∥ u − u I ∥ L 2 ( a , b ) ≥ ∑ i = 1 N − 1 ∥ u I − u R ∥ L 2 ( x i − 1 2 , x i + 1 2 ) 2 − C 2 h p + 1 ∣ u ∣ H p + 1 ( a , b ) . (16) \begin{aligned}
\lVert u-u^R\rVert_{L^2(a,b)}&\ge\lVert u^I-u^R\rVert_{L^2(a,b)}-\lVert u-u^I\rVert_{L^2(a,b)}\\
&\ge\sqrt{\sum_{i=1}^{N-1}\lVert u^I-u^R\rVert_{L^2(x_{i-\frac{1}{2}},x_{i+\frac{1}{2}})}^2}-C_2h^{p+1}\lvert u\rvert_{H^{p+1}(a,b)}. \tag*{(16)}
\end{aligned} ∥ u − u R ∥ L 2 ( a , b ) ≥ ∥ u I − u R ∥ L 2 ( a , b ) − ∥ u − u I ∥ L 2 ( a , b ) ≥ i = 1 ∑ N − 1 ∥ u I − u R ∥ L 2 ( x i − 2 1 , x i + 2 1 ) 2 − C 2 h p + 1 ∣ u ∣ H p + 1 ( a , b ) . (16)
Let Q i k = ( M i k + L i k ) / 2 Q_i^k=(M_i^k+L_i^k)/2 Q i k = ( M i k + L i k ) /2 and w ( x ) = ∑ k = 0 p Q i k k ! ( x − x i ) k w(x)=\sum_{k=0}^{p}\frac{Q_i^k}{k!}(x-x_i)^k w ( x ) = ∑ k = 0 p k ! Q i k ( x − x i ) k . Then,
u R − w = 1 2 ∑ k = 0 p I i k k ! ( x − x i ) k u^R-w=\frac{1}{2}\sum_{k=0}^{p}\frac{I_i^k}{k!}(x-x_i)^k u R − w = 2 1 k = 0 ∑ p k ! I i k ( x − x i ) k
for x ∈ Δ i + = ( x i , x i + 1 2 ) x \in\Delta_i^+ = (x_i,x_{i+\frac{1}{2}}) x ∈ Δ i + = ( x i , x i + 2 1 ) , and
u R − w = − 1 2 ∑ k = 0 p J i k k ! ( x − x i ) k u^R-w=-\frac{1}{2}\sum_{k=0}^{p}\frac{J_i^k}{k!}(x-x_i)^k u R − w = − 2 1 k = 0 ∑ p k ! J i k ( x − x i ) k
for x ∈ Δ i − = ( x i − 1 2 , x i ) x \in\Delta_i^- = (x_{i-\frac{1}{2}},x_i) x ∈ Δ i − = ( x i − 2 1 , x i ) .
∥ u I − u R ∥ L 2 ( x i − 1 2 , x i + 1 2 ) 2 ≥ min v ∈ P ∥ v − u R ∥ L 2 ( x i − 1 2 , x i + 1 2 ) 2 = min v ∈ P ∥ v − ( u R − w ) ∥ L 2 ( x i − 1 2 , x i + 1 2 ) 2 = min v ∈ P ( ∥ v + 1 2 ∑ k = 0 p J i k k ! ( x − x i ) k ∥ L 2 ( Δ i − ) 2 + ∥ v − 1 2 ∑ k = 0 p J i k k ! ( x − x i ) k ∥ L 2 ( Δ i + ) 2 ) = h 2 p + 3 min v ^ ∈ P ( ∥ v ^ + 1 2 ∑ k = 0 p D i k k ! ξ k ∥ L 2 ( − 1 2 , 0 ) 2 + ∥ v ^ − 1 2 ∑ k = 0 p D i k k ! ξ k ∥ L 2 ( 0 , 1 2 ) 2 ) = h 2 p + 3 Q ( D i 0 , D i 1 , ⋯ , D i p ) . (17) \begin{aligned}
\left\|u^I-u^R\right\|_{L^2(x_{i-\frac{1}{2}},x_{i+\frac{1}{2}})}^2
&\ge\min_{v\in\mathcal{P}}\left\|v-u^R\right\|_{L^2(x_{i-\frac{1}{2}},x_{i+\frac{1}{2}})}^2\\
&=\min_{v\in\mathcal{P}}\left\|v-(u^R-w)\right\|_{L^2(x_{i-\frac{1}{2}},x_{i+\frac{1}{2}})}^2\\
&=\min_{v\in\mathcal{P}}\left(\left\|v+\frac{1}{2}\sum_{k=0}^{p}\frac{J_i^k}{k!}(x-x_i)^k\right\|_{L^2(\Delta_i^-)}^2+\left\|v-\frac{1}{2}\sum_{k=0}^{p}\frac{J_i^k}{k!}(x-x_i)^k\right\|_{L^2(\Delta_i^+)}^2\right)\\
&=h^{2p+3}\min_{\hat v\in\mathcal{P}}\left(\left\|\hat v+\frac{1}{2}\sum_{k=0}^{p}\frac{D_i^k}{k!}\xi^k\right\|_{L^2(-\frac{1}{2},0)}^2+\left\|\hat v-\frac{1}{2}\sum_{k=0}^{p}\frac{D_i^k}{k!}\xi^k\right\|_{L^2(0,\frac{1}{2})}^2\right)\\
&=h^{2p+3}Q(D_i^0,D_i^1,\cdots,D_i^p). \tag*{(17)}
\end{aligned} u I − u R L 2 ( x i − 2 1 , x i + 2 1 ) 2 ≥ v ∈ P min v − u R L 2 ( x i − 2 1 , x i + 2 1 ) 2 = v ∈ P min v − ( u R − w ) L 2 ( x i − 2 1 , x i + 2 1 ) 2 = v ∈ P min v + 2 1 k = 0 ∑ p k ! J i k ( x − x i ) k L 2 ( Δ i − ) 2 + v − 2 1 k = 0 ∑ p k ! J i k ( x − x i ) k L 2 ( Δ i + ) 2 = h 2 p + 3 v ^ ∈ P min v ^ + 2 1 k = 0 ∑ p k ! D i k ξ k L 2 ( − 2 1 , 0 ) 2 + v ^ − 2 1 k = 0 ∑ p k ! D i k ξ k L 2 ( 0 , 2 1 ) 2 = h 2 p + 3 Q ( D i 0 , D i 1 , ⋯ , D i p ) . (17)
Plugging (2.3.4) into (2.3.3), we have proven (2.3.1). #
Theorem 2.3.3 If u ∈ W 1 p + 1 ( a , b ) u\in W_1^{p+1}(a,b) u ∈ W 1 p + 1 ( a , b ) , and u R u^R u R is as described previously, then, there are positive constants C 1 C_1 C 1 and C 12 p C_{12}^p C 12 p , independent of h h h , u u u and u R u^R u R , such that
∥ u − u R ∥ L 1 ( a , b ) ≥ h p + 1 [ C 12 p ∑ 1 ≤ i ≤ N − 1 h Q ( D i 0 , D i 1 , ⋯ , D i p ) − C 1 ∣ u ∣ W 1 p + 1 ( a , b ) ] . (18) \left\|u-u^R\right\|_{L^1(a,b)}\ge h^{p+1}\left[C_{12}^p\sum_{1\le i\le N-1}h\sqrt{Q(D_i^0,D_i^1,\cdots,D_i^p)}-C_1\left|u\right|_{W_1^{p+1}(a,b)}\right]. \tag*{(18)} u − u R L 1 ( a , b ) ≥ h p + 1 [ C 12 p 1 ≤ i ≤ N − 1 ∑ h Q ( D i 0 , D i 1 , ⋯ , D i p ) − C 1 ∣ u ∣ W 1 p + 1 ( a , b ) ] . (18) Proof. Since u ∈ W p + 1 , 1 ( a , b ) u\in W^{p+1,1}(a,b) u ∈ W p + 1 , 1 ( a , b ) , there is a piecewise polynomial u I ∈ P c u^I\in\mathcal{P}_c u I ∈ P c , such that
∥ u − u I ∥ L 1 ( a , b ) ≤ C 1 h p + 1 ∣ u ∣ W 1 p + 1 ( a , b ) , \left\|u-u^I\right\|_{L^1(a,b)}\le C_1h^{p+1}\left|u\right|_{W_1^{p+1}(a,b)}, u − u I L 1 ( a , b ) ≤ C 1 h p + 1 ∣ u ∣ W 1 p + 1 ( a , b ) , where C 1 > 0 C_1>0 C 1 > 0 is a constant independent of h h h and u u u . Obviously,
∥ u − u R ∥ L 1 ( a , b ) ≥ ∥ u I − u R ∥ L 1 ( a , b ) − ∥ u − u I ∥ L 1 ( a , b ) ≥ ∑ 1 ≤ i ≤ N − 1 ∥ u I − u R ∥ L 1 ( x i − 1 2 , x i + 1 2 ) − C 1 h p + 1 ∣ u ∣ W 1 p + 1 ( a , b ) . (19) \begin{aligned}
\left\|u-u^R\right\|_{L^1(a,b)}
&\ge\left\|u^I-u^R\right\|_{L^1(a,b)}-\left\|u-u^I\right\|_{L^1(a,b)}\\
&\ge\sum_{1\le i\le N-1}\left\|u^I-u^R\right\|_{L^1(x_{i-\frac{1}{2}},x_{i+\frac{1}{2}})}-C_1h^{p+1}\left|u\right|_{W_1^{p+1}(a,b)}. \tag*{(19)}
\end{aligned} u − u R L 1 ( a , b ) ≥ u I − u R L 1 ( a , b ) − u − u I L 1 ( a , b ) ≥ 1 ≤ i ≤ N − 1 ∑ u I − u R L 1 ( x i − 2 1 , x i + 2 1 ) − C 1 h p + 1 ∣ u ∣ W 1 p + 1 ( a , b ) . (19) By the standard scaling argument, and (2.3.4) which remains valid for the current u I u^I u I , it is easy to prove that there is a constant C 12 p C_{12}^p C 12 p such that
∥ u I − u R ∥ L 1 ( x i − 1 2 , x i + 1 2 ) ≥ C 12 p h 1 2 ∥ u I − u R ∥ L 2 ( x i − 1 2 , x i + 1 2 ) ≥ C 12 p h p + 2 Q ( D i 0 , ⋯ , D i p ) . \left\|u^I-u^R\right\|_{L^1(x_{i-\frac{1}{2}},x_{i+\frac{1}{2}})}\ge C_{12}^p h^{\frac{1}{2}}\left\|u^I-u^R\right\|_{L^2(x_{i-\frac{1}{2}},x_{i+\frac{1}{2}})}\ge C_{12}^p h^{p+2}\sqrt{Q(D_i^0,\cdots,D_i^p)}. u I − u R L 1 ( x i − 2 1 , x i + 2 1 ) ≥ C 12 p h 2 1 u I − u R L 2 ( x i − 2 1 , x i + 2 1 ) ≥ C 12 p h p + 2 Q ( D i 0 , ⋯ , D i p ) . Plugging this into (2.3.6), we have (2.3.5) proven. #
Necessity of numerical smoothness
Theorem 2.3.4 If u ∈ W ∞ p + 1 [ a , b ] u \in W_{\infty}^{p+1}[a,b] u ∈ W ∞ p + 1 [ a , b ] , and u R u^R u R is as described previously, then, there is a constant C ∞ > 0 C_{\infty} > 0 C ∞ > 0 , independent of h h h , u u u and u R u^R u R , such that
∥ u − u R ∥ L ∞ ( a , b ) ≥ h p + 1 [ max 1 ≤ i ≤ N − 1 Q ( D i 0 , D i 1 , ⋯ , D i p ) − C ∞ ∣ u ∣ W ∞ p + 1 [ a , b ] ] (20) \lVert u-u^R\rVert_{L^\infty(a,b)} \ge h^{p+1}\left[\max_{1\le i\le N-1}\sqrt{Q(D_i^0,D_i^1,\cdots,D_i^p)}-C_{\infty}|u|_{W_\infty^{p+1}[a,b]}\right] \tag*{(20)} ∥ u − u R ∥ L ∞ ( a , b ) ≥ h p + 1 [ 1 ≤ i ≤ N − 1 max Q ( D i 0 , D i 1 , ⋯ , D i p ) − C ∞ ∣ u ∣ W ∞ p + 1 [ a , b ] ] (20)
Proof. Since u ∈ W ∞ p + 1 [ a , b ] u \in W_{\infty}^{p+1}[a,b] u ∈ W ∞ p + 1 [ a , b ] , there is a piecewise polynomial u I ∈ P c u^I \in P_c u I ∈ P c , such that
∥ u − u I ∥ L ∞ ( a , b ) ≤ C ∞ h p + 1 ∣ u ∣ W ∞ p + 1 [ a , b ] , \lVert u-u^I\rVert_{L^\infty(a,b)}\le C_{\infty}h^{p+1}|u|_{W_\infty^{p+1}[a,b]}, ∥ u − u I ∥ L ∞ ( a , b ) ≤ C ∞ h p + 1 ∣ u ∣ W ∞ p + 1 [ a , b ] ,
where C ∞ > 0 C_{\infty}>0 C ∞ > 0 is a constant independent of h h h and u u u . Obviously,
∥ u − u R ∥ L ∞ ( a , b ) ≥ ∥ u I − u R ∥ L ∞ ( a , b ) − ∥ u − u I ∥ L ∞ ( a , b ) ≥ max 1 ≤ i ≤ N − 1 ∥ u I − u R ∥ L ∞ ( x i − 1 2 , x i + 1 2 ) − C ∞ h p + 1 ∣ u ∣ W ∞ p + 1 [ a , b ] . (21) \begin{aligned}
\lVert u-u^R\rVert_{L^\infty(a,b)} &\ge\lVert u^I-u^R\rVert_{L^\infty(a,b)}-\lVert u-u^I\rVert_{L^\infty(a,b)}\\
&\ge\max_{1\le i\le N-1}\lVert u^I-u^R\rVert_{L^\infty(x_{i-\frac12},x_{i+\frac12})}-C_{\infty}h^{p+1}|u|_{W_\infty^{p+1}[a,b]}. \tag*{(21)}
\end{aligned} ∥ u − u R ∥ L ∞ ( a , b ) ≥ ∥ u I − u R ∥ L ∞ ( a , b ) − ∥ u − u I ∥ L ∞ ( a , b ) ≥ 1 ≤ i ≤ N − 1 max ∥ u I − u R ∥ L ∞ ( x i − 2 1 , x i + 2 1 ) − C ∞ h p + 1 ∣ u ∣ W ∞ p + 1 [ a , b ] . (21)
Now, let U i = ∥ u I − u R ∥ L ∞ ( x i − 1 2 , x i + 1 2 ) U_i=\lVert u^I-u^R\rVert_{L^\infty(x_{i-\frac12},x_{i+\frac12})} U i = ∥ u I − u R ∥ L ∞ ( x i − 2 1 , x i + 2 1 ) , then, by using (2.3.4) for the current u I u^I u I ,
U i = ∫ x i − 1 2 x i + 1 2 1 h U i 2 d x ≥ ∫ x i − 1 2 x i + 1 2 1 h ( u I − u R ) 2 d x = 1 h ∥ u I − u R ∥ L 2 ( x i − 1 2 , x i + 1 2 ) 2 ≥ h p + 1 Q ( D i 0 , D i 1 , ⋯ , D i p ) . (22) \begin{aligned}
U_i&=\sqrt{\int_{x_{i-\frac12}}^{x_{i+\frac12}}\frac{1}{h}U_i^2\,dx}\ge\sqrt{\int_{x_{i-\frac12}}^{x_{i+\frac12}}\frac{1}{h}(u^I-u^R)^2\,dx}\\
&=\sqrt{\frac{1}{h}\lVert u^I-u^R\rVert_{L^2(x_{i-\frac12},x_{i+\frac12})}^2}\ge h^{p+1}\sqrt{Q(D_i^0,D_i^1,\cdots,D_i^p)}. \tag*{(22)}
\end{aligned} U i = ∫ x i − 2 1 x i + 2 1 h 1 U i 2 d x ≥ ∫ x i − 2 1 x i + 2 1 h 1 ( u I − u R ) 2 d x = h 1 ∥ u I − u R ∥ L 2 ( x i − 2 1 , x i + 2 1 ) 2 ≥ h p + 1 Q ( D i 0 , D i 1 , ⋯ , D i p ) . (22)
By plugging (2.3.9) into (2.3.8), we have proven (2.3.7). #
A few conclusion remarks:
According to Theorem 2.3.2 , in order to have
∥ u − u R ∥ L 2 ( a , b ) ≤ O ( h p + 1 ) \lVert u-u^R\rVert_{L^2(a,b)}\le O(h^{p+1}) ∥ u − u R ∥ L 2 ( a , b ) ≤ O ( h p + 1 )
for any function u ∈ H p + 1 ( a , b ) u \in H^{p+1}(a,b) u ∈ H p + 1 ( a , b ) , u R u^R u R must be numerically H p + 1 H^{p+1} H p + 1 -smooth. That is
∑ i = 1 N = 1 h Q ( D i 0 , D i 1 , ⋯ , D i p ) ≤ O ( 1 ) . (23) \sum_{i=1}^{N=1}hQ(D_i^0,D_i^1,\cdots,D_i^p)\le O(1). \tag*{(23)} i = 1 ∑ N = 1 h Q ( D i 0 , D i 1 , ⋯ , D i p ) ≤ O ( 1 ) . (23)
According to Theorem 2.3.3 , in order to have
∥ u − u R ∥ L 1 ( a , b ) ≤ O ( h p + 1 ) \lVert u-u^R\rVert_{L^1(a,b)}\le O(h^{p+1}) ∥ u − u R ∥ L 1 ( a , b ) ≤ O ( h p + 1 )
for any function u ∈ W 1 p + 1 ( a , b ) u \in W_1^{p+1}(a,b) u ∈ W 1 p + 1 ( a , b ) , u R u^R u R must be numerically W 1 p + 1 W_1^{p+1} W 1 p + 1 -smooth. That is
∑ i = 1 N = 1 h Q ( D i 0 , D i 1 , ⋯ , D i p ) ≤ O ( 1 ) . (24) \sum_{i=1}^{N=1}h\sqrt{Q(D_i^0,D_i^1,\cdots,D_i^p)}\le O(1). \tag*{(24)} i = 1 ∑ N = 1 h Q ( D i 0 , D i 1 , ⋯ , D i p ) ≤ O ( 1 ) . (24)
According to Theorem 2.3.4, in order to have
∥ u − u R ∥ L ∞ ( a , b ) ≤ O ( h p + 1 ) \lVert u-u^R\rVert_{L^\infty(a,b)} \leq O(h^{p+1}) ∥ u − u R ∥ L ∞ ( a , b ) ≤ O ( h p + 1 )
for any function u ∈ W ∞ p + 1 [ a , b ] u \in W_\infty^{p+1}[a,b] u ∈ W ∞ p + 1 [ a , b ] , u R u^R u R must be numerically W ∞ p + 1 W_\infty^{p+1} W ∞ p + 1 -smooth. That is
Q ( D i 0 , D i 1 , … , D i p ) ≤ O ( 1 ) (25) Q(D_i^0,D_i^1,\ldots,D_i^p) \leq O(1) \tag*{(25)} Q ( D i 0 , D i 1 , … , D i p ) ≤ O ( 1 ) (25)
for all i i i . Because Q ( d 0 , d 1 , … , d p ) Q(d_0,d_1,\ldots,d_p) Q ( d 0 , d 1 , … , d p ) is a positive definite quadratic form, the last inequality is equivalent to that ∣ D i k ∣ ≤ O ( 1 ) \lvert D_i^k\rvert\leq O(1) ∣ D i k ∣ ≤ O ( 1 ) for all k k k and i i i . This is what we mean by the necessity of the numerical smoothness. To be more explicit, ∣ D i k ∣ ≤ O ( 1 ) \lvert D_i^k\rvert\leq O(1) ∣ D i k ∣ ≤ O ( 1 ) is equivalent to ∣ J i k ∣ ≤ O ( h p + 1 − k ) \lvert J_i^k\rvert\leq O(h^{p+1-k}) ∣ J i k ∣ ≤ O ( h p + 1 − k ) . That is, the jumps of the k k k -th derivative of u R u^R u R need to be as small as O ( h p + 1 − k ) O(h^{p+1-k}) O ( h p + 1 − k ) , for k = 0 , 1 , … , p k=0,1,\ldots,p k = 0 , 1 , … , p .
Although the results and the proofs of the theorems seem to be very simple, the author believes that the impact of the theorems could be far reaching. For a numerical solution of a time-dependent PDE, the theorem implies that a fully-discrete scheme must enforce numerical smoothness, otherwise the convergence of optimal rate must have been lost. Consequently, some of the traditional numerical stability notions are possibly inadequate, if they do not enforce numerical smoothness.
For the two dimensional case, S. H. Chou proved similar results, [2, 3]. For one dimensional finite volume methods (WENO), T. Sun defined spatial smoothness indicators based on piecewise polynomial (degree 5) reconstruction from the cell-averages. The reconstruction is just like discontinuous finite elements. A lot of work can be done to cover different cases of approximation methods, but the necessity of numerical smoothness should be a valid criterion for an approximation to be close to a smooth function.
Simultaneous approximation
With the method of proving the necessity theorem of the last section, we can also prove a simultaneous approximation theorem. The well-known Bramble-Hilbert Lemma proved the existence of a simultaneous approximation of order p p p for a smooth function having bounded p + 1 p+1 p + 1 derivative. In the theorem below it is proven that, if a polynomial p ( x ) p(x) p ( x ) of degree p p p approximates a smooth function f ( x ) f(x) f ( x ) at its optimal rate, then the simultaneous approximation must be valid for all the k k k -th derivatives of p ( x ) p(x) p ( x ) for k = 1 , 2 , … , p k=1,2,\ldots,p k = 1 , 2 , … , p .
Theorem 2.4.1 Let f ( x ) ∈ C p + 1 [ 0 , h ] f(x) \in C^{p+1}[0,h] f ( x ) ∈ C p + 1 [ 0 , h ] for a given positive integer p p p . Suppose there is a polynomial of degree p p p (or less) and a constant C 0 C_0 C 0 , such that
∣ f ( x ) − p ( x ) ∣ ≤ C 0 h p + 1 \lvert f(x)-p(x)\rvert\leq C_0h^{p+1} ∣ f ( x ) − p ( x )∣ ≤ C 0 h p + 1
for all x ∈ [ 0 , h ] x \in[0,h] x ∈ [ 0 , h ] . Then there must be constants C 1 , C 2 , ⋯ , C p C_1, C_2, \cdots, C_p C 1 , C 2 , ⋯ , C p , such that
∣ f ( k ) ( x ) − p ( k ) ( x ) ∣ ≤ C k h p + 1 − k \left|f^{(k)}(x)-p^{(k)}(x)\right| \leq C_k h^{p+1-k} f ( k ) ( x ) − p ( k ) ( x ) ≤ C k h p + 1 − k
for all x ∈ [ 0 , h ] x \in[0,h] x ∈ [ 0 , h ] and k = 1 , 2 , ⋯ , p k=1,2,\cdots,p k = 1 , 2 , ⋯ , p .
Proof. For an arbitrary point ξ ∈ [ 0 , h ] \xi\in[0,h] ξ ∈ [ 0 , h ] , let T ( x ) T(x) T ( x ) be the Taylor expansion of degree p p p of f ( x ) f(x) f ( x ) at ξ \xi ξ ,
T ( x ) = f ( ξ ) + f ′ ( ξ ) ( x − ξ ) + ⋯ + f ( p ) ( ξ ) p ! ( x − ξ ) p , T(x)=f(\xi)+f'(\xi)(x-\xi)+\cdots+\frac{f^{(p)}(\xi)}{p!}(x-\xi)^p, T ( x ) = f ( ξ ) + f ′ ( ξ ) ( x − ξ ) + ⋯ + p ! f ( p ) ( ξ ) ( x − ξ ) p ,
then
∣ f ( x ) − T ( x ) ∣ ≤ M p + 1 h p + 1 |f(x)-T(x)| \leq M_{p+1}h^{p+1} ∣ f ( x ) − T ( x ) ∣ ≤ M p + 1 h p + 1
for all x ∈ [ 0 , h ] x \in[0,h] x ∈ [ 0 , h ] , where M p + 1 = max x ∈ [ 0 , h ] ∣ f ( p + 1 ) ( x ) ∣ ( p + 1 ) ! M_{p+1}=\max_{x\in[0,h]}\frac{|f^{(p+1)}(x)|}{(p+1)!} M p + 1 = max x ∈ [ 0 , h ] ( p + 1 )! ∣ f ( p + 1 ) ( x ) ∣ . Hence
∣ P ( x ) − T ( x ) ∣ ≤ ( C 0 + M p + 1 ) h p + 1 |P(x)-T(x)| \leq(C_0+M_{p+1})h^{p+1} ∣ P ( x ) − T ( x ) ∣ ≤ ( C 0 + M p + 1 ) h p + 1
for all x ∈ [ 0 , h ] x \in[0,h] x ∈ [ 0 , h ] . Let
w ( x ) = p ( x ) − T ( x ) . w(x)=p(x)-T(x). w ( x ) = p ( x ) − T ( x ) .
Obviously, for k = 0 , 1 , ⋯ , p k=0,1,\cdots,p k = 0 , 1 , ⋯ , p ,
w ( k ) ( ξ ) = p ( k ) ( ξ ) − f ( k ) ( ξ ) w^{(k)}(\xi)=p^{(k)}(\xi)-f^{(k)}(\xi) w ( k ) ( ξ ) = p ( k ) ( ξ ) − f ( k ) ( ξ )
and, for C w = ( C 0 + M p + 1 ) 2 C_w=(C_0+M_{p+1})^2 C w = ( C 0 + M p + 1 ) 2 and
∫ 0 h w 2 ( x ) d x ≤ C w h 2 p + 3 . \int_0^h w^2(x)\,dx \leq C_w h^{2p+3}. ∫ 0 h w 2 ( x ) d x ≤ C w h 2 p + 3 .
Consider a change of variable given by
x = h y , η = h ξ , z ( y ) = w ( h y ) = w ( x ) . x=hy,\qquad\eta=h\xi,\qquad z(y)=w(hy)=w(x). x = h y , η = h ξ , z ( y ) = w ( h y ) = w ( x ) .
Consequently,
z ′ ( y ) = d d y w ( h y ) = h w ′ ( h y ) = h w ′ ( x ) , z'(y)=\frac{d}{dy}w(hy)=hw'(hy)=hw'(x), z ′ ( y ) = d y d w ( h y ) = h w ′ ( h y ) = h w ′ ( x ) ,
and
z ( k ) ( y ) = h k w ( k ) ( x ) , k = 2 , ⋯ , p . z^{(k)}(y)=h^k w^{(k)}(x),\qquad k=2,\cdots,p. z ( k ) ( y ) = h k w ( k ) ( x ) , k = 2 , ⋯ , p .
Moreover,
∫ 0 1 z 2 ( y ) d y = 1 h ∫ 0 h w 2 ( x ) d x ≤ C w h 2 p + 2 . \int_0^1 z^2(y)\,dy=\frac{1}{h}\int_0^h w^2(x)\,dx\leq C_w h^{2p+2}. ∫ 0 1 z 2 ( y ) d y = h 1 ∫ 0 h w 2 ( x ) d x ≤ C w h 2 p + 2 .
Since w ( x ) = p ( x ) − T ( x ) w(x)=p(x)-T(x) w ( x ) = p ( x ) − T ( x ) is a polynomial of degree p p p , so is z ( y ) z(y) z ( y ) , hence
z ( y ) = z ( η ) + z ′ ( η ) ( y − η ) + ⋯ + z ( p ) ( η ) p ! ( y − η ) p . z(y)=z(\eta)+z'(\eta)(y-\eta)+\cdots+\frac{z^{(p)}(\eta)}{p!}(y-\eta)^p. z ( y ) = z ( η ) + z ′ ( η ) ( y − η ) + ⋯ + p ! z ( p ) ( η ) ( y − η ) p .
Consider
Q η ( a 0 , a 1 , ⋯ , a p ) = ∫ 0 1 ( a 0 + a 1 ( y − η ) + ⋯ + a p p ! ( y − η ) p ) 2 d y . Q_\eta(a_0,a_1,\cdots,a_p)=\int_0^1\left(a_0+a_1(y-\eta)+\cdots+\frac{a_p}{p!}(y-\eta)^p\right)^2\,dy. Q η ( a 0 , a 1 , ⋯ , a p ) = ∫ 0 1 ( a 0 + a 1 ( y − η ) + ⋯ + p ! a p ( y − η ) p ) 2 d y .
This is obviously a symmetric positive definite quadratic form for each η \eta η in [ 0 , 1 ] [0,1] [ 0 , 1 ] , since { 1 , y − η , ⋯ , ( y − η ) p } \{1,y-\eta,\cdots,(y-\eta)^p\} { 1 , y − η , ⋯ , ( y − η ) p } is linearly independent. Moreover, since Q η Q_\eta Q η depends on η \eta η continuously, it only takes an elementary proof to show there is a positive constant C q C_q C q such that
∣ a 0 ∣ 2 + ∣ a 1 ∣ 2 + ⋯ + ∣ a p ∣ 2 ≤ C q Q η ( a 0 , a 1 , ⋯ , a p ) |a_0|^2+|a_1|^2+\cdots+|a_p|^2\leq C_qQ_\eta(a_0,a_1,\cdots,a_p) ∣ a 0 ∣ 2 + ∣ a 1 ∣ 2 + ⋯ + ∣ a p ∣ 2 ≤ C q Q η ( a 0 , a 1 , ⋯ , a p )
uniformly for all η \eta η in [ 0 , 1 ] [0,1] [ 0 , 1 ] . Consequently, replacing a j a_j a j by z ( j ) ( η ) z^{(j)}(\eta) z ( j ) ( η ) for j = 0 , 1 , ⋯ , p j=0,1,\cdots,p j = 0 , 1 , ⋯ , p , we have
∣ z ( η ) ∣ 2 + ∣ z ′ ( η ) ∣ 2 + ⋯ + ∣ z ( p ) ( η ) ∣ 2 ≤ C q Q η ( z ( η ) , z ′ ( η ) , ⋯ , z ( p ) ( η ) ) = C q ∫ 0 1 z 2 ( y ) d y ≤ C q C w h 2 p + 2 . |z(\eta)|^2+|z'(\eta)|^2+\cdots+|z^{(p)}(\eta)|^2\leq C_qQ_\eta(z(\eta),z'(\eta),\cdots,z^{(p)}(\eta))
=C_q\int_0^1z^2(y)\,dy\leq C_qC_wh^{2p+2}. ∣ z ( η ) ∣ 2 + ∣ z ′ ( η ) ∣ 2 + ⋯ + ∣ z ( p ) ( η ) ∣ 2 ≤ C q Q η ( z ( η ) , z ′ ( η ) , ⋯ , z ( p ) ( η )) = C q ∫ 0 1 z 2 ( y ) d y ≤ C q C w h 2 p + 2 .
Finally we get
∣ p ( k ) ( ξ ) − f ( k ) ( ξ ) ∣ = ∣ w ( k ) ( ξ ) ∣ = h − k ∣ z ( k ) ( η ) ∣ ≤ C q C w h p + 1 − k . # |p^{(k)}(\xi)-f^{(k)}(\xi)|=|w^{(k)}(\xi)|=h^{-k}|z^{(k)}(\eta)|\leq\sqrt{C_qC_w}h^{p+1-k}.\# ∣ p ( k ) ( ξ ) − f ( k ) ( ξ ) ∣ = ∣ w ( k ) ( ξ ) ∣ = h − k ∣ z ( k ) ( η ) ∣ ≤ C q C w h p + 1 − k .#
A simple application of this theorem can be that, once we can guarantee the optimal approximation of a solution of a differential equation, we can be confident that we have basically eliminated the possibility of any excessive oscillations in our solution.
The theorem only covers the 1-D case, while the proof is elementary and limited to the continuous function space C ∞ p + 1 C^{p+1}_\infty C ∞ p + 1 . For the general d-dimensional Sobolev spaces, one can use the Bramble-Hilbert Lemma and inverse inequalities to prove a general theorem in W q p + 1 ( Ω ) W^{p+1}_q(\Omega) W q p + 1 ( Ω ) .
Case study: Van der Pol system
In this chapter we present an example of solving a nonlinear ODE system, namely the system of the well known Van der Pol equation (VdP). We are going to solve it using the classical Runge-Kutta method of order 3 (RK3), compute the smoothness indicator, adaptively control the local error, and estimate the global error for long term. This will show how the nonlinearity of the Van der Pol system can be dealt with in the numerical smoothness framework. The reason for choosing RK3 is for its relatively high order and its moderately tedious local error derivation among the Runge-Kutta schemes. After all, we want to focus on the error analysis framework.
The Van der Pol equation (VdP) is a second order nonlinear equation
x ′ ′ − μ ( 1 − x 2 ) x ′ + x = 0 , x ( 0 ) = x 0 , x ′ ( 0 ) = y 0 . (26) x''-\mu(1-x^2)x'+x=0,\qquad x(0)=x_0,\qquad x'(0)=y_0. \tag*{(26)} x ′′ − μ ( 1 − x 2 ) x ′ + x = 0 , x ( 0 ) = x 0 , x ′ ( 0 ) = y 0 . (26)
Here μ > 0 \mu>0 μ > 0 is a parameter controlling the damping and, mathematically, changing the stiffness level of the equation.
Another important issue with the VdP is its self energization when the damping coefficient − μ ( 1 − x 2 ) -\mu(1-x^2) − μ ( 1 − x 2 ) is negative, or x 2 < 1 x^2<1 x 2 < 1 . While large parameter μ \mu μ makes the system highly stiff, x 2 < 1 x^2<1 x 2 < 1 makes the error of a numerical solution growing fast exponentially along with the solution itself, although the fast growth is followed immediately by fast exponential reduction when − μ ( 1 − x 2 ) > 0 -\mu(1-x^2)>0 − μ ( 1 − x 2 ) > 0 . Both the strong stiffness and the fast exponential growth/decay put the error propagation analysis based on Lipschitz conditions in a nightmare.
As usual, we convert the second order equation to a first order system by introducing y = x ′ y=x' y = x ′ . Now, we have the system
x ′ = y , (27) x'=y, \tag*{(27)} x ′ = y , (27)
y ′ = μ ( 1 − x 2 ) y − x , (28) y'=\mu(1-x^2)y-x, \tag*{(28)} y ′ = μ ( 1 − x 2 ) y − x , (28)
with x ( 0 ) = x 0 x(0)=x_0 x ( 0 ) = x 0 and y ( 0 ) = y 0 y(0)=y_0 y ( 0 ) = y 0 .
For the briefness of notations, one can use vectors
u = [ x y ] , u ′ = [ x ′ y ′ ] , f ( u ) = [ y μ ( 1 − x 2 ) y − x ] , u 0 = [ x 0 y 0 ] . \mathbf{u}=\begin{bmatrix}x\\y\end{bmatrix},\qquad
\mathbf{u}'=\begin{bmatrix}x'\\y'\end{bmatrix},\qquad
\mathbf{f}(\mathbf{u})=\begin{bmatrix}y\\\mu(1-x^2)y-x\end{bmatrix},\qquad
\mathbf{u}_0=\begin{bmatrix}x_0\\y_0\end{bmatrix}. u = [ x y ] , u ′ = [ x ′ y ′ ] , f ( u ) = [ y μ ( 1 − x 2 ) y − x ] , u 0 = [ x 0 y 0 ] .
In the vector notation, the equation becomes
u ′ = f ( u ) , u ( 0 ) = u 0 . \mathbf{u}'=\mathbf{f}(\mathbf{u}),\qquad\mathbf{u}(0)=\mathbf{u}_0. u ′ = f ( u ) , u ( 0 ) = u 0 .
We are going to solve the system with the classical Runge-Kutta scheme RK3. For an autonomous system, the scheme is
k 1 = f ( u n ) k 2 = f ( u n + 0.5 τ k 1 ) k 3 = f ( u n − τ k 1 + 2 τ k 2 ) u n + 1 = u n + τ 6 ( k 1 + 4 k 2 + k 3 ) (29) \begin{aligned}
\mathbf{k}_1&=\mathbf{f}(\mathbf{u}_n)\\
\mathbf{k}_2&=\mathbf{f}(\mathbf{u}_n+0.5\tau\mathbf{k}_1)\\
\mathbf{k}_3&=\mathbf{f}(\mathbf{u}_n-\tau\mathbf{k}_1+2\tau\mathbf{k}_2)\\
\mathbf{u}_{n+1}&=\mathbf{u}_n+\frac{\tau}{6}(\mathbf{k}_1+4\mathbf{k}_2+\mathbf{k}_3) \tag*{(29)}
\end{aligned} k 1 k 2 k 3 u n + 1 = f ( u n ) = f ( u n + 0.5 τ k 1 ) = f ( u n − τ k 1 + 2 τ k 2 ) = u n + 6 τ ( k 1 + 4 k 2 + k 3 ) (29)
at t n t_n t n with step size τ = t n + 1 − t n \tau=t_{n+1}-t_n τ = t n + 1 − t n , and u n = u N ( t n ) \mathbf{u}_n=\mathbf{u}_N(t_n) u n = u N ( t n ) is the numerical solution. When we use adaptive time stepping, τ \tau τ is allowed to change from step to step.
We start from showing the graphics of a carefully computed solutions to point out the issues we face in the error analysis. For the eventual purpose doing the global error analysis, we will show
(a) How to compute the needed high order derivatives of u \mathbf{u} u and f ( u ) \mathbf{f}(\mathbf{u}) f ( u ) ;
(b) How to do the local error estimation;
(c) How to deal with the nonlinearity and utilize the VdP’s stability property;
(d) How to estimate error propagation in a time step;
(e) How to estimate the global error for a short time; and
(f) How to estimate long term global error near the limit cycle.
At this point, let’s focus on Figure 3.1 . The upper right plot is a numerical solution of the VdP with μ = 3 \mu=3 μ = 3 , for t ∈ [ 0 , 23 ] t\in[0,23] t ∈ [ 0 , 23 ] , in the phase plan ( x , y ) (x,y) ( x , y ) . Its initial point is above the limit cycle. Its end point is on the limit cycle in the plot. After merging into the limit cycle, the solution traveled nearby the limit cycle for about 2 periods. We consider the properties of the solution orbit and the limit cycle, but only need to discuss what happens while y > 0 y>0 y > 0 , because of the symmetry of the solutions in the upper half and the lower half of the phase plane.
Figure 3.1. Error of Van der Pol solution
Since x ′ = y x' = y x ′ = y and y ′ = μ ( 1 − x 2 ) y − x y' = \mu(1-x^2)y-x y ′ = μ ( 1 − x 2 ) y − x , we need to consider three regions of the upper half of the phase plane (y > 0 y>0 y > 0 ):
For x < − 1 x<-1 x < − 1 : Because μ ( 1 − x 2 ) \mu(1-x^2) μ ( 1 − x 2 ) is negative here, y ( t ) y(t) y ( t ) shall have exponential decay toward the almost horizontal curve μ ( 1 − x 2 ) y − x = 0 \mu(1-x^2)y-x=0 μ ( 1 − x 2 ) y − x = 0 , especially when μ \mu μ is large, the contribution of the term − x -x − x is almost negligible. Meanwhile, x ′ = y x'=y x ′ = y should be or become close to 0, leaving the solution creeping slowly to the right along the attracting part of the limit cycle. The major challenge in this region is the stiffness when we have a large μ \mu μ , but the extremely small ( x ′ , y ′ ) (x',y') ( x ′ , y ′ ) along the limit cycle may help us reducing the harm of the stiffness.
For − 1 < x < 1 -1<x<1 − 1 < x < 1 : The major trouble here is the positive μ ( 1 − x 2 ) y \mu(1-x^2)y μ ( 1 − x 2 ) y in the equation about y y y . This causes positive exponential growth of y y y , which in turn makes x x x also growing exponentially. Although the plot of the limit cycle in the phase plane looks very smooth in this region, the fast moving ( x , y ) (x,y) ( x , y ) and the fast growing ( x ′ , y ′ ) (x',y') ( x ′ , y ′ ) make both the local error and the error propagation rate becoming larger exponentially. Fortunately, the fast motion of the solution makes the solution out of this region in a relatively short time.
For 1 < x 1<x 1 < x : Now μ ( 1 − x 2 ) y \mu(1-x^2)y μ ( 1 − x 2 ) y becomes negative again while y y y starts almost at its maximum. The motion of ( x , y ) (x,y) ( x , y ) slows down as an exponential decay, but the motion speed becomes close to 0 when y y y is near 0. The concern of numerical overshooting at the sharp turn should not be as bad as the sharp turn suggesting to us.
Overall, the biggest problem we are facing here is the exponential growth/decay and the damage done to the traditional error propagation analysis. The biggest help is that the system has lasting deep attraction to the part of the limit cycle where x < − 1 , y > 0 x<-1,y>0 x < − 1 , y > 0 .
Computing high order derivatives
For a system u ′ = f ( u ) \mathbf{u}'=\mathbf{f}(\mathbf{u}) u ′ = f ( u ) with u ∈ R n \mathbf{u}\in\mathbb{R}^n u ∈ R n and f : R n → R n \mathbf{f}:\mathbb{R}^n\to\mathbb{R}^n f : R n → R n , define
v = u ′ , w = v ′ = u ′ ′ , p = w ′ = u ′ ′ ′ , \mathbf{v}=\mathbf{u}',\quad\mathbf{w}=\mathbf{v}'=\mathbf{u}'',\quad\mathbf{p}=\mathbf{w}'=\mathbf{u}''', v = u ′ , w = v ′ = u ′′ , p = w ′ = u ′′′ ,
q = p ′ = u ( 4 ) , r = q ′ = u ( 5 ) . \mathbf{q}=\mathbf{p}'=\mathbf{u}^{(4)},\quad\mathbf{r}=\mathbf{q}'=\mathbf{u}^{(5)}. q = p ′ = u ( 4 ) , r = q ′ = u ( 5 ) .
Below are the first through fifth derivatives of u \mathbf{u} u with respect to t t t for the system u ′ = f ( u ) \mathbf{u}'=\mathbf{f}(\mathbf{u}) u ′ = f ( u ) , written in tensor form. Here u ( k ) \mathbf{u}^{(k)} u ( k ) denotes the k-th derivative of u \mathbf{u} u with respect to t t t , and f ( k ) \mathbf{f}^{(k)} f ( k ) is the k-th derivative tensor of f \mathbf{f} f with respect to u \mathbf{u} u .
u ( 1 ) = v = f ( u ) , \mathbf{u}^{(1)}=\mathbf{v}=\mathbf{f}(\mathbf{u}), u ( 1 ) = v = f ( u ) ,
u ( 2 ) = w = v ′ = f ′ ( u ) v , \mathbf{u}^{(2)}=\mathbf{w}=\mathbf{v}'=\mathbf{f}'(\mathbf{u})\mathbf{v}, u ( 2 ) = w = v ′ = f ′ ( u ) v ,
u ( 3 ) = p = w ′ = f ′ ′ ( u ) ( v , v ) + f ′ ( u ) w , \mathbf{u}^{(3)}=\mathbf{p}=\mathbf{w}'=\mathbf{f}''(\mathbf{u})(\mathbf{v},\mathbf{v})+\mathbf{f}'(\mathbf{u})\mathbf{w}, u ( 3 ) = p = w ′ = f ′′ ( u ) ( v , v ) + f ′ ( u ) w ,
u ( 4 ) = q = p ′ = f ′ ′ ′ ( u ) ( v , v , v ) + 3 f ′ ′ ( u ) ( v , w ) + f ′ ( u ) p , \mathbf{u}^{(4)}=\mathbf{q}=\mathbf{p}'=\mathbf{f}'''(\mathbf{u})(\mathbf{v},\mathbf{v},\mathbf{v})+3\mathbf{f}''(\mathbf{u})(\mathbf{v},\mathbf{w})+\mathbf{f}'(\mathbf{u})\mathbf{p}, u ( 4 ) = q = p ′ = f ′′′ ( u ) ( v , v , v ) + 3 f ′′ ( u ) ( v , w ) + f ′ ( u ) p ,
u ( 5 ) = r = q ′ = f ( 4 ) ( u ) ( v , v , v , v ) + 6 f ′ ′ ′ ( u ) ( v , v , w ) + 3 f ′ ′ ( u ) ( w , w ) + 4 f ′ ′ ( u ) ( v , p ) + f ′ ( u ) q , \begin{aligned}
\mathbf{u}^{(5)}=\mathbf{r}=\mathbf{q}'={}&\mathbf{f}^{(4)}(\mathbf{u})(\mathbf{v},\mathbf{v},\mathbf{v},\mathbf{v})\\
&+6\mathbf{f}'''(\mathbf{u})(\mathbf{v},\mathbf{v},\mathbf{w})\\
&+3\mathbf{f}''(\mathbf{u})(\mathbf{w},\mathbf{w})\\
&+4\mathbf{f}''(\mathbf{u})(\mathbf{v},\mathbf{p})\\
&+\mathbf{f}'(\mathbf{u})\mathbf{q},
\end{aligned} u ( 5 ) = r = q ′ = f ( 4 ) ( u ) ( v , v , v , v ) + 6 f ′′′ ( u ) ( v , v , w ) + 3 f ′′ ( u ) ( w , w ) + 4 f ′′ ( u ) ( v , p ) + f ′ ( u ) q ,
and, for those readers wanting to see the trend,
u ( 6 ) = r ′ = f ( 5 ) ( u ) ( v , v , v , v , v ) + 10 f ( 4 ) ( u ) ( v , v , v , w ) + 15 f ′ ′ ′ ( u ) ( v , w , w ) + 10 f ′ ′ ′ ( u ) ( v , v , p ) + 10 f ′ ′ ( u ) ( w , p ) + 5 f ′ ′ ( u ) ( v , q ) + f ′ ( u ) r , \begin{aligned}
\mathbf{u}^{(6)}=\mathbf{r}'={}&\mathbf{f}^{(5)}(\mathbf{u})(\mathbf{v},\mathbf{v},\mathbf{v},\mathbf{v},\mathbf{v})\\
&+10\mathbf{f}^{(4)}(\mathbf{u})(\mathbf{v},\mathbf{v},\mathbf{v},\mathbf{w})\\
&+15\mathbf{f}'''(\mathbf{u})(\mathbf{v},\mathbf{w},\mathbf{w})\\
&+10\mathbf{f}'''(\mathbf{u})(\mathbf{v},\mathbf{v},\mathbf{p})\\
&+10\mathbf{f}''(\mathbf{u})(\mathbf{w},\mathbf{p})\\
&+5\mathbf{f}''(\mathbf{u})(\mathbf{v},\mathbf{q})\\
&+\mathbf{f}'(\mathbf{u})\mathbf{r},
\end{aligned} u ( 6 ) = r ′ = f ( 5 ) ( u ) ( v , v , v , v , v ) + 10 f ( 4 ) ( u ) ( v , v , v , w ) + 15 f ′′′ ( u ) ( v , w , w ) + 10 f ′′′ ( u ) ( v , v , p ) + 10 f ′′ ( u ) ( w , p ) + 5 f ′′ ( u ) ( v , q ) + f ′ ( u ) r ,
where f ( k ) \mathbf{f}^{(k)} f ( k ) denotes the k-th derivative tensor (a symmetric ( k , 1 ) (k,1) ( k , 1 ) -tensor). In explicit component form, for indices i , j , ⋯ , k i,j,\cdots,k i , j , ⋯ , k , the contractions are interpreted as
f ( k ) ( u ) ( a 1 , … , a k ) i = ∑ j 1 , … , j k ∂ k f i ∂ u j 1 ⋯ ∂ u j k ( u ) a 1 , j 1 ⋯ a k , j k . \mathbf{f}^{(k)}(\mathbf{u})(\mathbf{a}_1,\ldots,\mathbf{a}_k)_i
=
\sum_{j_1,\ldots,j_k}
\frac{\partial^k f_i}{\partial u_{j_1}\cdots\partial u_{j_k}}(\mathbf{u})a_{1,j_1}\cdots a_{k,j_k}. f ( k ) ( u ) ( a 1 , … , a k ) i = j 1 , … , j k ∑ ∂ u j 1 ⋯ ∂ u j k ∂ k f i ( u ) a 1 , j 1 ⋯ a k , j k .
To get familiar with tensors and their operations, one can learn from AI-LLM, or find a textbook.
It is worth to notice that f ′ ( u ) \mathbf{f}'(\mathbf{u}) f ′ ( u ) is the well-known Jacobian matrix of f ( u ) \mathbf{f}(\mathbf{u}) f ( u ) , which has its usefulness in many ways.
Assume f \mathbf{f} f to be smooth. Obviously, the boundedness of all the derivatives of f ( u ) \mathbf{f}(\mathbf{u}) f ( u ) follows the boundedness of u \mathbf{u} u .
It is useful for the local error derivation of RK3 to expand u ( 3 ) \mathbf{u}^{(3)} u ( 3 ) and u ( 4 ) \mathbf{u}^{(4)} u ( 4 ) further by substituting
v = f ( u ) = f , w = f ′ ( u ) f ( u ) = f ′ f \mathbf{v}=\mathbf{f}(\mathbf{u})=\mathbf{f},\qquad\mathbf{w}=\mathbf{f}'(\mathbf{u})\mathbf{f}(\mathbf{u})=\mathbf{f}'\mathbf{f} v = f ( u ) = f , w = f ′ ( u ) f ( u ) = f ′ f
to get
u ( 3 ) = p = f ′ ′ ( f , f ) + f ′ f ′ f \mathbf{u}^{(3)}=\mathbf{p}=\mathbf{f}''(\mathbf{f},\mathbf{f})+\mathbf{f}'\mathbf{f}'\mathbf{f} u ( 3 ) = p = f ′′ ( f , f ) + f ′ f ′ f
and
u ( 4 ) = f ′ ′ ′ ( f , f , f ) + 3 f ′ ′ ( f , f ′ f ) + f ′ f ′ ′ ( f , f ) + f ′ f ′ f ′ f . \mathbf{u}^{(4)}=\mathbf{f}'''(\mathbf{f},\mathbf{f},\mathbf{f})+3\mathbf{f}''(\mathbf{f},\mathbf{f}'\mathbf{f})+\mathbf{f}'\mathbf{f}''(\mathbf{f},\mathbf{f})+\mathbf{f}'\mathbf{f}'\mathbf{f}'\mathbf{f}. u ( 4 ) = f ′′′ ( f , f , f ) + 3 f ′′ ( f , f ′ f ) + f ′ f ′′ ( f , f ) + f ′ f ′ f ′ f .
In the derivation of the the local error of RK3, we will need the expansion terms in u ( 4 ) \mathbf{u}^{(4)} u ( 4 ) . For higher order Runge-Kutta schemes, the number of expansion terms will increase extremely fast. In the case of RK4, we will need the expansion terms of u ( 5 ) \mathbf{u}^{(5)} u ( 5 ) , but there are 9 of them. See [7].
Another usefulness of the formulas is that we can prove the boundedness of the high order derivatives. It is worth to mention that each u ( k ) \mathbf{u}^{(k)} u ( k ) is the solution of a first order linear ODE. This observation is very important for the validation of the boundedness of the high order derivatives in the time step [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] from the computed smoothness indicators at t n t_n t n .
Local error analysis
To derive the local truncation error of the classical third-order Runge-Kutta (RK3) scheme for an autonomous system, we expand both the true solution u ~ ( t n + 1 ) \tilde{\mathbf{u}}(t_{n+1}) u ~ ( t n + 1 ) and the numerical solution u N ( t n + 1 ) \mathbf{u}_N(t_{n+1}) u N ( t n + 1 ) at t n t_n t n using Taylor series up to O ( h 4 ) O(h^4) O ( h 4 ) , then find the difference.
Taylor Expansion of the u ~ ( t ) \tilde{\mathbf{u}}(t) u ~ ( t )
For the true solution u ~ ( t ) \tilde{\mathbf{u}}(t) u ~ ( t ) at t n t_n t n , by the Taylor series, with τ = t n + 1 − t n \tau=t_{n+1}-t_n τ = t n + 1 − t n :
u ~ ( t n + 1 ) = u ~ ( t n ) + τ u ~ ′ ( t n ) + τ 2 2 u ~ ′ ′ ( t n ) + τ 3 6 u ~ ( 3 ) ( t n ) + τ 4 24 u ~ ( 4 ) ( t n ) + O ( τ 5 ) . \tilde{\mathbf{u}}(t_{n+1})=\tilde{\mathbf{u}}(t_n)+\tau\tilde{\mathbf{u}}'(t_n)+\frac{\tau^2}{2}\tilde{\mathbf{u}}''(t_n)+\frac{\tau^3}{6}\tilde{\mathbf{u}}^{(3)}(t_n)+\frac{\tau^4}{24}\tilde{\mathbf{u}}^{(4)}(t_n)+O(\tau^5). u ~ ( t n + 1 ) = u ~ ( t n ) + τ u ~ ′ ( t n ) + 2 τ 2 u ~ ′′ ( t n ) + 6 τ 3 u ~ ( 3 ) ( t n ) + 24 τ 4 u ~ ( 4 ) ( t n ) + O ( τ 5 ) .
For the autonomous system u ′ = f ( u ) \mathbf{u}'=\mathbf{f}(\mathbf{u}) u ′ = f ( u ) , we compute successive total derivatives with respect to time t t t using the chain rule. All functions and their derivatives are evaluated at u n = u N ( t n ) \mathbf{u}_n=\mathbf{u}_N(t_n) u n = u N ( t n ) :
Fourth derivative: u ~ ( 4 ) = f ′ ′ ′ ( f , f , f ) + 3 f ′ ′ ( f ′ f , f ) + f ′ f ′ ′ ( f , f ) + f ′ f ′ f ′ f \tilde{u}^{(4)} = f'''(f,f,f) + 3f''(f'f,f) + f'f''(f,f) + f'f'f'f u ~ ( 4 ) = f ′′′ ( f , f , f ) + 3 f ′′ ( f ′ f , f ) + f ′ f ′′ ( f , f ) + f ′ f ′ f ′ f
Substituting these into the Taylor expansion for the exact solution u ~ ( t n + 1 ) \tilde{u}(t_{n+1}) u ~ ( t n + 1 ) :
u ~ ( t n + 1 ) = u ~ ( t n ) + τ f + τ 2 2 f ′ f + τ 3 6 [ f ′ ′ ( f , f ) + f ′ f ′ f ] + τ 4 24 [ f ′ ′ ′ ( f , f , f ) + 3 f ′ ′ ( f ′ f , f ) + f ′ f ′ ′ ( f , f ) + f ′ f ′ f ′ f ] + O ( τ 5 ) \tilde{u}(t_{n+1}) = \tilde{u}(t_n) + \tau f + \frac{\tau^2}{2}f'f + \frac{\tau^3}{6}\left[f''(f,f) + f'f'f\right]
+ \frac{\tau^4}{24}\left[f'''(f,f,f) + 3f''(f'f,f) + f'f''(f,f) + f'f'f'f\right] + O(\tau^5) u ~ ( t n + 1 ) = u ~ ( t n ) + τ f + 2 τ 2 f ′ f + 6 τ 3 [ f ′′ ( f , f ) + f ′ f ′ f ] + 24 τ 4 [ f ′′′ ( f , f , f ) + 3 f ′′ ( f ′ f , f ) + f ′ f ′′ ( f , f ) + f ′ f ′ f ′ f ] + O ( τ 5 )
Taylor Expansion of the RK3 Numerical Solution
The stages for the RK3 scheme are defined as:
k 1 = f ( u n ) k 2 = f ( u n + 0.5 τ k 1 ) k 3 = f ( u n − τ k 1 + 2 τ k 2 ) u n + 1 = u n + τ ( 1 6 k 1 + 2 3 k 2 + 1 6 k 3 ) \begin{aligned}
k_1 &= f(u_n) \\
k_2 &= f\left(u_n + 0.5\,\tau k_1\right) \\
k_3 &= f(u_n - \tau k_1 + 2\tau k_2) \\
u_{n+1} &= u_n + \tau\left(\frac{1}{6}k_1 + \frac{2}{3}k_2 + \frac{1}{6}k_3\right)
\end{aligned} k 1 k 2 k 3 u n + 1 = f ( u n ) = f ( u n + 0.5 τ k 1 ) = f ( u n − τ k 1 + 2 τ k 2 ) = u n + τ ( 6 1 k 1 + 3 2 k 2 + 6 1 k 3 )
Expanding k 2 k_2 k 2 : By Taylor expansion at u n u_n u n ,
k 2 = f ( u n + τ 2 f ) = f + τ 2 f ′ f + τ 2 8 f ′ ′ ( f , f ) + τ 3 48 f ′ ′ ′ ( f , f , f ) + O ( τ 4 ) k_2 = f\left(u_n + \frac{\tau}{2}f\right) = f + \frac{\tau}{2}f'f + \frac{\tau^2}{8}f''(f,f) + \frac{\tau^3}{48}f'''(f,f,f) + O(\tau^4) k 2 = f ( u n + 2 τ f ) = f + 2 τ f ′ f + 8 τ 2 f ′′ ( f , f ) + 48 τ 3 f ′′′ ( f , f , f ) + O ( τ 4 )
Expanding k 3 k_3 k 3 : The argument inside k 3 k_3 k 3 is
u n + τ ( − k 1 + 2 k 2 ) = u n + τ ( − f + 2 [ f + 1 2 τ f ′ f + 1 8 τ 2 f ′ ′ ( f , f ) + O ( τ 3 ) ] ) = u n + τ f + τ 2 f ′ f + 1 4 τ 3 f ′ ′ ( f , f ) + O ( τ 4 ) \begin{aligned}
u_n + \tau(-k_1 + 2k_2) = u_n + \tau\left(-f + 2\left[f + \frac{1}{2}\tau f'f + \frac{1}{8}\tau^2f''(f,f) + O(\tau^3)\right]\right) \\
&= u_n + \tau f + \tau^2f'f + \frac{1}{4}\tau^3f''(f,f) + O(\tau^4)
\end{aligned} u n + τ ( − k 1 + 2 k 2 ) = u n + τ ( − f + 2 [ f + 2 1 τ f ′ f + 8 1 τ 2 f ′′ ( f , f ) + O ( τ 3 ) ] ) = u n + τ f + τ 2 f ′ f + 4 1 τ 3 f ′′ ( f , f ) + O ( τ 4 )
Letting Δ = τ f + τ 2 f ′ f + 1 4 τ 3 f ′ ′ ( f , f ) \Delta= \tau f + \tau^2f'f + \frac{1}{4}\tau^3f''(f,f) Δ = τ f + τ 2 f ′ f + 4 1 τ 3 f ′′ ( f , f ) , we expand k 3 = f ( u n + Δ ) k_3 = f(u_n + \Delta) k 3 = f ( u n + Δ ) via multi-variable Taylor series:
k 3 = f + f ′ Δ + 1 2 f ′ ′ ( Δ , Δ ) + 1 6 f ′ ′ ′ ( Δ , Δ , Δ ) + O ( τ 4 ) k_3 = f + f'\Delta+ \frac{1}{2}f''(\Delta,\Delta) + \frac{1}{6}f'''(\Delta,\Delta,\Delta) + O(\tau^4) k 3 = f + f ′ Δ + 2 1 f ′′ ( Δ , Δ ) + 6 1 f ′′′ ( Δ , Δ , Δ ) + O ( τ 4 )
Substituting Δ \Delta Δ into each component term up to O ( τ 3 ) O(\tau^3) O ( τ 3 ) yield:
f ′ Δ = τ f ′ f + τ 2 f ′ f ′ f + 1 4 τ 3 f ′ f ′ ′ ( f , f ) f'\Delta= \tau f'f + \tau^2f'f'f + \frac{1}{4}\tau^3f'f''(f,f) f ′ Δ = τ f ′ f + τ 2 f ′ f ′ f + 4 1 τ 3 f ′ f ′′ ( f , f )
1 2 f ′ ′ ( Δ , Δ ) = 1 2 τ 2 f ′ ′ ( f , f ) + τ 3 f ′ ′ ( f ′ f , f ) + O ( τ 4 ) \frac{1}{2}f''(\Delta,\Delta) = \frac{1}{2}\tau^2f''(f,f) + \tau^3f''(f'f,f) + O(\tau^4) 2 1 f ′′ ( Δ , Δ ) = 2 1 τ 2 f ′′ ( f , f ) + τ 3 f ′′ ( f ′ f , f ) + O ( τ 4 )
1 6 f ′ ′ ′ ( Δ , Δ , Δ ) = 1 6 τ 3 f ′ ′ ′ ( f , f , f ) + O ( h 4 ) \frac{1}{6}f'''(\Delta,\Delta,\Delta)=\frac{1}{6}\tau^3f'''(f,f,f)+O(h^4) 6 1 f ′′′ ( Δ , Δ , Δ ) = 6 1 τ 3 f ′′′ ( f , f , f ) + O ( h 4 )
Combining these gives:
k 3 = f + τ f ′ f + τ 2 [ f ′ f ′ + 1 2 f ′ ′ ( f , f ) ] + τ 3 [ 1 4 f ′ f ′ ′ ( f , f ) + f ′ ′ ( f ′ f , f ) + 1 6 f ′ ′ ′ ( f , f , f ) ] + O ( τ 4 ) k_3=f+\tau f'f+\tau^2\left[f'f'+\frac{1}{2}f''(f,f)\right]+\tau^3\left[\frac{1}{4}f'f''(f,f)+f''(f'f,f)+\frac{1}{6}f'''(f,f,f)\right]+O(\tau^4) k 3 = f + τ f ′ f + τ 2 [ f ′ f ′ + 2 1 f ′′ ( f , f ) ] + τ 3 [ 4 1 f ′ f ′′ ( f , f ) + f ′′ ( f ′ f , f ) + 6 1 f ′′′ ( f , f , f ) ] + O ( τ 4 )
Combining the Stages: Since u n + 1 = u n + τ ( 1 6 k 1 + 2 3 k 2 + 1 6 k 3 ) u_{n+1}=u_n+\tau\left(\frac{1}{6}k_1+\frac{2}{3}k_2+\frac{1}{6}k_3\right) u n + 1 = u n + τ ( 6 1 k 1 + 3 2 k 2 + 6 1 k 3 ) , collecting terms by powers of h h h :
τ 3 \tau^3 τ 3 term: 2 3 ( 1 8 f ′ ′ ( f , f ) ) + 1 6 ( f ′ f ′ f + 1 2 f ′ ′ ( f , f ) ) = 1 6 f ′ ′ ( f , f ) + 1 6 f ′ f ′ f \frac{2}{3}\left(\frac{1}{8}f''(f,f)\right)+\frac{1}{6}\left(f'f'f+\frac{1}{2}f''(f,f)\right)=\frac{1}{6}f''(f,f)+\frac{1}{6}f'f'f 3 2 ( 8 1 f ′′ ( f , f ) ) + 6 1 ( f ′ f ′ f + 2 1 f ′′ ( f , f ) ) = 6 1 f ′′ ( f , f ) + 6 1 f ′ f ′ f
τ 4 \tau^4 τ 4 term: 2 3 ( 1 48 f ′ ′ ′ ( f , f , f ) ) + 1 6 ( 1 4 f ′ f ′ ′ ( f , f ) + f ′ ′ ( f ′ f , f ) + 1 6 f ′ ′ ′ ( f , f , f ) ) \frac{2}{3}\left(\frac{1}{48}f'''(f,f,f)\right)+\frac{1}{6}\left(\frac{1}{4}f'f''(f,f)+f''(f'f,f)+\frac{1}{6}f'''(f,f,f)\right) 3 2 ( 48 1 f ′′′ ( f , f , f ) ) + 6 1 ( 4 1 f ′ f ′′ ( f , f ) + f ′′ ( f ′ f , f ) + 6 1 f ′′′ ( f , f , f ) )
= τ 4 [ 1 24 f ′ ′ ′ ( f , f , f ) + 1 24 f ′ f ′ ′ ( f , f ) + 1 6 f ′ ′ ( f ′ f , f ) ] (30) =\tau^4\left[\frac{1}{24}f'''(f,f,f)+\frac{1}{24}f'f''(f,f)+\frac{1}{6}f''(f'f,f)\right] \tag*{(30)} = τ 4 [ 24 1 f ′′′ ( f , f , f ) + 24 1 f ′ f ′′ ( f , f ) + 6 1 f ′′ ( f ′ f , f ) ] (30)
The Local Truncation Error
The local error ξ n + 1 \xi_{n+1} ξ n + 1 is defined as the difference between the exact solution and the numerical step:
ξ n + 1 = u ~ ( t n + 1 ) − u n + 1 \xi_{n+1}=\widetilde{u}(t_{n+1})-u_{n+1} ξ n + 1 = u ( t n + 1 ) − u n + 1
Since the scheme matches perfectly up to O ( τ 3 ) O(\tau^3) O ( τ 3 ) , the remaining leading-order error terms appear at O ( τ 4 ) O(\tau^4) O ( τ 4 ) , scaled by the elementary differentials:
Table 1.
Final Local Error Expression
Combining the non-zero coefficients, the detailed local truncation error expression for the classical RK3 scheme is:
ξ n + 1 = τ 4 ( − 1 24 f ′ ′ ( f ′ f , f ) + 1 24 f ′ f ′ f ′ f ) + O ( τ 5 ) (31) \xi_{n+1}=\tau^4\left(-\frac{1}{24}f''(f'f,f)+\frac{1}{24}f'f'f'f\right)+O(\tau^5) \tag*{(31)} ξ n + 1 = τ 4 ( − 24 1 f ′′ ( f ′ f , f ) + 24 1 f ′ f ′ f ′ f ) + O ( τ 5 ) (31)
In the computation of this case study, we omit the O ( τ 5 ) \mathcal{O}(\tau^5) O ( τ 5 ) and use the fourth order principal part as the local error estimate. This is to be able to calculate the contribution of the local error to the global error, while not causing a big error of error. We will show by how much we can make the calculated global error informative. In case the reliability of only using the fourth order terms is doubted, one can calculate the terms of the error in order 5 and omit O ( τ 6 ) \mathcal{O}(\tau^6) O ( τ 6 ) , but we don’t want to make thing too tedious in the discussion.
Error propagation in a time step
The exact error propagation in the numerical smoothness framework will help us in the surprising computation of the global error. Although we will just compute the principal part of the global error, which is not a traditional worst case scenario error bound, the information delivered by the principal part error plots is surprisingly abundant.
We start this work in the general case. Let u ( t ) \mathbf{u}(t) u ( t ) and v ( t ) \mathbf{v}(t) v ( t ) be two solutions of u ′ = f ( u ) \mathbf{u}' = \mathbf{f}(\mathbf{u}) u ′ = f ( u ) . They have u 0 \mathbf{u}_0 u 0 and v 0 \mathbf{v}_0 v 0 as their initial values respectively at t = a t = a t = a . Taking the difference of the two equations satisfied by u \mathbf{u} u and v \mathbf{v} v , we get
( u ( t ) − v ( t ) ) ′ = f ( u ( t ) ) − f ( v ( t ) ) . \left(\mathbf{u}(t)-\mathbf{v}(t)\right)' = \mathbf{f}(\mathbf{u}(t))-\mathbf{f}(\mathbf{v}(t)). ( u ( t ) − v ( t ) ) ′ = f ( u ( t )) − f ( v ( t )) .
Let g ( θ ) = f [ θ u ( t ) + ( 1 − θ ) v ( t ) ] g(\theta) = \mathbf{f}[\theta\mathbf{u}(t) + (1-\theta)\mathbf{v}(t)] g ( θ ) = f [ θ u ( t ) + ( 1 − θ ) v ( t )] . Then g ( 0 ) = f ( v ( t ) ) g(0) = \mathbf{f}(\mathbf{v}(t)) g ( 0 ) = f ( v ( t )) , g ( 1 ) = f ( u ( t ) ) g(1) = \mathbf{f}(\mathbf{u}(t)) g ( 1 ) = f ( u ( t )) . Moreover,
g ′ ( θ ) = f ′ [ θ u ( t ) + ( 1 − θ ) v ( t ) ] [ u ( t ) − v ( t ) ] . g'(\theta) = \mathbf{f}'[\theta\mathbf{u}(t) + (1-\theta)\mathbf{v}(t)][\mathbf{u}(t)-\mathbf{v}(t)]. g ′ ( θ ) = f ′ [ θ u ( t ) + ( 1 − θ ) v ( t )] [ u ( t ) − v ( t )] .
Now,
( u ( t ) − v ( t ) ) ′ = f ( u ( t ) ) − f ( v ( t ) ) = g ( 1 ) − g ( 0 ) = ∫ 0 1 g ′ ( θ ) d θ = ∫ 0 1 f ′ [ θ u ( t ) + ( 1 − θ ) v ( t ) ] d θ [ u ( t ) − v ( t ) ] . \begin{aligned}
\left(\mathbf{u}(t)-\mathbf{v}(t)\right)' &= \mathbf{f}(\mathbf{u}(t))-\mathbf{f}(\mathbf{v}(t)) = g(1)-g(0) = \int_0^1 g'(\theta)\,\mathrm{d}\theta\\
&= \int_0^1 \mathbf{f}'[\theta\mathbf{u}(t)+(1-\theta)\mathbf{v}(t)]\,\mathrm{d}\theta\,[\mathbf{u}(t)-\mathbf{v}(t)].
\end{aligned} ( u ( t ) − v ( t ) ) ′ = f ( u ( t )) − f ( v ( t )) = g ( 1 ) − g ( 0 ) = ∫ 0 1 g ′ ( θ ) d θ = ∫ 0 1 f ′ [ θ u ( t ) + ( 1 − θ ) v ( t )] d θ [ u ( t ) − v ( t )] .
It can be observed that the last equation can be taken as a linear homogeneous equation about u ( t ) − v ( t ) \mathbf{u}(t)-\mathbf{v}(t) u ( t ) − v ( t ) , which can be solved in [ a , t ] [a,t] [ a , t ] as
u ( t ) − v ( t ) = e ∫ a t ∫ 0 1 f ′ [ θ u ( χ ) + ( 1 − θ ) v ( χ ) ] d θ d χ [ u ( a ) − v ( a ) ] . (32) \mathbf{u}(t)-\mathbf{v}(t) = e^{\int_a^t\int_0^1 \mathbf{f}'[\theta\mathbf{u}(\chi)+(1-\theta)\mathbf{v}(\chi)]\,\mathrm{d}\theta\,\mathrm{d}\chi}[\mathbf{u}(a)-\mathbf{v}(a)]. \tag*{(32)} u ( t ) − v ( t ) = e ∫ a t ∫ 0 1 f ′ [ θ u ( χ ) + ( 1 − θ ) v ( χ )] d θ d χ [ u ( a ) − v ( a )] . (32)
The matrix exponential on the right hand side is basically from the Jacobian matrix. It carries all the information and actions of error propagation.
Remark: The exponential matrix in the RHS is very similar to the Monodromy matrix in the Floquet theory on the stability of the limit cycles of ODE systems.
Error propagation in a time step
The difference is that they are focusing on one solution - the limit cycle, we are working on the distance between two solution of an ODE, to see how the distance evolves from a a a to t t t . We will use the error estimate we have done for u ( a ) − v ( a ) \mathbf{u}(a)-\mathbf{v}(a) u ( a ) − v ( a ) to make sure it is already a close pair of initial points. Then we show that the distance remains small in a time step. We will always make v ( t ) = u ~ ( t ) \mathbf{v}(t)=\tilde{\mathbf{u}}(t) v ( t ) = u ~ ( t ) and u ( t ) \mathbf{u}(t) u ( t ) to be the original solution of our equation to solve.
Remark: Everything in the matrix exponential depends on u ( a ) \mathbf{u}(a) u ( a ) , v ( a ) \mathbf{v}(a) v ( a ) , u ( a ) − v ( a ) \mathbf{u}(a)-\mathbf{v}(a) u ( a ) − v ( a ) , and the function f ( u ) \mathbf{f}(\mathbf{u}) f ( u ) . The integral with the dummy variable θ \theta θ needs to be further studied and specified to make the properties of the error propagation clear. Under different situations, we can use the last equation in deeper analysis of the exact error propagation between two solutions in an interval [ a , t ] [a,t] [ a , t ] .
◇ Estimating the error propagation in a time step Consider u ( t ) − u ~ ( t ) \mathbf{u}(t)-\tilde{\mathbf{u}}(t) u ( t ) − u ~ ( t ) , t ∈ [ t n , t n + 1 ] t\in[t_n,t_{n+1}] t ∈ [ t n , t n + 1 ] . This is the propagation error defined as in Splitting 2. To be clear, we are using (3.3.1) with a = t n a=t_n a = t n , t = t n + 1 t=t_{n+1} t = t n + 1 , u ( t ) \mathbf{u}(t) u ( t ) being the original solution, v ( t ) = u ~ ( t ) \mathbf{v}(t)=\tilde{\mathbf{u}}(t) v ( t ) = u ~ ( t ) , v ( t n ) = u N ( t n ) \mathbf{v}(t_n)=\mathbf{u}_N(t_n) v ( t n ) = u N ( t n ) in the way the initial value of u ~ ( t n ) \tilde{\mathbf{u}}(t_n) u ~ ( t n ) is defined in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] , and u ( t n ) \mathbf{u}(t_n) u ( t n ) is just the value of the original solution at t n t_n t n .
The ratio of the norms of u ( t ) − u ~ ( t ) \mathbf{u}(t)-\tilde{\mathbf{u}}(t) u ( t ) − u ~ ( t ) and u ( t n ) − u N ( t n ) \mathbf{u}(t_n)-\mathbf{u}_N(t_n) u ( t n ) − u N ( t n ) is the error propagation rate. In addition, we also need to keep the information on how the differential equation evolve u ( t n ) − u N ( t n ) \mathbf{u}(t_n)-\mathbf{u}_N(t_n) u ( t n ) − u N ( t n ) by expansion, contraction, rotation and so on. The details need to be carefully estimated in each step, and composited between steps. If we fail to take the details into account, we will not make very tight estimate of the error propagation rate step by step.
At t n t_n t n , u ~ ( t n ) \tilde{\mathbf{u}}(t_n) u ~ ( t n ) has been computed, it is reasonable to assume that u ~ ( t n ) \tilde{\mathbf{u}}(t_n) u ~ ( t n ) is bounded. In addition, u ( t n ) − u ~ ( t n ) \mathbf{u}(t_n)-\tilde{\mathbf{u}}(t_n) u ( t n ) − u ~ ( t n ) has been estimated with an error bound of O ( τ 3 ) O(\tau^3) O ( τ 3 ) at the end of the last timestep. With the boundedness of f ′ \mathbf{f}' f ′ , in the very short time of [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] , we can get u ( t ) − u ~ ( t ) = O ( τ 3 ) \mathbf{u}(t)-\tilde{\mathbf{u}}(t)=O(\tau^3) u ( t ) − u ~ ( t ) = O ( τ 3 ) , thus
f ′ [ θ u ( t ) + ( 1 − θ ) u ~ ( t ) ] = f ′ [ u ~ ( t ) + θ ( u ( t ) − u ~ ( t ) ) ] = f ′ ( u ~ ( t ) ) + O ( τ 3 ) . \mathbf{f}'[\theta\mathbf{u}(t)+(1-\theta)\tilde{\mathbf{u}}(t)]=\mathbf{f}'[\tilde{\mathbf{u}}(t)+\theta(\mathbf{u}(t)-\tilde{\mathbf{u}}(t))]=\mathbf{f}'(\tilde{\mathbf{u}}(t))+O(\tau^3). f ′ [ θ u ( t ) + ( 1 − θ ) u ~ ( t )] = f ′ [ u ~ ( t ) + θ ( u ( t ) − u ~ ( t ))] = f ′ ( u ~ ( t )) + O ( τ 3 ) .
Consequently, by emphasizing u ~ ( t n ) = u N ( t n ) \tilde{\mathbf{u}}(t_n)=\mathbf{u}_N(t_n) u ~ ( t n ) = u N ( t n ) in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] ,
∫ t n t n + 1 ∫ 0 1 f ′ [ θ u ( χ ) + ( 1 − θ ) u ~ ( χ ) ] d θ d χ = ∫ t n t n + 1 f ′ ( u ~ ( χ ) ) d χ + O ( τ 4 ) . \int_{t_n}^{t_{n+1}}\int_0^1\mathbf{f}'[\theta\mathbf{u}(\chi)+(1-\theta)\tilde{\mathbf{u}}(\chi)]d\theta\,d\chi=\int_{t_n}^{t_{n+1}}\mathbf{f}'(\tilde{\mathbf{u}}(\chi))d\chi+O(\tau^4). ∫ t n t n + 1 ∫ 0 1 f ′ [ θ u ( χ ) + ( 1 − θ ) u ~ ( χ )] d θ d χ = ∫ t n t n + 1 f ′ ( u ~ ( χ )) d χ + O ( τ 4 ) .
Now one can also do the expansion of f ′ ( u ~ ( χ ) ) \mathbf{f}'(\tilde{\mathbf{u}}(\chi)) f ′ ( u ~ ( χ )) at u N ( t n ) \mathbf{u}_N(t_n) u N ( t n ) , while omitting the evaluation point,
f ′ ( u ~ ( χ ) ) = f ′ + f ′ ′ f ′ ( χ − t n ) + 1 2 [ f ′ ′ ( f , f ) + f ′ ′ f ′ f ′ ] ( χ − t n ) 2 + O ( τ 3 ) . \mathbf{f}'(\tilde{\mathbf{u}}(\chi))=\mathbf{f}'+\mathbf{f}''\mathbf{f}'(\chi-t_n)+\frac{1}{2}[\mathbf{f}''(\mathbf{f},\mathbf{f})+\mathbf{f}''\mathbf{f}'\mathbf{f}'](\chi-t_n)^2+O(\tau^3). f ′ ( u ~ ( χ )) = f ′ + f ′′ f ′ ( χ − t n ) + 2 1 [ f ′′ ( f , f ) + f ′′ f ′ f ′ ] ( χ − t n ) 2 + O ( τ 3 ) .
After integrating χ ∈ [ t n , t n + 1 ] \chi\in[t_n,t_{n+1}] χ ∈ [ t n , t n + 1 ] and moving all O ( τ 4 ) O(\tau^4) O ( τ 4 ) terms to the LHS, we get
∫ t n t n + 1 f ′ ( u ~ ( χ ) ) d χ + O ( τ 4 ) = τ f ′ + τ 2 2 f ′ ′ f + τ 3 6 [ f ′ ′ ′ ( f , f ) + f ′ ′ f ′ ] . \int_{t_n}^{t_{n+1}}\mathbf{f}'(\tilde{\mathbf{u}}(\chi))d\chi+O(\tau^4)=\tau\mathbf{f}'+\frac{\tau^2}{2}\mathbf{f}''\mathbf{f}+\frac{\tau^3}{6}[\mathbf{f}'''(\mathbf{f},\mathbf{f})+\mathbf{f}''\mathbf{f}']. ∫ t n t n + 1 f ′ ( u ~ ( χ )) d χ + O ( τ 4 ) = τ f ′ + 2 τ 2 f ′′ f + 6 τ 3 [ f ′′′ ( f , f ) + f ′′ f ′ ] .
with all the terms of the RHS evaluated at u N ( t n ) \mathbf{u}_{N}(t_n) u N ( t n ) . Realizing that the entire RHS is a matrix, let’s temporally call the matrix by M M M . In this case we have the matrix exponential in (3.3.1) equals to e M + O ( τ 4 ) e^{M+O(\tau^{4})} e M + O ( τ 4 ) .
Here we use the Taylor expansion again on e M e^M e M . It is easy to see
e M = I + M + 1 2 M 2 + 1 6 M 3 + O ( τ 4 ) . e^M = I + M + \frac{1}{2}M^2 + \frac{1}{6}M^3 + O(\tau^4). e M = I + M + 2 1 M 2 + 6 1 M 3 + O ( τ 4 ) .
Let’s define
P n = I + M + 1 2 M 2 + 1 6 M 3 , P_n = I + M + \frac{1}{2}M^2 + \frac{1}{6}M^3, P n = I + M + 2 1 M 2 + 6 1 M 3 ,
then we can rewrite (3.3.1) as
u ( t n + 1 ) − u ~ ( t n + 1 ) = ( P n + O ( τ 4 ) ) [ u ( t n ) − u N ( t n ) ] . (33) \mathbf{u}(t_{n+1})-\widetilde{\mathbf{u}}(t_{n+1}) = \left(P_n + O(\tau^4)\right)\left[\mathbf{u}(t_n)-\mathbf{u}_N(t_n)\right]. \tag*{(33)} u ( t n + 1 ) − u ( t n + 1 ) = ( P n + O ( τ 4 ) ) [ u ( t n ) − u N ( t n ) ] . (33)
We call P n P_n P n the error propagation matrix of [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] , because now we have approximately
u ( t n + 1 ) − u ~ ( t n + 1 ) ≈ P n [ u ( t n ) − u N ( t n ) ] . \mathbf{u}(t_{n+1})-\widetilde{\mathbf{u}}(t_{n+1}) \approx P_n\left[\mathbf{u}(t_n)-\mathbf{u}_N(t_n)\right]. u ( t n + 1 ) − u ( t n + 1 ) ≈ P n [ u ( t n ) − u N ( t n ) ] .
Here we use the approximation in the sense of replacing e β τ + O ( τ 4 ) e^{\beta\tau+O(\tau^4)} e β τ + O ( τ 4 ) by e β τ e^{\beta\tau} e β τ for the error propagation rate. By doing so we can avoid a lot of the tediousness of doing rigorous inequalities. Since u ( t n ) − u N ( t n ) = O ( τ 3 ) \mathbf{u}(t_n)-\mathbf{u}_N(t_n)=O(\tau^3) u ( t n ) − u N ( t n ) = O ( τ 3 ) , we believe that the O ( τ 4 ) O(\tau^4) O ( τ 4 ) in (3.3.2) must be sufficiently small, at least for a short time of consecutive composition of error propagation matrix actions in the next section.
Estimating error propagation over a short time
By a short time, we mean one of a few different cases. This can be one period for a periodic solution, or a similar time interval. For nonlinear systems, it could happen that the contraction property will not show up unless a long enough time interval is allowed for an observer. A two level error propagation technique was given in [17 ] . In this section, we discuss how to estimate the error propagation and accumulation together within a short time consisting of several time steps. The long time error estimation is left to be discussed in the following section, to taken advantage of the attractions, such as the limit cycle of a VdP system.
If we use ξ n + 1 \xi_{n+1} ξ n + 1 as the local error for the time step, by Splitting 2, we have
u ( t n + 1 ) − u N ( t n + 1 ) = u ( t n + 1 ) − u ~ ( t n + 1 ) + u ~ ( t n + 1 ) − u N ( t n + 1 ) ≈ P n [ u ( t n ) − u N ( t n ) ] + ξ n + 1 . \begin{aligned}
\mathbf{u}(t_{n+1})-\mathbf{u}_N(t_{n+1}) &= \mathbf{u}(t_{n+1})-\widetilde{\mathbf{u}}(t_{n+1})+\widetilde{\mathbf{u}}(t_{n+1})-\mathbf{u}_N(t_{n+1}) \\
&\approx P_n\left[\mathbf{u}(t_n)-\mathbf{u}_N(t_n)\right]+\xi_{n+1}.
\end{aligned} u ( t n + 1 ) − u N ( t n + 1 ) = u ( t n + 1 ) − u ( t n + 1 ) + u ( t n + 1 ) − u N ( t n + 1 ) ≈ P n [ u ( t n ) − u N ( t n ) ] + ξ n + 1 .
Estimating Error Propagation over a Short Time
Denoting the global error by e n = u ( t n ) − u N ( t n ) e_n = \mathbf{u}(t_n) - \mathbf{u}_N(t_n) e n = u ( t n ) − u N ( t n ) , we can rewrite the error relation above briefly, that is
e n + 1 ≈ P n e n + ξ n + 1 . (34) e_{n+1} \approx P_n e_n + \xi_{n+1}. \tag*{(34)} e n + 1 ≈ P n e n + ξ n + 1 . (34)
Using this error relation repeatedly, we get
e n + 1 ≈ ξ n + 1 + P n ξ n + P n P n − 1 ξ n − 1 + ⋯ + P n ⋯ P 1 ξ 1 + P n ⋯ P 1 P 0 e 0 . (35) e_{n+1} \approx\xi_{n+1} + P_n \xi_n + P_n P_{n-1} \xi_{n-1} + \cdots+ P_n \cdots P_1 \xi_1 + P_n \cdots P_1 P_0 e_0. \tag*{(35)} e n + 1 ≈ ξ n + 1 + P n ξ n + P n P n − 1 ξ n − 1 + ⋯ + P n ⋯ P 1 ξ 1 + P n ⋯ P 1 P 0 e 0 . (35)
In this way, we get to optimize the error propagation by calculating how the global error is propagated step by step. The error propagation matrices P n P_n P n are easily computable. More importantly, while losing some rigorousness with the thrown away O ( τ 4 ) O(\tau^4) O ( τ 4 ) , we get to keep the multidimensional behavior of the error propagation matrix P n P_n P n .
For the local error ξ n + 1 \xi_{n+1} ξ n + 1 , we can compute its main part of O ( τ 4 ) O(\tau^4) O ( τ 4 ) while neglecting the remaining part of O ( τ 5 ) O(\tau^5) O ( τ 5 ) . For the global error, one can easily compute the products ∏ i = k n P i \prod_{i=k}^{n} P_i ∏ i = k n P i and observe that all these products for k = 0 , ⋯ , n k = 0, \cdots, n k = 0 , ⋯ , n are uniformly bounded. Then, from (3.4.2), it is obvious ∥ e n + 1 ∥ = O ( τ 3 ) \lVert e_{n+1} \rVert= O(\tau^3) ∥ e n + 1 ∥ = O ( τ 3 ) .
The numerical experiment
In Figure 3.1 , we present the results of our RK3 solution for the VdP system with μ = 3 \mu= 3 μ = 3 . Let specify the meaning of the six plots one by one.
We choose μ = 3 \mu= 3 μ = 3 because this makes the system significantly nonlinear, slightly stiff, merging into the limit cycle quickly in a plot, presenting the effectiveness of our error propagation matrix clearly, and helping us explaining the advantages of the numerical smoothness framework for error analysis explicitly. We will focus on this one numerical experiment in this lecture note. We will not touch an extremely stiff system (μ ≫ 1 \mu\gg1 μ ≫ 1 ), not touch another numerical scheme, which would increase the length of the chapter but not making a big difference for us in our effort of promoting the numerical smoothness paradigm.
Upper Left Plot: The upper left plot shows the two components of the numerical solution of x ( t ) x(t) x ( t ) and y ( t ) y(t) y ( t ) . One can see that the solution moves through the the two parts of the orbit where y ( t ) ≈ 0 y(t) \approx0 y ( t ) ≈ 0 with most of the time. In comparison, the solution moves quickly along the part of the orbit where y ( t ) y(t) y ( t ) is positive and away from 0 and along the part of the orbit where y ( t ) y(t) y ( t ) is negative and away from 0. Where y ( t ) > 0 y(t) > 0 y ( t ) > 0 , we see a positive sharp spike of y ( t ) y(t) y ( t ) and very fast growth of x ( t ) x(t) x ( t ) toward 2.0. Where y ( t ) < 0 y(t) < 0 y ( t ) < 0 , we see a negative sharp spike of y ( t ) y(t) y ( t ) and very fast decrease of x ( t ) x(t) x ( t ) toward − 2.0 -2.0 − 2.0 . All the spikes in the other plots also appear at the same time. These quick exponential variations are due to the nonlinear short time energization and dissipation of the VdP model. They are more severe with bigger μ \mu μ , but these spikes are not considered as a consequence of stiffness.
Estimating Error Propagation over a Short Time
Upper Right Plot: The upper right plot is the limit cycle revealed by the solution orbit when t t t is sufficiently large, and the initial part of the orbit before the solution merges into the limit cycle. When the initial point is set to be away from the limit cycle, the solution will move almost parallel to the limit cycle until it enters a region of the phase plane above or below the line y = 0 y = 0 y = 0 outside of x ∈ [ − 1 , 1 ] x \in[-1,1] x ∈ [ − 1 , 1 ] . From one of these regions, the solution will be captured by the strong attraction of the limit cycle or the outward extension of the limit cycle near y = 0 y = 0 y = 0 . One thing might be misleading for us, which is the smooth look of the orbit where y ( t ) y(t) y ( t ) is away from 0. In these two parts of the orbit, x ( t ) x(t) x ( t ) and y ( t ) y(t) y ( t ) are accelerating/decelerating very quickly and simultaneously. This is where adaptive error control actions are needed.
Middle Right Plot: The middle right plot is the local truncation error ξ n \xi_n ξ n , n = 0 , 1 , ⋯ n = 0,1,\cdots n = 0 , 1 , ⋯ . One can recognize the effect of the adaptive local error control. For each time step, the step size τ \tau τ is chosen so that the local error ξ n + 1 \xi_{n+1} ξ n + 1 computed by (3.2.2) is under 10 − 12 10^{-12} 1 0 − 12 . The 4th order derivatives in (3.2.2) are available to us from the smoothness indicator at each t n t_n t n . The plot shows that the local error stays much smaller than the error tolerance most of the time. Only the spikes of the local error need to be dealt with twice in a period of the limit cycle.
Middle Left Plot: This plot shows the global error e n e_n e n in all the time steps. The global error e n e_n e n for all n n n are computed by (3.4.2). The global error terms are showing fast growth and fast decay where y ( t ) y(t) y ( t ) is away from 0. In the parts of the orbit where y ( t ) ≈ 0 y(t) \approx0 y ( t ) ≈ 0 , the global error shows to be almost 0, because it is under lasting compression over there while u ( t ) u(t) u ( t ) is moving forward very slowly. However, the global error is surviving during the compression and its residual is actually bigger than the residual of the global error during the last compression a half of the limit cycle period ago. When the next energization comes, the residual of the global error grows exponentially to a higher peak from the bigger residual.
Lower Left Plot: This plot shows the component of the global error in the tangential direction of the orbit. At each t n t_n t n , we project e n e_n e n to the tangent direction of the orbit at u N ( t n ) \mathbf{u}_N(t_n) u N ( t n ) . The unit tangent vector of the orbit at t n t_n t n is [ f 1 , f 2 ] = 1 ∥ f ∥ f [f_1,f_2] = \frac{1}{\lVert\mathbf{f}\rVert}\mathbf{f} [ f 1 , f 2 ] = ∥ f ∥ 1 f evaluated at u N ( t n ) \mathbf{u}_N(t_n) u N ( t n ) . Then the tangential component of e n e_n e n is e n T = [ f 1 , f 2 ] ⋅ e n e_n^T = [f_1,f_2]\cdot e_n e n T = [ f 1 , f 2 ] ⋅ e n . This plot shows all the e n T e_n^T e n T as a curve. It is very interesting to see that the profile of the spikes of the tangential error curve lines up purely in a straight line. This matches the theoretical expectation that the error along the orbit has no self correction mechanism, and there is a simple accumulation over time, regardless of the local exponential growth and decay from the energizations and dissipations.
Lower Right Plot: This is the plot of the transverse component of the global error perpendicular to tangential component. At each t n t_n t n , it is computed by e n P = [ f 2 , − f 1 ] ⋅ e n e_n^P = [f_2,-f_1]\cdot e_n e n P = [ f 2 , − f 1 ] ⋅ e n . In the plot of the e n P e_n^P e n P curve, we can see that the profile of the spikes form a horizontal straight line. So there is no growth whatsoever. The accumulation of local error and the error compression in the transverse direction have reached a balance, keeping e n P e_n^P e n P staying below 10 − 10 10^{-10} 1 0 − 10 . In comparison, e n T e_n^T e n T is in the magnitude 10 − 8 10^{-8} 1 0 − 8 and linearly growing.
In addition to Figure 3.1 , we also computed the period T T T of the limit cycle, the matrix Q T Q^T Q T consisting of the consecutive product of the error propagation matrices over the last period [ 23 − T , 23 ] [23-T,23] [ 23 − T , 23 ] , and the eigenvalues { ν 1 , ν 2 } \{\nu_1,\nu_2\} { ν 1 , ν 2 } and eigenvectors of Q T Q^T Q T . The results show that
T ≈ 8.859095 , ν 2 ≈ 1 , ν 1 ≈ 10 − 16 . T \approx8.859095,\qquad\nu_2 \approx1,\qquad\nu_1 \approx10^{-16}. T ≈ 8.859095 , ν 2 ≈ 1 , ν 1 ≈ 1 0 − 16 .
The first eigenvalue ν 2 = 1 \nu_2=1 ν 2 = 1 means that, over a period T T T , the tangential error should be unchanged by the pure error propagation over one period. The second eigenvalue ν 1 ≈ 0 \nu_1 \approx0 ν 1 ≈ 0 tells us that the transverse error is compressed by the strong attraction of the limit cycle. Both of these results are consistent with the Lyapunov exponents in the Floquet theory: ν 1 = e λ 1 ≈ 0 \nu_1=e^{\lambda_1}\approx0 ν 1 = e λ 1 ≈ 0 and ν 2 = e λ 2 ≈ 1 \nu_2=e^{\lambda_2}\approx1 ν 2 = e λ 2 ≈ 1 . See the next section for a little more details about the Floquet theory.
Long term error propagation along the limit cycle
Most part of this section is a modified copy of a Gemini AI article on the topic. We obtained their permission to include the article in this lecture note.
To estimate the attraction rate (or contraction rate) of the Van der Pol limit cycle over a single period, we look to the Lyapunov exponents or, more specifically, the integrated divergence of the system’s vector field along the periodic orbit. By applying Floquet theory or calculating the time-averaged divergence, you can determine how quickly nearby trajectories converge to the limit cycle. Here is the analytical and numerical framework to estimate this rate.
The Governing System
The classic Van der Pol oscillator is governed by the second-order differential equation:
x ¨ − μ ( 1 − x 2 ) x ˙ + x = 0. \ddot{x}-\mu(1-x^2)\dot{x}+x=0. x ¨ − μ ( 1 − x 2 ) x ˙ + x = 0.
Rewriting this as a first-order system of autonomous differential equations by making x = x x=x x = x and y = x ˙ y=\dot{x} y = x ˙ :
x ˙ = y , y ˙ = μ ( 1 − x 2 ) y − x , \begin{aligned}
\dot{x} &= y,\\
\dot{y} &= \mu(1-x^2)y-x,
\end{aligned} x ˙ y ˙ = y , = μ ( 1 − x 2 ) y − x ,
where μ > 0 \mu> 0 μ > 0 is the nonlinearity parameter controlling the damping. If we make x = ( x , y ) T \mathbf{x}=(x,y)^T x = ( x , y ) T , we get the VdP system in the vector form
u ˙ = f ( u ) . \dot{\mathbf{u}}=\mathbf{f}(\mathbf{u}). u ˙ = f ( u ) .
The Theoretical Framework: Divergence and Phase Space Volume
The local contraction or expansion rate of a phase space volume element along a trajectory is given by the divergence of the vector field, ∇ ⋅ f \nabla\cdot\mathbf{f} ∇ ⋅ f . For the Van der Pol system, the Jacobian matrix J ( u ) J(\mathbf{u}) J ( u ) is:
J ( x , y ) = ( 0 1 − 2 μ x y − 1 μ ( 1 − x 2 ) ) J(x,y)=\begin{pmatrix}0 & 1 \\ -2\mu xy-1 & \mu(1-x^2)\end{pmatrix} J ( x , y ) = ( 0 − 2 μx y − 1 1 μ ( 1 − x 2 ) )
The trace of the Jacobian matrix yields the divergence:
Tr ( J ) = ∇ ⋅ f = μ ( 1 − x 2 ) \operatorname{Tr}(J)=\nabla\cdot\mathbf{f}=\mu(1-x^2) Tr ( J ) = ∇ ⋅ f = μ ( 1 − x 2 )
When ∣ x ∣ > 1 |x|>1 ∣ x ∣ > 1 , ∇ ⋅ f < 0 \nabla\cdot\mathbf{f}<0 ∇ ⋅ f < 0 (the flow is locally contracting/attracting).
When ∣ x ∣ < 1 |x|<1 ∣ x ∣ < 1 , ∇ ⋅ f > 0 \nabla\cdot\mathbf{f}>0 ∇ ⋅ f > 0 (the flow is locally expanding/repelling).
Estimating the Net Attraction Rate Over a Period (T T T )
Because a limit cycle is a closed isolated periodic orbit γ ( t ) \gamma(t) γ ( t ) with period T T T , a trajectory spending time in both the repelling and contracting regions must balance out to be net attractive overall in a period. According to Liouville’s formula, the growth or decay of an infinitesimal area element δ A ( t ) \delta A(t) δ A ( t ) transverse to the orbit over one full period is:
δ A ( T ) = δ A ( 0 ) exp ( ∫ 0 T ∇ ⋅ f ( γ ( t ) ) d t ) \delta A(T)=\delta A(0)\exp\left(\int_0^T \nabla\cdot\mathbf{f}(\gamma(t))\,\mathrm{d}t\right) δ A ( T ) = δ A ( 0 ) exp ( ∫ 0 T ∇ ⋅ f ( γ ( t )) d t )
Therefore, the average characteristic exponent (which corresponds to the non-zero Floquet exponent, λ 1 \lambda_1 λ 1 ) defines the net attraction rate:
λ 1 = 1 T ∫ 0 T μ ( 1 − x ( t ) 2 ) d t \lambda_1=\frac{1}{T}\int_0^T \mu(1-x(t)^2)\,\mathrm{d}t λ 1 = T 1 ∫ 0 T μ ( 1 − x ( t ) 2 ) d t
Since one Characteristic/Floquet exponent associated with the phase along the continuous limit cycle is always exactly λ 2 = 0 \lambda_2=0 λ 2 = 0 , λ 1 \lambda_1 λ 1 represents the transverse stability. For an attractive limit cycle, λ 1 \lambda_1 λ 1 must be negative.
Estimation Methods based on μ \mu μ
Case A: Weakly Nonlinear Regime (μ ≪ 1 \mu\ll1 μ ≪ 1 )
When μ \mu μ is very small, the limit cycle is nearly a circle of radius 2, described roughly by x ( t ) ≈ 2 cos ( t ) x(t) \approx2\cos(t) x ( t ) ≈ 2 cos ( t ) with period T ≈ 2 π T \approx2\pi T ≈ 2 π . Substituting this approximation into the attraction rate integral:
λ 1 ≈ 1 2 π ∫ 0 2 π μ ( 1 − 4 cos 2 ( t ) ) d t \lambda_1 \approx\frac{1}{2\pi}\int_{0}^{2\pi}\mu\left(1-4\cos^2(t)\right)\,\mathrm{d}t λ 1 ≈ 2 π 1 ∫ 0 2 π μ ( 1 − 4 cos 2 ( t ) ) d t
Using the identity cos 2 ( t ) = 1 + cos ( 2 t ) 2 \cos^2(t)=\frac{1+\cos(2t)}{2} cos 2 ( t ) = 2 1 + c o s ( 2 t ) :
λ 1 ≈ μ 2 π ∫ 0 2 π ( 1 − 2 − 2 cos ( 2 t ) ) d t = μ 2 π [ − t ] 0 2 π = − μ \lambda_1 \approx\frac{\mu}{2\pi}\int_{0}^{2\pi}\left(1-2-2\cos(2t)\right)\,\mathrm{d}t=\frac{\mu}{2\pi}\left[-t\right]_{0}^{2\pi}=-\mu λ 1 ≈ 2 π μ ∫ 0 2 π ( 1 − 2 − 2 cos ( 2 t ) ) d t = 2 π μ [ − t ] 0 2 π = − μ
Case B: Strongly Nonlinear / Relaxation Regime
When μ \mu μ is large, the system becomes a relaxation oscillator. The trajectory spends most of its period T T T creeping slowly along the attracting branches of the cubic slow manifold (y ≈ x 3 3 − x y \approx\frac{x^3}{3}-x y ≈ 3 x 3 − x in Liénard coordinates), where ∣ x ∣ > 1 |x|>1 ∣ x ∣ > 1 . The rapid horizontal ”jumps” between branches take negligible time. In this regime, the period scales as:
T ≈ ( 3 − 2 ln 2 ) μ ≈ 1.614 μ T \approx(3-2\ln2)\mu\approx1.614\mu T ≈ ( 3 − 2 ln 2 ) μ ≈ 1.614 μ
Because the trajectory spends almost the entire period bound tightly to the slow manifold where x x x transitions from 2 down to 1, the integrated divergence over these slow segments dominates. Asymptotically, the time-averaged attraction rate scales directly with the geometry of this manifold, yielding a highly stable, strongly attracting rate where λ 1 ∼ − O ( μ 2 ) \lambda_1 \sim-O(\mu^2) λ 1 ∼ − O ( μ 2 ) during the slow phases, balancing out to a net average exponent that scales as − O ( 1 ) -O(1) − O ( 1 ) or structural fractions of μ \mu μ depending on the specific coordinate scaling chosen (e.g., Liénard vs. classic physical coordinates).
Numerical Estimation Pipeline
If you are working with an arbitrary μ \mu μ , you can compute the attraction rate accurately in Python using these steps:
Find the Limit Cycle: Integrate the system forward long enough for transient behaviors to die out until it settles onto γ ( t ) \gamma(t) γ ( t ) .
Determine Period T T T : Use root-finding or event detection (e.g., SciPy’s solve-ivp with an event looking for directional zero-crossings of x x x ) to find the exact period T T T .
Evaluate the Integral: Concurrently integrate the system state and the variational divergence equation:
z ˙ = μ ( 1 − x 2 ) \dot{z} = \mu(1-x^2) z ˙ = μ ( 1 − x 2 )
The value z ( T ) / T z(T)/T z ( T ) / T at the end of one cycle yields your exact attraction rate λ 1 \lambda_1 λ 1 .
The Gemini article ended here. Instead of the λ 1 = z ( T ) / T \lambda_1 = z(T)/T λ 1 = z ( T ) / T , we actually need e λ 1 T e^{\lambda_1 T} e λ 1 T , which is the attraction rate of the limit cycle over a period T T T . Alternatively, we can also compute Q T = P m − 1 P m − 2 ⋯ P 1 P 0 Q_T = P_{m-1}P_{m-2}\cdots P_1P_0 Q T = P m − 1 P m − 2 ⋯ P 1 P 0 , where each one of the error propagation matrices, P j P_j P j , comes from the numerical solution of the VdP for exactly one step, Q T Q_T Q T is the product of them over a period T T T with an initial point almost on the limit cycle. We can understand the matrix Q T Q_T Q T as an error propagation matrix of limit cycle, except it depends on the choice of the initial/ending point. However, the eigenvalues of the matrix should be an invariant of the limit cycle. Our computation shows, indeed as expected, one eigenvalue of Q T Q_T Q T is 1, corresponding to the error in the tangential direction of the orbit. Meanwhile, the other eigenvalue of Q T Q_T Q T is positive but extremely close to 0, something like 10 − 15 10^{-15} 1 0 − 15 , which is consistent to the e λ 1 T e^{\lambda_1 T} e λ 1 T . For example, when μ \mu μ is moderately large, like μ = 3 \mu= 3 μ = 3 , we numerically computed T ≈ 8.859095 T \approx8.859095 T ≈ 8.859095 , λ 1 ≈ − 3.94 \lambda_1 \approx-3.94 λ 1 ≈ − 3.94 , making e λ 1 T ≈ e − 34.9 ≈ 6.94 ∗ 10 − 16 e^{\lambda_1 T} \approx e^{-34.9} \approx6.94 \ast10^{-16} e λ 1 T ≈ e − 34.9 ≈ 6.94 ∗ 1 0 − 16 . This is to say that the limit cycle possesses an extremely strong error contraction ability in its transverse direction. Finally, as the error contraction factor of the limit cycle, to be safe, we define
Θ = e λ 1 T . \Theta= e^{\lambda_1 T}. Θ = e λ 1 T .
If we solve the VdP in a time interval [ 0 , S ] [0,S] [ 0 , S ] and we really want to see the error between u ( S ) \mathbf{u}(S) u ( S ) and u N ( S ) \mathbf{u}_N(S) u N ( S ) , then we have to use the estimated error given by (3.4.2) and keep in mind that the entire { e n } \{e_n\} { e n } is basically the error along the orbit, while the transverse component of the error is pretty much negligible.
If we continue the numerical solution past the time interval [ 0 , S ] [0,S] [ 0 , S ] , it is easy to see that the numerical solution will continue to follow the limit cycle within a fixed average distance from the limit cycle. However, the numerical solution’s phase position in the limit cycle can shift. The shift could be forward or backward depending on the numerical scheme and its local error’s tendency. If the phase position is important, one may need to study of the local error in more detail and make some corrections accordingly.
Case study conclusions
We did this case study to display the advantages of the numerical smoothness framework for error estimation.
The error propagation analysis in the framework is on a pair of two ODE solutions, which are close to each other with an distance proportional to the global error. In the case of VdP, we chose to employ the error propagation matrix, which is made possible by the numerical smoothness framework. we see how much information we are able to collect from the error propagation matrices.
For this nonlinear VdP system, if we were to use a Lipschitz condition or the Gronwall Lemma in the error propagation (stability) analysis as in Splitting 1, our error estimate would have been bigger than the diameter of the limit cycle before t = 1 t = 1 t = 1 , if we used a reasonable time step size.
Another point about the error propagation matrix is that this is the first time the author came up with the idea of using the technique learned from the Floquet theory. It might have been used in the literature of numerical ODEs, but the author of this lecture note hasn’t seen others doing so. It seems to be hard to use this idea for numerical error propagation (error propagation of schemes). Meanwhile, it should be very natural to use the technique to other ODE systems. It is amazing to be able to preserve so abundant information about the global error. Further research along the route can be expected.
In Splitting 1, the ODE’s high order derivative u ( k ) ( t n ) u^{(k)}(t_n) u ( k ) ( t n ) is not computable except for at t n = t 0 t_n = t_0 t n = t 0 , thus the local error is not computable. The numerically propagated error is also not computable. In the case study of VdP, we see that, thanks to Splitting 2, we can compute both. The local error ξ n + 1 \xi_{n+1} ξ n + 1 can be computed by (3.2.2). The propagated error can be computed by (3.4.2).
Further reading and future research
Further reading on existing results
The author Tong Sun of this lecture note has written several papers on the topic of numerical smoothness.
Two of the papers are on ODEs. Two are on the necessity of numerical smoothness. Three are on hyperbolic conservation laws. The other two are on parabolic PDEs.
ODE results
Back in 1998, R. Ewing and T.Sun wrote the first paper on ODE [17 ] , where they focused on the error propagation of the differential equation. At that time, the authors had not realized the difference between numerical solution’s stability and smoothness, hence they defined an indicator which is exactly what we have today as the temporal smoothness indicator but they named it stability indicator. 10 years later, after writing two papers on numerical parabolic equations and their error analysis , Tong Sun finally realized that, under the error Splitting 2, the high order derivatives computed for u ~ N ( t ) \widetilde{u}_N(t) u N ( t ) at each t n t_n t n is in fact delivering the information on the smoothness of the numerical solution, not information on their stability. With this new understanding, it became clear that u N ( t n ) u_N(t_n) u N ( t n ) should be smooth in some sense, and u N ( t n ) u_N(t_n) u N ( t n ) should have been made smooth by the numerical scheme. All of these together motivated the second ODE paper [14 ] by T. Sun, in which the traditional stability condition on Runge-Kutta methods and the stability region were modified to get the numerical smoothing condition on Runge-Kutta methods.
Necessity results
The papers [15 ] [2, 3] on the necessity of numerical smoothness have been covered in § 6.6 . So we focus on the papers on PDEs now.
Error splitting for PDEs
An important difference between Splitting 1 and Splitting 2 for PDEs is the different ways of using semi-discrete solutions. The plot below is how to do the error splitting in [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] in the numerical smoothness framework (Splitting 2) for evolution equations. In the splitting, u ( t n ) u(t_n) u ( t n ) is the value of the exact solution u ( t ) u(t) u ( t ) at t n t_n t n , u n c u_n^c u n c is the value of the computed numerical solution at t n t_n t n , u ( t n + 1 ) u(t_{n+1}) u ( t n + 1 ) is the value of the exact solution at t n + 1 t_{n+1} t n + 1 , u n + 1 c u_{n+1}^c u n + 1 c is the value of the computed numerical solution at t n + 1 t_{n+1} t n + 1 . The global error u ( t n + 1 ) − u n + 1 c u(t_{n+1})-u_{n+1}^c u ( t n + 1 ) − u n + 1 c at t n + 1 t_{n+1} t n + 1 is split into three parts by inserting u ~ ( t n + 1 ) \widetilde{u}(t_{n+1}) u ( t n + 1 ) and u h ( t n + 1 ) u^h(t_{n+1}) u h ( t n + 1 ) , where u ~ ( t ) \widetilde{u}(t) u ( t ) is the solution of the original evolution equation in the time domain [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] with initial condition u ~ ( t n ) = u n c \widetilde{u}(t_n)=u_n^c u ( t n ) = u n c , and u h ( t ) u^h(t) u h ( t ) is the semi-discrete solution in the time domain [ t n , t n + 1 ] [t_n,t_{n+1}] [ t n , t n + 1 ] with initial condition u h ( t n ) = u n c u^h(t_n)=u_n^c u h ( t n ) = u n c .
Figure 1 (PDF p. 54).
In this three part splitting, u ( t n + 1 ) − u ~ ( t n + 1 ) u(t_{n+1})-\widetilde{u}(t_{n+1}) u ( t n + 1 ) − u ( t n + 1 ) is the propagation is the global error u ( t n ) − u n c u(t_n)-u_n^c u ( t n ) − u n c in the time step by the solutions of the evolution equation. u ~ ( t n + 1 ) − u h ( t n + 1 ) \widetilde{u}(t_{n+1})-u^h(t_{n+1}) u ( t n + 1 ) − u h ( t n + 1 ) is the local spatial discretization error, u h ( t n + 1 ) − u n + 1 c u^h(t_{n+1})-u_{n+1}^c u h ( t n + 1 ) − u n + 1 c is the local temporal discretization error. One can see from the papers by Tong Sun and his collaborators how such a three part splitting can help the error analysis to optimize both error propagation estimates and local error estimates.
Parabolic PDE results
The two papers on parabolic equations are [16 ] on partially implicit schemes and [18 ] on semi-linear problems. [16 ] focuses the numerical smoothness issue when the scheme is not fully implicit (like backward Euler) but partially implicit. The smoothness indicator provides a reliable criterion at the run time to inform the user if local error is well under control. [18 ] focuses on the nonlinearity of the reaction terms in the equation. Taking advantage of the fact that the nonlinear reaction terms only acts on the low frequency components, we know that the numerical smoothness is expected to be valid. So there should be no trouble with local error. One want to focus on the error propagation. In the case of semi-discrete parabolic equations of [18 ] , one get to use the one-sided Lipschitz condition to estimate short term error propagation and use the new concept of moving indicators defined in [18 ] to do long term error propagation. Most importantly, the spatial smoothness indicator as in [15 ] had not been found at that time ( 2006). What served the role of a spatial smoothness indicator was the elliptic reconstruction.
1-D scalar conservation law results
The major progress of the numerical smoothness framework on the PDEs was made in the nonlinear scalar conservation lows. T. Sun and his PhD students wrote three papers on discontinuous Galerkin finite element method [20 , 19 ] and WENO finite volume method [21 ] . In addition to the cases of smooth solutions, T. Sun and Adamou Fode wrote a paper in the case of a shock wave with discontinuous Galerkin finite elements coupled with Raikine-Hugoniot front-tracking [19 ] . For all these numerical hyperbolic PDE solutions, the major new issue is how to use the smoothness of the piecewise polynomial numerical solution hiding behind the derivative jumps. A set of auxiliary functions and various kinds of solutions were used to make the numerical smoothness work for local error estimates. The details are very tedious, but it is guaranteed to work because all the details involve only local analysis. After successfully overcoming all these difficulties, the good news is that the error propagation gets to be done by the L 1 L_1 L 1 -contraction property of the scalar conservation law for a pair of entropy solutions.
Since the numerical smoothness concept is new and only Tong Sun and his colleagues and students have been working on this, the available results are limited to those mention above.
Future research
As we have summarized, the research on the topic of numerical smoothness is extremely limited. Comparing to all the a priori error estimates along the error analysis framework of numerical stability (Splitting 1), it is extremely unbalanced and strange to see that the numerical smoothness framework (Splitting 2) is basically left untouched for the past dozens of years. All the advantages of Splitting 2 have been blocked from people’s attention by the “nonexistence” of the smoothness of u ~ ( t ) \tilde{u}(t) u ~ ( t ) and the dominating belief of Lax Equivalence Theorem.
When people talk about future work in a research area, they usually make a list of a few things they have in mind. In our case here, we have a list of things done in the framework of numerical smoothness in the last section. Having mentioned that, the rest of the numerical solutions of evolution equations can be studied for their error estimation in the numerical smoothness framework. A few examples of open topics are listed below.
For ODEs, one topic worth to be studied is the error propagation matrix which was introduced in § 8.1 and § 8.3 for the case study of the Van der Pol equation. This kind of error propagation matrix might work for systems of ODEs in general.
For parabolic equations, the spatial smoothness indicators based on the derivative jumps has bot been successfully used to parabolic equations. This may involve some form of discrete Green’s functions to build bridges between u ~ ( t ) \tilde{u}(t) u ~ ( t ) and u h ( t ) u^h(t) u h ( t ) in local spatial error estimation. Todd Romutis has done some research on this in his PhD dissertation in 2018, which is available in OhioLink. The work is limited to 1-D linear parabolic equations.
For first order hyperbolic problems, research has only been done for 1-D scalar equations. 2-D scalar equations and hyperbolic systems are still to be studied. Second order hyperbolic problems still need to be studied.
The programming of 2D code to implement front tracking of shocks, contact discontinuities and rarefaction waves are considered as hard to do. Now, one can do programming with AI. It takes researchers to work interactively with LLM to describe what are to be implemented for the specific scheme.
Bibliography