Can anyone solve this 1st order nonlinear ODE with constants a and b?

  • Context: Graduate 
  • Thread starter Thread starter all015
  • Start date Start date
  • Tags Tags
    Nonlinear Ode
Click For Summary

Discussion Overview

The discussion revolves around solving a first-order nonlinear ordinary differential equation (ODE) of the form dy/dx = ay / (bx² + xy), where a and b are constants. Participants explore various approaches to find a solution, including numerical methods and the use of special functions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant suggests considering the unknown function x(y) instead of y(x) as a key approach to solving the ODE.
  • Another participant expresses skepticism about the use of the exponential integral function Ei(x) in their formulation, indicating a need for clarity in its application.
  • A participant presents a numerical solution and checks its validity against numerical calculations, showing a method to retrieve the inverse function numerically.
  • There is a discussion about the potential impossibility of analytically inverting x(y) to obtain y(x) using a finite number of elementary functions or classical special functions.
  • One participant expresses confidence in the numerical checks, while another questions whether the problem is a research question or simply a homework task, suggesting they may be able to provide an analytic solution if it is serious.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to solve the ODE, with differing opinions on the applicability of the Ei function and the feasibility of finding an analytical solution versus numerical methods.

Contextual Notes

There are unresolved aspects regarding the definitions and assumptions related to the use of special functions, and the discussion includes varying levels of confidence in the numerical methods presented.

Who May Find This Useful

This discussion may be useful for those interested in nonlinear differential equations, numerical methods for solving ODEs, and the application of special functions in mathematical analysis.

all015
Messages
2
Reaction score
0
Can anyone help with the following:

dy/dx = ay / (bx2 +xy )

a,b constants

thanks,
 
Physics news on Phys.org
The key is to consider the unknown function x(y) instead of y(x)
 

Attachments

  • ODE.JPG
    ODE.JPG
    41 KB · Views: 546
JJacquelin said:
The key is to consider the unknown function x(y) instead of y(x)

Hi. Thanks for that. However, I'm not convinced your use of the Ei is correct if you define:

[tex]Ei(x)=\int_{-\infty}^x \frac{e^t}{t}dt[/tex]

If I start with the expression:

[tex]d(e^y t)=-\frac{e^y}{y}[/tex]

then integrating from y_0, t_0 to y,t:

[tex]\int_{\substack{t=t_0 \\ y=y_0}}}^{y,t}d(e^y t)=-\int_{y_0}^y \frac{e^y}{y}dy[/tex]

and get:

[tex]x(y)=\frac{e^y}{\frac{e^{y_0}}{x_0}-\int_{y_0}^y \frac{e^y}{y}dy}[/tex]

Now, that agrees with numerical calculations but I'm not sure how I could express that in terms of Ei(x) though.
 
that agrees with numerical calculations but I'm not sure how I could express that in terms of Ei(x) though
Of course, you cannot express that in terms of Ei(x), but in terms of Ei(y).
May be, writing "in terms of" isn't the good wording. What I mean is that Ei(y) is the special function involved in the formula for x(y), as it was shown.
But I never said that Ei(x) is involved in an hypothetical formula for y(x). On the contrary, I said that the analytical inversion of x(y) in order to obtain y(x) is probably utopian with a finite number of elementary functions and even with classical special functions.
 
thanks guys! - I appreciate the help
 
JJacquelin said:
Of course, you cannot express that in terms of Ei(x), but in terms of Ei(y).
May be, writing "in terms of" isn't the good wording. What I mean is that Ei(y) is the special function involved in the formula for x(y), as it was shown.
But I never said that Ei(x) is involved in an hypothetical formula for y(x). On the contrary, I said that the analytical inversion of x(y) in order to obtain y(x) is probably utopian with a finite number of elementary functions and even with classical special functions.

Ok, I messed that up. I meant Ei(y) but I see as long as you define Ei(y) appropriately, I see what you mean.

Here's the numerical check of:

[tex]y'=\frac{y}{x^2+xy},\quad y(1)=1[/tex]

Code:
mysol = NDSolve[{Derivative[1][y][x] == 
      y[x]/(x^2 + x*y[x]), y[1] == 1}, y, 
    {x, 1, 5}]; 

p1 = Plot[y[x] /. mysol, {x, 1, 5}]; 

myx[y_] := Exp[y]/(Exp[1] - 
     NIntegrate[Exp[u]/u, {u, 1, y}]); 

mytable = Table[{myx[y], y}, 
    {y, 1, 1.6, 0.01}]; 

p2 = ListPlot[mytable, Joined -> True]; 

Show[{p1, p2}]

Notice how I tabulate the numbers in terms of {x(y),y} to retrieve the inverse numerically. The two plots superimpose nicely.
 
For me where was no doubt.
Nevertheless its a good idea to check it numerically. Well donne !
 
Is this a research question, or just homework? If it's serious, I may be able to get somewhere with an analytic (explicit) solution... possibly.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 28 ·
Replies
28
Views
3K