Filter löschen
Filter löschen

Unable to find symbolic solution with "dsolve" function

10 Ansichten (letzte 30 Tage)
Lucas Howarth
Lucas Howarth am 9 Okt. 2020
Kommentiert: Walter Roberson am 13 Okt. 2020
I've used the dsolve() function before, but for some reason it isn't working well for me on this particular problem. The differential equation is dy/dt=(t-e^(-t))/(y+e^y), with an initial value of y(1.5)=0.5.
sol=dsolve('Dy=(t-exp(-t))/(y+(exp(y)))','y(1.5)=0.5','t')
These are the warnings I get:
In dsolve (line 126)
Warning: Unable to find symbolic solution.
> In dsolve>assignOutputs (line 242)
In dsolve (line 228)
and "sol" gets [empty sym], when it should get me an equation.
  11 Kommentare
Bhomik Kankaria
Bhomik Kankaria am 13 Okt. 2020
Hi Lucas,
If dsolve cannot find an explicit solution of a differential equation analytically, then it returns an empty symbolic array. You can solve the differential equation by using MATLAB® numerical solver, such as ode45. For more information, see Solve a Second-Order Differential Equation Numerically.
Alternatively, you can try finding an implicit solution of the differential equation by specifying the 'Implicit' option to true.For example, in your case you can use it to solve the equation -
>> dsolve('Dy=(t-exp(-t))/(y+(exp(y)))','y(1.5)=0.5','t','Implicit',true)
Walter Roberson
Walter Roberson am 13 Okt. 2020
By the way, Maple is not able to solve the equation.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by