MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Partial diff equations

  • To: mathgroup at
  • Subject: [mg58537] Re: [mg58510] Partial diff equations
  • From: Pratik Desai <pdesai1 at>
  • Date: Wed, 6 Jul 2005 03:11:22 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

David Boily wrote:

>I have a not difficult to integrate but huge system of partial
>differential equations that I would never attempt to solve by hand. So I
>tried to feed it to mathematica and got the message bellow. I got annoyed and
>tested DSolve with a trivial problem only to realize that, apparently,
>mathematica is not very good when it comes to partial diff equations.
>Indeed, how come mathematica can't solve this simple system:
>DSolve[{D[f[x,y],x]==2 x y^2, D[f[x,y],y]==2 x^2 y}, f[x,y], {x, y}]
>the solution is trivial (f[x,y]=x^2 y^2), but if I enter the above
>command I get:
>   The system has fewer dependent variables than equations, so is
>    overdetermined.
>any info would be appreciated,
>David Boily
>Centre for Intelligent Machines
>McGill University
>Montreal, Quebec
I am not sure exactly what system you refer to in your expression, but 
if you try this
sol1 = DSolve[D[f[x, y], x] == 2 x y^2, f[x, y], {x, y}] // First;
sol2 = DSolve[D[f[x, y], y] == 2 x^2 y, f[x, y], {x, y}] // First;
f1[x_, y_] = f[x, y] /. sol1
f2[x_, y_] = f[x, y] /. sol2
 >>\!\(x\^2\ y\^2 + \(C[1]\)[y]\)
 >>\!\(x\^2\ y\^2 + \(C[1]\)[x]\)

D[f1[x, y], x]
D[f2[x, y], y]
It seems to work fine

Best regards

Pratik Desai
Graduate Student
Department of Mechanical Engineering
Phone: 410 455 8134

  • Prev by Date: Re: display of function
  • Next by Date: Re: Re: Function to handle array with variable _number_ of dimensions?
  • Previous by thread: Re: Partial diff equations
  • Next by thread: Re: Partial diff equations