differentiation for a function

4 views (last 30 days)
PJS KUMAR
PJS KUMAR on 18 Sep 2018
Answered: Torsten on 18 Sep 2018
y'=x-y^2
give me the function to get derivative as
y'' =1-2*y*y'
  1 Comment
Walter Roberson
Walter Roberson on 18 Sep 2018
That is not the derivative: the 1 should not be there.
Use the symbolic toolbox.

Sign in to comment.

Answers (2)

Birdman
Birdman on 18 Sep 2018
syms y(x)
diff(diff(y,x)==x-y^2)

Torsten
Torsten on 18 Sep 2018
syms x y(x)
diff(x-y^2,x)
Best wishes
Torsten.

Tags

Community Treasure Hunt

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

Start Hunting!