<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, error in solving two coupled ode equations</title>
    <link>http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations</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 14:10:38 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 14:10:38 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, error in solving two coupled ode equations</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, error in solving two coupled ode equations</title>
      <link>http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations</link>
    </image>
    <item>
      <title>Parameter option for initial value problem</title>
      <link>http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations?ref=Feed:MaplePrimes:error in solving two coupled ode equations:Comments#answer141137</link>
      <itunes:summary>&lt;p&gt;It is sometimes easier to solve this by turning it into an initial value problem and by using the parameters option in dsolve. I have often suggested this for systems looking very similar to the one you have.&lt;br&gt;But here it is:&lt;/p&gt;
&lt;p&gt;sol:=dsolve({ode1,ode2,D(f)(0) = 0, f(0) = 0, (D@D)(f)(0) = f2, g(0) = 1, D(g)(0) = g1},&lt;br&gt;numeric,parameters=[g1,f2],output=listprocedure);&lt;br&gt;F1,G:=op(subs(sol,[diff(f(x),x),g(x)]));&lt;br&gt;p1:=proc(g1,f2) sol(parameters=[g1,f2]); F1(6) end proc;&lt;br&gt;p2:=proc(g1,f2) sol(parameters=[g1,f2]); G(6) end proc;&lt;br&gt;p1(0.4,1);&lt;br&gt;p2(0.4,1);&lt;br&gt;fsolve([p1,p2],[0.4,1]);&lt;br&gt;sol(parameters=%);&lt;br&gt;plots:-odeplot(sol, [[x,diff(f(x),x)],[x, g(x)]], 0 .. 6, color = [blue,black]);&lt;br&gt;#Check:&lt;br&gt;F1(6);&lt;br&gt;G(6);&lt;br&gt;#And now that we have a solution we could use that as an 'approximate sloution':&lt;br&gt;dsn := dsolve(sys, numeric,approxsoln=sol);&lt;br&gt;plots:-odeplot(dsn, [[x,diff(f(x),x)],[x, g(x)]], 0 .. 6, color = [blue,black]);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It is sometimes easier to solve this by turning it into an initial value problem and by using the parameters option in dsolve. I have often suggested this for systems looking very similar to the one you have.&lt;br&gt;But here it is:&lt;/p&gt;
&lt;p&gt;sol:=dsolve({ode1,ode2,D(f)(0) = 0, f(0) = 0, (D@D)(f)(0) = f2, g(0) = 1, D(g)(0) = g1},&lt;br&gt;numeric,parameters=[g1,f2],output=listprocedure);&lt;br&gt;F1,G:=op(subs(sol,[diff(f(x),x),g(x)]));&lt;br&gt;p1:=proc(g1,f2) sol(parameters=[g1,f2]); F1(6) end proc;&lt;br&gt;p2:=proc(g1,f2) sol(parameters=[g1,f2]); G(6) end proc;&lt;br&gt;p1(0.4,1);&lt;br&gt;p2(0.4,1);&lt;br&gt;fsolve([p1,p2],[0.4,1]);&lt;br&gt;sol(parameters=%);&lt;br&gt;plots:-odeplot(sol, [[x,diff(f(x),x)],[x, g(x)]], 0 .. 6, color = [blue,black]);&lt;br&gt;#Check:&lt;br&gt;F1(6);&lt;br&gt;G(6);&lt;br&gt;#And now that we have a solution we could use that as an 'approximate sloution':&lt;br&gt;dsn := dsolve(sys, numeric,approxsoln=sol);&lt;br&gt;plots:-odeplot(dsn, [[x,diff(f(x),x)],[x, g(x)]], 0 .. 6, color = [blue,black]);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>141137</guid>
      <pubDate>Wed, 05 Dec 2012 20:57:03 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Try option 'continuation' for BVPs with Newton convergence issues</title>
      <link>http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations?ref=Feed:MaplePrimes:error in solving two coupled ode equations:Comments#answer141159</link>
      <itunes:summary>&lt;p&gt;There is a way to solve this without resorting to commands outside of &lt;strong&gt;dsolve&lt;/strong&gt;. The help page &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=dsolve,numeric_bvp,advanced' target='_new'&gt;?dsolve,numeric_bvp,advanced&lt;/a&gt; gives advice on how to apply &lt;strong&gt;dsolve&lt;/strong&gt;'s options to resolve some error messages given by `dsolve/numeric/bvp`. For messages related to Newton iteration convergence, it suggests the '&lt;strong&gt;continuation&lt;/strong&gt;' option, which is defined on help page &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=dsolve,numeric,bvp' target='_new'&gt;?dsolve,numeric,bvp&lt;/a&gt; (with two examples of its use given on the former help page).&lt;/p&gt;
&lt;p&gt;To use the method, one introduces a parameter&amp;nbsp;&amp;lambda; into the problem such that&amp;nbsp;&amp;lambda; can vary continuously from 0 to 1, with &amp;lambda;=0 yielding a relatively easier BVP and &amp;lambda;=1 giving the desired BVP. The parameter can appear anywhere in the problem: in the ODEs, or the boundary conditions, or both. There is some subtlety required in deciding where and how to place &amp;lambda;. I tried this two ways with the problem at hand, and they both worked.&lt;/p&gt;
&lt;p&gt;My first idea was to have &amp;lambda;=0 eliminate the convolution of &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) and &lt;em&gt;g&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;), so I applied it to the &lt;em&gt;g&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) term in the first ODE and to the term containing &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) in the second ODE.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;restart;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;ode1:= ( (D@@3)(f) + 3*f*(D@@2)(f) - 2*D(f)^2 ) (x) + lambda*g(x) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;ode2:= (D@@2)(g)(x) + lambda*3*10*(f*D(g))(x) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;bcs1:= D(f)(0) = 0, f(0) = 0, D(f)(6) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;bcs2:= g(0) = 1, g(6) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;sys:= {bcs1, bcs2, ode1, ode2}:&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;dsn:= dsolve(sys, numeric, continuation= lambda); &lt;/strong&gt;&lt;br&gt;&lt;strong&gt;plots:-odeplot(dsn, [x, g(x)], 0 .. 6, color= black);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I recommend plotting the interval 5.7 .. 6 separately because there is an interesting fluctuation there which is not visible at the &lt;em&gt;g&lt;/em&gt;-axis scale of the overall plot.&lt;/p&gt;
&lt;p&gt;My second idea was to use &amp;lambda;=0 to "level" the boundary conditions so that everything starts and ends at 0 on the vertical axis. In this case, that simply means changing &lt;em&gt;g&lt;/em&gt;(0)=1 to &lt;em&gt;g&lt;/em&gt;(0)=&amp;lambda;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;restart;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;ode1:= ( (D@@3)(f) + 3*f*(D@@2)(f) - 2*D(f)^2 + g ) (x) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;ode2:= ( (D@@2)(g) + 3*10*f*D(g) ) (x) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;bcs1:= D(f)(0) = 0, f(0) = 0, D(f)(6) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;bcs2:= g(0) = lambda, g(6) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;sys:= {bcs1, bcs2, ode1, ode2}:&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;dsn:= dsolve(sys, numeric, continuation= lambda);&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;plots:-odeplot(dsn, [x, g(x)], 0 .. 6, color = black);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Same plot, of course.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;There is a way to solve this without resorting to commands outside of &lt;strong&gt;dsolve&lt;/strong&gt;. The help page &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=dsolve,numeric_bvp,advanced' target='_new'&gt;?dsolve,numeric_bvp,advanced&lt;/a&gt; gives advice on how to apply &lt;strong&gt;dsolve&lt;/strong&gt;'s options to resolve some error messages given by `dsolve/numeric/bvp`. For messages related to Newton iteration convergence, it suggests the '&lt;strong&gt;continuation&lt;/strong&gt;' option, which is defined on help page &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=dsolve,numeric,bvp' target='_new'&gt;?dsolve,numeric,bvp&lt;/a&gt; (with two examples of its use given on the former help page).&lt;/p&gt;
&lt;p&gt;To use the method, one introduces a parameter&amp;nbsp;&amp;lambda; into the problem such that&amp;nbsp;&amp;lambda; can vary continuously from 0 to 1, with &amp;lambda;=0 yielding a relatively easier BVP and &amp;lambda;=1 giving the desired BVP. The parameter can appear anywhere in the problem: in the ODEs, or the boundary conditions, or both. There is some subtlety required in deciding where and how to place &amp;lambda;. I tried this two ways with the problem at hand, and they both worked.&lt;/p&gt;
&lt;p&gt;My first idea was to have &amp;lambda;=0 eliminate the convolution of &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) and &lt;em&gt;g&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;), so I applied it to the &lt;em&gt;g&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) term in the first ODE and to the term containing &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) in the second ODE.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;restart;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;ode1:= ( (D@@3)(f) + 3*f*(D@@2)(f) - 2*D(f)^2 ) (x) + lambda*g(x) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;ode2:= (D@@2)(g)(x) + lambda*3*10*(f*D(g))(x) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;bcs1:= D(f)(0) = 0, f(0) = 0, D(f)(6) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;bcs2:= g(0) = 1, g(6) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;sys:= {bcs1, bcs2, ode1, ode2}:&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;dsn:= dsolve(sys, numeric, continuation= lambda); &lt;/strong&gt;&lt;br&gt;&lt;strong&gt;plots:-odeplot(dsn, [x, g(x)], 0 .. 6, color= black);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I recommend plotting the interval 5.7 .. 6 separately because there is an interesting fluctuation there which is not visible at the &lt;em&gt;g&lt;/em&gt;-axis scale of the overall plot.&lt;/p&gt;
&lt;p&gt;My second idea was to use &amp;lambda;=0 to "level" the boundary conditions so that everything starts and ends at 0 on the vertical axis. In this case, that simply means changing &lt;em&gt;g&lt;/em&gt;(0)=1 to &lt;em&gt;g&lt;/em&gt;(0)=&amp;lambda;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;restart;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;ode1:= ( (D@@3)(f) + 3*f*(D@@2)(f) - 2*D(f)^2 + g ) (x) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;ode2:= ( (D@@2)(g) + 3*10*f*D(g) ) (x) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;bcs1:= D(f)(0) = 0, f(0) = 0, D(f)(6) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;bcs2:= g(0) = lambda, g(6) = 0;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;sys:= {bcs1, bcs2, ode1, ode2}:&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;dsn:= dsolve(sys, numeric, continuation= lambda);&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;plots:-odeplot(dsn, [x, g(x)], 0 .. 6, color = black);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Same plot, of course.&lt;/p&gt;</description>
      <guid>141159</guid>
      <pubDate>Thu, 06 Dec 2012 03:39:59 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>correction in problem @ Vanta5</title>
      <link>http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations?ref=Feed:MaplePrimes:error in solving two coupled ode equations:Comments#answer141170</link>
      <itunes:summary>&lt;p&gt;Dear @vanta5,&lt;/p&gt;
&lt;p&gt;i suggest the mention boundry condtions are not well posed, because f'(0)=1&lt;/p&gt;
&lt;p&gt;and u should adjust the code in this formet&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;b := 1; &lt;br&gt;ode1 := diff(f(x), x, x, x)+3*f(x)*(diff(f(x), x, x))-2*(diff(f(x), x))^2+g(x) = 0; &lt;br&gt;ode2 := diff(g(x), x, x)+(3*10)*f(x)*(diff(g(x), x)) = 0; &lt;br&gt;bcs1 := (D(f))(0) = 1, f(0) = 0, (D(f))(b) = 0; &lt;br&gt;bcs2 := g(0) = 1, g(b) = 0; &lt;br&gt;sys := {bcs1, bcs2, ode1, ode2}; &lt;br&gt;dsn := dsolve(sys, numeric); &lt;br&gt;print(plots:-odeplot(dsn, [x, diff(f(x), x)], 0 .. b, color = black))&lt;br&gt;print(plots:-odeplot(dsn, [x, g(x)], 0 .. b, color = black))&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Dear @vanta5,&lt;/p&gt;
&lt;p&gt;i suggest the mention boundry condtions are not well posed, because f'(0)=1&lt;/p&gt;
&lt;p&gt;and u should adjust the code in this formet&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;b := 1; &lt;br&gt;ode1 := diff(f(x), x, x, x)+3*f(x)*(diff(f(x), x, x))-2*(diff(f(x), x))^2+g(x) = 0; &lt;br&gt;ode2 := diff(g(x), x, x)+(3*10)*f(x)*(diff(g(x), x)) = 0; &lt;br&gt;bcs1 := (D(f))(0) = 1, f(0) = 0, (D(f))(b) = 0; &lt;br&gt;bcs2 := g(0) = 1, g(b) = 0; &lt;br&gt;sys := {bcs1, bcs2, ode1, ode2}; &lt;br&gt;dsn := dsolve(sys, numeric); &lt;br&gt;print(plots:-odeplot(dsn, [x, diff(f(x), x)], 0 .. b, color = black))&lt;br&gt;print(plots:-odeplot(dsn, [x, g(x)], 0 .. b, color = black))&lt;/p&gt;</description>
      <guid>141170</guid>
      <pubDate>Thu, 06 Dec 2012 12:30:25 Z</pubDate>
      <itunes:author>Noreen cute</itunes:author>
      <author>Noreen cute</author>
    </item>
    <item>
      <title>thank you</title>
      <link>http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations?ref=Feed:MaplePrimes:error in solving two coupled ode equations:Comments#answer141182</link>
      <itunes:summary>&lt;p&gt;thank you all dear friends your comments were very helpfull&lt;strong&gt; i appreciate that&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;@Preben Alsholm&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;@Markiyan Hirnyk&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;@Carl Love&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;@Noreen cute&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;thank you all again&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;thank you all dear friends your comments were very helpfull&lt;strong&gt; i appreciate that&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;@Preben Alsholm&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;@Markiyan Hirnyk&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;@Carl Love&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;@Noreen cute&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;thank you all again&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>141182</guid>
      <pubDate>Thu, 06 Dec 2012 22:35:48 Z</pubDate>
      <itunes:author>vanta</itunes:author>
      <author>vanta</author>
    </item>
    <item>
      <title>References</title>
      <link>http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations?ref=Feed:MaplePrimes:error in solving two coupled ode equations:Comments#comment141141</link>
      <itunes:summary>&lt;p&gt;It is very similar to &lt;a href="http://www.mapleprimes.com/questions/137048-How-We-Make-The-Code-Against-That-Problem#comment137062"&gt;http://www.mapleprimes.com/questions/137048-How-We-Make-The-Code-Against-That-Problem#comment137062&lt;/a&gt; , isn't it?&lt;/p&gt;
&lt;p&gt;PS. And to &lt;a href="http://www.mapleprimes.com/questions/136745-How-To-Calculate-Dual-Solution-Problem#comment136767"&gt;http://www.mapleprimes.com/questions/136745-How-To-Calculate-Dual-Solution-Problem#comment136767&lt;/a&gt; , where further references are.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It is very similar to &lt;a href="http://www.mapleprimes.com/questions/137048-How-We-Make-The-Code-Against-That-Problem#comment137062"&gt;http://www.mapleprimes.com/questions/137048-How-We-Make-The-Code-Against-That-Problem#comment137062&lt;/a&gt; , isn't it?&lt;/p&gt;
&lt;p&gt;PS. And to &lt;a href="http://www.mapleprimes.com/questions/136745-How-To-Calculate-Dual-Solution-Problem#comment136767"&gt;http://www.mapleprimes.com/questions/136745-How-To-Calculate-Dual-Solution-Problem#comment136767&lt;/a&gt; , where further references are.&lt;/p&gt;</description>
      <guid>141141</guid>
      <pubDate>Wed, 05 Dec 2012 21:30:19 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>Quite so!</title>
      <link>http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations?ref=Feed:MaplePrimes:error in solving two coupled ode equations:Comments#comment141143</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations#comment141141"&gt;@Markiyan Hirnyk&lt;/a&gt; Quite so, thanks.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/141134-Error-In-Solving-Two-Coupled-Ode-Equations#comment141141"&gt;@Markiyan Hirnyk&lt;/a&gt; Quite so, thanks.&lt;/p&gt;</description>
      <guid>141143</guid>
      <pubDate>Wed, 05 Dec 2012 21:38:02 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
  </channel>
</rss>