Difference between revisions of "Derivatives of Exponential and Logarithmic Functions"
(Added links for PowerPoint and worksheet) |
|||
Line 1: | Line 1: | ||
+ | ==Logarithm Function== | ||
+ | We shall first look at the irrational number <math>e</math> in order to show its special properties when used with derivatives of exponential and logarithm functions. As mentioned before in [[Calculus/Algebra| the Algebra section]], the value of <math>e</math> is approximately <math>e\approx2.718282</math> but it may also be calculated as the [[Calculus/Infinite_Limits|Infinite Limit]]: | ||
+ | |||
+ | <math>e=\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n</math> | ||
+ | |||
+ | Now we find the derivative of <math>\ln(x)</math> using the formal definition of the derivative: | ||
+ | |||
+ | <math>\frac{d}{dx}\ln(x)=\lim_{h\to0}\frac{\ln(x+h)-\ln(x)}{h}=\lim_{h\to0}\frac{1}{h}\ln\left(\frac{x+h}{x}\right)=\lim_{h\to0}\ln\left(\frac{x+h}{x}\right)^\frac{1}{h}</math> | ||
+ | |||
+ | Let <math>n=\frac{x}{h}</math> . Note that as <math>n\to\infty</math> , we get <math>h\to0</math> . So we can redefine our limit as: | ||
+ | |||
+ | <math>\lim_{n\to\infty}\ln\left(1+\frac{1}{n}\right)^\frac{n}{x}=\frac{1}{x}\ln\left(\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n\right)=\frac{1}{x}\ln(e)=\frac{1}{x}</math> | ||
+ | |||
+ | Here we could take the natural logarithm outside the limit because it doesn't have anything to do with the limit (we could have chosen not to). We then substituted the value of <math>e</math> . | ||
+ | {| width="75%" | ||
+ | |- | ||
+ | |style="background-color: #FFFFFF; border: solid 1px #D6D6FF; padding: 1em;" valign="top"| | ||
+ | <center>'''Derivative of the Natural Logarithm'''<br> | ||
+ | <math>\frac{d}{dx}\ln(x)=\frac{1}{x}</math> | ||
+ | </center> | ||
+ | |} | ||
+ | |||
+ | If we wanted, we could go through that same process again for a generalized base, but it is easier just to use properties of logs and realize that: | ||
+ | |||
+ | :<math>\log_a(x)=\frac{\ln(x)}{\ln(a)}</math> | ||
+ | |||
+ | Since <math>\frac{1}{\ln(a)}</math> is a constant, we can just take it outside of the derivative: | ||
+ | |||
+ | :<math>\frac{d}{dx}\log_a(x)=\frac{1}{\ln(a)}\cdot\frac{d}{dx}\ln(x)</math> | ||
+ | |||
+ | Which leaves us with the generalized form of: | ||
+ | |||
+ | {| width="75%" | ||
+ | |- | ||
+ | | style="background-color: #FFFFFF; border: solid 1px #D6D6FF; padding: 1em;" valign="top" | | ||
+ | <center>'''Derivative of the Logarithm'''<br> | ||
+ | <math>\frac{d}{dx}\log_a(x)=\frac{1}{\ln(a)x}</math> | ||
+ | </center> | ||
+ | |} | ||
+ | |||
+ | An alternative approach to derivative of the logarithm refers to the original expression of the logarithm as quadrature of the hyperbola ''y'' = 1/''x'' . This approach is described in an extension of precalculus in § {{Calculus/map page|Hyperbolic logarithm and angles}}. | ||
+ | |||
+ | ==Exponential Function== | ||
+ | We shall take two different approaches to finding the derivative of <math>\ln(e^x)</math> . The first approach: | ||
+ | :<math>\frac{d}{dx}\ln(e^x)=\frac{d}{dx}x=1</math> | ||
+ | The second approach: | ||
+ | :<math>\frac{d}{dx}\ln(e^x)=\frac{1}{e^x}\left(\frac{d}{dx}e^x\right)</math> | ||
+ | Note that in the second approach we made some use of the chain rule. Thus: | ||
+ | :<math>\frac{1}{e^x}\left(\frac{d}{dx}e^x\right)=1</math> | ||
+ | :<math>\frac{d}{dx}e^x=e^x</math> | ||
+ | |||
+ | so that we have proved the following rule: | ||
+ | |||
+ | {| WIDTH="75%" | ||
+ | |- | ||
+ | |style="background-color: #FFFFFF; border: solid 1px #D6D6FF; padding: 1em;" valign="top"| | ||
+ | <center>'''Derivative of the exponential function'''<br> | ||
+ | <math>\frac{d}{dx}e^x=e^x</math> | ||
+ | </center> | ||
+ | |} | ||
+ | |||
+ | Now that we have derived a specific case, let us extend things to the general case. Assuming that <math>a</math> is a positive real constant, we wish to calculate: | ||
+ | |||
+ | :<math>\frac{d}{dx}a^x</math> | ||
+ | |||
+ | One of the oldest tricks in mathematics is to break a problem down into a form that we already know we can handle. Since we have already determined the derivative of <math>e^x</math> , we will attempt to rewrite <math>a^x</math> in that form. | ||
+ | |||
+ | Using that <math>e^{\ln(c)}=c</math> and that <math>\ln(a^b)=b\cdot\ln(a)</math> , we find that: | ||
+ | :<math>a^x=e^{\ln(a)x}</math> | ||
+ | Thus, we simply apply the chain rule: | ||
+ | :<math>\frac{d}{dx}e^{\ln(a)x}=e^{\ln(a)x}\cdot\frac{d}{dx}[\ln(a)x]=\ln(a)a^x</math> | ||
+ | |||
+ | {| WIDTH="75%" | ||
+ | |- | ||
+ | |style="background-color: #FFFFFF; border: solid 1px #D6D6FF; padding: 1em;" valign="top"| | ||
+ | <center>'''Derivative of the exponential function'''<br> | ||
+ | <math>\frac{d}{dx}a^x=\ln(a)a^x</math> | ||
+ | </center> | ||
+ | |} | ||
+ | |||
+ | ==Logarithmic Differentiation== | ||
+ | We can use the properties of the logarithm, particularly the natural log, to differentiate more difficult functions, such a products with many terms, quotients of composed functions, or functions with variable or function exponents. We do this by taking the natural logarithm of both sides, re-arranging terms using the logarithm laws below, and then differentiating both sides implicitly, before multiplying through by <math>y</math> . | ||
+ | |||
+ | {| WIDTH="100%" | ||
+ | |- | ||
+ | |style="background-color: #FFFFFF; border: solid 1px #D6D6FF; padding: 1em;" valign="top"| | ||
+ | {{col-begin}} | ||
+ | {{col-break}} | ||
+ | <math>\log(a)+\log(b)=\log(ab)</math> | ||
+ | {{col-break}} | ||
+ | <math>\log\left(\frac{a}{b}\right)=\log(a)-\log(b)</math> | ||
+ | {{col-break}} | ||
+ | <math>\log(a^n)=n\log(a)</math> | ||
+ | {{col-break}} | ||
+ | {{col-end}} | ||
+ | |} | ||
+ | |||
+ | See the examples below. | ||
+ | |||
+ | ====Example 1==== | ||
+ | We shall now prove the validity of the power rule using logarithmic differentiation. | ||
+ | |||
+ | <math>\frac{d}{dx}\ln(x^n)=n\frac{d}{dx}\ln(x)=nx^{-1}</math> | ||
+ | |||
+ | <math>\frac{d}{dx}\ln(x^n)=\frac{1}{x^n}\cdot\frac{d}{dx}x^n</math> | ||
+ | |||
+ | Thus: | ||
+ | |||
+ | <math>\frac{1}{x^n}\cdot\frac{d}{dx}x^n=nx^{-1}</math> | ||
+ | |||
+ | <math>\frac{d}{dx}x^n=nx^{n-1}</math> | ||
+ | ;Example 2 | ||
+ | |||
+ | {| WIDTH="75%" | ||
+ | |- | ||
+ | | style="background-color: #FFFFFF; border: solid 1px #D6D6FF; padding: 1em;" valign="top" | | ||
+ | Suppose we wished to differentiate | ||
+ | :<math>y=\frac{(6x^2+9)^2}{\sqrt{3x^3-2}}</math> | ||
+ | We take the natural logarithm of both sides | ||
+ | :<math>\begin{align} | ||
+ | \ln(y)&=\ln\left(\frac{(6x^2+9)^2}{\sqrt{3x^3-2}}\right)\\ | ||
+ | &=\ln\big((6x^2+9)^2\big)-\ln\big((3x^3-2)^{\frac12}\big)\\ | ||
+ | &=2\ln(6x^2+9)-\frac{\ln(3x^3-2)}{2} | ||
+ | \end{align}</math> | ||
+ | Differentiating implicitly, recalling the chain rule | ||
+ | :<math>\begin{align} | ||
+ | \frac{1}{y}\cdot\frac{dy}{dx}&=2\cdot\frac{12x}{6x^2+9}-\frac12\cdot\frac{9x^2}{3x^3-2}\\ | ||
+ | &=\frac{24x}{6x^2+9}-\frac{\frac{9}{2}x^2}{3x^3-2}\\ | ||
+ | &=\frac{24x(3x^3-2)-\frac92x^2(6x^2+9)}{(6x^2+9)(3x^3-2)} | ||
+ | \end{align}</math> | ||
+ | Multiplying by <math>y</math> , the original function | ||
+ | :<math>\frac{dy}{dx}=\frac{(6x^2+9)^2}{\sqrt{3x^3-2}}\cdot\frac{24x(3x^3-2)-\frac{9}{2}x^2(6x^2+9)}{(6x^2+9)(3x^3-2)}</math> | ||
+ | |} | ||
+ | |||
+ | ;Example 3 | ||
+ | |||
+ | {| WIDTH="75%" | ||
+ | |- | ||
+ | | style="background-color: #FFFFFF; border: solid 1px #D6D6FF; padding: 1em;" valign="top" | | ||
+ | Let us differentiate a function | ||
+ | :<math>y=x^x</math> | ||
+ | Taking the natural logarithm of left and right | ||
+ | :<math>\begin{align}\ln(y)&=\ln(x^x)\\&=x\ln(x)\end{align}</math> | ||
+ | We then differentiate both sides, recalling the product and chain rules | ||
+ | :<math>\begin{align}\frac{1}{y}\cdot\frac{dy}{dx}&=\ln(x)+x\frac{1}{x}\\&=\ln(x)+1\end{align}</math> | ||
+ | Multiplying by the original function <math>y</math> | ||
+ | :<math>\frac{dy}{dx}=x^x(\ln(x)+1)</math> | ||
+ | |} | ||
+ | |||
+ | ;Example 4 | ||
+ | |||
+ | {| WIDTH="75%" | ||
+ | |- | ||
+ | | style="background-color: #FFFFFF; border: solid 1px #D6D6FF; padding: 1em;" valign="top" | | ||
+ | Take a function | ||
+ | :<math>y=x^{6\cos(x)}</math> | ||
+ | Then | ||
+ | :<math>\begin{align}\ln(y)&=\ln(x^{6\cos(x)})\\&=6\cos(x)\ln(x)\end{align}</math> | ||
+ | We then differentiate | ||
+ | :<math>\frac{1}{y}\cdot\frac{dy}{dx}=-6\sin(x)\ln(x)+\frac{6\cos(x)}{x}</math> | ||
+ | And finally multiply by <math>y</math> | ||
+ | :<math>\begin{align} | ||
+ | \frac{dy}{dx}&=y\left(-6\sin(x)\ln(x)+\frac{6\cos(x)}{x}\right)\\&=6x^{6\cos(x)}\left(\frac{\cos(x)}{x}-\sin(x)\ln(x)\right) | ||
+ | \end{align}</math> | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==Resources== | ||
* [https://mathresearch.utsa.edu/wikiFiles/MAT1214/The%20Derivative%20of%20the%20Exponential%20Function/MAT1214-3.9TheDerivativeOfTheExponentialFunctionPwPt.pptx Derivatives of the Exponential and Logarithmic Functions] PowerPoint file created by Dr. Sara Shirinkam, UTSA. | * [https://mathresearch.utsa.edu/wikiFiles/MAT1214/The%20Derivative%20of%20the%20Exponential%20Function/MAT1214-3.9TheDerivativeOfTheExponentialFunctionPwPt.pptx Derivatives of the Exponential and Logarithmic Functions] PowerPoint file created by Dr. Sara Shirinkam, UTSA. | ||
* [https://mathresearch.utsa.edu/wikiFiles/MAT1214/The%20Derivative%20of%20the%20Exponential%20Function/MAT1214-3.9TheDerivativesOfExpAndLogFunctionsWS1.pdf Derivatives of the Exponential and Logarithmic Functions Worksheet] | * [https://mathresearch.utsa.edu/wikiFiles/MAT1214/The%20Derivative%20of%20the%20Exponential%20Function/MAT1214-3.9TheDerivativesOfExpAndLogFunctionsWS1.pdf Derivatives of the Exponential and Logarithmic Functions Worksheet] |
Revision as of 14:36, 30 September 2021
Contents
Logarithm Function
We shall first look at the irrational number in order to show its special properties when used with derivatives of exponential and logarithm functions. As mentioned before in the Algebra section, the value of is approximately but it may also be calculated as the Infinite Limit:
Now we find the derivative of using the formal definition of the derivative:
Let . Note that as , we get . So we can redefine our limit as:
Here we could take the natural logarithm outside the limit because it doesn't have anything to do with the limit (we could have chosen not to). We then substituted the value of .
|
If we wanted, we could go through that same process again for a generalized base, but it is easier just to use properties of logs and realize that:
Since is a constant, we can just take it outside of the derivative:
Which leaves us with the generalized form of:
|
An alternative approach to derivative of the logarithm refers to the original expression of the logarithm as quadrature of the hyperbola y = 1/x . This approach is described in an extension of precalculus in § Template:Calculus/map page.
Exponential Function
We shall take two different approaches to finding the derivative of . The first approach:
The second approach:
Note that in the second approach we made some use of the chain rule. Thus:
so that we have proved the following rule:
|
Now that we have derived a specific case, let us extend things to the general case. Assuming that is a positive real constant, we wish to calculate:
One of the oldest tricks in mathematics is to break a problem down into a form that we already know we can handle. Since we have already determined the derivative of , we will attempt to rewrite in that form.
Using that and that , we find that:
Thus, we simply apply the chain rule:
|
Logarithmic Differentiation
We can use the properties of the logarithm, particularly the natural log, to differentiate more difficult functions, such a products with many terms, quotients of composed functions, or functions with variable or function exponents. We do this by taking the natural logarithm of both sides, re-arranging terms using the logarithm laws below, and then differentiating both sides implicitly, before multiplying through by .
Template:Col-begin Template:Col-break Template:Col-break Template:Col-break Template:Col-break Template:Col-end |
See the examples below.
Example 1
We shall now prove the validity of the power rule using logarithmic differentiation.
Thus:
- Example 2
Suppose we wished to differentiate We take the natural logarithm of both sides Differentiating implicitly, recalling the chain rule Multiplying by , the original function |
- Example 3
Let us differentiate a function Taking the natural logarithm of left and right We then differentiate both sides, recalling the product and chain rules Multiplying by the original function |
- Example 4
Take a function Then We then differentiate And finally multiply by |
Resources
- Derivatives of the Exponential and Logarithmic Functions PowerPoint file created by Dr. Sara Shirinkam, UTSA.