(D9) Logarithmic Differentiation#
By the end of the lesson you will be able to:
compute derivatives using logarithmic differentiation.
Lecture Videos#
Properties of the Logarithmic Functions#
Properties
Let \(x\) and \(y\) be positive numbers, \(b\) any number.
\(\ln (xy) = \ln x + \ln y\)
\(\ln \left(\tfrac{x}{y}\right) = \ln x - \ln y\)
\(\ln \left( x^b\right) = b \ln x\)
We have a log property that converts multiplication inside the log function into addition outside the log function:
We have a log property that converts division inside the log function into subtraction outside the log function:
We have a log property that converts exponents applied to everything inside the log function into multiplication outside the log function:
Example 1#
Calculate the derivative of the function:
Example 4 (again)#
Let’s try it again! Calculate the derivative of the function:
Click through the tabs to see the steps of our solution.
In this example, we are going to first simplify our function using log properties.
Instead of differentiating right away, this time we’re going to first use our log properties to simplify the function first:
This is as far as we can simplify our function. (Remember that there are no log properties for addition or subtraction inside the log function.)
With our function rewritten, we are now ready to differentiate:
There we go! With a little work, we could make this look like the other version of the derivative we had previously found. But wasn’t this easier?!
Example 2 (again)#
Try it again! Differentiate the following function using the technique of logarithmic differentiation.
Click through the tabs to see the steps of our solution.
In this example, we are going to use the technique of logarithmic differentiation:
Apply \(\ln(\cdot)\) to both sides.
Simplify the right side.
Use implicit differentiation to calculate \(y'\).
Solve for \(y'\) and replace \(y\).
The first step is to apply the log function to both sides of the equation:
The next step is to simplify using log properties, giving us:
Now we’re ready to differentiate! However, notice that we no longer have an equation in the form \(y=\cdots\), meaning we need to use implicit differentiation.
Remember that since we are using implicit differentiation, we are viewing:
\(x\) as only a variable
\(y\) as both a variable and a function (which is why we need to use chain rule when differentiating \(\ln y\)).
We’re done differentiating, so now we need to solve for \(y'\). Multiplying both sides by \(y\), we get:
Well, we’ve solved for \(y'\) but this is not quite done. We started with a function purely in terms of \(x\) and now we have a derivative in terms of \(x\) and \(y\). Not entirely satisfying.
But we actually know what \(y\) is equal to, it’s the original function we started with. Let’s plug this back in:
There’s our derivative!
Example 3 (again)#
Try it again! Differentiate the following function using the technique of logarithmic differentiation.
Click through the tabs to see the steps of our solution.
In this example, we are going to use the technique of logarithmic differentiation:
Apply \(\ln(\cdot)\) to both sides.
Simplify the right side.
Use implicit differentiation to calculate \(y'\).
Solve for \(y'\) and replace \(y\).
The first step is to apply the log function to both sides of the equation:
The next step is to simplify using log properties, giving us:
Now we’re ready to differentiate! However, notice that we no longer have an equation in the form \(g(t)=\cdots\), meaning we need to use implicit differentiation.
We’re done differentiating, so now we need to solve for \(g'(t)\). Multiplying both sides of the equation by \(g(t)\), gives us:
We’ve solved for \(g'(t)\) but this is not quite done. We started with a function purely in terms of \(t\) and now we have a derivative in terms of \(t\) and \(g(t)\). Not exactly what we want.
However, we actually know what \(g(t)\) is equal to, it’s the original function we started with. Let’s plug this back in:
There’s our derivative!
Example 2#
Differentiate the following function using the technique of logarithmic differentiation.
Example 5#
Differentiate the following function using the technique of logarithmic differentiation.
Click through the tabs to see the steps of our solution.
In this example, we are going to use the technique of logarithmic differentiation:
Apply \(\ln(\cdot)\) to both sides.
Simplify the right side.
Use implicit differentiation to calculate \(y'\).
Solve for \(y'\) and replace \(y\).
The first step is to apply the log function to both sides of the equation:
The next step is to simplify using log properties, giving us:
Now we’re ready to differentiate! However, notice that we no longer have an equation in the form \(y=\cdots\), meaning we need to use implicit differentiation. We’ll start by using Product Rule for the terms on the right.
The last few steps here where we simplify the terms on the right, are not exactly necessary, but they are helpful.
We’re done differentiating, so now we need to solve for \(y'\). Multiplying both sides of the equation by \(y\), gives us:
We’ve solved for \(y'\) but this is not quite done. We need to replace the \(y\) currently in our derivative with our original function:
There’s our derivative!