The van der Waals model of dense fluids. Dependence of the Helmholtz free energy on temperature and density