the wrok done by a voltaic cell pf cpnstant electromotive force E and constant resistance r in passing a steadt current through an external, resistance R is proportional to E^2R/(r+R)^2. Show that the work done is greatest when R=r

how to solve this