A function is a relationship where one quantity depends on another. The area of a circle is a function of its radius, as the area changes when the radius changes. Derivatives show the rate of change of a function at a point and represent an infinitesimal change in the function with respect to one of its variables. Optimization problems aim to find the maximum or minimum value of a function subject to constraints.