Skip to content
Tutorials Center
My learning

Topics

Lesson 2 of 39 · Getting Started

Systems, Surroundings and the First Law

Define the system and surroundings, learn open, closed and isolated systems, and use ΔU = q + w with a clear sign convention and worked examples.

To talk about energy in chemistry, you must say exactly which piece of the universe you are watching. Chemists call that piece the system. Everything else is the surroundings. Getting this split right is the key to getting the signs of heat and work right, and sign mistakes are the most common error in thermochemistry.

System and surroundings

  • The system is the part you study: the reacting chemicals in a flask, a gas in a cylinder, a battery.
  • The surroundings are everything else that can exchange energy with it: the flask walls, the water bath, the air in the room.
  • The boundary separates them.

You choose the system. For a reaction in a beaker, you might say "the system is the dissolved reactants and products", and the water, glass and lab air are the surroundings. Another time you might include the water in the system. What matters is that you stay consistent.

flowchart LR
    S["SYSTEM<br/>(reaction mixture)"] <-->|"heat q, work w"| E["SURROUNDINGS<br/>(beaker, water, air)"]

Energy crosses the boundary in both directions: heat and work.

Three kinds of system

Type Matter can cross? Energy can cross? Example
Open yes yes a boiling pot with no lid
Closed no yes a sealed flask in a water bath
Isolated no no an ideal insulated thermos with a stopper

A perfectly isolated system does not exist in practice, but a well-insulated calorimeter is a good approximation. The universe as a whole is treated as isolated.

Heat and work: two ways to move energy

Energy enters or leaves a system in two ways.

  • Heat (q) is energy transferred because of a temperature difference. It flows from hot to cold.
  • Work (w) is energy transferred by a force acting through a distance. In chemistry, the most common case is a gas expanding or being compressed by a piston: w = -P ΔV at constant external pressure.

Neither heat nor work is "stored" in an object. They are ways of transferring energy. What the system stores is its internal energy.

Internal energy and the first law

The internal energy U is the total kinetic and potential energy of all the particles in the system. We cannot measure its absolute value, but we can measure its change.

The first law of thermodynamics is conservation of energy, written for a system:

ΔU = q + w

The sign convention (the one used by IUPAC, the international chemistry body):

Quantity Positive when... Negative when...
q system gains heat system loses heat
w work is done on the system (compression) work is done by the system (expansion)
ΔU system energy increases system energy decreases

Think of it as a bank account for the system: positive numbers are deposits, negative numbers are withdrawals.

Some older textbooks write ΔU = q - w, where w means work done by the system. Both versions give the same physics, but the signs of w differ. This course always uses ΔU = q + w.

Worked example 1

A gas absorbs 500 J of heat and does 200 J of work pushing a piston outward. Find ΔU.

  • Heat flows in: q = +500 J.
  • The system does work on the surroundings: w = -200 J.
  • ΔU = 500 + (-200) = +300 J.

The internal energy rises by 300 J.

Worked example 2

A gas is compressed: 150 J of work is done on it, and 80 J of heat leaves to the surroundings.

  • w = +150 J, q = -80 J.
  • ΔU = -80 + 150 = +70 J.
Python A first-law bookkeeping tool

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Work done by an expanding gas

At constant external pressure, w = -P ΔV. A gas that expands has a positive ΔV, so w is negative. To get joules, use pressure in pascals and volume in cubic meters: 1 Pa·m³ = 1 J.

Example: a gas expands by 2.0 L (0.0020 m³) against a constant atmospheric pressure of 101,325 Pa.

w = -101,325 Pa × 0.0020 m³ = -202.65 J, about -2.0 × 10² J.

Python Pressure-volume work

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Systems in chemistry: a quick guide

Chemical systems usually exchange energy with the surroundings as heat. When the reaction vessel is open to the atmosphere, the pressure stays constant at about 1 atm, and the only work is the expansion or contraction of any gas produced. In the next chapter you will see how defining enthalpy lets us ignore that work and focus on the heat.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A sealed flask sits in a water bath. Heat can pass through the glass but no matter can. This is a(n)

    Energy crosses but matter does not: that is the definition of a closed system.
  2. 2. A system absorbs 300 J of heat and does 120 J of work on its surroundings. What is ΔU?

    q = +300 J and w = -120 J (the system does the work), so ΔU = 300 - 120 = +180 J.
  3. 3. In the IUPAC convention, a gas being compressed has w that is

    Work done on the system is positive. Compression is work on the gas by the surroundings.
  4. 4. Which is the best description of heat?

    Heat is a transfer of energy driven by a temperature difference, not something an object contains.

Summary

  • The system is what you study; the surroundings are everything else.
  • Open systems exchange matter and energy, closed systems only energy, isolated systems neither.
  • Energy moves as heat (q) or work (w).
  • First law: ΔU = q + w. Positive q is heat in; positive w is work done on the system.
  • At constant external pressure, w = -PΔV, and 1 L·atm = 101.325 J.

Next: Units of Energy