Numerical Solution for ODE with Critical Point: A General Procedure Guide

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

Discussion Overview

The discussion revolves around numerical solutions for ordinary differential equations (ODEs) that involve critical points or singularities. Participants explore various methods to address the challenges posed by these points, particularly in the context of specific equations and systems of equations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks advice on numerically solving an ODE with a critical point, specifically mentioning the function y'(x) = sin(x)/x and its behavior at x=0.
  • Another participant suggests using polynomial expansion of sin(x) and integrating term by term as a potential solution.
  • A participant raises a question about a system of two equations that encounters a zero in the denominator, asking for alternative methods to address this issue.
  • Clarification is provided that the term "critical point" may be better referred to as a "singular point," with a discussion on removable singularities and their treatment.
  • Participants discuss various "tricks" for handling different types of singularities, noting that different methods may be applicable depending on the nature of the singular point.
  • One participant describes a nonlinear system of differential equations and emphasizes the need to explore behavior near singularities, including stability issues and the implications of z(x,y) approaching zero.
  • Further inquiries are made regarding the implications of z(x,y) being zero and the exploration of asymptotic cases or "0/0" cases when certain conditions are met.
  • Participants mention the need to linearize the nonlinear system when exact solutions are not feasible and suggest resources for further exploration of system stability.

Areas of Agreement / Disagreement

Participants express various methods and approaches to handle singularities, but no consensus is reached on a single solution or method. Multiple competing views and techniques are presented, indicating an ongoing debate regarding the best approach.

Contextual Notes

Limitations include the dependence on specific definitions of singular points and the unresolved nature of mathematical steps involved in the proposed solutions. The discussion reflects a range of assumptions and conditions that may affect the applicability of different methods.

Vrbic
Messages
400
Reaction score
18
Hello,
can someone advise me how to solve numerically ODE which consist of function with "critical point" (Im not sure if it is good definition)? I mean for example this one:
y'(x)=\frac{\sin{x}}{x}, where in x=0 has function a "problem". I know that limit ->1 but in numerical solutions it blows up.
I know that for example Mathematica can do that analytically but I would like to know general procedure for this issue.
Thank you for your comments or advices.
 
Physics news on Phys.org
Writting polynomial expansion of sin x , than integrating term by term is one way.
 
zoki85 said:
Writting polynomial expansion of sin x , than integrating term by term is one way.
Ou, nice and easy idea :) Can you think of another way?
I have system of two eq. and problem is coming from zero in denominator subtracting these unknowns... x'(r)=\frac{f(x(r),y(r),r)}{x(r)-y(r)}, y'(r)=\frac{g(x(r),y(r),r)}{x(r)-y(r)}. Any idea? :)
And thank you for reply ;)
 
Vrbic said:
I have system of two eq. and problem is coming from zero in denominator subtracting these unknowns... x'(r)=\frac{f(x(r),y(r),r)}{x(r)-y(r)}, y'(r)=\frac{g(x(r),y(r),r)}{x(r)-y(r)}. Any idea? :)
And thank you for reply ;)
I'm affraid I don't understand meaning of notation you used here. Why don't you write instead of f(x(r),y(r),r) and g(x(r),y(r),r) just f(r) and g(r)?
 
zoki85 said:
I'm affraid I don't understand meaning of notation you used here. Why don't you write instead of f(x(r),y(r),r) and g(x(r),y(r),r) just f(r) and g(r)?
I wanted to emphasize that there are unknown functions and I am not able to carry any trick like expansion. Exact form of equation is here https://www.physicsforums.com/threa...umerical-solution-with-critical-point.783090/ but no comments. I wrote it probably in wrong way so I am trying step by step find how to solve it.
 
Vrbic said:
Hello,
can someone advise me how to solve numerically ODE which consist of function with "critical point" (Im not sure if it is good definition)?

The word you're are looking for is "singular point."

The integrand \frac{\sin{x}}{x} has a removable singularity. We can get around it by defining \frac{\sin{x}}{x} =1 for x=0 . This insight comes from observing the limiting behavior for small x . Integrating the Taylor series term by term works for small x but fails miserably for x>1.
What are the functions f\left(x,y,r\right) and g\left(x,y,r\right). There are a number of "tricks" that allow you to treat different kinds of singularities. But different tricks work for different kinds of singular points.
 
the_wolfman said:
The word you're are looking for is "singular point."

The integrand \frac{\sin{x}}{x} has a removable singularity. We can get around it by defining \frac{\sin{x}}{x} =1 for x=0 . This insight comes from observing the limiting behavior for small x . Integrating the Taylor series term by term works for small x but fails miserably for x>1.
Ah, yes it is clear. Thank you for a comment.

What are the functions f\left(x,y,r\right) and g\left(x,y,r\right). There are a number of "tricks" that allow you to treat different kinds of singularities. But different tricks work for different kinds of singular points.

u'=\frac{D_1}{D}
\rho'=\frac{D_2}{D}, where D_1=\frac{2a^2/r-\alpha/r^2}{\rho}, D_2=\frac{2u^2/r-\alpha/r^2}{u} and D=\frac{u^2-a^2}{\rho u}, where a(r)=a_0\big(\frac{\rho(r)}{\rho_0}\big)^{(\Gamma-1)/2}, \rho(r) and u(r) are function of r and \Gamma, a_0, \rho_0, \alpha are constant.

This is the system. Here is described all this problem: https://www.physicsforums.com/threa...umerical-solution-with-critical-point.783090/
Thank you again.
 
Vrbic said:
Ou, nice and easy idea :) Can you think of another way?
I have system of two eq. and problem is coming from zero in denominator subtracting these unknowns... x'(r)=\frac{f(x(r),y(r),r)}{x(r)-y(r)}, y'(r)=\frac{g(x(r),y(r),r)}{x(r)-y(r)}. Any idea? :)
And thank you for reply ;)
Ok then. Without getting into mess of other thread, here is what I can say. This is a system of differential equation (generally, a nonlinear one):

dx/dr = G(x,y,r)/z(x,y)
dy/dr = F(x,y,r)/z(x,y)
where z(x,y)= x-y

For behaviour near singularity you must specify or explore what's going on when z(x,y) → 0. Also explore if there is a stability issue for solutions to the system ( for instance, check Lyapunov's criteria etc). And for z(x,y) ≠ 0 the system yields equation F(x,y,r)⋅dx - G(x,y,r)⋅dy = 0 which is a special case of well known Pfaff's PDE in 3D: P(x,y,z)⋅dx + Q(x,y,z)⋅dy +T(x,y,z)⋅dz =0

Regards
 
Last edited:
zoki85 said:
Ok then. Without getting into mess of other thread, here is what I can say. This is a system of differential equation (generally, a nonlinear one):

dx/dr = G(x,y,r)/z(x,y)
dy/dr = F(x,y,r)/z(x,y)
where z(x,y)= x-y

For behaviour near singularity you must specify or explore what's going on when z(x,y) → 0. Also explore if there is a stability issue for solutions to the system ( for instance, check Lyapunov's criteria etc). And for z(x,y) ≠ 0 the system yields equation F(x,y,r)⋅dx - G(x,y,r)⋅dy = 0 which is a special case of well known Pfaff's PDE in 3D: P(x,y,z)⋅dx + Q(x,y,z)⋅dy +T(x,y,z)⋅dz =0

Regards
Ou thank you very much. And what about z(x,y)=0. What possibilities are? And could you give me a reference to literature which concern in this problems or something like that. Thank you very very much ;)
 
  • #10
Vrbic said:
And what about z(x,y)=0. What possibilities are? And could you give me a reference to literature which concern in this problems or something like that. Thank you very very much ;)
For z(x,y)=0 you have to explore at line y=x : If G≠0,F≠0 than "asymptotic" cases. If G=0 or/and F=0 than "0/0" cases to check .
Since you can't exactly solve your nonlinear system you should linearize it. Here is instructional video how to do it.
And for probing system stability see this paper . Treating all the variables like they are independent (via Pfaffian) sometimes may help to explore behaviour of system too . Many things depend on form of the functions F, G.
 
  • #11
zoki85 said:
For z(x,y)=0 you have to explore at line y=x : If G≠0,F≠0 than "asymptotic" cases. If G=0 or/and F=0 than "0/0" cases to check .
Since you can't exactly solve your nonlinear system you should linearize it. Here is instructional video how to do it.
And for probing system stability see this paper . Treating all the variables like they are independent (via Pfaffian) sometimes may help to explore behaviour of system too . Many things depend on form of the functions F, G.
Thank you again, understand.
Im looking for solution which is in "0/0". In my def. of function I am looking specially for case when "my" D=D1=D2=0 and (I mean) it is "smooth" solution.
I check your links.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
0
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K