You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Mathematical Expression Editor
We use logarithms to help us differentiate.
Logarithms were originally developed as a computational tool, mainly due to their
famous property:
\[ \log _b(xy) = \log _b(x)+\log _b(y). \]
Before the days of calculators and computers, this was critical knowledge for anyone
in a computational discipline.
Compute \(138\cdot 23.4\) using logarithms.
Start by writing both numbers in scientific
notation
Next we use a log-table, which gives \(\log _{10}(N)\) for values of \(N\) ranging
between \(0\) and \(9\). We’ve reproduced part of such a table below.
Add these numbers together to get \(0.5091\). Essentially, we
know the following at this point:
Using the table again, we see that \(\log _{10}(3.23)\approx 0.5091\). Since we were working in scientific notation, we
need to multiply this by \(10^3\). Our final answer is
\[ 3230 \approx 138\cdot 23.4 \]
Since \(138\cdot 23.4 = 3229.2\), this is a good approximation.
The moral is:
Logarithms allow us to use addition in place of
multiplication.
1 Logarithmic differentiation
When taking derivatives, both the product rule and the quotient rule can be
cumbersome to use. Logarithms will save the day. A key point is the following
which
follows from the chain rule. Let’s look at an illustrative example to see how this is
actually used.
Compute:
\[ \ddx \frac {x^9e^{4x}}{\sqrt {x-4}} \]
Recall the properties of logarithms:
\(\log _b(xy) = \log _b(x) + \log _b(y)\)
\(\log _b(x/y) = \log _b(x) - \log _b(y)\)
\(\log _b(x^y) = y\log _b(x)\)
While we could use the product and quotient rule to solve this problem, it would be
tedious. Start by taking the logarithm of the function to be differentiated.
The process above is called logarithmic differentiation. It starts by taking the
natural logarithm of the function, then using the properties of logarithms to
simplify. Logarithmic differentiation allows us to compute new derivatives,
too.
For \(x>0\), compute:
\[ \ddx x^x \]
The function \(x^x\) is tricky to differentiate. We cannot use the power rule,
as the exponent is not a constant; the function is not an exponential function
either, since the base is not a constant. However, if we set \(f(x) = x^x\) we can write
The function from the previous example \(x^x\) is a type of function that we call a tower
function. Tower functions are functions written as \(f(x)^{g(x)}\), an exponential where both the
base and exponent depend on the variable. This logarithmic differentiation is one
method of differentiating a tower function. However we can also write
By
rewriting like this we can differentiate tower functions using chain rule and
product rule. In the previous example, the derivative of \(x^x\) was calculated in both
of these methods. Let’s differentiate one more tower functions using both
methods.
Calculate the derivative of \(f(x) = x^{\cos (x)}\) in two ways: logarithmic differentiation and using chain
rule and product rule.
We start with the logarithmic differentiation method.
Let’s differentiate \(f\) one more time, but using chain rule and product rule. We begin
by rewriting the tower function as an exponential with constant base \(e\).
Notice the function here is the sum of two terms. The logarithm properties listed
above show that logarithms of products can be simplified, but logarithms of sums
cannot be. Instead of attempting logarithmic differentiation, let us use the Sum Rule
for derivatives to take the derivative of each term separately.
Call \(f(x) = 6\sin ^2(x) + 3(x^2+1)^x(\cos (2x) + 3)^5\), and the individual terms \(g(x) = 6\sin ^2(x)\) and \(h(x) = 3(x^2+1)^x(\cos (2x) + 3)^5\). That means \(f(x) = g(x) + h(x)\). The Sum Rule says \(\ddx f(x) = \ddx g(x) + \ddx h(x)\), so we
differentiate each term separately.
To calculate \(g'(x)\) we use Chain Rule:
\[ g'(x) = 12\sin (x)\cos (x). \]
To calculate \(h'(x)\) we use logarithmic differentiation (since \(h(x)\) is a product of factors each of
which are raised to powers, logarithms will help simplify this).
Finally, recall that previously we only proved the power rule for positive
integer exponents. Now we’ll use logarithmic differentiation to give a proof
for all real-valued exponents. We restate the power rule for convenience
sake:
Power Rule For any real number \(n\),
\[ \ddx x^n = n x^{n-1}. \]
We will use logarithmic differentiation. Set \(f(x) = x^n\). Write
Whenever \(x=0\) is in the domain of \(f\), the definition of the derivative at \(x=0\) implies that \(f'(0)=0\), if \(n\ne 1\)
and \(f'(0)=1\), if \(n=1\) , so the power rule applies to \(x=0\), too.
Thus we see that the power rule holds for all real-valued (nonzero) exponents.
While logarithmic differentiation might seem strange and new at first, with a little
practice it will seem much more natural to you.