free energy: Nonlinear Function