Solving First Order Partial Differential Equations

In summary, when solving a first order partial differential equation, you must first solve the three differential equations that correspond to the coordinate values (x, y, z). Then, you use partial derivatives to obtain the solution for p.
  • #1
jam12
38
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
  • #2
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​
 
  • #3
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?
 
  • #6
[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.

Now differentiate that f with respect to y:
[tex]\frac{\partial f}{\partial y}= x+ C'(y)= e^y+ x[/tex]
The "x" terms cancel (that had 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.

That gives [itex]f(x,y)= (1/2)x^2+ xy+ e^y+ D[/itex].

Your first two equations,
[tex]\frac{\partial p}{\partial x}= 0[/tex]
[tex]\frac{\partial p}{\partial y}= 0[/tex]
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
[tex]\frac{\partial p}{\partial y}= \frac{0\partial A}{\partial y}= 0[/tex]
which says that A is a "constant" with respect to y- but may be a function of z.
 
Last edited by a moderator:
  • #7
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.

Now differentiate that f with respect to y:
[tex]\frac{\partial f}{\partial y}= x+ C'(y)= e^y+ x[/tex]
The "x" terms cancel (that had 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.

That gives [itex]f(x,y)= (1/2)x^2+ xy+ e^y+ D[/itex].

Your first two equations,
[tex]\frac{\partial p}{\partial x}= 0[/tex]
[tex]\frac{\partial p}{\partial y}= 0[/tex]
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
[tex]\frac{\partial p}{\partial y}= \frac{0\partial A}{\partial y}= 0[/tex]
which says that A is a "constant" with respect to y- but may be a function of z.

Thanks this is very well explained, i understand it now:cool:
 

FAQ: Solving First Order Partial Differential Equations

What is a first order partial differential equation?

A first order partial differential equation is an equation that involves partial derivatives of a function with respect to one or more independent variables. It typically describes the relationship between the rate of change of a function and its independent variables.

What is the difference between a first order partial differential equation and an ordinary differential equation?

The main difference between a first order partial differential equation and an ordinary differential equation is that the former involves partial derivatives while the latter only involves ordinary derivatives. In other words, a first order partial differential equation describes the relationship between a function and its independent variables in multiple dimensions, while an ordinary differential equation describes the relationship in a single dimension.

What are some real-world applications of first order partial differential equations?

First order partial differential equations have many applications in physics, engineering, and other fields. Some examples include modeling heat transfer, fluid dynamics, and electromagnetic fields.

How are first order partial differential equations solved?

There are many different methods for solving first order partial differential equations, including separation of variables, method of characteristics, and numerical methods such as finite differences and finite elements. The specific method used will depend on the specific equation and its boundary conditions.

What is the importance of first order partial differential equations in mathematics?

First order partial differential equations are important in mathematics because they provide a powerful tool for describing and understanding physical phenomena in multiple dimensions. They also have applications in other areas of mathematics, such as geometry and topology.

Back
Top