Logarithmic Functions
By the end of this section, you will be able to:
- Convert from logarithmic to exponential form
- Convert from exponential to logarithmic form
- Evaluate logarithms
- Use common logarithms
- Use natural logarithms
In 2010, a major earthquake struck Haiti, destroying or damaging over 285,000 homes. One year later, another, stronger earthquake devastated Honshu, Japan, destroying or damaging over 332,000 buildings. Even though both caused substantial damage, the earthquake in 2011 was 100 times stronger than the earthquake in Haiti. How do we know? The magnitudes of earthquakes are measured on a scale known as the Richter Scale. The Haitian earthquake registered a 7.0 on the Richter Scale, whereas the Japanese earthquake registered a 9.0.
The Richter Scale is a base-ten logarithmic scale. In other words, an earthquake of magnitude 8 is not twice as great as an earthquake of magnitude 4. It is times as great! In this lesson, we will investigate the nature of the Richter Scale and the base-ten function upon which it depends.
Converting from Logarithmic to Exponential Form
In order to analyze the magnitude of earthquakes or compare the magnitudes of two different earthquakes, we need to be able to convert between logarithmic and exponential form. For example, suppose the amount of energy released from one earthquake were 500 times greater than the amount of energy released from another. We want to calculate the difference in magnitude. The equation that represents this problem is , where represents the difference in magnitudes on the Richter Scale. How would we solve for ?
We have not yet learned a method for solving exponential equations. None of the algebraic tools discussed so far is sufficient to solve . We know that and , so it is clear that must be some value between 2 and 3, since is increasing. We can examine a graph to better estimate the solution.
Estimating from a graph, however, is imprecise. To find an algebraic solution, we must introduce a new function. Observe that the graph passes the horizontal line test. The exponential function is one-to-one, so its inverse, , is also a function. As is the case with all inverse functions, we simply interchange and and solve for to find the inverse function. To represent as a function of , we use a logarithmic function of the form . The base logarithm of a number is the exponent by which we must raise to get that number.
We read a logarithmic expression as, “The logarithm with base of is equal to ,” or, simplified, “log base of is .” We can also say, “ raised to the power of is ,” because logs are exponents. For example, the base 2 logarithm of 32 is 5, because 5 is the exponent we must apply to 2 to get 32. Since , we can write . We read this as “log base 2 of 32 is 5.”
We can express the relationship between logarithmic form and its corresponding exponential form as follows:
Note that the base is always positive. To help with converting back and forth, take a close look at the equations: in both forms, is the exponent and is the base — a quick way to remember the relationship is to think “ to the equals .”
Because logarithm is a function, it is most correctly written as , using parentheses to denote function evaluation, just as we would with . However, when the input is a single variable or number, it is common to see the parentheses dropped and the expression written without parentheses, as . Note that many calculators require parentheses around the . For example, means .
Notice that, comparing the logarithm function and the exponential function, the input and the output are switched. This means and are inverse functions.
Definition of the Logarithmic Function. A logarithm base of a positive number satisfies the following definition.
For , , ,
where,
- we read as, “the logarithm with base of ” or the “log base of .”
- the logarithm is the exponent to which must be raised to get .
Also, since the logarithmic and exponential functions switch the and values, the domain and range of the exponential function are interchanged for the logarithmic function. Therefore,
- the domain of the logarithm function with base is .
- the range of the logarithm function with base is .
Q&A. Can we take the logarithm of a negative number?
No. Because the base of an exponential function is always positive, no power of that base can ever be negative. We can never take the logarithm of a negative number. Also, we cannot take the logarithm of zero. Calculators may output a log of a negative number when in complex mode, but the log of a negative number is not a real number.
How to: given an equation in logarithmic form , convert it to exponential form.
- Examine the equation and identify , , and .
- Rewrite as .
Example. Write the following logarithmic equations in exponential form.
(a)
(b)
Solution. First, identify the values of , , and . Then, write the equation in the form .
(a) Here, , , and . Therefore, the equation is equivalent to .
(b) Here, , , and . Therefore, the equation is equivalent to .
Writein exponential form.
Identify,, and, then rewrite as.Writein exponential form.
Identify,, and, then rewrite as.Converting from Exponential to Logarithmic Form
To convert from exponents to logarithms, we follow the same steps in reverse. We identify the base , exponent , and output . Then we write .
Example. Write the following exponential equations in logarithmic form.
(a)
(b)
(c)
Solution. First, identify the values of , , and . Then, write the equation in the form .
(a) Here, , , and . Therefore, the equation is equivalent to .
(b) Here, , , and . Therefore, the equation is equivalent to .
(c) Here, , , and . Therefore, the equation is equivalent to .
Which equation iswritten in logarithmic form?
The base of the power becomes the base of the logarithm, and the exponent becomes the value the logarithm equals.Which equation iswritten in logarithmic form?
The base of the power becomes the base of the logarithm, and the exponent becomes the value the logarithm equals.Which equation iswritten in logarithmic form?
The base of the power becomes the base of the logarithm, and the exponent becomes the value the logarithm equals.Evaluating Logarithms
Knowing the squares, cubes, and roots of numbers allows us to evaluate many logarithms mentally. For example, consider . We ask, “To what exponent must be raised in order to get 8?” Because we already know , it follows that .
Now consider solving and mentally.
- We ask, “To what exponent must 7 be raised in order to get 49?” We know . Therefore, .
- We ask, “To what exponent must 3 be raised in order to get 27?” We know . Therefore, .
Even some seemingly more complicated logarithms can be evaluated without a calculator. For example, let’s evaluate mentally.
- We ask, “To what exponent must be raised in order to get ?” We know and , so . Therefore, .
How to: given a logarithm of the form , evaluate it mentally.
- Rewrite the argument as a power of : .
- Use previous knowledge of powers of to identify by asking, “To what exponent should be raised in order to get ?”
Example. Solve without using a calculator.
Solution. First we rewrite the logarithm in exponential form: . Next, we ask, “To what exponent must 4 be raised in order to get 64?”
We know
Therefore,
Solvewithout using a calculator.
Rewrite as, and recall that.Example. Evaluate without using a calculator.
Solution. First we rewrite the logarithm in exponential form: . Next, we ask, “To what exponent must 3 be raised in order to get ?”
We know , but what must we do to get the reciprocal, ? Recall from working with exponents that . We use this information to write
Therefore, .
Evaluatewithout using a calculator.
Rewrite as, and recall that.Using Common Logarithms
Sometimes you may see a logarithm written without a base. When you see one written this way, you need to look at the expression before evaluating it. It may be that the base you use doesn’t matter. If you find it in computer science, it often means . However, in mathematics it almost always means the common logarithm of 10. In other words, the expression often means .
Definition of the Common Logarithm. A common logarithm is a logarithm with base . We can also write simply as . The common logarithm of a positive number satisfies the following definition.
For ,
We read as, “the logarithm with base of ” or “log base 10 of .”
The logarithm is the exponent to which must be raised to get .
Currently, we use or as the common logarithm, as the binary logarithm, and as the natural logarithm. Writing without specifying a base is now considered bad form, despite being frequently found in older materials.
How to: given a common logarithm of the form , evaluate it mentally.
- Rewrite the argument as a power of : .
- Use previous knowledge of powers of to identify by asking, “To what exponent must be raised in order to get ?”
Example. Evaluate without using a calculator.
Solution. First we rewrite the logarithm in exponential form: . Next, we ask, “To what exponent must be raised in order to get 1000?” We know
Therefore, .
Evaluate.
Ask what power ofgives.How to: given a common logarithm with the form , evaluate it using a calculator.
- Press [LOG].
- Enter the value given for , followed by [)].
- Press [ENTER].
Example. Evaluate to four decimal places using a calculator.
Solution.
- Press [LOG].
- Enter 321, followed by [)].
- Press [ENTER].
Rounding to four decimal places, .
Analysis. Note that and that . Since 321 is between 100 and 1000, we know that must be between and . This gives us the following:
Evaluateto four decimal places using a calculator.
Enter 123 and press the log key, then round the display to four decimal places.Example. The amount of energy released from one earthquake was 500 times greater than the amount of energy released from another. The equation represents this situation, where is the difference in magnitudes on the Richter Scale. To the nearest thousandth, what was the difference in magnitudes?
Solution. We begin by rewriting the exponential equation in logarithmic form.
Next we evaluate the logarithm using a calculator: to the nearest thousandth, .
The difference in magnitudes was about .
The amount of energy released from one earthquake was 8,500 times greater than the amount of energy released from another. The equationrepresents this situation, whereis the difference in magnitudes on the Richter Scale. To the nearest thousandth, what was the difference in magnitudes?
Rewrite the equation in logarithmic form,, then evaluate with a calculator.Using Natural Logarithms
The most frequently used base for logarithms is , the value of which is approximately . Base logarithms are important in calculus and some scientific applications; they are called natural logarithms. The base logarithm, , has its own notation, .
Most values of can be found only using a calculator. The major exception is that, because the logarithm of 1 is always 0 in any base, . For other natural logarithms, we can use the key that can be found on most scientific calculators. We can also find the natural logarithm of any power of using the inverse property of logarithms.
Definition of the Natural Logarithm. A natural logarithm is a logarithm with base . We write simply as . The natural logarithm of a positive number satisfies the following definition.
For ,
We read as, “the logarithm with base of ” or “the natural logarithm of .”
The logarithm is the exponent to which must be raised to get .
Since the functions and are inverse functions, for all and for .
How to: given a natural logarithm with the form , evaluate it using a calculator.
- Press [LN].
- Enter the value given for , followed by [)].
- Press [ENTER].
Example. Evaluate to four decimal places using a calculator.
Solution.
- Press [LN].
- Enter 500, followed by [)].
- Press [ENTER].
Rounding to four decimal places, .
Evaluate.
The domain of every logarithm, including the natural logarithm, is the positive real numbers.Key equations
| Definition of the logarithmic function | For , if and only if . |
|---|---|
| Definition of the common logarithm | For , if and only if . |
| Definition of the natural logarithm | For , if and only if . |
Key concepts
- The inverse of an exponential function is a logarithmic function, and the inverse of a logarithmic function is an exponential function.
- Logarithmic equations can be written in an equivalent exponential form, using the definition of a logarithm.
- Exponential equations can be written in their equivalent logarithmic form using the definition of a logarithm.
- Logarithmic functions with base can be evaluated mentally using previous knowledge of powers of .
- Common logarithms can be evaluated mentally using previous knowledge of powers of .
- When common logarithms cannot be evaluated mentally, a calculator can be used.
- Real-world exponential problems with base can be rewritten as a common logarithm and then evaluated using a calculator.
- Natural logarithms can be evaluated using a calculator.
Practice
Convert from logarithmic to exponential form
Rewritein exponential form.
The base of the logarithm becomes the base of the power, and the value the logarithm equals becomes the exponent.Rewritein exponential form.
A natural logarithm has base; the value the logarithm equals becomes the exponent on.Convert from exponential to logarithmic form
Rewritein logarithmic form.
The base of the power becomes the base of the logarithm; the exponent becomes the value the logarithm equals.Rewritein logarithmic form.
A power ofconverts to a natural logarithm,.Evaluate logarithms
Evaluatewithout using a calculator.
Ask what power ofgives; recall that.Evaluatewithout using a calculator.
First findby asking what power ofgives, then multiply the result by.Use common logarithms
Evaluatewithout using a calculator.
Rewriteas a power of.Evaluateusing a calculator. Round to the nearest thousandth.
Enterand press the log key, then round the display to three decimal places.Use natural logarithms
Evaluatewithout using a calculator.
The logarithm ofis always, in any base.Evaluatewithout using a calculator.
Useto evaluate the logarithm first, then multiply by.This section is adapted from Precalculus 2e, Section 4.3: Logarithmic Functions by Jay Abramson and OpenStax, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: omitted the decorative photograph of earthquake damage in Honshu, Japan, which carries no mathematics, and reworded the sentence that pointed at it; omitted three purely typographic arrow/mnemonic illustrations (a figure showing the positions of the exponent and base in and ; a circular-arrow “Think to the ” mnemonic; and a circular-arrow illustration of meaning ), folding each one’s content directly into the surrounding prose instead; recreated the graph of and as an accessible inline SVG built from the exact curve equation; corrected the sentence introducing common-logarithm notation, which the pinned CNXML gets wrong twice: it prints “ as the common logarithm” — a base- logarithm is not the common (base-10) logarithm the surrounding paragraph defines — and then deprecates the wrong notation, “Writing without specifying a base is now considered bad form”, when is fixed at base 10 by ISO 80000-2 and it is bare that is ambiguous, exactly as the paragraph above this one explains; this page writes “ or as the common logarithm” and “Writing without specifying a base”; converted the “write the following exponential equations in logarithmic form” Try It’s three numeric parts (, , ) from fill-ins into multiple-choice questions, because the pinned compute-engine build grades any two true, fully numeric equations as equal to each other regardless of content (for example grades correct against ), which would let a learner pass by retyping the printed exponential equation with no available answer-shape guard against it; converted the “Evaluate ” Try It into a multiple-choice question, since its answer is that the expression is undefined rather than a number; omitted the “Access this online resource” media link; and adapted ten selected end-of-section exercises — two logarithmic-to-exponential rewrites, two exponential-to-logarithmic rewrites, two mental base- evaluations, two common-logarithm evaluations, and two natural-logarithm evaluations — into interactive components in a closing Practice block, one group per objective.