I was trying to provide the same answer my mathematics professor gave me when I asked to the problem raised in this thread. What I was told was that instead of summing what we were really doing is taking an integral, so
$x^2 = \sum_1^xx$ becomes $\int_1^xx\,dx$
Then, by the Leibniz integral rule
$\frac d{dx}\int_1^xx\,dx = \int_1^x(\frac d{dx}x)\,dx + x|_x(\frac d{dx}x) -x|_1(\frac d{dx}1) = 2x$
Which is of course $\frac d{dx}x^2$
But, $\int_1^xx\,dx =\frac12x^2-\frac12 \neq x^2$
You could use $x^2=\int_0^x2x\,dx$ but then
$\frac d{dx}\int_0^x2x\,dx = \int_0^x(\frac d{dx}2x)\,dx + 2x|_x(\frac d{dx}x) -2x|_0(\frac d{dx}0) = 4x$
This is in some ways exactly the problem we had before. Is there something wrong about the way I am applying Leibniz's integral law, or is there something more fundamental going on? Was my professor wrong?