Solving First Order Partial Differential Equations

  • Context: Graduate 
  • Thread starter Thread starter jam12
  • Start date Start date
  • Tags Tags
    First order Partial
Click For Summary

Discussion Overview

The discussion revolves around solving a first order partial differential equation involving pressure and density in three-dimensional Cartesian coordinates. Participants explore methods for separating variables and integrating to find solutions, while addressing the nature of the variables involved.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant poses a question about solving the equation grad p = (0,0,-ρg) and expresses confusion about treating pressure as a scalar rather than a vector function.
  • Another participant clarifies that the equations should be expressed as partial derivatives: ∂p/∂x = 0, ∂p/∂y = 0, ∂p/∂z = -ρg.
  • A participant inquires about how to combine the solutions derived from these equations, suggesting that they yield three separate solutions for p.
  • One participant suggests that separation of variables could be a suitable method for solving the problem.
  • Another participant explains that the partial derivatives indicate that p is not a function of x or y, but rather a function of z only, and provides a method for integrating to find p.
  • There is a discussion about the nature of constants of integration, with one participant emphasizing that the constants may depend on other variables rather than being purely constant values.
  • Participants engage in a detailed explanation of how to handle constants of integration when solving partial differential equations.

Areas of Agreement / Disagreement

Participants express differing views on how to interpret the solutions to the partial differential equations, particularly regarding the nature of the constants of integration and the implications of treating variables as constants. The discussion remains unresolved with multiple competing perspectives on the correct approach.

Contextual Notes

There are limitations in the assumptions made about the nature of the variables and the constants of integration, as well as the dependence on specific definitions of pressure and density in the context of the problem.

jam12
Messages
37
Reaction score
0
Hi there, how can i solve this first order partial differential equation:

grad p= (0,0,-ρg)

where p=p(x,y,z,t) is pressure
where ρ=ρ(x,y,z,t) is density
where grad p is in three dimensional Cartesian coordinates

can i just separately solve the three differential equations?
ie dpx/dx = 0
dpy/dy = 0
dpz/dz=-ρg

But I am confused as p is not a vector function itself. so the final answer cannot be in the form p=(px,py,pz)
 
Physics news on Phys.org
jam12 said:
can i just separately solve the three differential equations?
ie dpx/dx = 0
dpy/dy = 0
dpz/dz=-ρg

But I am confused as p is not a vector function itself. so the final answer cannot be in the form p=(px,py,pz)
Since p is a scalar, instead you would have
∂p/∂x = 0
∂p/∂y = 0
∂p/∂z=-ρg​
 
Redbelly98 said:
Since p is a scalar, instead you would have
∂p/∂x = 0
∂p/∂y = 0
∂p/∂z=-ρg​

I see, so how do i combine these solutions for p?
i get three solutions p=A (constant), p=B (constant) and p=-ρgz + C.
so what does my solution look like for p?
 
[tex]\frac{\partial p}{\partial x}= 0[/tex]
and
[tex]\frac{\partial p}{\partial y}= 0[/tex]
say that p is not a function of x or y but a function of z only.

To solve
[tex]\frac{dp}{dz}= -\rho g[/tex]
just intgrate to get [itex]p(x, y, z)= -\rho gz+ C[/itex].

Partial derivatives do NOT give three different solutions. If you had, for example,
[tex]\frac{\partial f}{\partial x}= x+ y[/tex]
and
[tex]\frac{\partial f}{\partial y}= e^y+ x[/tex]
From the first equation, you would get [itex]f(x,y)= (1/2)x^2+ xy+ C(y)[/tex]. Because, in taking the partial derivative with respect to x, we treat y as a constant, the "constant of integration" may be a function of y. <br /> <br /> Now differentiate that f with respect to y:<br /> [tex]\frac{\partial f}{\partial y}= x+ C'(y)= e^y+ x[/tex]<br /> The "x" terms cancel (that <b>had</b> to happen for this system to have a solution) giving just [itex]C'(y)= e^y[/itex] so [itex]C(y)= e^y+ D[/itex] where D now really is a constant.<br /> <br /> That gives [itex]f(x,y)= (1/2)x^2+ xy+ e^y+ D[/itex].<br /> <br /> Your first two equations, <br /> [tex]\frac{\partial p}{\partial x}= 0[/tex]<br /> [tex]\frac{\partial p}{\partial y}= 0[/tex]<br /> do NOT give "p= A" or "p= B". Since differentiation with respect to x treats both y and z as constant, the "constant of integration" may be a function of y and z: p= A(y,z). Then <br /> [tex]\frac{\partial p}{\partial y}= \frac{0\partial A}{\partial y}= 0[/tex]<br /> which says that A is a "constant" with respect to y- but may be a function of z.[/itex]
 
Last edited by a moderator:
HallsofIvy said:
[tex]\frac{\partial p}{\partial x}= 0[/tex]
and
[tex]\frac{\partial p}{\partial y}= 0[/tex]
say that p is not a function of x or y but a function of z only.

To solve
[tex]\frac{dp}{dz}= -\rho g[/tex]
just intgrate to get [itex]p(x, y, z)= -\rho gz+ C[/itex].

Partial derivatives do NOT give three different solutions. If you had, for example,
[tex]\frac{\partial f}{\partial x}= x+ y[/tex]
and
[tex]\frac{\partial f}{\partial y}= e^y+ x[/tex]
From the first equation, you would get [itex]f(x,y)= (1/2)x^2+ xy+ C(y)[/tex]. Because, in taking the partial derivative with respect to x, we treat y as a constant, the "constant of integration" may be a function of y. <br /> <br /> Now differentiate that f with respect to y:<br /> [tex]\frac{\partial f}{\partial y}= x+ C'(y)= e^y+ x[/tex]<br /> The "x" terms cancel (that <b>had</b> to happen for this system to have a solution) giving just [itex]C'(y)= e^y[/itex] so [itex]C(y)= e^y+ D[/itex] where D now really is a constant.<br /> <br /> That gives [itex]f(x,y)= (1/2)x^2+ xy+ e^y+ D[/itex].<br /> <br /> Your first two equations, <br /> [tex]\frac{\partial p}{\partial x}= 0[/tex]<br /> [tex]\frac{\partial p}{\partial y}= 0[/tex]<br /> do NOT give "p= A" or "p= B". Since differentiation with respect to x treats both y and z as constant, the "constant of integration" may be a function of y and z: p= A(y,z). Then <br /> [tex]\frac{\partial p}{\partial y}= \frac{0\partial A}{\partial y}= 0[/tex]<br /> which says that A is a "constant" with respect to y- but may be a function of z.[/itex]
[itex] <br /> Thanks this is very well explained, i understand it now<img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f60e.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":cool:" title="Cool :cool:" data-smilie="6"data-shortname=":cool:" />[/itex]
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K