Extra variable in differential equation's symbolic solution
Afficher commentaires plus anciens
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)
Réponse acceptée
Plus de réponses (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
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


