Differentiating algebraic equation fractions

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일

1 개 추천

syms x;
simplify(diff(@(x)((-x^2-x)/(x+2)*(x+3)),x))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 11월 28일

답변:

2019년 11월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by