Symbolic Differentiation wrt time
이전 댓글 표시
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']
답변 (1개)
Wayne King
2013년 12월 22일
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
Mohammad
2014년 4월 1일
hi, what about when we want to have upper degree derivatives of the same expression?
Walter Roberson
2014년 4월 1일
diff((x(t)+y(t))^2,t,3) %third derivative
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!