x^2 = x+x+x+x+......x times only if x is a positive integer
but f(x)= x^2 is a continous function
so when we put the condition on x that it should be an integer the graph becomes discontinuous & non differentiable.(as function will now attain only integral values).
hence we cannot find dy/dx.