<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, dsolve,numeric: "Error, (in dsolve/numeric/BVPSolve) matrix is singular". Why?</title>
    <link>http://www.mapleprimes.com/questions/130222-Dsolvenumeric-Error-in-DsolvenumericBVPSolve</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 11:51:45 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 11:51:45 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, dsolve,numeric: "Error, (in dsolve/numeric/BVPSolve) matrix is singular". Why?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, dsolve,numeric: "Error, (in dsolve/numeric/BVPSolve) matrix is singular". Why?</title>
      <link>http://www.mapleprimes.com/questions/130222-Dsolvenumeric-Error-in-DsolvenumericBVPSolve</link>
    </image>
    <item>
      <title>dsolve,numeric</title>
      <link>http://www.mapleprimes.com/questions/130222-Dsolvenumeric-Error-in-DsolvenumericBVPSolve?ref=Feed:MaplePrimes:dsolve,numeric: "Error, (in dsolve/numeric/BVPSolve) matrix is singular". Why?:Comments#answer130245</link>
      <itunes:summary>&lt;p&gt;There is an unassigned parameter &lt;em&gt;l&lt;/em&gt; in the ODE.&lt;/p&gt;
&lt;p&gt;If you change the command in:&lt;/p&gt;
&lt;pre&gt;sol := dsolve({bc, eqn}, numeric, parameters=[l]);&lt;/pre&gt;
&lt;p&gt;you get the errormessage:&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;pre&gt;Error, (in dsolve/numeric) cannot numerically solve a parametric boundary value problem&lt;/pre&gt;
&lt;p&gt;Additionally: there are 5 ic/bc's and that results in an inconsistent system of equations if you try to solve for the constants in the general solution.&lt;br&gt; Numerical solutions can be found for 4 &lt;em&gt;initial&lt;/em&gt; conditions.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;There is an unassigned parameter &lt;em&gt;l&lt;/em&gt; in the ODE.&lt;/p&gt;
&lt;p&gt;If you change the command in:&lt;/p&gt;
&lt;pre&gt;sol := dsolve({bc, eqn}, numeric, parameters=[l]);&lt;/pre&gt;
&lt;p&gt;you get the errormessage:&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;pre&gt;Error, (in dsolve/numeric) cannot numerically solve a parametric boundary value problem&lt;/pre&gt;
&lt;p&gt;Additionally: there are 5 ic/bc's and that results in an inconsistent system of equations if you try to solve for the constants in the general solution.&lt;br&gt; Numerical solutions can be found for 4 &lt;em&gt;initial&lt;/em&gt; conditions.&lt;/p&gt;</description>
      <guid>130245</guid>
      <pubDate>Wed, 01 Feb 2012 19:40:33 Z</pubDate>
      <itunes:author>Adri vanderMeer
 van der Meer</itunes:author>
      <author>Adri vanderMeer
 van der Meer</author>
    </item>
    <item>
      <title>Solving for L</title>
      <link>http://www.mapleprimes.com/questions/130222-Dsolvenumeric-Error-in-DsolvenumericBVPSolve?ref=Feed:MaplePrimes:dsolve,numeric: "Error, (in dsolve/numeric/BVPSolve) matrix is singular". Why?:Comments#answer130250</link>
      <itunes:summary>&lt;p&gt;As Adri van der Meer points out there are too many conditions.&lt;/p&gt;
&lt;p&gt;Assuming therefore that what you want is to determine L (l) so that the conditions are satisfied you can do like the following, where numerical solution of the ode is not used.&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;eqn := diff(Y(x), x$4) = l^4*Y(x);&lt;br&gt;bc1 := Y(0) = 0, D(Y)(0) = 1, D(D(Y))(0) = 0, Y(.5) = 0;&lt;br&gt;#bc := Y(0) = 0, (D(Y))(0) = 1, (D(D(Y)))(0) = 0, Y(.5) = 0, (D(Y))(.5) = 0;&lt;br&gt;&lt;br&gt;sol := dsolve({bc1, eqn});&lt;br&gt;&lt;br&gt;diff(sol,x);&lt;br&gt;eval(rhs(%),x=1/2);&lt;br&gt;#Numerator and denominator:&lt;br&gt;nm,dn:=(numer,denom)(normal(%));&lt;br&gt;plot(nm,l=0..10,-1..1);&lt;br&gt;#Here is one solution:&lt;br&gt;L:=fsolve(nm,l=7.9);&lt;br&gt;#Just making sure that the denominator is not also zero:&lt;br&gt;eval(dn,l=L);&lt;br&gt;#Plotting the solution:&lt;br&gt;eval(sol,l=L);&lt;br&gt;plot(rhs(%),x=0..1/2);&lt;br&gt;#Checking the derivative of Y at x = 1/2:&lt;br&gt;eval(diff(sol,x),{x=.5,l=L});&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;As Adri van der Meer points out there are too many conditions.&lt;/p&gt;
&lt;p&gt;Assuming therefore that what you want is to determine L (l) so that the conditions are satisfied you can do like the following, where numerical solution of the ode is not used.&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;eqn := diff(Y(x), x$4) = l^4*Y(x);&lt;br&gt;bc1 := Y(0) = 0, D(Y)(0) = 1, D(D(Y))(0) = 0, Y(.5) = 0;&lt;br&gt;#bc := Y(0) = 0, (D(Y))(0) = 1, (D(D(Y)))(0) = 0, Y(.5) = 0, (D(Y))(.5) = 0;&lt;br&gt;&lt;br&gt;sol := dsolve({bc1, eqn});&lt;br&gt;&lt;br&gt;diff(sol,x);&lt;br&gt;eval(rhs(%),x=1/2);&lt;br&gt;#Numerator and denominator:&lt;br&gt;nm,dn:=(numer,denom)(normal(%));&lt;br&gt;plot(nm,l=0..10,-1..1);&lt;br&gt;#Here is one solution:&lt;br&gt;L:=fsolve(nm,l=7.9);&lt;br&gt;#Just making sure that the denominator is not also zero:&lt;br&gt;eval(dn,l=L);&lt;br&gt;#Plotting the solution:&lt;br&gt;eval(sol,l=L);&lt;br&gt;plot(rhs(%),x=0..1/2);&lt;br&gt;#Checking the derivative of Y at x = 1/2:&lt;br&gt;eval(diff(sol,x),{x=.5,l=L});&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>130250</guid>
      <pubDate>Wed, 01 Feb 2012 21:08:29 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Numerical solution</title>
      <link>http://www.mapleprimes.com/questions/130222-Dsolvenumeric-Error-in-DsolvenumericBVPSolve?ref=Feed:MaplePrimes:dsolve,numeric: "Error, (in dsolve/numeric/BVPSolve) matrix is singular". Why?:Comments#answer130287</link>
      <itunes:summary>&lt;p&gt;Here is a numerical solution. The "matrix singular" situation is avoided basically by replacing l^4 by the name l4, but also by introducing l4 as a constant function:&lt;/p&gt;
&lt;p&gt;eqn2 := diff(Y(x), x$4) = l4(x)*Y(x),diff(l4(x),x)=0;&lt;br&gt;bc := Y(0) = 0, D(Y)(0) = 1, D(D(Y))(0) = 0, Y(.5) = 0, D(Y)(.5) = 0;&lt;br&gt;sol2 := dsolve({bc, eqn2},{Y(x),l4(x)},numeric,output=listprocedure);&lt;br&gt;plots:-odeplot(sol2,[x,Y(x)]);&lt;br&gt;plots:-odeplot(sol2,[x,l4(x)^(1/4)]);&lt;br&gt;L2:=subs(sol2,l4(x)^(1/4));&lt;br&gt;L2(0);&lt;br&gt;L2(.5);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Here is a numerical solution. The "matrix singular" situation is avoided basically by replacing l^4 by the name l4, but also by introducing l4 as a constant function:&lt;/p&gt;
&lt;p&gt;eqn2 := diff(Y(x), x$4) = l4(x)*Y(x),diff(l4(x),x)=0;&lt;br&gt;bc := Y(0) = 0, D(Y)(0) = 1, D(D(Y))(0) = 0, Y(.5) = 0, D(Y)(.5) = 0;&lt;br&gt;sol2 := dsolve({bc, eqn2},{Y(x),l4(x)},numeric,output=listprocedure);&lt;br&gt;plots:-odeplot(sol2,[x,Y(x)]);&lt;br&gt;plots:-odeplot(sol2,[x,l4(x)^(1/4)]);&lt;br&gt;L2:=subs(sol2,l4(x)^(1/4));&lt;br&gt;L2(0);&lt;br&gt;L2(.5);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>130287</guid>
      <pubDate>Thu, 02 Feb 2012 20:39:09 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Thanks for your reply.
So Maple's dsolve/numeric</title>
      <link>http://www.mapleprimes.com/questions/130222-Dsolvenumeric-Error-in-DsolvenumericBVPSolve?ref=Feed:MaplePrimes:dsolve,numeric: "Error, (in dsolve/numeric/BVPSolve) matrix is singular". Why?:Comments#comment130247</link>
      <itunes:summary>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;So Maple's dsolve/numeric cannot solve a parametric bvp?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;So Maple's dsolve/numeric cannot solve a parametric bvp?&lt;/p&gt;</description>
      <guid>130247</guid>
      <pubDate>Wed, 01 Feb 2012 20:17:36 Z</pubDate>
      <itunes:author>Lars282</itunes:author>
      <author>Lars282</author>
    </item>
  </channel>
</rss>