This page assumes nothing. Before you touch the derivation, you need a small toolbox of symbols. We will earn each one — plain meaning, the picture it stands for, and why the topic can't proceed without it.
Picture a cube-shaped container of gas. Every side has length L (a length, measured in metres).
Why the topic needs it. Two walls face each other a distance L apart. A ball that bounces off one wall must travel across the box and back — a round trip of 2L — before it can hit the same wall again. That distance 2L is what later sets how often collisions happen. And V=L3 is exactly the V that appears in PV=nRT, so the box's size is literally one of the four letters in the final law.
A ball doesn't just have a speed (how fast); it has a direction too. Together, speed + direction is called velocity.
The three components combine into the full speedv by the 3-D Pythagoras rule:
v2=vx2+vy2+vz2
Why the topic needs it. When a ball hits the right-hand wall, only its x-motion matters — the wall faces the x-direction. The sideways parts vy,vz just skim along the wall and change nothing. So we must be able to isolate vx from the full speed. That splitting is the heart of the derivation.
Why the topic needs it. A wall never feels "speed" — it feels a kick, and a kick is a change in momentum. When a ball hits and bounces back, its x-momentum flips from +mvx to −mvx, a change of 2mvx. That 2mvx is the size of the shove the wall receives. Momentum is the currency the whole derivation is paid in.
Why the topic needs it. Each bounce delivers momentum 2mvx. If those bounces come every Δt seconds, dividing the momentum by the time gives the average force on the wall. This is the bridge from "a ball bounced" to "the wall feels a steady push." See Pressure and Newton's Second Law for the deeper version.
We can't track billions of balls one by one. We track averages, written with angle brackets ⟨⋅⟩.
Why the topic needs it. The push depends on how hard and how often balls hit — both grow with vx, so the force per ball scales with vx2. Averaging over all balls turns the messy sum into a clean N⟨vx2⟩.
Combine this with v2=vx2+vy2+vz2, average both sides:
⟨v2⟩=3⟨vx2⟩⇒⟨vx2⟩=31⟨v2⟩
Why the topic needs it. This is where the famous factor 31 in P=31VNm⟨v2⟩ is born. See Kinetic Theory of Gases for the full swarm picture and Root Mean Square Speed for what ⟨v2⟩ means.
Why the topic needs it. These turn the mechanics result PV=31Nm⟨v2⟩ into the thermodynamic PV=nRT. The link "temperature = average kinetic energy" comes from the Equipartition Theorem and Temperature and Internal Energy; the constants themselves are unpacked in Boltzmann Constant and Gas Constant.