Optimization: Differentiation
Derivatives of polynomials and power functions
It is often necessary to calculate the minimum or maximum (in short: an extremum) of a function. For example, to optimize the manufacturing costs of a product depending on the percentage of a specific raw material.
If the graph of a function has a tangent line at every point, then that tangent will be horizontal at an extremum. This means that the slope of the tangent to the graph of the function at such a point is equal to #0#. To calculate the minimum and/or maximum, we will therefore use an auxiliary function: the function that gives the slope of the tangent line through that point at each point of the function. This function is called the derivative.
We will first look at what the derivative is and then indicate how we can calculate that derivative in a number of common cases.
Differentiation
Let #f(x)# be a function on an interval #I#. The derivative function #f'(x)# is the function that at each point #\rv{x, f(x)}# gives the slope at that point. So #f'(x)# is the slope of the graph of #f# at the point #\rv{x,f(x)}#; that means it is the slope of the tangent line to the graph of #f(x)# at that point.
If #f# is differentiable at all points of an interval #I#, that is, we can calculate the derivative function at all points, then we say that #f# is differentiable on #I#. In that case #f’# is a function on #I#.
The value #f'(x)# is often referred to as #\frac{{\dd}}{{\dd}x}f(x)# and is called the derivative of #f# in #x#.
If #y# is a function rule of #f# (the value of #f# at any point #x#) and #a# is a value for #x# where #f(x)# is defined, then we also write #\left.\frac{{\dd }}{{\dd}x}y\right|_{x=a}# instead of #f'(a)# or #\frac{{\dd y }}{{\dd}x}(a)#.
The function #f# and the function statement #f(x)# are often used interchangeably. The expressions #f'(x)# and #\dfrac{\dd}{\dd x}f(x)# are also used instead of #f'#.
An example of using the vertical bar with #f(x)=x^2+1#, where #f'(x) = 2x# (as we will see below), is the following calculation of the derivative of #f# in #3# : \[\frac{\dd f}{\dd x}(3)=\left.\frac{\dd}{\dd x}(x^2+1)\right|_{x=3}=\left.(2x)\right|_{x=3}=6\]
Before we look at how to differentiate polynomials and power functions, let's first look at three useful basic rules for differentiation.
Three basic rules for differentiation
Let #c# be a real number.
- Constant rule: The derivative of the constant function #f(x)=c# is #f'(x)=0#.
- Product-with-constant rule: The derivative of the product #c\cdot f(x)# of the constant #c# with a function #f# is #c\cdot f'(x)#.
- Sum rule: If #f# and #g# are functions, then the derivative of the sum function #f(x)+g(x)# is equal to #f'(x)+g'(x)#.
In order to differentiate polynomials, we still need to get to know the derivative of the power functions #x^n#, where #n# is a natural number. This is a special case of the first rule below, which deals with the derivative of all real power functions
Power rule for differentiation
If #a# is a real number, then the derivative of the function #x^a# is #a\cdot x^{a-1}#. In other words: \[\frac{\dd}{{\dd}x}x^a = a\cdot x^{a-1}\]
A consequence of this is the polynomial rule: If #n# is a natural number and #a_0#, #a_1,\ldots, a_n# are real numbers, then
\[\frac{\dd}{{\dd}x}\left(a_nx^n+a_{n-1}x^{n-1}+\cdots +a_0\right)=n\cdot a_nx^{n-1}+(n-1)\cdot a_{n-1}x^{n-2}+\cdots+a_1\]
Using the power rule for differentiation #\frac{\dd}{\dd x}\left(a\cdot x^n\right) = n\cdot a\cdot x^{n-1}# with #a=5# and #n=4#, we find: \[ y'=\frac{\dd}{\dd x}y=\frac{\dd}{\dd x}\left(5 x ^4\right) =5 \cdot 4 \cdot x^{3} =20 x ^3 \]
Or visit omptest.org if jou are taking an OMPT exam.
