# Mathematical interpretation of work done by a gas

1. Mar 13, 2014

### MexChemE

Hello everybody! First of all, I would like to say that this is my first post in this forum, even though I've occasionally read some posts before. I'm a ChemE major from Mexico!

I am currently taking Thermodynamics I, and I have trouble figuring out the expression: $$W = \int_{V_1}^{V_2} PdV$$ I suppose pressure is being treated like a constant in the above equation. If so, if we integrate we would get this expression: $W = P(V_2-V_1)$, right? But then I read in HyperPhysics that we express work as an integral when pressure varies too, so, wouldn't we need an integral of two variables?

I know we express work as an integral because it is the area under the PV curve, but as you can see I'm currently lost between concepts. I hope my question makes sense. Thanks in advance!

2. Mar 13, 2014

### Staff: Mentor

No. In general, the pressure could be a function of volume.

Right. For an isobaric process.

You'd need to evaluate:
$$W = \int_{V_1}^{V_2} P(V)dV$$

3. Mar 13, 2014

### dauto

P is the function that is being integrated. V is the variable of integration.

4. Mar 13, 2014

### MexChemE

I never considered pressure as a function, that was the problem. It makes sense now. *sigh* Thank you both!

5. Mar 13, 2014

### Staff: Mentor

Hi MexChemE. Welcome to Physics Forums!!! I too am a ChE.

For more on this subject, see my Blog on my PF personal page. I treat a lot of issues that people who are new to Thermodynamics get confused about. It is only a couple of pages long.

Chet

6. Mar 13, 2014

### MexChemE

Thanks Chet! I am definitely going to check your blog, thermodynamics is actually my favorite branch of physics. Here in Mexico, we have the option of presenting an undergraduate research thesis in order to obtain our degree, and I'm planning on focusing my research on thermodynamics. I'm just a freshman currently, though.