Can Numerical Methods Solve an ODE Without Initial Conditions?

Click For Summary

Discussion Overview

The discussion revolves around solving the ordinary differential equation (ODE) \((y^2 - 1)\frac{dy}{dx}=3y\) using numerical methods without initial conditions. Participants explore the implications of lacking initial conditions and the potential for numerical approximation methods like Euler and Runge-Kutta.

Discussion Character

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

Main Points Raised

  • One participant expresses uncertainty about how to proceed with solving the ODE using numerical methods without initial conditions, having derived an expression for \(x\) in terms of \(y\) and a constant \(c\).
  • Another participant points out a mistake in the coefficient of \(\ln y\) in the derived equation and suggests that arbitrary initial conditions can be chosen to generate a numerical solution, which would represent a family of curves translated by different values of \(c\).
  • Some participants assert that if an analytical solution is found, there may be no need for numerical methods unless a numerical approach is explicitly desired.
  • Concerns are raised about the behavior of the solution as \(y\) approaches zero, with one participant noting that \(y=0\) is a limit case that is never actually reached.
  • Discussion includes the challenge of applying the Runge-Kutta method when the ODE does not explicitly involve \(x\), with participants questioning how to define the method in this context.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the necessity of numerical methods versus analytical solutions, and there is ongoing debate about the implications of lacking initial conditions and the behavior of the solution near \(y=0\.

Contextual Notes

The discussion highlights limitations related to the assumptions made about the behavior of the solution, particularly concerning the treatment of \(y=0\) and the implications of choosing arbitrary initial conditions for numerical methods.

Inigma
Messages
4
Reaction score
0
I have to solve this ODE with numerical methods:
(y^2 - 1)\frac{dy}{dx}=3y

I have no initial conditions to solve it like you would normally do. I am hoping to use a numerical method (Euler... Runge Kutta) to approximate the solution. This is if I solve it using numerical methods right? So, I got to the following solution for x, by integrating both sides:
x=\frac{1}{6}y^2 + \frac{1}{3}lny + c where c is the constant after integrating. With c in the way and no initial conditions, how do I then get to go ahead? am I approaching this the wrong way? your help would be greatly appreciated... thanks!
 
Last edited:
Physics news on Phys.org
Inigma said:
I have to solve this ODE with numerical methods:
(y^2 - 1)\frac{dy}{dx}=3y

I have no initial conditions to solve it like you would normally do. I am hoping to use a numerical method (Euler... Runge Kutta) to approximate the solution. This is if I solve it using numerical methods right? So, I got to the following solution for x, by integrating both sides:
x=\frac{1}{6}y + 3lny + c where c is the constant after integrating. With c in the way and no initial conditions, how do I then get to go ahead? am I approaching this the wrong way? your help would be greatly appreciated... thanks!

Hi !

There is a small mistake in your equation : The coefficient of lny should be 1/3 instead of 3.
The analytical solving is possible, thanks to the Lambert's W function (in attachment).
For numerical solving, you can state an arbitrary initial condition and use any numerical method. This will permit to draw a first curve y(x).
All other curves, corresponding to different values of c, are just translated from the first curve. In fact, giving an initial condition is equivalent to give the translation value. This is because the ODE contains only y and y' but no x.
 

Attachments

  • Lambert EDO.JPG
    Lambert EDO.JPG
    24.4 KB · Views: 611
Actually, unless I am missing something obvious, the correct solution for this equation is:

x=\frac{y^2}{6}-\frac{lny}{3}+c

In order to come to this formulation, however, you have to assume that y cannot be zero.

Also, if you already have the analytical solution, then you no longer need the numerical method, unless of course you explicitly want to solve the equation numerically.
 
meldraft said:
Actually, unless I am missing something obvious, the correct solution for this equation is:

x=\frac{y^2}{6}-\frac{lny}{3}+c

In order to come to this formulation, however, you have to assume that y cannot be zero.

Also, if you already have the analytical solution, then you no longer need the numerical method, unless of course you explicitly want to solve the equation numerically.

From the explicit solution given in my preceeding post, the case y=0 doesn't exist.
We can see that if x tends to infinity, exp(-6x) tends to 0, then W(0) tends to 0 and y tends to 0. But tending to 0 doesn't mean equal 0. So, y=0 is a limit case in fact, never reached, in so far as x is finit.
 
meldraft: Your answer is correct and I wish to continue beyond the solution you stated. In this case by using a numerical method to plot the appromimate solution.

JJacquelin: Thank you, and I have found a lot of sense from wha you told me. I have also plotted the curves and have a rough idea what to expect in terms of convergence and infinities. I just struggle with the (my preferred method due to higher accuracy) the Runge Kutta method, since there is no x in the differential. I do not know what to do with say k1=f(x0,y0)=\frac{3y}{y^2 -1} would this method work when there is no x in the differential? I guess not...
 
You can state x0 any value you want. As I already say, you will obtain one first solution i.e. one first curve y(x). All the other solutions are translated from the first one. Alltogether, the result is globally the same : it doesn't mater which is the first solution to start with.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K