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) = ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1544227/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1544227/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1544382/image.png)
댓글 수: 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!