MATLAB: How to simply differentiate equations

derivitivedifferentiateequationsmath

I have defined an equation V(x,t), can i store the second derivitive of this equation in a new equation?

Best Answer

Do you have the Symbolic Toolbox?
syms x t;
v = cos(x)*sin(t);
d2v_dx2 = diff(v,'x',2);
d2v_dx2 has class sym