Chem Math· Math-for-Chemists Hub
Atlas Chapter 5: Integration Interactive lesson

Definite Integrals in Chemistry

Work, normalization and expectation values

Thermo / KineticsQuantum
Detail level

Integrals that mean something

Work, normalisation and expectation values

A definite integral is just a number — but in chemistry that number is always something physical: an amount of work done, a probability, or an average. The Fundamental Theorem tells us to evaluate it by finding the antiderivative and subtracting: .

In thermodynamics, is the work of expansion — the area under the pressure–volume curve. For an ideal gas with , integrating produces a logarithm and gives .

In quantum mechanics, is the normalisation condition — the total probability of finding the particle somewhere must be exactly one. And is the expectation value of position — the quantum-mechanical average that experiments ultimately measure.

Entropy changes also live here: integrates another (yielding a logarithm again) to find how entropy changes with temperature.

The definite integrals chemists use most

p–V work (isothermal)
Normalisation
Expectation value
Entropy change
Quantum chemistry
Normalising a wavefunction, finding the average position or momentum, and computing the probability of finding a particle in a region are all definite integrals. Try the particle-in-a-box lab — change the quantum number and drag the upper limit to accumulate probability.

The average value of any function over an interval is the definite integral divided by the interval length: . In spectroscopy this is how the time-averaged dipole moment is computed; in thermodynamics it is how average properties over a temperature range are tabulated. The expectation-value formula is a weighted version of exactly this average — the weighting function is the probability density .

Work integrals highlight an important sign convention: chemists define as work done on the system, so the reversible expansion formula carries a negative sign, . When using the physics convention (work done by the system), the sign is positive. Always state which convention you are using.

Average value
Work sign convention
Chemistry: (work on system). Physics: (work by system). Same number, opposite sign.
Irreversible expansion
Against constant external pressure : — no integral needed; area of a rectangle.
Momentum expectation value
Common pitfalls
  • Forgetting to evaluate BOTH limits. — students sometimes compute only and omit .
  • Sign of work. For an expansion (), the gas does positive work on the surroundings, so work done on the gas is negative. Confirm your sign by asking: did the system gain or lose energy?
  • Units in entropy calculations. gives J K⁻¹ mol⁻¹ only if is in the same molar units. Using J rather than kJ for is the most frequent mistake.
  • Forgetting , not , gives probability. The wavefunction itself can be negative; only its square is a probability density.

Particle-in-a-box lab

Drag the upper limit to accumulate the probability density — and see exactly why the normalisation integral forces N = √(2/L).

Quantum level n:
00.200.400.600.80100.5011.52x / L|ψ|²
integrate from 0 to a0.50 L
probability in [0, a]50.0%
whole box (a = L)100% (normalised)
average position ⟨x⟩0.50 L
The shaded area is a real, physical probability. Integrate over the whole box and it must equal 1 — the normalisation condition. The n − 1 nodes (zeros) are where the electron is never found.
Worked example 1Finding the normalisation constant N

The wavefunction for the state of a particle in a box of length is . Determine .

Worked example 2Expectation value of position ⟨x⟩

For the normalised ground state , calculate and interpret the result.

Worked examples

Definite integrals in thermodynamics and spectroscopy — try each before revealing the solution.

Worked example 3Isothermal expansion work — numerical

1.00 mol of an ideal gas expands reversibly and isothermally at 298 K from 2.00 L to 8.00 L. Calculate the work done by the gas. ()

Worked example 4Entropy change on heating (constant Cp)

Calculate when 1 mol of a monatomic ideal gas () is heated at constant pressure from 300 K to 600 K.

Worked example 5Probability in the left half of the n = 2 box

For the particle-in-a-box state, calculate the probability of finding the particle in the left half .

Worked example 6Average value of pressure over a reversible expansion

A gas expands reversibly from to at 300 K (1 mol ideal gas). Find the average pressure over this volume range.

Worked example 7Irreversible vs reversible expansion work — van der Waals gas

1 mol of CO₂ (, ) expands from 1.00 L to 5.00 L at 300 K against a constant external pressure of . (a) Calculate the irreversible work done on the gas. (b) Write (do not evaluate) the definite integral for the reversible work using the van der Waals equation of state.

ChallengeChallenge — ΔS when Cp = a + bT (Kirchhoff entropy)

The molar heat capacity at constant pressure of nitrogen gas over 298–1000 K is approximated by . Calculate for heating 1 mol of N₂ from 298 K to 1000 K at constant pressure.

Check yourself

Four quick questions tying the integral to its physical meaning.

Question 1 of 4 · Score 0

To normalise a wavefunction you require that the integral of |ψ|² over all space equals:

Choose an answer.