We know that as per the first principle, the derivative of a function is given by f′(x)=limh→0f(X+h)−f(X)h
Let’s find it by first principle.
As per first principle
f(x+h)=(x+h)2=x2+h2+2hxf(x)=x2
So f′(x)=limh→0x2+h2+2hx−x2h=limh→0h2+2hxh=limh→0h(h+2x)h=2x
So at x = -2, derivative will be 2 X (-2) = -4