Differential of function

592 days ago by Buyan

var('x') f=2*x^3 +3*x^2 -36*x +7 plot(f, (x,-6, 6)) 
       
df=diff(f,x) df 
       
6*x^2 + 6*x - 36
6*x^2 + 6*x - 36
solve(df==0,x) 
       
[x == -3, x == 2]
[x == -3, x == 2]
dff=diff(df,x) dff 
       
12*x + 6
12*x + 6
solve(dff==0,x) 
       
[x == (-1/2)]
[x == (-1/2)]