likely App is electrical (or electron flow). I am just an economist BUT here goes.
for w = |e|^2 R/(R + Ri)^2 to be max where R = Ri you use the properties of the Mean Value thm, that basically allow you to say that there is a MAX when the first derivative = 0 (with some important stuff that go with it.
Proving that w maxes where R = Ri means that dw/dR = 0 where R = Ri
Figuring that is what is being asked is the hard part.
dw/dR = |e|2 [ (R+Ri)2 - 2R(R + Ri] / (R + Ri)4 and for a max that has to equal zero
lets expand |e|2 [ R2 + 2 R Ri + Ri2 - 2R2 - 2R Ri ] / (R + Ri) = 0 divide out |e|2 and combine stuff
[-R2 + Ri2] / (R + Ri) = 0 that means R2 = Ri2 or R = Ri
check second order stuff and you'll find w" < 0 which means you're good
I think that is what you are looking for.