MATLAB: How can i derive sin(x)

derivativedifferentiationimplicit derivationsinx

hello there I have problem with derivation of sin(x)
syms x
diff(sin(x))
ans
cos(x)
but I want the answer to be xdot*cos(x), can you tell me how can i do it? ,please

Best Answer

syms x(t)
diff(sin(x))
Related Question