Bug introduced in 3.0 or earlier and persisting through 13.2
I encountered this when trying to solve this problem with DSolve:
eqn = With[{p = p[x, y, t]}, D[p, t] == x D[p, x] + (1 - y) D[p, y] + 2 p];
DSolve[eqn, p, {t, x, y}]
DSolve::deqx: Supplied equations are not differential equations of the given functions.
(* Input returned *)
It's not surprising to see DSolve fails in solving PDEs… but why this warning? Even more shocking:
DSolve[eqn, p, {x, y, t}]
{{p -> Function[{x, y, t}, C[1][x (-1 + y), t + Log[x]]/x^2]}}
The result changed just because I reordered the independent variables (from {t, x, y} to {x, y, t}). Is this a bug?
DSolvecan't seem to solve PDE at that time: https://i.stack.imgur.com/V1Se1.png – xzczd Dec 12 '19 at 04:34ptop[x, y, t]you get a solution in a different form (in V12). It seems to solve the pde as if you had writtenp[t, x, y]instead ofp[x, y, t]; since it returns an expression, the permutation of the arguments does not matter and you get a valid solution. – Michael E2 Dec 12 '19 at 15:09prather thanp[x, y, t]is valid and documented. – xzczd Dec 13 '19 at 08:56Withis more readable. Actually this isn't orignal sample, I edited it yesterday. (You can check the edit history. ) I've edited the sample further, now it should be better. – xzczd Dec 13 '19 at 11:54I reordered the independent variablesThe order ofindependent variablesmust match the order they appear in the dependent variable. At least this is what I always made sure when I type the call. So if you writeu[x,y,t], then it should be{x,y,t}also and if you writeu[t,x,y]then it should be{t,x,y}. – Nasser Mar 18 '20 at 18:21DSolve. I just assumed it is by design. I do not think I've seen this documented anywhere if my memory is right. btw, in Maple, one does not even have to telldsolvewhat is the dependent variable and what are the independent variables. It figures them out by parsing the ODE or the PDE itself. – Nasser Mar 19 '20 at 04:17DSolvedocument. (Didn't test them all because it's really painful to do this on Wolfram cloud… ) The order matters in 5 of them. (3, 4, 6, 8, 10. ) – xzczd Mar 19 '20 at 04:55and ordering the variables the same elsewhere– Nasser Mar 19 '20 at 05:03