Virginia Research Institute
Virginia Research Institute
Virtual Laboratory  ·  Built by E2 Innovations
← Back to Virtual Labs|The First Law of Thermodynamics
Thermodynamics · Energy, Heat & Work

The First Law of Thermodynamics

Add heat to a gas and track where the energy goes. Hold the volume fixed and watch all the heat become internal energy; then let the gas expand and see the energy split between internal energy and the work the gas does pushing the piston. Verify the First Law, ΔU = q + W, from your own measurements.

Theory — The First Law of Thermodynamics

Energy Conservation for a Gas

The First Law of Thermodynamics is the law of conservation of energy applied to a gas. The internal energy of the gas can change in two ways: by heat flowing in or out, and by work done on or by the gas as its volume changes.

First Law of Thermodynamics ΔU = q + W

ΔU = change in internal energy (J)
q = heat added to the gas (J)
W = work done on the gas (J)
Energy is conserved: heat in and work done on the gas change its internal energy

This lab uses the convention that W is the work done on the gas. When a gas expands it does work on its surroundings, so the work done on the gas is negative (W = −PΔV); when it is compressed, work done on it is positive.

Internal Energy of an Ideal Gas

For an ideal gas, the internal energy depends only on temperature — not on pressure or volume separately. Raising the temperature raises the internal energy in direct proportion.

Internal Energy Change ΔU = n · Cᵥ · ΔT

n = moles of gas, Cᵥ = molar heat capacity at constant volume
Monatomic ideal gas: Cᵥ = (3/2)R, Cₚ = (5/2)R, R = 8.314 J/mol·K
ΔU depends only on the temperature change

Work Done During a Volume Change

When the gas changes volume against a pressure, work is done. At constant pressure the work done on the gas is simply −P times the volume change.

Work (constant pressure) W = −P · ΔV  (work done on the gas)

Expansion (ΔV > 0): gas does work, W < 0
Compression (ΔV < 0): work done on gas, W > 0

Two Special Processes

Isochoric (constant V)

Volume fixed, so ΔV = 0 and W = 0. All the heat becomes internal energy: ΔU = q = n·Cᵥ·ΔT.

Isobaric (constant P)

Gas expands as it is heated. Heat splits: q = n·Cₚ·ΔT, work W = −PΔV, leaving ΔU = n·Cᵥ·ΔT.

Always

Whatever the process, ΔU = q + W. Internal energy is set by temperature alone.

ProcessHeld constantWork W (on gas)First Law
IsochoricVolume0ΔU = q
IsobaricPressure−PΔVΔU = q − PΔV
Any ideal-gas processvariesΔU = q + W = n·Cᵥ·ΔT

Instructions — Running the Virtual Experiment

The Isochoric tab locks the piston so all heat becomes internal energy; the Expansion tab lets the gas expand at constant pressure so you can separate heat, work, and internal energy. Record every reading in your lab report with screenshots of the start and end states.

Scenario 1 — Isochoric Process (Isochoric tab)
1
Open Simulation → Isochoric. The piston is locked, so the volume is fixed. Note the initial temperature, pressure, and volume.
2
Click Add heat to raise the temperature. Watch the pressure climb while the volume stays fixed. Record the initial and final temperature and pressure.
3
Because ΔV = 0, the work W = 0, so ΔU = q = n·Cᵥ·ΔT. Confirm the heat added equals the internal-energy change shown in the readout.
Scenario 2 — Expansion with Work (Expansion tab)
1
Open Expansion. The piston is free and the pressure is held constant. Add heat in steps and record at least five (P, V, T) data points as the gas expands.
2
For the process, compute q = n·Cₚ·ΔT, the work W = −PΔV, and ΔU = n·Cᵥ·ΔT. Confirm that q + W = ΔU — the First Law.

Simulation — Heating a Gas

First Law Virtual LabAdd heat and track energy, heat, and work
heat in
Piston locked · volume fixed · n = 1.00 mol monatomic gas.

Add heat (volume locked)

State & energy
Volume V (fixed)24.9 L
Temperature T300 K
Pressure P100.0 kPa
Work W = −PΔV0 J
Heat added q0 J
ΔU = n·Cᵥ·ΔT0 J
Add heat: with V fixed, ΔU = q (W = 0).
heat in
piston (free)
Pressure constant · gas expands · n = 1.00 mol.

Add heat (pressure constant)

State & energy
Pressure P (fixed)100.0 kPa
Temperature T300 K
Volume V24.9 L
Heat q = n·Cₚ·ΔT0 J
Work W = −PΔV0 J
ΔU = n·Cᵥ·ΔT0 J
Add heat: energy splits between ΔU and work.
T (K)P (kPa)V (L)q (J)W (J)ΔU = q+W (J)
Add heat and click "Record point" to log the process.

Team Questions

Question 1. State the First Law of Thermodynamics as an equation relating ΔU, q, and W (work done on the gas). (Type it — e.g. ΔU = q + W)
Question 2. In a constant-volume (isochoric) process, what is the work W done on or by the gas? (Type just the number in J)
Question 3. 1.00 mol of a monatomic gas (Cᵥ = 12.47 J/mol·K) is heated at constant volume from 300 K to 400 K. Find ΔU. (Type just the number in J — e.g. 1247)
Question 4. For that constant-volume process, how much heat q was added to the gas? (Type just the number in J)
Question 5. A gas expands at a constant pressure of 100 kPa (= 100000 Pa), with its volume increasing by 0.00833 m³. What is the work W done on the gas? Use W = −PΔV. (Type just the number in J — e.g. −833)
Question 6. In that isobaric expansion, q = 2079 J is added and W = −833 J. Using the First Law, what is ΔU? (Type just the number in J)
Question 7 — Challenge. For an ideal gas, the internal energy depends on only one state variable. Which one? (One word)

Example Lab Report

Sample report demonstrating the expected format and level of detail. Use as a guide for your own submission, and include labelled screenshots of the start and end states for each scenario.

The First Law of Thermodynamics

Physics | Section: [Your Section] | Date: [Date]

Lab Members: [Names of all members present]

Purpose

To verify the First Law of Thermodynamics, ΔU = q + W, for an ideal gas by carrying out two processes: an isochoric (constant-volume) heating, in which all the heat becomes internal energy, and an isobaric (constant-pressure) expansion, in which the heat divides between internal energy and the work done by the gas. The number of moles is found from the ideal gas law at the initial state.

Theory

The First Law states ΔU = q + W, where W is the work done on the gas. For an ideal gas the internal energy depends only on temperature, ΔU = n·Cᵥ·ΔT. At constant volume W = 0, so ΔU = q = n·Cᵥ·ΔT. At constant pressure the work done on the gas is W = −PΔV and the heat is q = n·Cₚ·ΔT, with Cₚ = Cᵥ + R. A monatomic ideal gas has Cᵥ = (3/2)R = 12.47 J/mol·K and Cₚ = (5/2)R = 20.79 J/mol·K.

ΔU = q + W · ΔU = n·Cᵥ·ΔT
Isochoric: W = 0, ΔU = q · Isobaric: W = −PΔV, q = n·Cₚ·ΔT

Determining the Moles (initial state)

n = PV/RT = (100000 Pa)(0.0249 m³)/[(8.314)(300)] = 1.00 mol

Scenario 1 — Isochoric (V = 24.9 L constant)

Measured: T: 300 → 400 K, P: 100.0 → 133.3 kPa, V constant

Work: W = −PΔV = 0 (no volume change)

Internal energy: ΔU = n·Cᵥ·ΔT = (1.00)(12.47)(100) = 1247 J

Heat: q = ΔU = 1247 J, confirming ΔU = q when W = 0.

Scenario 2 — Isobaric Expansion (P = 100 kPa constant)

T (K)P (kPa)V (L)q (J)W (J)ΔU = q+W (J)
30010024.9000
32510027.0520−208312
35010029.11039−416624
37510031.21559−624935
40010033.32079−8331247

At each step q + W equalled n·Cᵥ·ΔT, and the final ΔU of 1247 J matched the isochoric result for the same temperature change.

Discussion

In the isochoric process the volume did not change, so no work was done and all 1247 J of heat went into internal energy — the readout confirmed ΔU = q. In the isobaric expansion, 2079 J of heat was added but the gas did 833 J of work pushing the piston out (W = −833 J on the gas), leaving 1247 J as the internal-energy increase. Both processes raised the temperature by the same 100 K, and indeed both gave the same ΔU = 1247 J, illustrating that for an ideal gas the internal energy depends only on temperature, not on the path taken.

The numerical check q + W = ΔU held at every step of the expansion, confirming the First Law. Small differences between calculated and on-screen values came from reading precision and from averaging the pressure while the piston moved. The constant-volume case had the lowest uncertainty because only temperature and pressure had to be read.

Conclusion

The First Law of Thermodynamics was confirmed: in constant-volume heating ΔU ≈ q (W = 0), while the expansion required the work term, with q + W = ΔU throughout. Internal energy was set by temperature alone, and the results were consistent with ideal-gas thermodynamics within reading precision.

Practice Questions

Show all work and include units. Use R = 8.314 J/mol·K; for a monatomic ideal gas Cᵥ = 12.47 and Cₚ = 20.79 J/mol·K.

Question 1
2.0 mol of a monatomic ideal gas is heated at constant volume from 290 K to 350 K. Find the heat added, the work done, and the change in internal energy.
Hint: W = 0; ΔU = q = n·Cᵥ·ΔT.
Question 2
A gas at constant pressure 1.0×10⁵ Pa expands from 2.0×10⁻³ m³ to 5.0×10⁻³ m³. How much work is done on the gas, and how much work does the gas do?
Hint: W_on = −PΔV; the gas does +PΔV.
Question 3
300 J of heat is added to a gas while the gas does 120 J of work on its surroundings. What is the change in internal energy?
Hint: ΔU = q + W, with W = −120 J (work done on the gas).
Question 4
Explain why heating an ideal gas at constant pressure requires more heat than heating it the same amount at constant volume.
Hint: at constant pressure some heat goes into work; Cₚ > Cᵥ by R.
Question 5
A gas is compressed (work is done on it) while 50 J of heat is removed. If 200 J of work is done on the gas, what is ΔU?
Hint: q = −50 J, W = +200 J; ΔU = q + W.
Question 6 — Challenge
1.00 mol of a monatomic gas is taken from 300 K to 400 K once at constant volume and once at constant pressure. Show that ΔU is the same for both paths, and explain why, even though q and W differ.
Hint: ΔU = n·Cᵥ·ΔT depends only on ΔT; internal energy is a state function.