Method of constructing a fundamental equation of state based on a scaling hypothesis