Simple-looking 1st order DE, solution anyone?

  • Context: Graduate 
  • Thread starter Thread starter Irid
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the analytical solution of a first-order differential equation given by \(\frac{dx}{dt} = \frac{a-x}{b-t} - cx\). Participants explore various methods for solving the equation, including the integrating factor method and series solutions, while expressing uncertainty about the existence of a solution in terms of elementary functions.

Discussion Character

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

Main Points Raised

  • One participant expresses uncertainty about the existence of an analytical solution and mentions difficulties encountered with the integrating factor method, leading to complex integrals.
  • Another participant proposes a series solution approach, suggesting a power series expansion and deriving a recursion relation for coefficients.
  • Some participants question whether the series solution corresponds to an elementary function, indicating that it may or may not be the case.
  • A participant provides a numerical solution using Wolfram Alpha, referencing the exponential integral function and its tables.
  • Several participants discuss the integrating factor method, with one providing a detailed derivation but later expressing doubts about the correctness of the resulting solution.
  • Another participant points out inconsistencies in the derived solution, particularly when considering specific values for parameters.
  • One participant attempts to clarify the integrating factor approach, suggesting an alternative form for the integrating factor and presenting a different solution involving the exponential integral.
  • A participant expresses uncertainty about their understanding of linear differential equations and notes reliance on computational tools for integration.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the existence of an analytical solution, with multiple competing views on the methods and interpretations of the results. The discussion remains unresolved regarding the validity of the proposed solutions and the nature of the differential equation.

Contextual Notes

Some limitations include unresolved mathematical steps, dependence on definitions of functions like the exponential integral, and the complexity of the integrals involved. The discussion reflects varying levels of familiarity with differential equations among participants.

Irid
Messages
207
Reaction score
1
I have a differential equation
[tex] \frac{dx}{dt} = \frac{a-x}{b-t} - cx[/tex]
but no idea if there is an analytical solution :(
I tried the integrating factor method, but I run into a e^(-x)/x^2 kind of integral, which I think doesn't have an analytical expression.. Help, please?
 
Physics news on Phys.org
With some manipulation,your equation can get the form below:
[itex] -(t-b)(\dot{x}+cx)+x=a[/itex]
Now take a solution like:
[itex]x=\sum_0^{\infty}a_n(t-b)^{n+r}[/itex]
We have:
[itex] \dot{x}=\sum_0^{\infty}a_n (n+r) (t-b)^{n+r-1}[/itex]
If you substitute the x and [itex]\dot{x}[/itex] in the homogenous DE,you will find:
[itex] -\sum_0^{\infty}a_n(n+r)(t-b)^{n+r}+\sum_0^{\infty}a_n(t-b)^{n+r}-\sum_1^{\infty}ca_{n-1}(t-b)^{n+r}=0[/itex]
Where I have changed the summation index in the third term from n to n-1 to make the powers of (t-b) the same in all summations.
Now to make the summations start from a common n,I get the n=0 terms out of the first two summations:
[itex] -a_0r(t-b)^r+a_0(t-b)^r=0[/itex]
Which gives [itex]r=1[/itex]
Then you can take all the terms in one summation and equate the coefficient of [itex](t-b)^{n+r}[/itex] to zero to get a recursion relation which determines the series solution.
Then you should add a/(c+1) to get the solution to the in-homogenous equation.
 
Last edited:
so you mean to say that there is no solution in terms of elementary functions?
 
The series you find may come out to be the power series corresponding to an elementary function.But it only may.
 
argh :(
better integrate numerically then...
 
I just used www.wolframalpha.com to solve your equation and this is the result:
http://www3.wolframalpha.com/Calculate/MSP/MSP1811gi6c448044hadb10000242868gf692egc43?MSPStoreType=image/gif&s=12&w=389.&h=22.
With [itex]x \rightarrow t[/itex] and [itex]y \rightarrow x[/itex]
And Ei(x) is the exponential integral which you can find its values in some tables of functions.
 
Last edited by a moderator:
That is a linear differential equation.
[tex]\frac{dx}{dt}+ (\frac{1}{b- t}+ c)x= \frac{a}{b- t}[/tex]
An "integrating factor" is a function u(t) such that
[tex]\frac{dux}{dt}= u\frac{dx}{dt}+ u(\frac{1}{b- t}+ c)x[/tex]
Since
[tex]\frac{dux}{dt}= u\frac{dx}{dt}+ \frac{du}{dt}x[/tex]
that means we must have
[tex]\frac{du}{dt}= \frac{1}{b- t}+ c[/tex]
[tex]du= \left(\frac{1}{b- t}+ c\right)dt[/tex]

u(t)= -ln|b-t|+ ct

That is, the original differential equation is
[tex]\frac{d}{dt}\left(x(t)(-ln|b- t|+ c\right)= (-ln|b- t|+ ct)\frac{a}{b- t}[/tex]
so that
[tex]x(t)(-ln|b- t|+ c)= \int (-ln|b-t|+ ct)\frac{a}{b- t} dt[/tex]

Let u= b- t so that du= dt and the right side becomes
[tex]b\int \frac{ln|u|}{u}du- ac\int \frac{b- u}{u}du[/tex]
In the first integral let v= ln|u| so that dv= du/u and that integral becomes
[tex]\int v dv= (1/2)v^2= (1/2)(ln|u|)^2= (1/2)(ln|b- t|)^2[/tex]
In the second integral (b-u)/u= (b/u)- 1 and its integral bln|u|- u= b ln|b- t|- |b- t|.
putting those together
[tex]x(t)(-ln|b- t|+ c)= (1/2)(ln|b-t|)^2+ b ln|b- t|- |b- t|)[/tex]

Finally,
[tex]x(t)= \frac{ln|b-t|)^2+ b ln|b- t|- |b- t|}{2(-ln|b- t|+ c)}[/tex]
 
Last edited by a moderator:
HallsofIvy said:
That is a linear differential equation.
[tex]\frac{dx}{dt}+ (\frac{1}{b- t}+ c)x= \frac{a}{b- t}[/tex]
An "integrating factor" is a function u(t) such that
[tex]\frac{dux}{dt}= u\frac{dx}{dt}+ u(\frac{1}{b- t}+ c)x[/tex]
Since
[tex]\frac{dux}{dt}= u\frac{dx}{dt}+ \frac{du}{dt}x[/tex]
that means we must have
[tex]\frac{du}{dt}= \frac{1}{b- t}+ c[/tex]
[tex]du= \left(\frac{1}{b- t}+ c\right)dt[/tex]

u(t)= -ln|b-t|+ ct

That is, the original differential equation is
[tex]\frac{d}{dt}\left(x(t)(-ln|b- t|+ c\right)= (-ln|b- t|+ ct)\frac{a}{b- t}[/tex]
so that
[tex]x(t)(-ln|b- t|+ c)= \int (-ln|b-t|+ ct)\frac{a}{b- t} dt[/tex]

Let u= b- t so that du= dt and the right side becomes
[tex]b\int \frac{ln|u|}{u}du- ac\int \frac{b- u}{u}du[/tex]
In the first integral let v= ln|u| so that dv= du/u and that integral becomes
[tex]\int v dv= (1/2)v^2= (1/2)(ln|u|)^2= (1/2)(ln|b- t|)^2[/tex]
In the second integral (b-u)/u= (b/u)- 1 and its integral bln|u|- u= b ln|b- t|- |b- t|.
putting those together
[tex]x(t)(-ln|b- t|+ c)= (1/2)(ln|b-t|)^2+ b ln|b- t|- |b- t|)[/tex]

Finally,
[tex]x(t)= \frac{ln|b-t|)^2+ b ln|b- t|- |b- t|}{2(-ln|b- t|+ c)}[/tex]

This can't be right. If you set c=0, the solution is simply x= at/b, and your equation doesn't reduce to that. Also, if b -> infinity, the solution tends to x = Ae(-ct), which I see no trace of in your calculations.
 
Last edited:
Here's the problem:
HallsofIvy said:
that means we must have
[tex]\frac{du}{dt}= \frac{1}{b- t}+ c[/tex]
[tex]du= \left(\frac{1}{b- t}+ c\right)dt[/tex]

u(t)= -ln|b-t|+ ct

We should have:
[itex] \frac{du}{dt}=u(\frac{1}{b-t}+c)[/itex]
Which gives an integrating factor of:
[itex] u=\frac{e^{ct}}{b-t}[/itex]
And we will have:
[itex] \frac{xe^{ct}}{b-t}=\int \frac{ae^{ct}}{(b-t)^2}dt[/itex]
And this gives the answer that I tried to present in the post #6 but it seems that its image is deleted from the server of the wolframalpha.
The answer is:
[itex] -{{\rm e}^{-ct}}a \left( -{{\rm e}^{ct}}+{{\rm e}^{cb}}{\it Ei}<br /> \left( 1,cb-ct \right) cb-{{\rm e}^{cb}}{\it Ei} \left( 1,cb-ct<br /> \right) ct \right) [/itex]
Where:
[itex] Ei(a,z)=\int_1^{\infty} e^{-tz}t^{-a}dt[/itex]
is the exponential integral and you can find its values in some mathematical tables.
 
Last edited:
  • #10
Just trying :|

Isn't it a linear DE? I'm not really good at these kinds of things, but here's my try:

I'm not sure, I don't really go for analytic solutions :|EDIT: I looked at how wolframalpha would integrate the right-hand integral and it generated an Ei(-c(t-b)) o-o
 

Attachments

  • ithink.png
    ithink.png
    6.3 KB · Views: 467
Last edited:

Similar threads

  • · Replies 1 ·
Replies
1
Views
966
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K