The trouble I am having with this is that your derivative isn't picking out a specific value of "i."
Yes the derivative when i=k is easily obtained. However I need the complete system of solutions. I forgot to mention though that the derivative needs to be zero. To be precise the vector of derivatives need to equal a empty vector, see below.