<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, Pushing dsolve to its limits</title>
    <link>http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 05:11:26 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 05:11:26 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, Pushing dsolve to its limits</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, Pushing dsolve to its limits</title>
      <link>http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits</link>
    </image>
    <item>
      <title>animated gif of the simulations</title>
      <link>http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits?ref=Feed:MaplePrimes:Pushing dsolve to its limits:Comments#comment124916</link>
      <itunes:summary>&lt;p&gt;&lt;img src="http://patrick.toche.free.fr/stuff/animation.gif" alt="animated gif" width="512" height="512"&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The animated gif of my simulations is too large to be hosted with mapleprimes, so I uploaded it elsewhere and placed a link to it above. The preview is pretty bad, I don't know if this is caused by my browser or what. What you can see is a sharp change in the slope of q (relative to u as well as relative to time t). The red line and some of the lines right next to it are simulations that didn't converge. Any suggestions welcome! Thanks.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Pushing dsolve to its limits</description>
      <guid>124916</guid>
      <pubDate>Sat, 20 Aug 2011 03:42:53 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
    <item>
      <title>Warnings</title>
      <link>http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits?ref=Feed:MaplePrimes:Pushing dsolve to its limits:Comments#comment124919</link>
      <itunes:summary>&lt;p&gt;Are you satisfied that all the Warnings issued in your worksheet from dsolve/numeric are acceptable and may be safely ignored?&lt;/p&gt;
&lt;p&gt;The halting on events might be less suspicious (you did specify halting events, after all).&lt;/p&gt;
&lt;p&gt;But what about the warnings about stopping prematurely on account of the maxfun limit being hit?&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Pushing dsolve to its limits</description>
      <guid>124919</guid>
      <pubDate>Sat, 20 Aug 2011 07:40:54 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
    <item>
      <title>warnings</title>
      <link>http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits?ref=Feed:MaplePrimes:Pushing dsolve to its limits:Comments#comment124925</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits#comment124919"&gt;@pagan&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks pagan for your feedback. I should have said something about the warnings.&lt;/p&gt;
&lt;p&gt;Do you have any suggestions in this respect?&lt;/p&gt;
&lt;p&gt;The warnings related to the "events" are exactly what I expect. I set them up to prevent Maple from integrating beyond the region of interest.&lt;/p&gt;
&lt;p&gt;The non-converging trajectories (red and red-ish colours) have a different kind of warning.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If I comment out the relerr, abserr, initstep, maxstep and use rkf45 or rosenbrock, for a quick and dirty simulation, I get something like:&lt;br&gt;&lt;br&gt;Warning, cannot evaluate the solution further left of -14.780539, probably a singularity&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;li&gt;If I set relerr, abserr, initstep, maxstep to attemp a finer simulation, with initial points closer to the stationary points, then I sometimes get a complaint about maxfun being exceeded. Then if I raise maxfun, this message is usually eliminated, but instead I get the warning about "probably a singularity"&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The maxfun warning can be eliminated by setting maxfun well in excess of the default value, but this doesn't help dsolve converge, in my experience.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Pushing dsolve to its limits</description>
      <guid>124925</guid>
      <pubDate>Sat, 20 Aug 2011 13:28:01 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
    <item>
      <title>dealing with the stiffness</title>
      <link>http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits?ref=Feed:MaplePrimes:Pushing dsolve to its limits:Comments#comment124995</link>
      <itunes:summary>&lt;p&gt;I have two problems really, the first problem is to find out whether the non-converging trajectories result from the true dynamics of the system (I have a local existence result, but no global existence, so maybe after all the divergence is what actually happens), and --- assuming that the divergence is caused by the lack of accuracy of the simulations (most likely my inability to use dsolve, digits, and all that) --- the second problem is to get those tricky trajectories to converge.&lt;/p&gt;
&lt;p&gt;To investigate the behaviour near the points, I simulated a bunch of trajectories (500 to be exact) in the neighborhood of the points of interest.&lt;/p&gt;
&lt;p&gt;This is what I get near a point in the blue region, where simulations converge:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://patrick.toche.free.fr/stuff/cluster2.gif" alt="animated gif"&gt;&lt;/p&gt;
&lt;p&gt;This is what I get near a point in the red region, where simulations diverge:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://patrick.toche.free.fr/stuff/cluster1.gif" alt="animated gif"&gt;&lt;/p&gt;
&lt;p&gt;Out of 500 initial conditions in a neighborhood of this "stiff" point, only a small number converged (or appear to have done).&amp;nbsp; I used the default dsolve method (rkf45) and default values for relerr, abserr, etc..&lt;/p&gt;
&lt;p&gt;Perhaps I need a scheme to identify such initial conditions and take it from there. I'm still thinking... Suggestions always welcome.&lt;/p&gt;
&lt;p&gt;EDIT. I should add that in both cases trajectories from "below" converge well, it is trajectories from "above" that cause problems. These are the trajectories characterized by a sharp change in direction very near the stationary points. The sharp change in direction occurs closer to the stationary point, the deeper you go into the "red-colored" region, and that is precisely the region where dsolve doesn't get convergence. You can see this from the picture I posted earlier (http://www.mapleprimes.com/view.aspx?sf=124914/419404/urq50a.jpg).&lt;/p&gt;
&lt;p&gt;EDIT 2. Further analysis of the system revealed a condition on the parameters necessary for stability. I discuss it in a comment below.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Pushing dsolve to its limits</description>
      <guid>124995</guid>
      <pubDate>Mon, 22 Aug 2011 13:08:00 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
    <item>
      <title>Message to mapleprimes administrators</title>
      <link>http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits?ref=Feed:MaplePrimes:Pushing dsolve to its limits:Comments#comment124996</link>
      <itunes:summary>&lt;p&gt;I was unable to upload the animated gifs posted above (they were too large) and therefore hosted them on an outside website. Do feel free to make local copies of the images and direct my links to the local copies, so that the images will be accessible even if my website is down. Thanks.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Pushing dsolve to its limits</description>
      <guid>124996</guid>
      <pubDate>Mon, 22 Aug 2011 13:18:52 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
    <item>
      <title>The diverging trajectories do diverge</title>
      <link>http://www.mapleprimes.com/posts/124914-Pushing-Dsolve-To-Its-Limits?ref=Feed:MaplePrimes:Pushing dsolve to its limits:Comments#comment125075</link>
      <itunes:summary>&lt;p&gt;Further analysis of the system revealed a condition on the parameters necessary for stability. Roughly speaking, this condition arises when one "plugs in" the center manifold reduction back into the original system. I hadn't seen it. All this is very new to me (and quite frankly I don't even know if I'm doing it correctly). Once this condition is imposed, all the simulated trajectories converge (i.e. the red-colored steady states are outside the stable range). I have thus resolved the problem I had with the simulations --- they did not converge because they do not converge.&lt;/p&gt;
&lt;p&gt;There remains the issue of the sharp turn that q(t) makes as it approaches the steady state. (as seen here http://www.mapleprimes.com/view.aspx?sf=124914/419404/q10a.jpg). Is this "kink" a non-removable singularity or a manifestation of the slow-fast nature of the system?&lt;/p&gt;
&lt;p&gt;This "kink" is present on one side of the steady-state points only. The bit of the trajectory where q(t) declines towards its steady-state value, (following a long flat segment) is, visually speaking, in "close" agreement with the center manifold approximation, as would be expected if my analysis is correct.The sharp turn from flat to downward-sloping takes very little time, this would be a manifestation of the "fast" in slow-fast...&lt;/p&gt;
&lt;p&gt;(I've read a few introductions to slow-fast systems, but I can't say that I understand it well at all)&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Pushing dsolve to its limits</description>
      <guid>125075</guid>
      <pubDate>Wed, 24 Aug 2011 00:18:21 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
  </channel>
</rss>