Extra variable in differential equation's symbolic solution
Mostrar comentarios más antiguos
I'm trying to understand where this extra variable, z, comes from in the analytical solution of this differential equation. I used the Symbolic Toolbox to evaluate the solution. Is there another efficient or better way to provide the general solution of this equation?
syms y(t)
eqn2 = diff(y)==-(4*t+3*y)/(2*t+y)
ans1=dsolve(eqn2)
Respuesta aceptada
Más respuestas (1)
ans1=dsolve(eqn2,'MaxDegree',3)
gives the explicit (complicated) solution.
For each t, root(...) means the root of the polynomial(z) in brackets.
Compare with
Categorías
Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


