Let us consider a particle in the cube of side a, to bounce between the
walls along distance a and it has velocity
vx and mass m. It would
then have momentum.
M=mvx
It takes time dt to go between the two walls
dt=avx
When
the particle strikes the wall, it
transfers momentum to the wall. Thus the force going into the wall is
given by Newton's Second law as rate of change of momentum, F=Mdt=mv2xa
Pressure, P=ForceArea=mv2xa3=mv2xV
where V is the volume of cube.
Molecules are going in all directions, not just 'x', and the average velocity in all directions is
∑v2=∑v2x+∑v2y+∑v2z
Where v is the root mean square speed.
Since there is an equal probability for going all ways,
v2x=v23
Substituting this value in the above equation for n molecules of gas .
PV =ForceArea=nmv2xa3=nmv23
From equation of state for an ideal gas.
PV=nRT, R is universal gas constant and T is the absolute temperature.
Equating the two
nmv23=nRT
v=√3RTm
Thus root mean square velocity of gas molecule is directly proportional to the square root of its absolute temperature.