Differentiating algebraic equation fractions

2 次查看(过去 30 天)
Hi guys, have a test coming up and i will be able to use matlab.
How do i differentiate algebraic equations such as fractions, in real life we will use the quotient rule, but how do i do it using matlab?
Ex: d/dx ((-x^2-x)/(x+2)*(x+3))
What will i enter into matlab for it to be differentiated?

采纳的回答

Vladimir Sovkov
Vladimir Sovkov 2019-11-28
syms x;
simplify(diff(@(x)((-x^2-x)/(x+2)*(x+3)),x))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by