Skip to main content
Mathematics LibreTexts

3.9: Derivatives of Exponential and Logarithmic Functions

  • Page ID
    20709
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    So far, we have learned how to differentiate a variety of functions, including trigonometric, inverse, and implicit functions. In this section, we explore derivatives of exponential and logarithmic functions. As we discussed in Introduction to Functions and Graphs, exponential functions play an important role in modeling population growth and the decay of radioactive materials. Logarithmic functions can help rescale large quantities and are particularly helpful for rewriting complicated expressions.

    Derivative of the Exponential Function

    Just as when we found the derivatives of other functions, we can find the derivatives of exponential and logarithmic functions using formulas. As we develop these formulas, we need to make certain basic assumptions. The proofs that these assumptions hold are beyond the scope of this course.

    First of all, we begin with the assumption that the function \(B(x)=b^x,b>0,\) is defined for every real number and is continuous. In previous courses, the values of exponential functions for all rational numbers were defined—beginning with the definition of \(b^n\), where \(n\) is a positive integer—as the product of \(b\) multiplied by itself \(n\) times. Later, we defined \(b^0=1,b^{−n}=\frac{1}{b^n}\), for a positive integer \(n\), and \(b^{s/t}=(\sqrt[t]{b})^s\) for positive integers \(s\) and \(t\). These definitions leave open the question of the value of br where r is an arbitrary real number. By assuming the continuity of \(B(x)=b^x,b>0\), we may interpret \(b^r\) as \(lim_{x→r}b^x\) where the values of \(x\) as we take the limit are rational. For example, we may view \(4^π\) as the number satisfying

    \[4^3<4^π<4^4,4^{3.1}<4^π<4^{3.2},4^{3.14}<4^π<4^{3.15},\]

    \[4^{3.141}<4^{π}<4^{3.142},4^{3.1415}<4^{π}<4^{3.1416},….\]

    As we see in the following table, \(4^π≈77.88.\)

    \(x\) \(4^x\) \(x\) \(4^x\)
    \(4^3\) 64 \(4^{3.141593}\) 77.8802710486
    \(4^{3.1}\) 73.5166947198 \(4^{3.1416}\) 77.8810268071
    \(4^{3.14}\) 77.7084726013 \(4^{3.142}\) 77.9242251944
    \(4^{3.141}\) 77.8162741237 \(4^{3.15}\) 78.7932424541
    \(4^{3.1415}\) 77.8702309526 \(4^{3.2}\) 84.4485062895
    \(4^{3.14159}\) 77.8799471543 \(4^{4}\) 256

    Approximating a Value of \(4^π\)

    We also assume that for \(B(x)=b^x,b>0\), the value \(B′(0)\) of the derivative exists. In this section, we show that by making this one additional assumption, it is possible to prove that the function \(B(x)\) is differentiable everywhere.

    We make one final assumption: that there is a unique value of \(b>0\) for which \(B′(0)=1\). We define e to be this unique value, as we did in Introduction to Functions and Graphs. Figure provides graphs of the functions \(y=2^x,y=3^x,y=2.7^x,\) and \(y=2.8^x\). A visual estimate of the slopes of the tangent lines to these functions at 0 provides evidence that the value of e lies somewhere between 2.7 and 2.8. The function \(E(x)=e^x\) is called the natural exponential function. Its inverse, \(L(x)=log_ex=lnx\) is called the natural logarithmic function.

    CNX_Calc_Figure_03_09_001.jpeg

    Figure \(\PageIndex{1}\): The graph of \(E(x)=e^x\) is between \(y=2^x\) and \(y=3^x\).

    For a better estimate of \(e\), we may construct a table of estimates of \(B′(0)\) for functions of the form \(B(x)=b^x\). Before doing this, recall that

    \(B′(0)=lim_{x→0}\frac{b^x−b^0}{x−0}=lim_{x→0}\frac{b^x−1}{x}≈\frac{b^x−1}{x}\)

    for values of \(x\) very close to zero. For our estimates, we choose \(x=0.00001\) and \(x=−0.00001\)

    to obtain the estimate

    \(\frac{b^{−0.00001}−1}{−0.00001}<B′(0)<\frac{b^{0.00001}−1}{0.00001}.\)

    See the following table.

    Table : Estimating a Value of e
    b \(\frac{b^{−0.00001}−1}{−0.00001}<B′(0)<\frac{b^{0.00001}−1}{0.00001}.\) b \(\frac{b^{−0.00001}−1}{−0.00001}<B′(0)<\frac{b^{0.00001}−1}{0.00001}.\)
    2 \(0.693145<B′(0)<0.69315\) 2.718 \(1.000002<B′(0)<1.000012\)
    2.7 \(0.993247<B′(0)<0.993257\) 2.719 \(1.000259<B′(0)<1.000269\)
    2.71 \(0.996944<B′(0)<0.996954\) 2.72 \(1.000627<B′(0)<1.000637\)
    2.718 \(0.999891<B′(0)<0.999901\) 2.8 \(1.029614<B′(0)<1.029625\)
    2.7182 \(0.999965<B′(0)<0.999975\) 3 \(1.098606<B′(0)<1.098618\)

    The evidence from the table suggests that \(2.7182<e<2.7183.\)

    The graph of \(E(x)=e^x\) together with the line \(y=x+1\) are shown in Figure. This line is tangent to the graph of \(E(x)=e^x\) at \(x=0\).

    CNX_Calc_Figure_03_09_002.jpeg

    Figure \(\PageIndex{2}\): The tangent line to \(E(x)=e^x\) at \(x=0\) has slope 1.

    Now that we have laid out our basic assumptions, we begin our investigation by exploring the derivative of \(B(x)=b^x,b>0\). Recall that we have assumed that \(B′(0)\) exists. By applying the limit definition to the derivative we conclude that

    \(B′(0)=lim_{h→0}\frac{b^{0+h}−b^0}{h}=lim_{h→0}\frac{b^h−1}{h}\).

    Turning to \(B′(x)\), we obtain the following.

    \(B′(x)=lim_{h→0}\frac{b^{x+h}−b^x}{h}\) Apply the limit definition of the derivative.

    \(=lim_{h→0}\frac{b^xb^h−b^x}{h}\) Note thatbx+h=bxbh.

    \(=lim_{h→0}\frac{b^x(b^h−1)}{h}\) Factor outbx.

    \(=b^xlim_{h→0}\frac{b^h−1}{h}\) Apply a property of limits.

    \(=b^xB′(0)\) Use \(B′(0)=lim_{h→0}\frac{b^{0+h}−b^0}{h}=lim_{h→0}\frac{b^h−1}{h}\).

    We see that on the basis of the assumption that \(B(x)=b^x\) is differentiable at \(0,B(x)\) is not only differentiable everywhere, but its derivative is

    \(B′(x)=b^xB′(0).\)

    For \(E(x)=e^x,E′(0)=1.\) Thus, we have \(E′(x)=e^x\). (The value of \(B′(0)\) for an arbitrary function of the form \(B(x)=b^x,b>0,\) will be derived later.)

    Derivative of the Natural Exponential Function

    Let \(E(x)=e^x\) be the natural exponential function. Then

    \(E′(x)=e^x.\)

    In general,

    \(\frac{d}{dx}(e^{g(x)})=e^{g(x)}g′(x)\).

    Example \(\PageIndex{1}\): Derivative of an Exponential Function

    Find the derivative of \(f(x)=e^{tan(2x)}\).

    Solution:

    Using the derivative formula and the chain rule,

    \(f′(x)=e^{tan(2x)}\frac{d}{dx}(tan(2x))=e^{tan(2x)}sec^2(2x)⋅2\).

    Example \(\PageIndex{2}\): Combining Differentiation Rules

    Find the derivative of \(y=\frac{e^{x^2}}{x}\).

    Solution

    Use the derivative of the natural exponential function, the quotient rule, and the chain rule.

    \(y′=\frac{(e^{x^2}⋅2)x⋅x−1⋅e^{x^2}}{x^2}\) Apply the quotient rule.

    \(=\frac{e^{x^2}(2x^2−1)}{x^2}\) Simplify.

    Exercise \(\PageIndex{1}\)

    Find the derivative of \(h(x)=xe^{2x}\).

    Hint

    Don’t forget to use the product rule.

    Answer

    \(h′(x)=e^{2x}+2xe^{2x}\)

    Example \(\PageIndex{3}\): Applying the Natural Exponential Function

    A colony of mosquitoes has an initial population of 1000. After \(t\) days, the population is given by \(A(t)=1000e^{0.3t}\). Show that the ratio of the rate of change of the population, \(A′(t)\), to the population, \(A(t)\) is constant.

    Solution

    First find \(A′(t)\). By using the chain rule, we have \(A′(t)=300e^{0.3t}.\) Thus, the ratio of the rate of change of the population to the population is given by

    \(A′(t)=\frac{300e^{0.3t}}{1000e^{0.3t}}=0.3.\)

    The ratio of the rate of change of the population to the population is the constant 0.3.

    Exercise \(\PageIndex{2}\)

    If \(A(t)=1000e^{0.3t}\) describes the mosquito population after \(t\) days, as in the preceding example, what is the rate of change of \(A(t)\) after 4 days?

    Hint

    Find \(A′(4)\).

    Answer

    \(996\)

    Derivative of the Logarithmic Function

    Now that we have the derivative of the natural exponential function, we can use implicit differentiation to find the derivative of its inverse, the natural logarithmic function.

    Definition: The Derivative of the Natural Logarithmic Function

    If \(x>0\) and \(y=lnx\),then

    \(\frac{dy}{dx}=\frac{1}{x}\).

    More generally, let \(g(x)\) be a differentiable function. For all values of \(x\) for which \(g′(x)>0\), the derivative of \(h(x)=ln(g(x))\) is given by

    \(h′(x)=\frac{1}{g(x)}g′(x).\)

    Proof

    If \(x>0\) and \(y=lnx\), then \(e^y=x.\) Differentiating both sides of this equation results in the equation

    \(e^y\frac{dy}{dx}=1.\)

    Solving for \(\frac{dy}{dx}\) yields

    \(\frac{dy}{dx}=\frac{1}{e^y}\).

    Finally, we substitute \(x=e^y\) to obtain

    \(\frac{dy}{dx}=\frac{1}{x}\).

    We may also derive this result by applying the inverse function theorem, as follows. Since \(y=g(x)=lnx\)

    is the inverse of \(f(x)=e^x\), by applying the inverse function theorem we have

    \(\frac{dy}{dx}=\frac{1}{f′(g(x))}=\frac{1}{e^{lnx}}=\frac{1}{x}\).

    Using this result and applying the chain rule to \(h(x)=ln(g(x))\) yields

    \(h′(x)=\frac{1}{g(x)}g′(x)\).

    The graph of \(y=lnx\) and its derivative \(\frac{dy}{dx}=\frac{1}{x}\) are shown in Figure.

    CNX_Calc_Figure_03_09_003.jpeg

    Figure \(\PageIndex{3}\): The function \(y=lnx\) is increasing on \((0,+∞)\). Its derivative \(y'=\frac{1}{x}\) is greater than zero on \((0,+∞)\)

    Example \(\PageIndex{4}\):Taking a Derivative of a Natural Logarithm

    Find the derivative of \(f(x)=ln(x^3+3x−4)\).

    Solution

    Use Equation directly.

    \(f′(x)=\frac{1}{x^3+3x−4}⋅(3x^2+3)\) Use \(g(x)=x^3+3x−4\) in \(h′(x)=\frac{1}{g(x)}g′(x)\).

    \(=\frac{3x^2+3}{x^3+3x−4}\) Rewrite.

    Example \(\PageIndex{5}\):Using Properties of Logarithms in a Derivative

    Find the derivative of \(f(x)=ln(\frac{x^2sinx}{2x+1})\).

    Solution

    At first glance, taking this derivative appears rather complicated. However, by using the properties of logarithms prior to finding the derivative, we can make the problem much simpler.

    \(f(x)=ln(\frac{x^2sinx}{2x+1})=2lnx+ln(sinx)−ln(2x+1)\) Apply properties of logarithms.

    \(f′(x)=\frac{2}{x}+cotx−\frac{2}{2x+1}\) Apply sum rule and \(h′(x)=\frac{1}{g(x)}g′(x)\).

    Exercise \(\PageIndex{3}\)

    Differentiate: \(f(x)=ln(3x+2)^5\).

    Hint

    Use a property of logarithms to simplify before taking the derivative.

    Answer

    \(f′(x)=\frac{15}{3x+2}\)

    Now that we can differentiate the natural logarithmic function, we can use this result to find the derivatives of \(y=log_bx\) and \(y=b^x\) for \(b>0,b≠1\).

    Derivatives of General Exponential and Logarithmic Functions

    Let \(b>0,b≠1,\) and let \(g(x)\) be a differentiable function.

    i. If, \(y=log_bx\), then

    \(\frac{dy}{dx}=\frac{1}{xlnb}\).

    More generally, if \(h(x)=log_b(g(x))\), then for all values of x for which \(g(x)>0\),

    \(h′(x)=\frac{g′(x)}{g(x)lnb}\).

    ii. If \(y=b^x,\) then

    \(\frac{dy}{dx}=b^xlnb\).

    More generally, if \(h(x)=b^{g(x)},\) then

    \(h′(x)=b^{g(x)}g''(x)lnb\)

    Proof

    If \(y=log_bx,\) then \(b^y=x.\) It follows that \(ln(b^y)=lnx\). Thus \(ylnb=lnx\). Solving for \(y\), we have \(y=\frac{lnx}{lnb}\). Differentiating and keeping in mind that \(lnb\) is a constant, we see that

    \(\frac{dy}{dx}=\frac{1}{xlnb}\).

    The derivative in Equation now follows from the chain rule.

    If \(y=b^x\). then \(lny=xlnb.\) Using implicit differentiation, again keeping in mind that \(lnb\) is constant, it follows that \(\frac{1}{y}\frac{dy}{dx}=lnb\). Solving for \(\frac{dy}{dx}\) and substituting \(y=b^x\), we see that

    \(\frac{dy}{dx}=ylnb=b^xlnb\).

    The more general derivative (Equation) follows from the chain rule.

    Example \(\PageIndex{6}\):Applying Derivative Formulas

    Find the derivative of \(h(x)=\frac{3^x}{3^x+2}\).

    Solution

    Use the quotient rule and Note.

    \(h′(x)=\frac{3^xln3(3^x+2)−3^xln3(3^x)}{(3^x+2)^2}\) Apply the quotient rule.

    \(=\frac{2⋅3^xln3}{(3x+2)^2}\) Simplify.

    Example \(\PageIndex{7}\): Finding the Slope of a Tangent Line

    Find the slope of the line tangent to the graph of \(y=log_2(3x+1)\) at \(x=1\).

    Solution

    To find the slope, we must evaluate \(\frac{dy}{dx}\) at \(x=1\). Using Equation, we see that

    \(\frac{dy}{dx}=\frac{3}{ln2(3x+1)}\).

    By evaluating the derivative at \(x=1\), we see that the tangent line has slope

    \(\frac{dy}{dx}∣_{x=1}=\frac{3}{4ln2}=\frac{3}{ln16}\).

    Exercise \(\PageIndex{4}\)

    Find the slope for the line tangent to \(y=3^x\) at \(x=2.\)

    Hint

    Evaluate the derivative at \(x=2.\)

    Answer

    \(9ln(3)\)

    Logarithmic Differentiation

    At this point, we can take derivatives of functions of the form \(y=(g(x))^n\) for certain values of \(n\), as well as functions of the form \(y=b^{g(x)}\), where \(b>0\) and \(b≠1\). Unfortunately, we still do not know the derivatives of functions such as \(y=x^x\) or \(y=x^π\). These functions require a technique called logarithmic differentiation, which allows us to differentiate any function of the form \(h(x)=g(x)^{f(x)}\). It can also be used to convert a very complex differentiation problem into a simpler one, such as finding the derivative of \(y=\frac{x\sqrt{2x+1}}{e^xsin^3x}\). We outline this technique in the following problem-solving strategy.

    Problem-Solving Strategy: Using Logarithmic Differentiation

    1. To differentiate \(y=h(x)\) using logarithmic differentiation, take the natural logarithm of both sides of the equation to obtain \(lny=ln(h(x)).\)
    2. Use properties of logarithms to expand \(ln(h(x))\) as much as possible.
    3. Differentiate both sides of the equation. On the left we will have \(\frac{1}{y}\frac{dy}{dx}\).
    4. Multiply both sides of the equation by \(y\) to solve for \(\frac{dy}{dx}\).
    5. Replace \(y\) by \(h(x)\).

    Example \(\PageIndex{8}\): Using Logarithmic Differentiation

    Find the derivative of \(y=(2x^4+1)^{tanx}\).

    Solution

    Use logarithmic differentiation to find this derivative.

    \(lny=ln(2x^4+1)^{tanx}\) Step 1. Take the natural logarithm of both sides.

    \(lny=tanxln(2x^4+1)\) Step 2. Expand using properties of logarithms.

    \(\frac{1}{y}\frac{dy}{dx}=sec^2xln(2x^4+1)+\frac{8x^3}{2x^4+1}⋅tanx\) Step 3. Differentiate both sides. Use theproduct rule on the right.

    \(\frac{dy}{dx}=y⋅(sec^2xln(2x4+1)+\frac{8x^3}{2x^4+1}⋅tanx)\) Step 4. Multiply byyon both sides.

    \(\frac{dy}{dx}=(2x^4+1)^{tanx}(sec^2xln(2x^4+1)+\frac{8x^3}{2x^4+1}⋅tanx)\) Step 5. Substitute \(y=(2x^4+1)^{tanx}\).

    Example \(\PageIndex{9}\): Extending the Power Rule

    Find the derivative of \(y=\frac{x\sqrt{2x+1}}{e^xsin^3x}\).

    Solution

    This problem really makes use of the properties of logarithms and the differentiation rules given in this chapter.

    \(lny=ln\frac{x\sqrt{2x+1}}{e^xsin^3x}\) Step 1. Take the natural logarithm of both sides.
    \(lny=lnx+\frac{1}{2}ln(2x+1)−xlne−3lnsinx\) Step 2. Expand using properties of logarithms.
    \(\frac{1}{y}\frac{dy}{dx}=\frac{1}{x}+\frac{1}{2x+1}−1−3\frac{cosx}{sinx}\) Step 3. Differentiate both sides.
    \(\frac{dy}{dx}=y(\frac{1}{x}+\frac{1}{2x+1}−1−3cotx)\) Step 4. Multiply by \(y\) on both sides.
    \(\frac{dy}{dx}=\frac{x\sqrt{2x+1}}{e^xsin^3x}(\frac{1}{x}+\frac{1}{2x+1}−1−3cotx)\) Step 5. Substitute \(y=\frac{x\sqrt{2x+1}}{e^xsin^3x}.\)

    Exercise \(\PageIndex{5}\)

    Use logarithmic differentiation to find the derivative of \(y=x^x\).

    Hint

    Follow the problem solving strategy.

    Answer

    Solution: \(\frac{dy}{dx}=x^x(1+lnx)\)

    Exercise \(\PageIndex{6}\)

    Find the derivative of \(y=(tanx)^π\).

    Hint

    Use the result from Example.

    Answer

    \(y′=π(tanx)^{π−1}sec^2x\)

    Key Concepts

    • On the basis of the assumption that the exponential function \(y=b^x,b>0\) is continuous everywhere and differentiable at 0, this function is differentiable everywhere and there is a formula for its derivative.
    • We can use a formula to find the derivative of \(y=lnx\), and the relationship \(log_bx=\frac{lnx}{lnb}\) allows us to extend our differentiation formulas to include logarithms with arbitrary bases.
    • Logarithmic differentiation allows us to differentiate functions of the form \(y=g(x)^{f(x)}\) or very complex functions by taking the natural logarithm of both sides and exploiting the properties of logarithms before differentiating.

    Key Equations

    • Derivative of the natural exponential function

    \(\frac{d}{dx}(e^{g(x)})=e^{g(x)}g′(x)\)

    • Derivative of the natural logarithmic function

    \(\frac{d}{dx}(lng(x))=\frac{1}{g(x)}g′(x)\)

    • Derivative of the general exponential function

    \(\frac{d}{dx}(b^{g(x)})=b^{g(x)}g′(x)lnb\)

    • Derivative of the general logarithmic function

    \(\frac{d}{dx}(log_bg(x))=\frac{g′(x)}{g(x)lnb}\)

    Glossary

    logarithmic differentiation
    is a technique that allows us to differentiate a function by first taking the natural logarithm of both sides of an equation, applying properties of logarithms to simplify the equation, and differentiating implicitly

    Contributors

    • Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org.


    3.9: Derivatives of Exponential and Logarithmic Functions is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by LibreTexts.