derF

Calculates the first derivative, takes in a vector and an index of the vector, and an optional delta X parameter