MATLAB: How to get second derivative in symblolic toolbox

symbolic

my expretion = cos(x*t^2)+x^2+4*t^3); how to get second derivative by t?

Best Answer

You should determine x and t as syms x t and use diff command diff(cos(x*t^2)+x^2+4*t^3),t,2); t, 2 means second derivative by t.
Related Question