Numerical solution of an ODE be Singular at endpoint

  • Context: Graduate 
  • Thread starter Thread starter SHmech
  • Start date Start date
  • Tags Tags
    Numerical Ode
Click For Summary
SUMMARY

The discussion centers on solving a second-order ordinary differential equation (ODE) of the form \(\frac{\mathrm{d}^{2}\phi}{\mathrm{d}x^{2}}+a\exp(b\phi)=0\) with boundary conditions (B.C.) defined as \(\frac{\mathrm{d}\phi}{\mathrm{d}x}\big|_{x=0}=-c\) and \(\frac{\mathrm{d}\phi}{\mathrm{d}x}\big|_{x=L}=0\). The user encountered a singular matrix error while using Maple's dsolve routine and a Fortran program employing the Finite Volume Method (FVM). Changing the B.C. at \(x=L\) to a Dirichlet condition \(\phi\big|_{x=L}=0\) resolved the issue. The discussion highlights the importance of boundary conditions in determining the uniqueness of solutions to ODEs.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with boundary value problems (BVPs)
  • Experience with Maple software, specifically the dsolve routine
  • Knowledge of numerical methods, particularly the Finite Volume Method (FVM)
NEXT STEPS
  • Investigate the implications of Neumann boundary conditions on the uniqueness of ODE solutions
  • Learn about the characteristics of singular matrices in numerical methods
  • Explore the use of Dirichlet boundary conditions in solving ODEs
  • Study the application of Maple's dsolve routine for different types of boundary conditions
USEFUL FOR

Mathematicians, engineers, and researchers working with ordinary differential equations, particularly those interested in boundary value problems and numerical solutions using software like Maple and Fortran.

SHmech
Messages
2
Reaction score
0
Hi all,
I have an ODE with the form
[tex]\frac{\mathrm{d}^{2}\phi}{\mathrm{d}x^{2}}+a\exp(b\phi)=0[/tex]

B.C. [tex]\frac{\mathrm{d}\phi}{\mathrm{d}{x}}\right|_{x=0}=-c,\frac{\mathrm{d}\phi}{\mathrm{d}{x}}\right|_{x=L}=0[/tex]

where [tex]a,b,c,L[/tex] are all positive.

I solved the problem with Maple using the dsolve routine:
dsolve({bc, equ}, type = numeric, method = bvp[midrich], range = 0 .. L)
but it says "matrix is singular". My Fortran program using the FVM method also indicate the coefficients matrix is singular at [tex]x=L[/tex]

But if i change the B.C. at [tex]x=L[/tex] to [tex]\phi\right|_{x=L}=0[/tex] the solution can be got.

So i wonder
1 why the previous Newmann B.C. cause the singularity at [tex]x=L[/tex] but the latter Dirichlet one not.
2 how to evaluate the influence of such a boundary to the nature of the solution?

any suggestions will be appreciated
hui
 
Physics news on Phys.org
Unless I am mistaken, if you have Neumann conditions on both sides then there is nothing to "fix" the integration constant. So your solution will be unique up to a constant offset.
 
My fault. i checked the simplified form of the eqution
[tex]\frac{\mathrm{d}^{2}\phi}{\mathrm{d}x^{2}}+ab\phi=0[/tex]
to get guess values of [tex]\phi[/tex] and it works with two Newmann B.C.s so i think it is the same with the original equation...

if we substitute [tex]\phi(x)=f(x)+C1[/tex] into the original equation it can be found [tex]C1[/tex] may not be zero.

Lord Crc, thanks for your reply.

Lord Crc said:
Unless I am mistaken, if you have Neumann conditions on both sides then there is nothing to "fix" the integration constant. So your solution will be unique up to a constant offset.
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
11K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K