Two ways energy crosses the boundary
In the last guide a system stored internal energy. Now we ask the natural next question: how does energy actually *get in or out* across the boundary? Remarkably, nature offers only two channels. The first is heat, symbol q: energy that flows because of a *temperature difference*. Put a cold flask in a warm bath and energy seeps in as heat until they match. The second is work, symbol w: energy transferred by an organised *push* — a force acting through a distance, like a gas shoving a piston outward. Every energy transfer in chemistry is some mix of these two, and nothing else.
What truly separates them is *order*. Heat is the messy, disorganised transfer of energy — countless molecules on the hot side jostling the cold side at random, like a chaotic crowd shoving in every direction. Work is the tidy, coordinated transfer — energy moving in a single marching direction, like that crowd suddenly lined up and pushing a wall together. Same joules of energy; utterly different *quality* of delivery. That quality difference will, much later, become the seed of the whole story of entropy. For now, just remember: heat is disordered transfer, work is ordered transfer.
The grand accounting rule
Now we put the pieces together into one of the deepest statements in all of science: the first law of thermodynamics. In plain words, it says energy is never created or destroyed — it only changes form or moves around. For a closed system the bookkeeping is exact and simple: ΔU = q + w. The change in a system's internal energy equals the heat added to it plus the work done on it. That is the entire law. Every joule that enters as heat or work is accounted for as a change in U; not a single joule goes missing or appears from nowhere.
Pause on how strange and strong this is. We met three quantities — U is a state function that forgets its history, while q and w are path functions that very much depend on the route. Heat one gas slowly and another quickly to the same final state and they will have soaked up different amounts of heat and done different amounts of work along the way. Yet the law guarantees that their *sum*, q + w, comes out identical, because it must equal the same ΔU. The path-dependence of heat and work conspires perfectly to leave the state-function change untouched. That is not obvious — it is a hard-won law of nature.
Getting the signs right
The single most common stumble here is the *sign* of q and w. The trick is to always take the point of view of the system and ask: is energy coming *in* (count it positive, the account grows) or going *out* (count it negative, the account shrinks)? Adopt this convention and the bookkeeping never lies to you.
- Heat flows INTO the system (you warm it): q is positive. Heat flows OUT of the system (it cools its surroundings): q is negative — this is the exothermic case.
- Work done ON the system (you compress the gas, pushing energy in): w is positive. Work done BY the system on the surroundings (the gas expands and pushes a piston out): w is negative.
- Add them: ΔU = q + w. If the total is positive the system gained energy; if negative it lost energy on balance. Sanity-check against the temperature you would expect to see.
A worked feel for it
Let us make it concrete. Suppose a reacting mixture in a cylinder releases 100 joules of heat to the surroundings, and at the same time the surroundings do 30 joules of work compressing it. From the system's point of view, heat is leaving, so q = −100 J. Work is being done on the system, so w = +30 J. The First Law then hands us the answer with no further thought: ΔU = q + w = (−100) + (+30) = −70 J. The system's internal energy fell by 70 joules — and we never needed to know its absolute U, exactly as promised in the first guide.
Notice what the law quietly rules out. It forbids any machine that gives out more energy than it takes in — the dream of a *perpetual motion machine of the first kind* is dead on arrival, because you cannot withdraw from the account more than was deposited. Every "free energy" gadget that claims to break this has, on inspection, simply hidden an input somewhere. The First Law is the universe's incorruptible accountant: strict, humble, and never once caught fudging the books in all of recorded science.