First, in an ideal gas we neglect the molecular interaction between molecules. However, we should also consider interactions in real gases. Therefore, the pressure of the real gas will be larger than that of the ideal gas. Therefore, there is the constant a added to the pressure.
I'm really sorry if I wasn't supposed to revive this, but I have a question. If the interactions were attractive forces, how would the pressure of the real gas be larger than that of the ideal gas? I was taught that the parameter a respents the role of attractions, and I don't see how attraction between molecules would increase the pressure.
In fact it doesn't
so:
Bonus
Seeing the starting post seems like Procrastinate wanted to know where does this equation comes from, here's a brief overview on the subject:
1) In the ideal gas equation molecules are considered adimensional entities so their volume doesn't matter. Here the volume occupied by the gas molecules (the so-called covolume), which is more or less 4 times the real volume of molecules is taken into account (b), so n moles of gas need a volume correction of nb:
2) In the ideal gas intermolecular forces are neglected, but a precise account of the real gas behaviour forces us to keep in mind that, even if really weak, such forces shouldn't be forgotten in our analysis. You can easily demonstrate that the intermolecular distance for a gas of n moles in a container of volume V is:
where k is a constant value which changes from species to species. Now, imagine our molecules are apolar (this equation doesn't take into account polarity or other attractive forces): the only interactions present are London Forces (instantaneous dipole-instantaneous dipole) and (this has been proven experimentally) they are inversely proprtional to the sixth power of the intermolecular distance:
Now, these forces cause a decrease in the number of collisions with the surfaces of the container and this means a decrease in pressure too. Using a new constant, we'll call "a" the final expression pops out:
≈•≈
Substituting the corrected forms of volume and pressure in the ideal gas equation you get the final expression: