I am trying to do partial differentiation using symbolic, but getting some error. Attaching herewith the work.
G[x_, y_] := x y
D[G[x, y], y]
(\[PartialD]G (x, y))/\[PartialD]y
want to use symbolic for better understanding. Kindly help.
question.nb (2.77 KB)
shenghuiy
(Shenghui Yang)
2
You need to use square bracket and subscript notation for partial derivative to make it work.
Sir
Thank you for your reply. I want to use the other option.
G[x_, y_] := x y
[PartialD][G (x, y)]/[PartialD]y
still getting error.
I don’t think you can change the behaviour of the symbol for partial derivatives, however you can use another letter:
\[GothicD] /: \[GothicD][func_]/\[GothicD][var_] := D[func, var];
G[x_, y_] := x y;
\[GothicD][G[x, y]]/(\[GothicD][x])