In calculus analytical methods exist to find the derivative and definite integral of a given function , if the expression of is available and it is not complicated. However, when is not a simple function, or it is given as a set of discrete points , numerical methods need to be used to estimate its derivative and integral.