When I was doing research on finding the derivative I came across something strange.
If $f(x) = x^2$ you find the derivative by going
$$\frac{f(x+h)^2-f(x)^2}{h} =\frac{x^2+2xh+h^2-x^2}{h}.$$
Why is there the $2xh$? Can someone explain the logic behind this? I'm assuming you plus $x$ and $h$ together then square it but why?
