$$ y = x^2 $$ $$ y = \underbrace{x+ x+\cdots +x}_{x\text{ times}}$$ $$\frac{dy}{dx} =\underbrace{1+ 1+\cdots +1}_{x\text{ times}} $$ $$\frac{dy}{dx} = x$$
But the real answer is obviously $2x$. I know that I am making some kind of huge mistake but just can't find out where.