The first law tracks where transferred energy goes in a process.

highlighted = computed this step

Start with a heat input

A process receives 20 joules of heat. Some energy leaves as work and the rest stays as internal energy.

Qin=20 JQ_{\text{in}} = 20\ \text{J}
First law budgetThe grouped bars share one energy scale.20 Jheat12 Jwork8 Jinternal

Split the energy

The process does 12 joules of work and stores 8 joules as internal energy.

Qin=W+ΔUQ_{\text{in}} = W + \Delta U

Check the budget

Adding 12 joules and 8 joules gives the original 20 joules.

Qin=12 J+8 J=20 JQ_{\text{in}} = 12\ \text{J} + 8\ \text{J} = 20\ \text{J}
First law budgetThe grouped bars share one energy scale.20 Jheat12 Jwork8 Jinternal