I've written a proof with some help from outside resources about expected number of coin tosses before observing a single head. The proof involves one part where I take the derivative of both the terms of summation and the closed form of an infinite geometric series. I understand the proof mostly, but why are we able to say "and now we just take the derivative of the summation..."
In other words, I'm asking, given that we know the summation of an infinite geometric series converges to its closed form, why can we "take the derivate" of whatever the summation is summing along with the derivative of the closed form and say they are still equal expressions? I hope that makes sense.