Solve ODE without initial condition
1 次查看(过去 30 天)
显示 更早的评论
syms y(x) x
E=diff(y,x)+(y*cos(x)+sin(y)+y)/(sin(x)+x*cos(y)+x)==0
y=(dsolve(E))
I am getting error
E(x) =
Warning: Unable to find symbolic solution.
y =[ empty sym ]
0 个评论
回答(2 个)
Torsten
2023-11-20
Your ODE is nonlinear. The symbolic toolbox is not able to find an analytical solution for it. You will only be able to solve it numerically with a given initial condition.
Sam Chak
2023-11-20
Hi @sudhir
I also couldn't obtain the analytical solution using dsolve(). However, when I tested this problem on Wolfram Alpha, it returned an open-form solution that manifests in the form of a recurrence relation.
2 个评论
Torsten
2023-11-20
Impressive that Wolfram Alpha was able to deduce this.
Maybe better: "implicit" instead of "recurrence" for the solution given.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!