Opening the book…
Section Preview
- Note to the Instructor (click to expand)
- The structure of this section mimics that of the introduction to exponential functions. It is important to note that the properties of logarithms are held off for a later section.
The following is a list of learning objectives for this section.
- Learning Objectives (click to expand)
-
- 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, like those shown in Figure \(\PageIndex{1}\). 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 \(10^{8-4} = 10^4 = 10,000\) times as great! In this section, 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 \(10^x = 500\), where \(x\) represents the difference in magnitudes on the Richter Scale. How would we solve for \(x\)?
We have not yet learned a method for solving exponential equations. None of the algebraic tools discussed so far is sufficient to solve \(10^x =500\). We know that \(10^2 = 100\) and \(10^3 = 1000\), so it is clear that \(x\) must be some value between \(2\) and \(3\), since \(y = 10^x\) is increasing. We can examine a graph, as in Figure \(\PageIndex{2}\), 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 in Figure \(\PageIndex{2}\) passes the Horizontal Line Test. The exponential function \(y = b^x\) is one-to-one, so its inverse, \(x = b^y\) is also a function. As is the case with all inverse functions, we simply interchange \(x\) and \(y\) and solve for \(y\) to find the inverse function. To represent \(y\) as a function of \(x\), we use a logarithmic function of the form \(y = \log_b(x)\). The base \(b\) logarithm of a number is the exponent by which we must raise \(b\) to get that number.
Interactive Element: A Logarithm Is an Exponent
The following Interactive Element might help you see that a common logarithm is simply the exponent you put on \(10\) to reach a given number.
Interact: Drag the red point along the curve \(y=10^x\); its \(x\)-coordinate is the exponent and its height is the output. Drag it up until the height reaches the line \(y=500\).
Observation: At every position the \(x\)-coordinate equals \(\log\) of the height. When the height is \(500\), the exponent is about \(2.7\), so \(\log(500)\approx 2.7\) — a logarithm is just an exponent.
Definition: Logarithmic Function
The base \( b \) logarithmic function is defined as follows:\[y =\log_b( x ) \text{ is equivalent to } b^y = x, \nonumber \]where, \( x > 0 \), \( b > 0 \), and \( b \neq 1 \). We read \( \log_b(x) \) as, "the logarithm with base \(b\) of \(x\)," or the "log base \(b\) of \(x\)."
It is critical to recognize that 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 \(2^5 = 32\), we can write \(\log_2(32) = 5\). 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:\[\log_b(x) = y \iff b^y = x, b > 0, b \neq 1.\nonumber\]The symbol, \(\iff\), means "if and only if." Since \(b\) is the base of an exponential function, \(b\) is always positive.
Note: Lax Notation
Because the logarithm is a function, it is most correctly written as \(\log_b(x)\), using parentheses to denote function evaluation, just as we would with \(f(x)\). 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 \(\log_b x\). While this "lax" notation has been adopted as acceptable by most mathematicians and scientists, we will stick with parentheses as often as possible to reinforce the concept that the logarithm is a function.
Note that many calculators require parentheses around the \(x\).
We can illustrate the notation of logarithms as follows:
Notice that, comparing the logarithm function and the exponential function, the input and the output are switched. This means \(y = \log_b(x)\) and \(y = b^x\) are inverse functions. This leads us to quickly develop some fundamental theory about logarithmic functions.
Theorem: Domain and Range of the Logarithmic Function
The domain of the logarithmic function \( f(x) = \log_b(x) \) is \( \left( 0,\infty \right) \) and the range is \( \left( -\infty,\infty \right) \).
- Proof
- Let \( y = \log_b(x) \). Since the logarithm base \( b \) is the inverse of the exponential function base \( b \), the domain of the logarithm is the range of the exponential function. This is precisely \( \left( 0,\infty \right) \). Moreover, the range of the logarithm is the domain of the exponential function, which is \( \left( -\infty,\infty \right) .\)
In fact, it is due to the inverse nature of the logarithmic and exponential functions that \(x > 0\), \(b > 0\), and \(b \neq 1\) are restrictions for the logarithmic function. Since \(y = \log_b(x)\) is the same as \(b^y = x\), and we know the base of an exponential function must be positive, \(b > 0\). Moreover, when defining the exponential function, we took great care to state that the base could not be \(1\). Thus, \(b \neq 1\). Finally, exponential functions only return positive values. Hence, \(x > 0\).
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.
Example \(\PageIndex{1}\): Converting from Logarithmic Form to Exponential Form
Write the following logarithmic equations in exponential form.
- \(\log_6(\sqrt{6}) = \frac{1}{2}\)
- \(\log_3(9) = 2\)
- Solutions
-
First, identify the values of \(b\), \(y\), and \(x\). Then, write the equation in the form \(b^y = x\).
- Here, \(b=6\), \(y = \frac{1}{2}\), and \(x=\sqrt{6}\). Therefore, the equation \(\log_6(\sqrt{6}) = \frac{1}{2}\) is equivalent to\[6^{1/2} = \sqrt{6}.\nonumber\]
- Here, \(b=3\), \(y=2\), and \(x=9\). Therefore, the equation \(\log_3(9)=2\) is equivalent to \(3^2 = 9\).
Checkpoint \(\PageIndex{1}\)
Write the following logarithmic equations in exponential form.
- \(\log_{10}(1,000,000)=6\)
- \(\log_5(25)=2\)
Converting from Exponential to Logarithmic Form
To convert from exponents to logarithms, we follow the same steps in reverse. We identify the base \(b\), exponent \(x\), and output \(y\). Then we write \(x = \log_b(y)\).
Example \(\PageIndex{2}\): Converting from Exponential Form to Logarithmic Form
Write the following exponential equations in logarithmic form.
- \(2^3 = 8\)
- \(5^2 = 25\)
- \(10^{-4} = \frac{1}{10,000}\)
- Solutions
-
First, identify the values of \(b\), \(y\), and \(x\). Then, write the equation in the form \(x = \log_b(y)\).
- Here, \(b=2\), \(x=3\), and \(y=8\). Therefore, the equation \(2^3 = 8\) is equivalent to \(\log_2(8) = 3\).
- Here, \(b=5\), \(x=2\), and \(y=25\). Therefore, the equation \(5^2 = 25\) is equivalent to \(\log_5(25) = 2\).
- Here, \(b=10\), \(x=-4\), and \(y = \frac{1}{10,000}\). Therefore, the equation \(10^{-4} = \frac{1}{10,000}\) is equivalent to \(\log_{10} \left( \frac{1}{10,000} \right) = -4\).
Checkpoint \(\PageIndex{2}\)
Write the following exponential equations in logarithmic form.
- \(3^2 = 9\)
- \(5^3 = 125\)
- \(2^{-1} = \frac{1}{2}\)
Evaluating Logarithms
Knowing the squares, cubes, and roots of numbers allows us to evaluate many logarithms mentally. For example, consider \(\log_2(8)\). We ask, "To what exponent must \(2\) be raised in order to get \(8\)?" Because we already know \(2^3 = 8\), it follows that \(\log_2(8) = 3\).
Now consider simplifying \(\log_7(49)\) and \(\log_3(27)\) mentally.
- We ask, "To what exponent must \(7\) be raised in order to get \(49\)?" We know \(7^2 = 49\). Therefore, \(\log_7(49) = 2\)
- We ask, "To what exponent must \(3\) be raised in order to get \(27\)?" We know \(3^3 = 27\). Therefore, \(\log_3(27) = 3\)
Even some seemingly more complicated logarithms can be evaluated without a calculator. For example, let's evaluate \(\log_{2/3} \left( \frac{4}{9} \right)\) mentally.
- We ask, "To what exponent must \(\frac{2}{3}\) be raised in order to get \(\frac{4}{9}\)?" We know \(2^2 = 4\) and \(3^2 = 9\), so \(\left( \frac{2}{3} \right)^2 = \frac{4}{9}\). Therefore, \(\log_{2/3} \left( \frac{4}{9} \right) = 2\).
Example \(\PageIndex{3}\): Solving Logarithms Mentally
Solve \(y = \log_4(64)\) without using a calculator.
- Solution
-
First we rewrite the logarithm in exponential form: \(4^y =64\). Next, we ask, "To what exponent must \(4\) be raised in order to get \(64\)?"
We know\[4^3 = 64.\nonumber\]Therefore,\[\log_4(64) = 3.\nonumber\]
Checkpoint \(\PageIndex{3}\)
Solve \(y = \log_{121}(11)\) without using a calculator.
Example \(\PageIndex{4}\): Evaluating the Logarithm of a Reciprocal
Evaluate \(y = \log_3 \left( \frac{1}{27} \right)\) without using a calculator.
- Solution
-
First we rewrite the logarithm in exponential form: \(3^y = \frac{1}{27}\). Next, we ask, "To what exponent must \(3\) be raised in order to get \(\frac{1}{27}\)?"
We know \(3^3 = 27\), but what must we do to get the reciprocal, \(\frac{1}{27}\)? Recall from working with exponents that \(b^{-a} = \frac{1}{b^a}\). We use this information to write\[3^{-3} = \dfrac{1}{3^3} = \dfrac{1}{27}.\nonumber\]Therefore, \(\log_3 \left( \frac{1}{27} \right) = -3\).
Checkpoint \(\PageIndex{4}\)
Evaluate \(y = \log_2 \left( \frac{1}{32} \right)\) without using a calculator.
Using Common Logarithms
Sometimes we may see a logarithm written without a base. In this case, we assume that the base is \(10\). In other words, the expression \(\log(x)\) means \(\log_{10}(x)\). We call a base-10 logarithm a common logarithm.
Definition: Common Logarithm
A common logarithm is a logarithm with base \(10\). We write \( \log_{10}(x) \) simply as \( \log(x) \).
The common logarithm otherwise follows the standard definition of a logarithmic function: For \(x > 0\),\[y = \log(x) \text{ is equivalent to } 10^y = x.\nonumber\]Common logarithms are used to measure the Richter Scale mentioned at the beginning of the section. Scales for measuring the brightness of stars, decibel levels of sounds, and the pH of acids and bases also use common logarithms.
Example \(\PageIndex{5}\): Finding the Value of a Common Logarithm Mentally
Evaluate \(y= \log(1000)\) without using a calculator.
- Solution
-
First we rewrite the logarithm in exponential form: \(10^y = 1000\). Next, we ask, "To what exponent must \(10\) be raised in order to get \(1000\)?" We know\[10^3 = 1000.\nonumber\]Therefore, \(\log(1000)=3\).
Checkpoint \(\PageIndex{5}\)
Evaluate \(y= \log(1,000,000)\).
Example \(\PageIndex{6}\): Finding the Value of a Common Logarithm Using a Calculator
Evaluate \(y= \log(321)\) to four decimal places using a calculator.
- Solution
-
- Press [LOG].
- Enter 321, followed by ).
- Press [ENTER].
Rounding to four decimal places, \(\log(321) \approx 2.5065\).
We can perform a quick "logic check" on our answer to Example \(\PageIndex{6}\). Note that \(10^2 = 100\) and that \(10^3 = 1000\). Since \(321\) is between \(100\) and \(1000\), we know that \(\log(321)\) must be between \(\log(100) = 2\) and \(\log(1000) = 3\).
Checkpoint \(\PageIndex{6}\)
Evaluate \(y= \log(123)\) to four decimal places using a calculator.
Example \(\PageIndex{7}\): Rewriting and Solving a Real-World Exponential Model
The amount of energy released from one earthquake was \(500\) times greater than the amount of energy released from another. The equation \(10^x = 500\) represents this situation, where \(x\) 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.\[\begin{array}{rrclcl} & 10^x & = & 500 & & \\[6pt] \implies & \log(500) & = & x & \quad & \left( \text{definition of the common logarithm} \right) \\[6pt] \implies & x & \approx & 2.699 & \quad & \left( \text{using a calculator} \right) \\[6pt] \end{array}\nonumber\]The difference in Richter Scale magnitudes was about \(2.699\).
Checkpoint \(\PageIndex{7}\)
The amount of energy released from one earthquake was 8,500 times greater than the amount of energy released from another. The equation \(10^x = 8500\) represents this situation, where \(x\) is the difference in magnitudes on the Richter Scale. To the nearest thousandth, what was the difference in magnitudes?
Using Natural Logarithms
The most frequently used base for logarithms is \(e\). Base \(e\) logarithms are important in Calculus and some scientific applications; they are called natural logarithms.
Definition: Natural Logarithm
A natural logarithm is a logarithm with base \( e \). We write \( \log_e(x) \) simply as \( \ln (x) \).
The natural logarithm otherwise follows the standard definition of a logarithmic function: For \(x > 0\),\[y = \ln(x) \text{ is equivalent to } e^y = x.\nonumber\]Most values of \(\ln(x)\) can be found only using a calculator. The major exception is that, because the logarithm of \(1\) is always \(0\) in any base, \(\ln(1) = 0\). For other natural logarithms, we can use the \(\mathrm{ln}\) key that can be found on most scientific calculators. We can also find the natural logarithm of any power of \(e\) using the inverse property of logarithms.
Example \(\PageIndex{8}\): Evaluating a Natural Logarithm Using a Calculator
Evaluate \(y = \ln(500)\) to four decimal places using a calculator.
- Solution
-
- Press [LN].
- Enter \(500\), followed by ).
- Press [ENTER].
Rounding to four decimal places, \(\ln(500) \approx 6.2146\).
Checkpoint \(\PageIndex{8}\)
Evaluate \(\ln(-500)\).
Success in College: Self-Motivation Learning Preferences
Choose the statements that best describe you.
| I come to class because I don’t want to miss anything. | or | I come to class because it is required. |
| I would probably do less work in this class if I were graded pass/fail instead of a letter grade. | or | I would probably do the same amount of work in this class if I was graded pass/fail instead of with a letter grade. |
| I need frequent homework assignments to keep me working. | or | I do homework frequently to know what is going on in class. |
- Do you consider the choices above to be good or bad for your education?
- Some professors provide detailed schedules with assignments and test dates at the beginning of the term. Others announce the homework assignments at each class meeting and test days during the term. Which do you prefer?
Success in Mathematics: Math Anxiety (Part 3)
For some math students, anxiety changes their ability to show what they know. They have physical and emotional symptoms. You are responsible for recognizing if math anxiety is interfering with your success. Do you need to make some changes to reduce your math anxiety? Do you need help to do so?
Researchers have identified various events that seem to result in math anxiety. Perhaps you had negative experiences learning math. For you, learning math meant feeling dumb or embarrassed. Perhaps a teacher or parent who struggled with math has passed on their fears to you. Or you believe that your gender or ethnic heritage means you cannot do the math.
Some students learn to cope on their own with their math anxiety. They use relaxation techniques. They practice problems over and over. At test time, their anxiety does not block them from doing the work. Others find help from counselors at their college.
Math anxiety is common among college students. It is your responsibility to think about it and, if needed, get help so that you can cope with your fears.
Math anxiety affects students in physical ways such as increasing blood pressure and heart rate, breathing faster, excess sweating, dry mouth, restlessness, or nausea. Emotionally, it can cause fear, anger, nervousness, worry, and feelings of hopelessness. Students may have trouble concentrating, sitting still, reading, or keeping their legs from bouncing. They may feel desperate - like they need to run away or cry.
Here are some questions about this topic that may help you succeed in this class (and possibly many other classes as well):
- Using a scale of 1 to 10, with 10 describing overwhelming anxiety that makes it extremely difficult to do math, rate your math anxiety. How does it affect you?
- Most students have some anxiety about their classes. They worry about giving speeches, taking tests, writing a good paper, or completing all their work. Worrying can be motivating. It can help us get going and to get things done. Or, worrying can be a bad thing. It paralyzes us. In general, how does worrying affect you?
This page titled 13.3: Logarithmic Functions was last modified on Tue, 08 Jul 2025 17:47:20 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Roy Simpson, Cosumnes River College (OpenStax) via source content that was edited to the style and standards of the LibreTexts platform.
The book could not be loaded just now.