Solve ODE without initial condition
Show older comments
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 ]
Answers (2)
Torsten
on 20 Nov 2023
0 votes
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
on 20 Nov 2023
0 votes
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.

Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!