I'm trying to make a function where I'm making a derivative of a polynomial but it does not work as I expect. Consider this example
poly1=a*x^2 + t poly2=D[poly1,x] fun1[x_,t_]:=D[a*x^2 + t,x] fun2[x_,t_]:=D[poly1,x] fun3[x_,t_]:=poly2
now if I put
the result is what I want/expect:
but if I put
the result is
Why is that?
I have a very long polynomial which I want to define as a function of derivatives of some polynomials of x and t. how I can solve the issue?
P.S. I have absolutely no idea what should I put as tag here!