(a) Overall: 2Fe+O2+4H+→2Fe2++2H2O, n=4.
Ecell=Ecell∘−40.059logpO2[H+]4[Fe2+]2
At pH 7:
0.21×(10−7)4(1.0×10−3)2=0.21×10−281.0×10−6=4.76×1022,log=22.68
Ecell=1.67−0.01475×22.68=1.67−0.335=1.34 V
ΔG=−nFE=−4×96500×1.3355=−5.16×105 J=−516 kJ
(b) At pH 4.0:
0.21×(10−4)41.0×10−6=4.76×1010,log=10.68
Ecell=1.67−0.01475×10.68=1.67−0.158=1.51 V
ΔG=−4×96500×1.512=−584 kJ
(c) Only the [H+]4 term depends on pH:
−40.059log[H+]41=−40.059×4pH=−0.059 pH
So Ecell falls by 0.059 V per unit rise in pH, and rises by 0.059 V per unit fall. From pH 7 to pH 4: 3×0.059=0.177 V, which matches 1.51 − 1.34.

H+ ions are a reactant at the cathode (O2+4H++4e−→2H2O). More H+ makes the reduction of oxygen easier, raising the cathode potential and making ΔG for rusting more negative. This is why iron structures rust faster where acid rain falls, or where dissolved CO2 and SO2 make the water film acidic.