The total internal energy stored within a system is composed of two main components: the total kinetic energy associated with the random motion of the particles, and the total potential energy that arises due to the interactions between these particles.
Internal Energy = Total KE of Particles + Total PE of Particles
The kinetic energy component of internal energy is derived from the random motion of particles within the system. This motion can be translational, rotational, or vibrational, depending on the type of particles and the phase of the substance (solid, liquid, or gas).
In gases, for instance, particles move freely and collide with one another, with their kinetic energy directly related to the temperature of the system. The higher the temperature, the greater the average kinetic energy of the particles, leading to an increase in internal energy.
The potential energy component arises from the interactions between particles, which are influenced by forces such as electrostatic attraction or repulsion, and intermolecular forces like van der Waals forces or hydrogen bonds.
Potential energy generally increases with distance apart between particles that are attracted to each other. This is similar to how gravitational potential energy increases when an object is lifted higher away from the Earth.
Note that knowledge of potential energies of particles being close to zero in gases and being negative between liquid and solid particles is not required in the O-level syllabus. However, it will make a lot of sense when we start talking about increasing potential energy for melting or boiling.