Symbolic Differentiation wrt time
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have such an expression;
(x(t) + y(t))^2
Where x and y are function of t How can I symbolically take the derivative of this expression with respect to t
Which has to result in 2[xx' + xy' + yx' + yy']
0 Commenti
Risposte (1)
Wayne King
il 22 Dic 2013
syms t x(t) y(t)
diff((x(t)+y(t))^2)
The above gives the output:
2*(x(t) + y(t))*(diff(x(t), t) + diff(y(t), t))
which is equivalent to what you have in your post.
2 Commenti
Mohammad
il 1 Apr 2014
hi, what about when we want to have upper degree derivatives of the same expression?
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!