The derivative is the gradient of the tangent to the curve at any given point.
if the curve is a line as it is in f(x)=2x-2 then the gradient stays the same all the time.
The gradient of this line is 2. Therefore the derivative is 2.
Use the definition of the derivative to find the derivative f(x)=x2−2
limh→0[f(x+h)−f(x)h]f(x+h)=(x+h)2−2f(x)=x2−2 limh→0[((x+h)2−2)−(x2−2)h]=limh→0[x2+2∗x∗h+h2−2−x2+2h]=limh→0[2∗x∗h+h2h]=limh→0[2∗x∗hh+h2h]=limh→0[2∗x+h]=2x