Solving an ODE: Seeking Suggestions

  • Context: Undergrad 
  • Thread starter Thread starter metamathphys
  • Start date Start date
  • Tags Tags
    Ode Suggestions
Click For Summary

Discussion Overview

The discussion revolves around solving a nonlinear ordinary differential equation (ODE) of the form dx/dt = (f(x) + g(t))^(1/2). Participants explore various methods and approaches to tackle this problem, including taking derivatives and considering the nature of the functions involved.

Discussion Character

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

Main Points Raised

  • One participant suggests taking another derivative with respect to time to derive a second-order equation, but others challenge the validity of this approach, citing nonlinearity issues.
  • Another participant proposes solving for t as a function of x, arguing that this could simplify the problem, but others express skepticism about the feasibility of this method.
  • Some participants emphasize that the original equation is nonlinear and that superposition does not apply, which complicates the solution process.
  • There is a discussion about the nature of the functions f(x) and g(t), with some participants questioning whether a general solution exists for arbitrary forms of these functions.
  • One participant mentions viewing the equation in terms of energy dynamics, suggesting a connection to physical interpretations, but admits uncertainty about analytical solutions.

Areas of Agreement / Disagreement

Participants express disagreement on the validity of taking higher derivatives and the implications of nonlinear terms. There is no consensus on the best method to solve the ODE, and multiple competing views remain regarding the approach to take.

Contextual Notes

Participants note that the functions f and g may have specific forms that could affect the solvability of the ODE, but these forms are not provided in the discussion. The complexity of nonlinear ODEs is acknowledged, with some participants suggesting that higher-order equations are generally more challenging to solve.

metamathphys
Messages
9
Reaction score
0
Hello I am trying to solve this ODE


dx/dt=(f(x)+g(t))^(1/2)


I have been recalling what I learn in my ODE course and looking at my old textbook but I did not find what method is appropiate to try...any suggestions?

Thank you very much!
 
Physics news on Phys.org
You can take another derivative wrt t to get:

d^2 x/dt^2 = [f'(x)dx/dt+g'(t)]/2(dx/dt) = f'(x)/2 + g'(t)dt/dx/2

Now try to solve d^2 x /dt^2 =f'(x)/2 and d^2 x / dt^2 =g'(t)/(2dx/dt)

separately, and then by superposition you get a solution for the ODE.
the second equation you can write the solution explicitly d(dx/dt)^2/dt = g'(t) by integration you get:
(dx/dt)^2 =g(t)+C
dx/dt = sqrt(g(t)+C) ...

I believe you get the picture now.
 
MathematicalPhysicist said:
You can take another derivative wrt t to get:

d^2 x/dt^2 = [f'(x)dx/dt+g'(t)]/2(dx/dt) = f'(x)/2 + g'(t)dt/dx/2

Now try to solve d^2 x /dt^2 =f'(x)/2 and d^2 x / dt^2 =g'(t)/(2dx/dt)

separately, and then by superposition you get a solution for the ODE.
the second equation you can write the solution explicitly d(dx/dt)^2/dt = g'(t) by integration you get:
(dx/dt)^2 =g(t)+C
dx/dt = sqrt(g(t)+C) ...

I believe you get the picture now.

Sorry, but this is wrong. The equation you get when you differentiate wrt t is
[itex]\frac{dx}{dt}\frac{d^2x}{dt^2}-\frac{1}{2}\frac{df\left(x\right)}{dx}\frac{dx}{dt}=\frac{1}{2}\frac{dg\left(t\right)}{dt}[/itex]

The first term is nonlinear. The second term is also nonlinear, except for special cases of f(x). Thus this equation is nonlinear, and superposition does not hold!
 
the_wolfman said:
Sorry, but this is wrong. The equation you get when you differentiate wrt t is
[itex]\frac{dx}{dt}\frac{d^2x}{dt^2}-\frac{1}{2}\frac{df\left(x\right)}{dx}\frac{dx}{dt}=\frac{1}{2}\frac{dg\left(t\right)}{dt}[/itex]
That too is wrong. A correct expression for the second derivative with respect to time is ##2\ddot x(t) = f'(x) + g'(x)##

That said, I don't think that this will help in general.
metamathphys said:
Hello I am trying to solve this ODE

dx/dt=(f(x)+g(t))^(1/2)
What might help is solving for t as a function of x yielding ##t=\int (f(x)+g(x))^{-1/2}\,dx## and then finding the inverse function that yields x as a function of t.
 
Last edited:
First of all I wish to thank you all for taking some time looking at my post.

My first comment concerns all of those who suggest taking another time derivative. I do not agree with your results if I take another derivative what I get is:

[itex]\frac{d^2x}{dt^2}=\frac{f'(x)\frac{dx}{dt}+\frac{dg}{dt}}{2\sqrt{f+g}}[\itex]<br /> <br /> Which does not look any easier...I do not know about any equation that simplifies when you perform higher derivatives. <br /> <br /> Regarding the comment of D H <br /> <br /> If I knew t as a function of x then I would be done no? All I had left to do is invert the relation to have x as a function of t and that all. So your method requires knowing the solution to the problem so I don't see how this can be of any help maybe I am misunderstanding something if it is so please show explicitly how to do it with some easy example[/itex]
 
D H said:
That too is wrong. A correct expression for the second derivative with respect to time is ##2\ddot x(t) = f'(x) + g'(x)##

Actually its not. In the original problem statement g is a function of t, not a function of x. If g was a function of x, then you would be correct.

First of all I wish to thank you all for taking some time looking at my post.

My first comment concerns all of those who suggest taking another time derivative. I do not agree with your results if I take another derivative what I get is:

[itex]\frac{d^2x}{dt^2}=\frac{f'(x)\frac{dx}{dt}+\frac{dg}{dt}}{2\sqrt{f+g}}[/itex]

Its the same thing. We are using the original equation ([itex]\frac{dx}{dt} = \sqrt{f(x)+g(t)}[/itex]) to simplify the denominator:
[itex]\frac{d^2x}{dt^2}=\frac{f'(x)\frac{dx}{dt}+\frac{dg}{dt}}{2\sqrt{f+g}}=\frac{f'(x)\frac{dx}{dt}+\frac{dg}{dt}}{2\frac{dx}{dt}}[/itex]


For the record, I recommend trying to directly solve the first order ode:

[itex]\frac{dx}{dt} = \sqrt{f(x)+g(t)}[/itex].


You might get lucky by taking more derivatives but I doubt it. In general first order nonlinear ODEs are the easiest to solve. Higher order non-linear ODEs get progressively harder to solve.

I also don't know if a general solution to this equation exists for arbitrary f and g. Do you know what f and g are.
 
the_wolfman said:
Actually its not. In the original problem statement g is a function of t, not a function of x. If g was a function of x, then you would be correct.
Stupid me. You are correct. I didn't read the OP properly.
I also don't know if a general solution to this equation exists for arbitrary f and g.

Of course not. There certainly must exist some function x(t) defined over some subinterval over which ##f(x)## and ##g(t)## are bounded and continuous. However, good luck finding that x(t) in general. There's no guarantee that ##\frac{dx}{dt} = f(t)## has a solution in the elementary functions, let alone ##\frac{dx}{dt} = \sqrt{f(x)+g(t)}##.
Do you know what f and g are.
That is a key question.
 
Yes, I believe you may be right, this trick of the derivative of square root seemed like it may work here.

So what's the context metamathphys?
 
the_wolfman said:
Actually its not. In the original problem statement g is a function of t, not a function of x. If g was a function of x, then you would be correct.



Its the same thing. We are using the original equation ([itex]\frac{dx}{dt} = \sqrt{f(x)+g(t)}[/itex]) to simplify the denominator:
[itex]\frac{d^2x}{dt^2}=\frac{f'(x)\frac{dx}{dt}+\frac{dg}{dt}}{2\sqrt{f+g}}=\frac{f'(x)\frac{dx}{dt}+\frac{dg}{dt}}{2\frac{dx}{dt}}[/itex]


For the record, I recommend trying to directly solve the first order ode:

[itex]\frac{dx}{dt} = \sqrt{f(x)+g(t)}[/itex].


You might get lucky by taking more derivatives but I doubt it. In general first order nonlinear ODEs are the easiest to solve. Higher order non-linear ODEs get progressively harder to solve.

I also don't know if a general solution to this equation exists for arbitrary f and g. Do you know what f and g are.

Well, I can look at it as an equation of energy which is not constant of time.

I.e dx/dt is the velocity and we have v^2-f(x)=g(t) (or Lagrangian depending on the plus minus sign). So it's actually an equation of an energy which is not necessarily constant with time.

How to solve this analytically, I am afraid I don't know, but I guess some special function is in order...
 

Similar threads

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