An electrolytic cell is an electrochemical cell that uses an external source of electrical energy to drive a non-spontaneous chemical reaction, a process known as electrolysis.: 64, 89 : GL7 In the cell, a voltage is applied between the two electrodes—an anode (positively charged) and a cathode (negatively charged)—immersed in an electrolyte solution.: 89 This contrasts with a galvanic cell, which produces electrical energy from a spontaneous chemical reaction and forms the basis of batteries.: 64 The net reaction in an electrolytic cell is a non-spontaneous (Gibbs free energy is positive), whereas in a galvanic cell, it is spontaneous (Gibbs free energy is negative).