Once the basic theory behind the operation of batteries is understood, we can apply these concepts to better understand the…