Relating Work and the Ideal Gas Law

Expansion Due to Chemical Reaction
When a chemical reaction takes place where the number of moles of gas changes, expansion can occur. Typically this would happen with a reaction in a balloon, but this also happens for a reaction happening in an open vessel.
Example:
Calcium carbonate decomposes into calcium oxide and carbon dioxide as shown below. If 12g of calcium carbonate are placed into a vessel open to the atmosphere at room temperature and the reaction takes place, how much work is done on/by the system?

The flask is open to the atmosphere so the expansion is taking place against a constant external pressure of 1 atm, however we don't know the change in volume.
Using the Ideal gas law,
substituting we get,
We can find the number of moles of gas produced by the reaction, Δn, by examining the stoichiometry in the question.
Example:
Calcium carbonate decomposes into calcium oxide and carbon dioxide as shown below. If 12g of calcium carbonate are placed into a vessel open to the atmosphere at room temperature and the reaction takes place, how much work is done on/by the system?

We can now solve for the work done by this chemical reaction,

Example: Relating Work and the Ideal Gas Law
For the following reaction at 25oC, ΔHrxn=-405kJ/mol what is ΔUrxn?
SO2(g) + V2O5(s) → SO3(g) + 2VO2(g)
How are ΔH and ΔU related?
ΔH=ΔU+Δ(PV)
Here we do not have P or V so what should we do?
Think of ideal gas law and use the following equation instead:
ΔH=ΔU+Δ(n)RT
Rearrange to solve for ΔU:
ΔU=ΔH - Δ(n)RT
ΔU=-405000J/mol -(1-1 moles)(8.314J/Kmol)(298K)
ΔU=-405000J/mol