\frac{\delta(E_1 + E_2 + E_3)}{\delta f} = 0