Skip to content
Physics Simple #first-law#energy

First Law of Thermodynamics

deltaU = Q - W. Internal energy change equals heat added minus work done.

A free, animated first law of thermodynamics you can read here or embed on any website, from Scrollchart.

First Law of Thermodynamics

First Law of ThermodynamicsdeltaU = Q − W: internal energy change = heat in minus work done by systemSYSTEMdeltaU= Q − WQheat addedto systemSURROUNDINGS(hot reservoir)Wwork doneby systemSURROUNDINGSPROCESSQ signW signdeltaUIsothermal ideal gas expansion++0Adiabatic compression0-(work in)+Isochoric heating (rigid vessel)+0+Free expansion into vacuum000Energy is conserved: internal energy rises with heat absorbed and falls with work delivered to surroundings

Box representing system with arrows: heat in (Q), work out (W), internal energy change (deltaU). Sign conventions explicit.

Good for

  • Introductory thermodynamics lectures establishing the energy-conservation framework before entropy
  • Engineering problem sets on closed-system energy balances for pistons, turbines, and compressors
  • Chemistry coursework connecting internal energy, enthalpy, and calorimetry measurements

Source & accuracy

This first law of thermodynamics is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

Energy conservation in thermodynamic form

The first law of thermodynamics is conservation of energy: delta U = Q - W, where U is the internal energy of a system, Q is heat added to the system, and W is work done by the system. This simple equation encodes a powerful idea: you can change a system's internal energy either by adding heat (directly) or by doing work on it (compressing a gas, stirring a liquid). Conversely, a system can do work on its surroundings (expanding gas pushing a piston) only by losing internal energy through that work or by shedding heat. There is no way to extract more energy from a system than you put in (no perpetual motion machine of the first kind). The internal energy of an ideal gas depends only on temperature: doubling T means doubling U, regardless of how you heated it (fast or slow, high pressure or low).

Work, heat, and the P-V diagram

In a constant-pressure expansion, a gas does work W = P delta V. On a pressure-volume diagram, work is the area under the curve. For a cyclic process that returns to its starting point, the net work done by the system is the enclosed area. A reversible process that extracts the most work (or requires the least work) is one where the path on a P-V diagram is carefully chosen. Irreversible processes (sudden expansion, friction) lose the opportunity to extract work: a gas expanding freely into a vacuum does no work (W = 0) but spreads out anyway because entropy increases, making the first law delta U = Q (the internal energy drop equals heat lost, with no work output).

Embed this diagram

Add this animated first law of thermodynamics to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated first law of thermodynamics for any website.
Who uses it
Physics educators.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="first-law-thermo" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "First Law of Thermodynamics" for my website?
Scrollchart provides "First Law of Thermodynamics" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a first law of thermodynamics in WordPress or a static site?
Paste the HTML snippet from the Scrollchart diagram page into your WordPress post (in HTML/code view), your Webflow embed block, or directly into a static HTML file. No plugin is needed. The diagram loads from scrollchart.com and paints in as the reader scrolls.