I want to calculate the partial derivatives of the function $A(x,y)$. For example, I want to use Maple to calculate $\frac{\partial^2}{\partial x\partial y}\left(K\cdot x\cdot A(x,y) \right)$ where $K$ is some constant. Here the function $A(x,y)$ is not defined explicitly and so I expect to see terms like $\frac{\partial^2}{\partial x\partial y}A(x,y)$ in the answer.
I used the following Maple code to calculate
D[1,1] (K * x * A) (x,y) assuming K::constants
However, Maple will treat $x$ in $K \cdot x \cdot A$ also as a function. How should I tell Maple that $x$ is a variable that I want to take derivative with?
Dtakes operator as an argument,difftakes expression as an argument. I guess you could use eitherD[1,2]((x,y)->K * x * A(x,y))(x,y)ordiff(K * x * A(x,y),[x,y])– Sil Jan 02 '23 at 23:19