- Understand the rules for taking the derivative of each term
- Understand how to take the derivative of a function
From previous lessons, you know that the derivative is the instantaneous rate of change of a function. We said that the derivative of a function at a certain point is just the slope of the function at that point. And to calculate that slope of the function at a given point, we make
For example, we saw the following table:
$ \Delta x $ | $ \frac{\Delta y}{\Delta x} $ |
---|---|
1 | 5 |
.1 | 4.1 |
.01 | 4.01 |
.001 | 4.001 |
This convergence around one number is called the **limit **. And we can describe what we see in the above table as the expression:
We read this as the limit of $\frac{\Delta f}{\Delta x} $ as $ \Delta x $ approaches zero equals 4. So, in general our definition of the derivative is:
In the previous lesson, we calculated the derivative by changing our delta to see the convergence around a number as reflected in the table above. However, mathematicians have derived shortcuts to calculate the derivative. And these shortcuts allow us not just to evaluate the derivative at a single point, as we have done previously, but across any value of
The first rule for us to learn is the power rule. The power rule is expressed as the following. Given the following:
Then, the derivative is: $$ f'(x) = r*x^{r-1} $$
This says that if a variable,
Let's see this by way of example, with the function,
We saw that our rate of change of our linear function $f(x) = 3x $ was always 3. Since the rate of change is constant for linear functions, the derivative was the same across all values of
Now let's see how this works with our power rule:
$$f(x) = 3x = 3x^{1} $$
Now applying our rule that for a function with
we see that in this case
$$f'(x) = r3x^{r-1} = 13x^{1-1} = 3*x^{0} = 3 $$
Great! This is aligns with what our graph shows, as well as our calculation using the original definition of the derivative,
Let's apply the power rule with another example to make sure that we understand it.
$$f'(x) = 2x^{2-1} = 2x^1 = 2*x $$
Think about what our calculation for
- So when $ x = 2$ then
$f'(2) = 2*2 = 4 $ - When $ x = 3 $, then $ f'(3) = 2*3 = 6$
- When $ x = -1 $, then $ f'(-1) = 2*(-1) = -2$
- And when $ x = 10 $, then $ f'(10) = 2*10 = 20$.
We won't prove the power rule here. But hopefully you can see that it does seem to fit our graph of the function
It seems reasonable that the slope of the line tangent to a curve is
After learning the power rule, the constant factor is a breeze. The constant factor addresses how to take the derivative of a function multiplied by a constant.
So in the above example, we our function of
Applying the power rule, we know that $ \frac{\Delta f}{\Delta x}x^1 = x^{1-1} = 1 $, so we have:
In the general case, we can say, consider the function
Now, don't let the fancy equations above confuse you. The rule simply says if a variable is multiplied by a constant (i.e. a number), then to take the derivative of that term, apply our familiar power rule to the variable and multiply the variable by that same constant.
So given the function:
$$f'(x) = 2*\frac{\Delta f}{\Delta x} x^{2} = 22x^{2-1} = 4x^1 = 4x $$
That's the constant factor rule in action.
So far, all of our functions consisted of only one term. Remember that a term is a constant or variable that is separated by a plus or minus sign. For example, the function
$ f(x) = 4x^3 - x^2 + 3x $
To take a derivative of a function that has multiple terms, simply take the derivative of each of the terms individually. So for the function above,
Do you see what we did there? We simply applied our previous rules to each of the terms individually and continued to add or subtract the terms accordingly.
Let's take the last few lines of this lesson to practice these derivative rules.
What are the derivatives of these respective functions?
Take some time to think through it.
Even a pen and paper could be in order.
Ok, maybe the pen is too far away...Time for the answers.
So as you can see, we are just applying our rule:
And note that whenever we take the derivative of a constant like the number 10, then the derivative of that constant is 0.
Let's evaluate
Are you able to determine what the derivatives of each of these functions each will equal when
So:
$$f'(3) = 15x^4 = 153^4 = 1581 = 1215 $$
Let's try a couple more derivatives.
Ok, now for the derivatives.
Let's see it!
In this section, we learned a different way for calculating the derivative. The derivative of a function at a given point is still the instantaneous rate of change of that function at that point. Now we have three rules that allow us to calculate our derivative. The most tricky of these is the power rule, which says that if
Using our derivative rules, we can now calculate the derivative across the entire function. So the derivative of $f(x) = 3x $ is always 3, and the derivative of $f(x) = x^2 $ is