MATLAB Answers

Differentiating algebraic equation fractions

2 views (last 30 days)
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?

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.