Generate text that is semantically similar to this text: a battery uses a chemical reaction to maintain different electrical states at the terminals
a chemical reaction inside the battery makes the electrical states of the positive and negative terminals different at all times .