Skip to main content
Mathematics LibreTexts

1.5: Exponential and Logarithmic Functions

  • Page ID
    139043
    • Gilbert Strang & Edwin “Jed” Herman
    • OpenStax

    \( \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}\)
    Learning Objectives
    • Identify the form of an exponential function.
    • Explain the difference between the graphs of \(x^{b}\) and \(b^{x}\).
    • Recognize the significance of the number \(e\).
    • Identify the form of a logarithmic function.
    • Explain the relationship between exponential and logarithmic functions.
    • Describe how to calculate a logarithm to a different base.

    Graphing Exponential Functions

    For any base \(b>0\), \(b≠1\), the exponential function \(f(x)=b^x\) is defined for all real numbers \(x\) and \(b^x>0\). Therefore, the domain of \(f(x)=b^x\) is \((−∞,∞)\) and the range is \((0,∞)\). To graph \(b^x\), we note that for \(b>1\), \(b^x\) is increasing on \((−∞,∞)\) and \(b^x→∞\) as \(x→∞\), whereas \(b^x→0\) as \(x→−∞\). On the other hand, if \(0<b<1\), \(f(x)=b^x\) is decreasing on \((−∞,∞)\) and \(b^x→0\) as \(x→∞\) whereas \(b^x→∞\) as \(x→−∞\) (Figure \(\PageIndex{2}\)).

    An image of a graph. The x axis runs from -3 to 3 and the y axis runs from 0 to 4. The graph is of four functions. The first function is “f(x) = 2 to the power of x”, an increasing curved function, which starts slightly above the x axis and begins increasing. The second function is “f(x) = 4 to the power of x”, an increasing curved function, which starts slightly above the x axis and begins increasing rapidly, more rapidly than the first function. The third function is “f(x) = (1/2) to the power of x”, a decreasing curved function with decreases until it gets close to the x axis without touching it. The third function is “f(x) = (1/4) to the power of x”, a decreasing curved function with decreases until it gets close to the x axis without touching it. It decrases at a faster rate than the third function.
    Figure \(\PageIndex{2}\): If \(b>1\), then \(b^x\) is increasing on \((−∞,∞)\). If \(0<b<1\), then \(b^x\) is decreasing on \((−∞,∞)\).

    Note that exponential functions satisfy the general laws of exponents. To remind you of these laws, we state them as rules.

    Laws of Exponents

    For any constants \(a>0\), \(b>0\), and for all \(x\) and \(y,\)

    1. \[b^x⋅b^y=b^{x+y} \nonumber \]
    2. \[\dfrac{b^x}{b^y}=b^{x−y} \nonumber \]
    3. \[(b^x)^y=b^{xy} \nonumber \]
    4. \[(ab)^x=a^xb^x \nonumber \]
    5. \[\dfrac{a^x}{b^x}=\left(\dfrac{a}{b}\right)^x \nonumber \]
    Example \(\PageIndex{2}\): Using the Laws of Exponents

    Use the laws of exponents to simplify each of the following expressions.

    1. \(\dfrac{(2x^{2/3})^3}{(4x^{−1/3})^2}\)
    2. \(\dfrac{(x^3y^{−1})^2}{(xy^2)^{−2}}\)

    Soution

    a. We can simplify as follows:

    \[\dfrac{(2x^{2/3})^3}{(4x^{−1/3})^2}=\dfrac{2^3(x^{2/3})^3}{4^2(x^{−1/3})^2}= \dfrac{8x^2}{16x^{−2/3}} =\dfrac{x^2x^{2/3}}{2}=\dfrac{x^{8/3}}{2}. \nonumber \]

    b. We can simplify as follows:

    \[\dfrac{(x^3y^{−1})^2}{(xy^2)^{−2}}=\dfrac{(x^3)^2(y^{−1})^2}{x^{−2}(y^2)^{−2}}=\dfrac{x^6y^{−2}}{x^{−2}y^{−4}} =x^6x^2y^{−2}y^4=x^8y^2. \nonumber \]

    Exercise \(\PageIndex{2}\)

    Use the laws of exponents to simplify \(\dfrac{6x^{−3}y^2}{12x^{−4}y^5}\).

    Hint

    \(x^a/x^b=x^{a-b}\)

    Answer

    \(x/(2y^3)\)

    The Number e

    A special type of exponential function appears frequently in real-world applications. To describe it, consider the following example of exponential growth, which arises from compounding interest in a savings account. Suppose a person invests \(P\) dollars in a savings account with an annual interest rate \(r\), compounded annually. The amount of money after 1 year is

    \(A(1)=P+rP=P(1+r)\).

    The amount of money after \(2\) years is

    \(A(2)=A(1)+rA(1)=P(1+r)+rP(1+r)=P(1+r)^2\).

    More generally, the amount after \(t\) years is

    \(A(t)=P(1+r)^t\).

    If the money is compounded 2 times per year, the amount of money after half a year is

    \(A\left(\dfrac{1}{2}\right)=P+\left(\dfrac{r}{2}\right)P=P\left(1+\left(\dfrac{r}{2}\right)\right)\).

    The amount of money after \(1\) year is

    \(A(1)=A\left(\dfrac{1}{2}\right)+\left(\dfrac{r}{2}\right)A \left(\dfrac{1}{2}\right)=P\left(1+\dfrac{r}{2}\right)+\dfrac{r}{2}\left(\left(P(1+\dfrac{r}{2}\right)\right)=P\left(1+\dfrac{r}{2}\right)^2.\)

    After \(t\) years, the amount of money in the account is

    \(A(t)=P\left(1+\dfrac{r}{2}\right)^{2t}\).

    More generally, if the money is compounded \(n\) times per year, the amount of money in the account after \(t\) years is given by the function

    \(A(t)=P\left(1+\dfrac{r}{n}\right)^{nt}.\)

    What happens as \(n→∞?\) To answer this question, we let \(m=n/r\) and write

    \(\left(1+\dfrac{r}{n}\right)^{nt}=\left(1+\dfrac{1}{m}\right)^{mrt},\)

    and examine the behavior of \((1+1/m)^m\) as \(m→∞\), using a table of values (Table \(\PageIndex{3}\)).

    Table \(\PageIndex{3}\): Values of \(\left(1+\dfrac{1}{m}\right)^m\) as \(m→∞\)
    \(m\) 10 100 1000 10,000 100,000 1,000,000
    \(\left(1+\dfrac{1}{m}\right)^m\) 2.5937 2.7048 2.71692 2.71815 2.718268 2.718280

    Looking at this table, it appears that \((1+1/m)^m\) is approaching a number between \(2.7\) and \(2.8\) as \(m→∞\). In fact, \((1+1/m)^m\) does approach some number as \(m→∞\). We call this number \(e\). To six decimal places of accuracy,

    \[e≈2.718282. \nonumber \]

    Leonhard Euler

    The letter \(e\) was first used to represent this number by the Swiss mathematician Leonhard Euler during the 1720s. Although Euler did not discover the number, he showed many important connections between \(e\) and logarithmic functions. We still use the notation \(e\) today to honor Euler’s work because it appears in many areas of mathematics and because we can use it in many practical applications.

    Returning to our savings account example, we can conclude that if a person puts \(P\) dollars in an account at an annual interest rate \(r\), compounded continuously, then \(A(t)=Pe^{rt}\). This function may be familiar. Since functions involving base \(e\) arise often in applications, we call the function \(f(x)=e^x\) the natural exponential function. Not only is this function interesting because of the definition of the number \(e\), but also, as discussed next, its graph has an important property.

    Since \(e>1\), we know \(f(x) = e^x\) is increasing on \((−∞,∞)\). In Figure \(\PageIndex{3}\), we show a graph of \(f(x)=e^x\) along with a tangent line to the graph of \(f\) at \(x=0\). We give a precise definition of tangent line in the next chapter; but, informally, we say a tangent line to a graph of \(f\) at \(x=a\) is a line that passes through the point \((a,f(a))\) and has the same “slope” as \(f\) at that point . The function \(f(x)=e^x\) is the only exponential function \(b^x\) with tangent line at \(x=0\) that has a slope of \(1.\) As we see later in the text, having this property makes the natural exponential function the most simple exponential function to use in many instances.

    An image of a graph. The x axis runs from -3 to 3 and the y axis runs from 0 to 4. The graph is of the function “f(x) = e to power of x”, an increasing curved function that starts slightly above the x axis. The y intercept is at the point (0, 1). At this point, a line is drawn tangent to the function. This line has the label “slope = 1”.
    Figure \(\PageIndex{3}\): The graph of \(f(x)=e^x\) has a tangent line with slope \(1\) at \(x=0\).
    Example \(\PageIndex{3}\): Compounding Interest

    Suppose \($500\) is invested in an account at an annual interest rate of \(r=5.5\%\), compounded continuously.

    1. Let \(t\) denote the number of years after the initial investment and \(A(t)\) denote the amount of money in the account at time \(t\). Find a formula for \(A(t)\).
    2. Find the amount of money in the account after \(10\) years and after \(20\) years.

    Solution

    a. If \(P\) dollars are invested in an account at an annual interest rate \(r\), compounded continuously, then \(A(t)=Pe^{rt}\). Here \(P=$500\) and \(r=0.055\). Therefore, \(A(t)=500e^{0.055t}\).

    b. After \(10\) years, the amount of money in the account is

    \(A(10)=500e^{0.055⋅10}=500e^{0.55}≈$866.63\).

    After \(20\) years, the amount of money in the account is

    \(A(20)=500e^{0.055⋅20}=500e^{1.1}≈$1,502.08\).

    Exercise \(\PageIndex{3}\)

    If \($750\) is invested in an account at an annual interest rate of \(4\%\), compounded continuously, find a formula for the amount of money in the account after \(t\) years. Find the amount of money after \(30\) years.

    Hint

    \(A(t)=Pe^{rt}\)

    Answer

    \(A(t)=750e^{0.04t}\). After \(30\) years, there will be approximately \($2,490.09\).

    Logarithmic Functions

    Using our understanding of exponential functions, we can discuss their inverses, which are the logarithmic functions. These come in handy when we need to consider any phenomenon that varies over a wide range of values, such as the pH scale in chemistry or decibels in sound levels.

    The exponential function \(f(x)=b^x\) is one-to-one, with domain \((−∞,∞)\) and range \((0,∞)\). Therefore, it has an inverse function, called the logarithmic function with base \(b\). For any \(b>0,\, b≠1\), the logarithmic function with base \(b\), denoted \(\log_b\), has domain \((0,∞)\) and range \((−∞,∞)\),and satisfies

    \[\log_b(x)=y \nonumber \]

    if and only if \(b^y=x\).

    For example,

    \[\log_2(8)=3\nonumber \]

    since \(2^3=8\),

    \[\log_{10}\left(\dfrac{1}{100}\right)=−2 \nonumber \]

    since \(10^{−2}=\dfrac{1}{10^2}=\dfrac{1}{100}\),

    \[\log_b(1)=0 \nonumber \]

    since \(b^0=1\) for any base \(b>0\).

    Furthermore, since \(y=\log_b(x)\) and \(y=b^x\) are inverse functions,

    \[\log_b(b^x)=x \nonumber \]

    and

    \[b^{\log_b(x)}=x. \nonumber \]

    The most commonly used logarithmic function is the function \(\log_e\). Since this function uses natural \(e\) as its base, it is called the natural logarithm. Here we use the notation \(\ln (x)\) or \(\ln x\) to mean \(\log_e(x)\). For example,

    \[ \begin{align*} \ln (e) &=\log_e(e)=1 \\[4pt] \ln (e^3) &=\log_e(e^3)=3 \\[4pt] \ln (1) &=\log_e(1)=0. \end{align*}\]

    Since the functions \(f(x)=e^x\) and \(g(x)=\ln (x)\) are inverses of each other,

    \(\ln (e^x)=x\) and \(e^{\ln x}=x\),

    and their graphs are symmetric about the line \(y=x\) (Figure \(\PageIndex{4}\)).

    An image of a graph. The x axis runs from -3 to 3 and the y axis runs from -3 to 4. The graph is of two functions. The first function is “f(x) = e to power of x”, an increasing curved function that starts slightly above the x axis. The y intercept is at the point (0, 1) and there is no x intercept. The second function is “f(x) = ln(x)”, an increasing curved function. The x intercept is at the point (1, 0) and there is no y intercept. A dotted line with label “y = x” is also plotted on the graph, to show that the functions are mirror images over this line.
    Figure \(\PageIndex{4}\): The functions \(y=e^x\) and \(y=\ln (x)\) are inverses of each other, so their graphs are symmetric about the line \(y=x\).

    In general, for any base \(b>0\), \(b≠1\), the function \(g(x)=\log_b(x)\) is symmetric about the line \(y=x\) with the function \(f(x)=b^x\). Using this fact and the graphs of the exponential functions, we graph functions \(\log_b\) for several values of \(b>1\) ( Figure \(\PageIndex{5}\)).

    An image of a graph. The x axis runs from -3 to 3 and the y axis runs from 0 to 4. The graph is of three functions. All three functions a log functions that are increasing curved functions that start slightly to the right of the y axis and have an x intercept at (1, 0). The first function is “y = log base 10 (x)”, the second function is “f(x) = ln(x)”, and the third function is “y = log base 2 (x)”. The third function increases the most rapidly, the second function increases next most rapidly, and the third function increases the slowest.
    Figure \(\PageIndex{5}\): Graphs of \(y=\log_b(x)\) are depicted for \(b=2,\,e,\,10\).

    Before solving some equations involving exponential and logarithmic functions, let’s review the basic properties of logarithms.

    Properties of Logarithms

    If \(M,\,N,\,b>0,\,b≠1\), and \(r\) is any real number, then

    • Product property

    \[\log_b(MN)=\log_b(M)+\log_b(N) \label{productprop} \]

    • Quotient property

    \[\log_b \left(\dfrac{M}{N} \right)=\log_b(M)−\log_b(N) \label{quotientprop} \]

    • Power property

    \[\log_b(M^r)=r\log_b(M) \label{powerprop} \]

    Example \(\PageIndex{4}\): Solving Equations Involving Exponential Functions

    Solve each of the following equations for \(x\).

    1. \(5^x=2\)
    2. \(e^x+6e^{−x}=5\)

    Solution

    a. Applying the natural logarithm function to both sides of the equation, we have

    \(\ln 5^x=\ln 2\).

    Using the power property of logarithms,

    \(x\ln 5=\ln 2.\)

    Therefore,

    \[x= \dfrac{\ln 2}{\ln 5}. \nonumber \]

    b. Multiplying both sides of the equation by \(e^x\),we arrive at the equation

    \(e^{2x}+6=5e^x\).

    Rewriting this equation as

    \(e^{2x}−5e^x+6=0\),

    we can then rewrite it as a quadratic equation in \(e^x\):

    \((e^x)^2−5(e^x)+6=0.\)

    Now we can solve the quadratic equation. Factoring this equation, we obtain

    \((e^x−3)(e^x−2)=0.\)

    Therefore, the solutions satisfy \(e^x=3\) and \(e^x=2\). Taking the natural logarithm of both sides gives us the solutions \(x=\ln 3,\ln 2\).

    Exercise \(\PageIndex{4}\)

    Solve

    \[e^{2x}/(3+e^{2x})=1/2. \nonumber \]

    Hint

    First solve the equation for \(e^{2x}\)

    Answer

    \(x=\dfrac{\ln 3}{2}\).

    Example \(\PageIndex{5}\): Solving Equations Involving Logarithmic Functions

    Solve each of the following equations for \(x\).

    1. \(\ln \left(\dfrac{1}{x}\right)=4\)
    2. \(\log_{10}\sqrt{x}+\log_{10}x=2\)
    3. \(\ln (2x)−3\ln (x^2)=0\)

    Solution

    a. By the definition of the natural logarithm function,

    \(\ln \left(\dfrac{1}{x} \right)=4\)

    • if and only if \(e^4=\dfrac{1}{x}\).

    Therefore, the solution is \(x=1/e^4\).

    b. Using the product (Equation \ref{productprop}) and power (Equation \ref{powerprop}) properties of logarithmic functions, rewrite the left-hand side of the equation as

    \[\begin{align*} \log_{10}\sqrt{x} + \log_{10}x &= \log_{10} x \sqrt{x} \\[4pt] &= \log_{10}x^{3/2} \\[4pt] &= \dfrac{3}{2}\log_{10}x. \end{align*}\]

    Therefore, the equation can be rewritten as

    \(\dfrac{3}{2}\log_{10}x=2\)

    or

    \(\log_{10}x=\dfrac{4}{3}\).

    The solution is \(x=10^{4/3}=10\sqrt[3]{10}\).

    c. Using the power property (Equation \ref{powerprop}) of logarithmic functions, we can rewrite the equation as \(\ln (2x)−\ln (x^6)=0\).

    Using the quotient property (Equation \ref{quotientprop}), this becomes

    \(\ln \left(\dfrac{2}{x^5}\right)=0\)

    Therefore, \(2/x^5=1\), which implies \(x=\sqrt[5]{2}\). We should then check for any extraneous solutions.

    Exercise \(\PageIndex{5}\)

    Solve \(\ln (x^3)−4\ln (x)=1\).

    Hint

    First use the power property, then use the product property of logarithms.

    Answer

    \(x=\dfrac{1}{e}\)

    When evaluating a logarithmic function with a calculator, you may have noticed that the only options are \(\log_{10}\) or \(\log\), called the common logarithm, or \(\ln\), which is the natural logarithm. However, exponential functions and logarithm functions can be expressed in terms of any desired base \(b\). If you need to use a calculator to evaluate an expression with a different base, you can apply the change-of-base formulas first. Using this change of base, we typically write a given exponential or logarithmic function in terms of the natural exponential and natural logarithmic functions.

    Rule: Change-of-Base Formulas

    Let \(a>0,\,b>0\), and \(a≠1,\,b≠1\).

    1. \(a^x=b^{x \log_ba}\) for any real number \(x\).

    If \(b=e\), this equation reduces to \(a^x=e^{x \log_ea}=e^{x \ln a}\).

    2. \(\log_ax=\dfrac{\log_bx}{\log_ba}\) for any real number \(x>0\).

    If \(b=e\), this equation reduces to \(\log_ax=\dfrac{\ln x}{\ln a}\).

    Proof

    For the first change-of-base formula, we begin by making use of the power property of logarithmic functions. We know that for any base \(b>0,\, b≠1\), \(\log_b(a^x)=x \log_ba\). Therefore,

    \(b^{\log_b(a^x)}\)=\(b^{x \log_ba}\).

    In addition, we know that \(b^x\) and \(\log_b(x)\) are inverse functions. Therefore,

    \(b^{\log_b(a^x)}=a^x\).

    Combining these last two equalities, we conclude that \(a^x=b^{x \log_ba}\).

    To prove the second property, we show that

    \((\log_ba)⋅(\log_ax)=\log_bx.\)

    Let \(u=\log_ba,v=\log_ax\), and \(w=\log_bx\). We will show that \(u⋅v=w\). By the definition of logarithmic functions, we know that \(b^u=a,\, a^v=x\), and \(b^w=x\). From the previous equations, we see that

    \(b^{uv}=(b^u)^v=a^v=x=b^w.\)

    Therefore, \(b^{uv}=b^w\). Since exponential functions are one-to-one, we can conclude that \(u⋅v=w\).

    \(\square\)

    Example \(\PageIndex{6}\): Changing Bases

    Use a calculating utility to evaluate \(\log_37\) with the change-of-base formula presented earlier.

    Solution

    Use the second equation with \(a=3\) and \(b=e\): \(\log_37=\dfrac{\ln 7}{\ln 3}≈1.77124\).

    Exercise \(\PageIndex{6}\)

    Use the change-of-base formula and a calculating utility to evaluate \(\log_46\).

    Hint

    Use the change of base to rewrite this expression in terms of expressions involving the natural logarithm function.

    Answer

    \(\log_46 = \dfrac{\ln 6}{\ln 4} \approx 1.29248\)

    Example \(\PageIndex{7}\): The Richter Scale for Earthquakes

    In 1935, Charles Richter developed a scale (now known as the Richter scale) to measure the magnitude of an earthquake. The scale is a base-10 logarithmic scale, and it can be described as follows: Consider one earthquake with magnitude \(R_1\) on the Richter scale and a second earthquake with magnitude \(R_2\) on the Richter scale. Suppose \(R_1>R_2\), which means the earthquake of magnitude \(R_1\) is stronger, but how much stronger is it than the other earthquake?

    A photograph of an earthquake fault.
    Figure \(\PageIndex{6}\): (credit: modification of work by Robb Hannawacker, NPS)

    A way of measuring the intensity of an earthquake is by using a seismograph to measure the amplitude of the earthquake waves. If \(A_1\) is the amplitude measured for the first earthquake and \(A_2\) is the amplitude measured for the second earthquake, then the amplitudes and magnitudes of the two earthquakes satisfy the following equation:

    \(R_1−R_2=\log_{10}\left(\dfrac{A1}{A2}\right)\).

    Consider an earthquake that measures 8 on the Richter scale and an earthquake that measures 7 on the Richter scale. Then,

    \(8−7=\log_{10}\left(\dfrac{A1}{A2}\right)\).

    Therefore,

    \(\log_{10}\left(\dfrac{A1}{A2}\right)=1\),

    which implies \(A_1/A_2=10\) or \(A_1=10A_2\). Since \(A_1\) is 10 times the size of \(A_2\), we say that the first earthquake is 10 times as intense as the second earthquake. On the other hand, if one earthquake measures 8 on the Richter scale and another measures 6, then the relative intensity of the two earthquakes satisfies the equation

    \(\log_{10}\left(\dfrac{A1}{A2}\right)=8−6=2\).

    Therefore, \(A_1=100A_2\).That is, the first earthquake is 100 times more intense than the second earthquake.

    How can we use logarithmic functions to compare the relative severity of the magnitude 9 earthquake in Japan in 2011 with the magnitude 7.3 earthquake in Haiti in 2010?

    Solution

    To compare the Japan and Haiti earthquakes, we can use an equation presented earlier:

    \(9−7.3=\log_{10}\left(\dfrac{A1}{A2}\right)\).

    Therefore, \(A_1/A_2=10^{1.7}\), and we conclude that the earthquake in Japan was approximately 50 times more intense than the earthquake in Haiti.

    Exercise \(\PageIndex{7}\)

    Compare the relative severity of a magnitude \(8.4\) earthquake with a magnitude \(7.4\) earthquake.

    Hint

    \(R_1−R_2=\log_{10}(A1/A2)\).

    Answer

    The magnitude \(8.4\) earthquake is roughly \(10\) times as severe as the magnitude \(7.4\) earthquake.


    This page titled 1.5: Exponential and Logarithmic Functions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Gilbert Strang & Edwin “Jed” Herman (OpenStax) via source content that was edited to the style and standards of the LibreTexts platform.