MATLAB Answers

0

differentiation for a function

Asked by PJS KUMAR on 18 Sep 2018
Latest activity Answered by Torsten
on 18 Sep 2018
y'=x-y^2
give me the function to get derivative as
y'' =1-2*y*y'

  1 Comment

That is not the derivative: the 1 should not be there.
Use the symbolic toolbox.

Sign in to comment.

Tags

2 Answers

Answer by Birdman
on 18 Sep 2018

syms y(x)
diff(diff(y,x)==x-y^2)

  0 Comments

Sign in to comment.


Answer by Torsten
on 18 Sep 2018

syms x y(x)
diff(x-y^2,x)
Best wishes
Torsten.

  0 Comments

Sign in to comment.