Electrolysis of water
That two reactions are half reactions. They are balanced with an acid. Commonly hydrochloric acid or sulfuric acid is used. However, the half reactions can also be balanced with a base, for example with sodium hydroxide.