- #1
psie
- 265
- 32
- TL;DR Summary
- I'm trying to estimate the error between an approximate and an exact solution, but I get a very poor estimate.
I'm reading Ordinary Differential Equations by Andersson and Böiers. They give an estimate for how the difference between an exact and an approximate solution propagates with time. Then they give an example where they encourage the reader to check that this estimate holds. When I do that, I get a very bad estimate and I wonder if I'm doing something wrong. I will first state a definition of what it means to be an approximate solution and then state the theorem that gives the estimate.
If ##\pmb{x}## is differentiable, then choosing ##t'=t## and ##t''=t+h## and taking limits as ##h\to0##, ##(1)## reads $$|\pmb{x}'(t)-\pmb{f}(t,\pmb{x}(t))|\leq\varepsilon\quad\text{when }t\in I.\tag2$$
The following theorem gives an estimate of how the difference between exact and approximate solutions propagates with ##t##. I state it without proof:
Note that the first term on the right-hand side of ##(4)## vanishes if both ##\pmb{\tilde{x}}## and ##\pmb x## are equal at ##t_0##. Now consider the following example:
In the example, we have that ##\tilde{x}(0)=x(0)=10^{-6}##, ##\varepsilon=3\cdot10^{-4}## and ##L=200##, so ##(4)## reads, for ##t=1##, $$|\tilde{x}(1)-x(1)|\leq\frac{3\cdot10^{-4}}{200}e^{200|1-0|}\approx 10^{81},\tag7$$ which is huge number compared to ##\tilde{x}(1)-x(1)\approx1.03##. Can this be correct?
Definition 1. Let ##I## be an interval on the real axis, and ##\Omega## an open set in ##\mathbf R\times\mathbf{R}^n##. Assume that the function ##\pmb{f}:\Omega\to\mathbf{R}^n## is continuous. A continuous function ##\pmb{x}(t),\ t\in I##, is called an ##\varepsilon##-approximate solution of the system ##\pmb{x}'=\pmb{f}(t,\pmb{x})## if ##(t,\pmb{x})\in\Omega## when ##t\in I## and $$\left|\pmb{x}(t'')-\pmb{x}(t')-\int_{t'}^{t''} \pmb{f}(s,\pmb{x}(s))ds\right|\leq \varepsilon|t''-t'|\quad \text{when } t',t''\in I.\tag1$$
If ##\pmb{x}## is differentiable, then choosing ##t'=t## and ##t''=t+h## and taking limits as ##h\to0##, ##(1)## reads $$|\pmb{x}'(t)-\pmb{f}(t,\pmb{x}(t))|\leq\varepsilon\quad\text{when }t\in I.\tag2$$
The following theorem gives an estimate of how the difference between exact and approximate solutions propagates with ##t##. I state it without proof:
Theorem 1. Assume that ##\pmb{f}(t,\pmb{x})## is continuous in ##\Omega\subseteq \mathbf{R}\times\mathbf{R}^n## and satisfies the Lipschitz condition $$|\pmb{f}(t,\pmb{x})-\pmb{f}(t,\pmb{y})|\leq L|\pmb{x}-\pmb{y}|, \quad (t,\pmb{x}),(t,\pmb{y})\in\Omega.\tag3$$ Let ##\pmb{\tilde{x}}(t)## be an ##\varepsilon##-approximate and ##\pmb{x}(t)## and exact solution of ##\pmb{x}'=\pmb{f}(t,\pmb{x})## in ##\Omega## when ##t\in I##. For an arbitrary point ##t_0## in ##I## we then have $$|\pmb{\tilde{x}}(t)-\pmb{x}|\leq |\pmb{\tilde{x}}(t_0)-\pmb{x}(t_0)|e^{L|t-t_0|}+\frac{\varepsilon}{L}(e^{L|t-t_0|}-1),\quad t\in I.\tag4$$
Note that the first term on the right-hand side of ##(4)## vanishes if both ##\pmb{\tilde{x}}## and ##\pmb x## are equal at ##t_0##. Now consider the following example:
Example 1. (##n=1##) Consider the differential equation ##x'=3x^{2/3}##. The function ##\tilde{x}(t)\equiv 10^{-6}## is an ##\varepsilon##-approximate solution for ##\varepsilon=3\cdot10^{-4}## by ##(2)##, since $$|\tilde{x}'(t)-3\tilde{x}(t)^{2/3}|=3\left(10^{-6}\right)^{2/3}=3\cdot10^{-4}.\tag5$$ The exact solution of the initial value problem ##x'=3x^{2/3},\ x(0)=10^{-6}## is ##x(t)=\left(t+\frac{1}{100}\right)^3##. For ##t=1## we have $$x(1)\approx1.03,\quad \tilde{x}(1)=10^{-6}.\tag6$$
Remark. Check that ##(4)## is in agreement with example ##1##. Note that ##L## there is a large number, of magnitude ##200##.
In the example, we have that ##\tilde{x}(0)=x(0)=10^{-6}##, ##\varepsilon=3\cdot10^{-4}## and ##L=200##, so ##(4)## reads, for ##t=1##, $$|\tilde{x}(1)-x(1)|\leq\frac{3\cdot10^{-4}}{200}e^{200|1-0|}\approx 10^{81},\tag7$$ which is huge number compared to ##\tilde{x}(1)-x(1)\approx1.03##. Can this be correct?