We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Учебные пособия > Boundless Algebra

Introduction to Exponents and Logarithms

Introduction to Exponential and Logarithmic Functions

Logarithmic functions and exponential functions are inverses of each other. That is, they undo each other.

Learning Objectives

Explain the relationship between logarithmic functions and exponential functions

Key Takeaways

Key Points

  • An exponent of [latex]-1[/latex] denotes the inverse function. That is, [latex]f^{-1}(x) [/latex] is the inverse of the function [latex]f(x)[/latex].
  • An inverse function is a function that undoes another function: If an input [latex]x[/latex] into the function [latex]f[/latex] produces an output [latex]y[/latex], then inputting [latex]y[/latex] into the inverse function [latex]g[/latex] produces the output [latex]x[/latex], and vice versa (i.e., [latex]f(x)=y[/latex], and [latex]g(y)=x[/latex]).
  • The logarithm to base [latex]b[/latex] is the inverse function of [latex]f(x) = b^x[/latex]: [latex]\log _{ b }{ { (b) }^{ x } } = x\log _{ b }{ (b) } =x[/latex]
  • The natural logarithm [latex]ln(x)[/latex] is the inverse of the exponential function [latex]e^x[/latex]:[latex]b={ e }^{ lnb }[/latex]

Key Terms

  • inverse function: A function that does exactly the opposite of another.
The inverse of an exponential function is a logarithmic function and vice versa. That is, the two functions undo each other. Thus [latex]log_{b}b^{x}=x [/latex] and [latex]b^{log_{b}x}=x [/latex]. Composing the functions in either order leaves the initial input unchanged. Another way of saying this is that if [latex]f(x)=log_{b}x [/latex], then the inverse function is given by [latex]f^{-1}(x)=b^{x} [/latex], and vice versa. Lastly, as with all inverse functions, if we graph [latex]f(x)=log_{b}x [/latex]  and [latex]f^{-1}(x)=b^{x}[/latex] on the same plane, the graphs will be symmetric across the line [latex]y=x[/latex]. That is, if we fold the plane over the line [latex]y=x[/latex], the two curves will lie on each other. Another way of thinking about this is that if we generate points on the curve of [latex]f(x)=log_{b}x[/latex] we can find the points on the curve of  [latex]f^{-1}(x)=b^{x}[/latex] by interchanging the [latex]x[/latex] and [latex]y[/latex] coordinates of the points. In the following graph you can see an exponential function in red and its inverse, a logarithmic function, in blue. The graphs are symmetric over the line [latex]y=x[/latex], which is pictured in black. Further, a point [latex](t,u=b^t)[/latex] on the graph of [latex]f(x)[/latex] yields a point [latex](u,t=log{_b}u)[/latex] on the graph of the logarithm and vice versa.
The exponential function b^x in red increases from the x axis to infinity in quadrants 2 to 1. The logarithmic function in blue increases from the y axis to infinity in quadrants 4 to 1. The functions are inverses of each other, so they are symmetric over the line y=x. Logarithm function: The graph of the logarithm function [latex]log_b(x)[/latex] (blue) is obtained by reflecting the graph of the function [latex]b(x)[/latex] (red) at the diagonal line ([latex]x=y[/latex]).
Thus far we have been looking at logs of the base [latex]b[/latex]. Let us consider instead the natural log (a logarithm of the base [latex]e[/latex]).  The natural logarithm is the inverse of the exponential function [latex]f(x)=e^x[/latex]. It is defined for [latex]e>0[/latex], and satisfies [latex]f^{-1}(x)=lnx [/latex]. As they are inverses composing these two functions in either order yields the original input. That is, [latex]e^{lnx}=lne^x=x[/latex].

Logarithmic Functions

The logarithm of a number is the exponent by which another fixed value, the base, has to be raised to produce that number.

Learning Objectives

Practice working with logarithmic functions and identify their parts

Key Takeaways

Key Points

  • The inverse of the logarithmic operation is exponentiation.
  • The logarithm is commonly used in many fields: that with base [latex]2[/latex] in computer science, that with base [latex]e[/latex] in pure mathematics and financial mathematics, and that with base [latex]10[/latex] in natural science and engineering.

Key Terms

  • exponentiation: The process of calculating a power by multiplying together a number of equal factors, where the exponent specifies the number of factors to multiply.
  • exponent: The power to which a number, symbol, or expression is to be raised. For example, the [latex]3[/latex] in [latex]x^3[/latex].
  • logarithm: The logarithm of a number is the exponent by which another fixed value, the base, has to be raised to produce that number.
In its simplest form, a logarithm is an exponent. Taking the logarithm of a number, one finds the exponent to which a certain value, known as a base, is raised to produce that number once more. Logarithms have the following structure: [latex]log{_b}(x)=c[/latex] where [latex]b[/latex] is known as the base, [latex]c[/latex] is the exponent to which the base is raised to afford [latex]x[/latex]. The base [latex]b>0[/latex]. Note that [latex]​​log{_b}x=c[/latex] is not defined for [latex]c<0[/latex]. This is because the base [latex]b[/latex] is positive and raising a positive number to any power will yield a non-negative number.

Commonly Used Bases

A logarithm with a base of [latex]10[/latex] is called a common logarithm and is denoted simply as [latex]logx[/latex]. The common log is used often in science and engineering. A logarithm with a base of [latex]e[/latex] is called a natural logarithm and is denoted [latex]lnx[/latex]. The irrational number  [latex]e\approx 2.718 [/latex] arises naturally in financial mathematics, in computations having to do with compound interest and annuities. A logarithm with a base of [latex]2[/latex] is called a binary logarithm. While it has no special notation, it is often used in computer science.

The Exponential and Logarithmic Forms of an Equation

Logarithmic equations can be written as exponential equations and vice versa. The logarithmic equation [latex]log_b(x)=c[/latex] corresponds to the exponential equation [latex]b^{c}=x[/latex]. As an example, the logarithmic equation [latex]log{_2}16=4[/latex] corresponds to the exponential equation [latex]2^4=16[/latex]. Example 1: Solve for [latex]x[/latex] in the equation [latex]log{_3}(243)=x[/latex]. Here we are looking for the exponent to which [latex]3[/latex] is raised to yield [latex]243[/latex]. It might be more familiar if we convert the equation to exponential form giving us: [latex]3^x=243 \\ 3^5 =243[/latex] Thus, [latex]log{_3}(243)=5[/latex]. The explanation of the previous example reveals the inverse of the logarithmic operation: exponentiation. Starting with [latex]243[/latex], if we take its logarithm with base [latex]3[/latex], then raise [latex]3[/latex] to the logarithm, we will once again arrive at [latex]243[/latex].

Trivial Logarithmic Identities

[latex]log_{b}1=0 [/latex] as  [latex]b^0=1[/latex] for [latex]b\neq 0 [/latex]. Note that [latex]0^0\neq 1 [/latex]. Rather, [latex]0^0[/latex] is called an indeterminate form. [latex-display]log{_b}b=1[/latex] as [latex]b^1=b[/latex-display] [latex-display]log{_b}0=undefined[/latex], as there is no number x such that [latex]b^x=0[/latex-display] The following two logarithmic identities can be verified by converting the logarithmic equation into an exponential equation as follows: [latex]b^{log_{b}(x)}=x [/latex] Converting this to a logarithmic equation yields: [latex]log_{b}(x)=log_{b}(x)[/latex] Converting [latex]log_{b}(b^x)=x[/latex] to an exponential equation yields [latex]b^x=b^x[/latex]

Applications of Logarithms

Historically, logarithms were invented by John Napier as a way of doing lengthy arithmetic calculations prior to the invention of the modern day calculator. More recently, logarithms are most commonly used to simplify complex calculations that involve high-level exponents. In chemistry, for example, pH and pKa are used to simplify concentrations and dissociation constants, respectively, of high exponential value. The purpose is to bring wide-ranging values into a more manageable scope. A dissociation constant may be smaller than [latex]10^{10}[/latex], or higher than [latex]10^{-50}[/latex]. Taking the logarithm of each brings the values into a more comprehensible scope ([latex]10[/latex] to [latex]-50[/latex]).

Common Bases of Logarithms

Any positive number can be used as the base of a logarithm but certain bases ([latex]10[/latex], [latex]e[/latex], and [latex]2[/latex]) have more widespread applications than others.

Learning Objectives

Distinguish between the uses of different types of special logarithms

Key Takeaways

Key Points

  • Logarithms with base equal to [latex]10[/latex] are called common logarithms. They are most applicable in physical and natural sciences and engineering.
  • Logarithms with base equal to e are called natural logarithms. They are most applicable in pure mathematics and financial mathematics.
  • Logarithms with base equal to [latex]2[/latex] are called binary logarithms. They are most applicable in computer science.

Key Terms

  • logarithm: The logarithm of a number is the exponent by which another fixed value, the base, has to be raised to produce that number.
  • e: The base of the natural logarithm, 2.718281828459045…
  • natural logarithm: The logarithm in base e

Logarithms: History and Common Bases

Logarithms were originally invented by John Napier (1515-1617) to aid in arithmetical computations at a time when modern day calculators were not in use. In the present day, logarithms have many uses in disciplines as different as economics, computer science, engineering and natural sciences. Logarithmic scales reduce wide-ranging quantities to tiny scopes. For example, the decibel is a unit quantifying signal power log-ratios and amplitude log-ratios (of which sound pressure is a common example). In chemistry, pH is a logarithmic measure for the acidity of an aqueous solution. Logarithms are commonplace in scientific formulae, and in measurements of the complexity of algorithms and of geometric objects called fractals. They describe musical intervals, appear in formulas counting prime numbers, inform some models in psychophysics, and can aid in forensic accounting. While any positive number can be used as the base of a logarithm, not all logarithms are equally useful in practice. Some bases have more applications than others. Out of the infinite number of possible bases, three stand out as particularly useful. These are [latex]10[/latex], [latex]e[/latex] and [latex]2[/latex].

The Common Logarithm

A logarithm with a base of [latex]10[/latex] is called a common logarithm and is denoted simply as [latex]logx[/latex]. Common logarithms are often used in physical and natural sciences and engineering.

The Natural Logarithm

A logarithm with a base of [latex]e[/latex] is called a natural logarithm and is denoted [latex]lnx[/latex]. The irrational number  [latex]e\approx 2.718 [/latex] and arises naturally in financial mathematics in computations having to do with compound interest. Natural logarithms are also used in physical sciences and pure math.

The Binary Logarithm

A logarithm with a base of [latex]2[/latex] is called a binary logarithm and is denoted [latex]ldn[/latex]. Binary logarithms are useful in any application that involves the doubling of a quantity, and particularly in computer science with the use of integral parts.

Uses of Logarithms

The list below highlights only some of the many uses of logarithms in the present day. 1. The magnitude of an earthquake (M) can be determined based on the logarithm of an intensity measurement from a seismograph (I): [latex]M=log(\frac{I}{I_0})[/latex] where I0 is a constant. 2. The common logarithm is used in calculating the safety index which helps determine how safe certain activities are by determining how likely people are to die from them. For example, [latex]1[/latex] in [latex]2,000,000[/latex] people is killed by lightning. It might be hard to get a real sense of how likely one is to die by getting hit by lightning because [latex]2,000,000[/latex] is such a large number and our minds cannot make sense of it easily.  If one in [latex]x[/latex] people die as a result of doing some given activity each year, the safety index for that activity is simply the logarithm of [latex]x[/latex]. The higher the safety index, the safer the activity in question. The safety index, because it is a logarithm, is a much smaller number. Logarithms help to shrink the numbers of very high magnitude to a smaller ones, which our brains can deal with easily. 3. pH is an abbreviation for power of hydrogen. The pH scale measures how acidic or basic a substance is. It ranges from [latex]0[/latex] to [latex]14[/latex]. A pH of [latex]7[/latex] is neutral (water). A pH less than [latex]7[/latex] is acidic, and a pH greater than [latex]7[/latex] is basic. The acidity depends on the hydrogen ion concentration in the liquid (in moles per liter) written as [H+]. The greater the hydrogen ion concentration, the more acidic the solution. It is defined as [latex]pH = -log10[H+][/latex]. Pure water contains a hydrogen ion concentration of [latex]1 \cdot 10^{-7}[/latex]moles. It has a pH level of [latex]7[/latex].  Clearly, [latex]7[/latex] is an easier number for our brain to handle. This is an example of how logarithms helps us to deal with numbers of very small magnitudes. 4. The entropy [latex](S)[/latex] of a system can be calculated from the natural logarithm of the number of possible microstates [latex](W)[/latex] the system can adopt: [latex]S=k \cdot ln(W)[/latex] where [latex]k[/latex] is a constant. 5. Logarithms occur in definitions of the dimension of fractals. Fractals are geometric objects that are self-similar: small parts reproduce, at least roughly, the entire global structure. The Sierpinski triangle can be covered by three copies of itself, each having sides half the original length. This makes the Hausdorff dimension of this structure [latex]ln(3)/ln(2) ≈ 1.58[/latex]. Another logarithm-based notion of dimension is obtained by counting the number of boxes needed to cover the fractal in question.
image Sierpinski triangle: The Sierpinski triangle can be covered by three copies of itself, over, and over, and over
6. Logarithms are related to musical tones and intervals. In equal temperament, the frequency ratio depends only on the interval between two tones, not on the specific frequency, or pitch, of the individual tones. For example, the note A has a frequency of [latex]440[/latex] Hz and B-flat has a frequency of [latex]466[/latex] Hz. The interval between A and B-flat is a semitone, as is the one between B-flat and B (frequency [latex]493[/latex] Hz). Therefore, logarithms can be used to describe the intervals: an interval is measured in semitones by taking the base-[latex]\frac {21}{12}[/latex] logarithm of the frequency ratio. 7. Natural logarithms are closely linked to counting prime numbers ([latex]2, 3, 5, 7[/latex]...), an important topic in number theory. The prime number theorem states that for large enough N, the probability that a random integer not greater than N is prime is very close to [latex]\frac {1} {log(N)}[/latex].

Converting between Exponential and Logarithmic Equations

Logarithmic and exponential forms are closely related, and an equation in either form can be freely converted into the other.

Learning Objectives

Convert between exponential and logarithmic equations

Key Takeaways

Key Points

  • The logarithmic and exponential operations are inverses.
  • If given an exponential equation, one can take the natural logarithm to isolate the variables of interest, and vice versa.
  • Converting from logarithmic to exponential form can make for easier equation solving.

Key Terms

  • logarithm: The logarithm of a number is the exponent by which another fixed value, the base, has to be raised to produce that number.
  • dependent variable: The variable in an equation or function whose value depends on one or more variables in the equation or function.
  • independent variable: Any variable in an equation or function whose value is not dependent on any other in the equation or function.

The Exponential and Logarithmic Forms of an Equation

Logarithmic equations can be written as exponential equations and vice versa. The logarithmic equation [latex]\log_b(x)=c[/latex] corresponds to the exponential equation [latex]b^{c}=x[/latex]. As an example, the logarithmic equation [latex]\log{_2}16=4[/latex] can be converted to the exponential equation [latex]2^4=16[/latex]. The logarithmic equation [latex]\log_4(64)=3[/latex] can be converted into the exponential equation [latex]4^3=64[/latex].

Solving Logarithmic Equations

Conversion from logarithmic to exponential form can help one solve otherwise difficult equations.

Example 1

Solve for [latex]x[/latex] in the equation [latex]\log{_3}243=x[/latex] Here we are looking for the exponent to which [latex]3[/latex] is raised to yield [latex]243[/latex]. It might be more familiar if we convert the equation to exponential form giving us: [latex]3^x=243 \\3^5=243[/latex] The exponent we seek is [latex]5[/latex]. Thus, [latex]\log{_3}243=5[/latex]. The explanation of the previous example reveals the inverse of the logarithmic operation: exponentiation. Starting with [latex]243[/latex], if we take its logarithm with base [latex]3[/latex], then raise [latex]3[/latex] to the logarithm, we will once again arrive at [latex]243[/latex].

Example 2

Solve for [latex]x[/latex] in the equation [latex]\log_6(x-2)=3[/latex] If we write the logarithmic equation as an exponential equation we obtain: [latex-display]6^{\log_6(x-2)}=6^3[/latex-display] As the exponent and log on the left side of the equation undo each other we are left with: [latex]\begin{align} x-2&=6^3 \\x-2&=216 \\x&=218 \end{align}[/latex]

Solving Exponential Equations

An exponential equation is an equation where the variable we are solving for appears in the exponent. If the equation consists of two terms set equal to each other and these terms have the same base, then the exponents are equal. We can use this fact to solve such exponential equations as follows:

Example 3

Solve for [latex]x[/latex] in the equation [latex]5^{5x+8}=5^{x^{2}+3x}[/latex] Here since the bases are both [latex]5[/latex], the exponents are equal. We use this fact to solve the equation as follows: [latex-display]\begin{align} 5x+8&=x^2+3x \\ 0&=x^2+3x-5x-8 \\ 0&=x^2-2x-8 \\ 0&=(x-4)(x+2) \end{align}[/latex-display] [latex-display]x=4 \text{ or } x=-2[/latex-display]

Example 4

Solve for x in the equation [latex]3^{x+1}=81^x[/latex] Here the bases are not equal, but it is possible to write 81 using a base of 3 as follows: [latex-display]\begin{align} 3^{x+1}&=(3^4)^x \\ 3^{x+1}&=3^{4x} \end{align}[/latex-display] At this point, the left and right sides of the equation have the same base so we can solve for [latex]x[/latex] by setting the two exponents equal to each other: [latex]\begin{align} x+1&=4x \\ 1&=4x-x \\ 1&=3x \\ x&=\frac{1}{3} \end{align} [/latex]

Solving Exponential Equations Using Logarithms

In many cases, an exponential equation cannot be solved by using the methods of example [latex]3[/latex] and [latex]4[/latex] above because the bases cannot easily be made equal. In these cases taking the logarithm of both sides of the equation allows us to solve the equation. While you can take the log to any base, it is common to use the common log with a base of [latex]10[/latex] or the natural log with the base of [latex]e[/latex]. This is because scientific and graphing calculators are equipped with a button for the common log that reads [latex]log[/latex], and a button for the natural log that reads [latex]ln[/latex] which allows us to obtain a good approximation for the common or natural log of a number.

Example 5

Solve for [latex]x[/latex] in the equation [latex]2^x=17[/latex] Here we cannot easily write [latex]17[/latex] with a base of [latex]2[/latex] so instead we take the log of both sides as follows. [latex-display]\log{2^x}=\log17[/latex-display] Next we use the properties of logarithms to move the variable out of the exponent. [latex-display]x\log2=\log17[/latex-display] Lastly we divide by [latex]\log2[/latex] to solve for [latex]x[/latex]. [latex]x=\frac{\log17}{\log2} [/latex] It is important to note that this is an exact answer. We can arrive at an approximation by using the [latex]\log[/latex] button on your calculator. [latex]x=\frac{\log17}{\log2}\approx4.0877 [/latex]

Example 6

Solve for [latex]x[/latex] in the equation [latex]2^x=17[/latex] using the natural log Here we will use the natural logarithm instead to illustrate the fact that any base will do. [latex]\begin{align} \ln{2^x}&=\ln17 \\ x\ln2&=\ln17 \\x&=\frac{\ln17}{\ln2}\approx4.0877 \end{align} [/latex]

Example 7

Solve for [latex]x[/latex] in the equation [latex]3=4^{5x+18} [/latex] Again, we use logarithms to move the variable out of the exponent allowing us to solve for x as follows: [latex-display]\begin{align} \log3&=\log4^{5x+18} \\ \log3&=(5x+8)\log4 \\ \frac{\log3}{\log4}&=5x+8 \\ \frac{\log3}{\log4}-8&=5x \\ \frac{\log3}{5\log4}-\frac{8}{5}&=x \\ \frac{\log3-8\log4}{5\log4}&=x \end{align}[/latex-display] Now we can use the properties of logarithms to re-write the left hand side and solve for [latex]x[/latex]: [latex-display]\dfrac{\log\frac{3}{4^8}}{\log4^5}=\dfrac{\log\frac{3}{65536}}{\log1024}\approx-1.4415[/latex-display]

Licenses & Attributions

CC licensed content, Shared previously

CC licensed content, Specific attribution