I would like to find a value c for which the above function is minimal. Setting the above derivative to zero (with respect to c) should work, but I'm not sure how to handle squares in a summation.
The melee of terms in the summation is just to confuse you. Don't be sidetracked by it. Just focus on this question: If (where are real numbers) what can you say about themselves?