Calculus - Finding the derivative of a function using limits