Starting from the definition of Helmholtz free energy: $$F:=U-TS$$ (where $U$ is the internal energy , $T$ temperature and $S$ entropy) we derive in few steps the following relation: $$F=-T\int \frac{U}{T^2}\mathrm d T+ \text{constant} \tag{1}$$
Now, we know also that Maxwell relations holds so at $T=\text{constant}$ we have: $$P=-\frac{\partial F}{\partial V} \tag{2}$$
In ideal gas the internal energy have the following form: $$U=\frac{3}{2} NT \tag{3}$$
If i substitute $(3)$ in $(1)$ and put the result in $(2)$ i should find the classical equation of state for ideal gas: $$ PV=NT \tag{4}$$ ...but from calculation i don't find this. Where is the error in my steps? It could be in the value of the constant ?
Yes, wrong word. Anyway we can say something about this function a posteriori :
$$ p = - \frac{\partial F}{\partial V} = -C'(V) T. $$
Using (4) in this equation we obtain $$ C(V) = N * ln(V)+ constant$$