When trying to work out what will be produced at each electrode during electrolysis, I'm confused as to which equations to use for hydrogen and oxygen.
For instance, an electrolytic cell containing aqueous nickel(II) bromide, with a nickel cathode and a platinum anode.
At the cathode:
$$\ce{Ni^2+ + 2e- -> Ni}$$
I have read that this does not occur because $\ce{Ni^2+}$ is a worse oxidising agent than $\ce{H+}$, which makes sense because $\ce{H+}$ is lower down on the left side of the electrochemical series meaning its reduction is more feasible.
Water is therefore reduced at the cathode:
$$\ce{2H+ + 2e- -> H2}\quad E^\circ=0.0\ \mathrm V$$
or:
$$\ce{2H2O + 2e- -> H2 + 2OH-}\quad E^\circ=-0.83\ \mathrm V$$
The second equation, however, has water higher up in the electrochemical series. This would suggest nickel should actually be reduced in preference to water.
How do I know which of the two "water-reduction" equations to use?
This is even less transparent for the anode, where bromide should be oxidised to bromine, but there are also two equations showing production of oxygen: one below and one above bromide in the series:
$$\begin{alignat}{2} \ce{O2 + 4H+ + 4e- &-> 2H2O}\quad &E^\circ&=+1.23\ \mathrm V\\[6pt] \ce{O2 + 2H2O + 4e- &-> 4OH-}\quad &E^\circ&=+0.40\ \mathrm V \end{alignat}$$
I don't understand which of these equations should be used and how you're supposed to know which to use.