Solve symbolic equation with derivatives
Afficher commentaires plus anciens
I want to solve an equation with the symbolic math toolbox. This equation also contains derivatives. E.g.:
eqn1 = 0 == x + y + diff(f(t),t)
sol1 = solve(eqn1, diff(f(t),t));
But I always get an empty structure as solution. Is there any way to do this or do I have to convert the diff(f(t),t) into another symbolic variable and convert it back to the derivative after I solved the equation?
Réponse acceptée
Plus de réponses (1)
madhan ravi
le 4 Juin 2020
0 votes
dsolve(...) is the one to be used for odes.
4 commentaires
Steradiant
le 4 Juin 2020
madhan ravi
le 4 Juin 2020
syms x y df
% df -> diff(f(t),t)
eqn1 = 0 == x + y + df
sol1 = solve(eqn1, df)
doc subs
Steradiant
le 4 Juin 2020
madhan ravi
le 4 Juin 2020
Good luck.
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!