I'm sometimes mystified by the use of differentials in physics. I don't understand which formulas—on which occasions—can be thought of as differential equations and which cannot.

While discussing work done by a piston during an isothermal process, my textbook does not treat $PV=nRT$ as a differential equation. Let me illustrate how $W$ is derived:


My question is, why could I not treat the ideal gas law as a differential equation and say $P\mathrm{d}V=nR\mathrm{d}T$? If I could, I'd then say:


Since $\mathrm{d}T=0$ during an isothermal process. The result is erroneous, but why can I not argue in the following way? Why can't $PV=nRT$ be treated as a differential equation? How do I know which equations can be treated as such and which can't?

  • 1
    $\begingroup$ If you want to take the differential of both sides you instead get $P dV + V dP = n R dT$. $\endgroup$
    – knzhou
    Feb 13, 2021 at 19:46
  • $\begingroup$ Because $d(PV) = PdV +VdP$. You are missing the $VdP$ in your equation $\endgroup$ Feb 13, 2021 at 19:49
  • $\begingroup$ This hasn't anything to do with being a differential equation really, all a differential equation is, is simply an "equation containing a function and one or more of it's derivatives." $\endgroup$
    – Triatticus
    Feb 13, 2021 at 20:20

2 Answers 2



can not be considered a differential equation, simply because it contains no differentials.

Now, you can't just go and differentiate that equation as:


because $V=f(n,P,T)$ and $T=g(n,P,V)$ where $f$ and $g$ are multi-variable functions. To differentiate them you would have to use partial differentials ($\partial$).

Differentiating $(1)$ you need to apply the product rule:


Assuming $n=\text{constant}$:


But to derive the work done by an isothermal expansion/compression we simply use the general definition of work:


It's easy to show that for a piston $F(x)\mathrm{d}x=P\mathrm{d}V$, so:


Then extract $P$ from the Ideal Gas Law.

Regarding your title question. Differential equations (DEs) typically arise to describe dynamic problems, where change, often (but not exclusively) in time, occurs.

Let's take a simple example. A mass $m$ sits on a rough incline, motionless. This is a static problem and requires no DEs.

Now we apply sufficient force on the mass for it to start moving. Newton's Second Law now states:

$$F_{net}=ma$$ or: $$F_{net}=m\frac{\mathrm{d}v}{\mathrm{d}t}$$

This is of course a DE which allows us to calculate the rate of change of the velocity $v$.


I'll try to concentrate my answer to your general question, more than concentrating on the example, although I'll touch it as an example of the general answer.

The basic answer is that Thermodynamics deals with functions of more than one variable. Therefore, in general, one has to expect to find partial differential equations. Partial differential equations are related but do not coincide with the differential one can write using thermodynamic laws.

Therefore, the way partial differential equations enter the play is more subtle than just taking the differential of left- and right-hand side of a thermodynamic relation.

Let's look in this perspective the equation of state of the perfect gas.

Le time rewrite the equation as $$ \frac{P}{T}= n\frac{R}{V}.\tag{1} $$ If we recall that $$ \left.\frac{\partial{S}}{\partial{V}}\right|_{U,n}=\frac{P}{T}(U,V,n),\tag{2} $$ equation $(1)$ correspond to the partial differential equation $$ \left.\frac{\partial{S}}{\partial{V}}\right|_{U,n}=n\frac{R}{V} $$ and in this simple case of the ideal gas it can be integrated to provide $$ S(U,V,n)=nR\log (V)+ \Phi(U,n) $$ where $\Phi(U,n)$ is an arbitrary function of $U$ and $n$ and cannot be determined by equation $(1)$ only. Adding more information, for example the relation between $T$ and $U$, it is possible to obtain the fundamental function $S(U,V,n)$ within an arbitrary constant.

Notice that with a more general equation of state, for example is the right-hand side of equation $(1)$ depends on $V$ and $U$, it would not be possible to avoid to solve a system of partial differential equations.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.