A smooth function is a function that has continuous derivatives up to some desired order over some domain. A function can therefore be said to be smooth over a restricted interval such as (a, b) or [a, b]. The number of continuous derivatives necessary for a function to be considered smooth depends on the problem at hand, and may vary from two to infinity. A function for which all orders of derivatives are continuous is called a C^∞-function.