Logarithmic Functions
The news says an earthquake in one city was magnitude 6 and another one was magnitude 8. Two points apart on the scale doesn't sound like much. Is the second quake "a bit stronger," or is it a lot more? To answer, you need the logarithm, the tool that undoes exponents. By the end of this page you will know exactly how much stronger it was.
What is a logarithm?
You already know how to turn an exponent into a number: $2^5 = 32$. A logarithm goes the other way. It takes the number and gives you back the exponent.
Two bases are so common that they get their own keys on a calculator:
-
$\log x$ means $\log_{10} x$ (the common logarithm).
-
$\ln x$ means $\log_e x$, where $e \approx 2.718$ (the natural logarithm).
Three facts follow straight from the definition, in every base:
The same definition lets you find a missing base or a missing number. Rewrite the log as a power and solve.
Calculate the value of the following logarithms by directly applying the definition, without using a calculator: a) $\log_2 32$ b) $\log_3 \frac{1}{9}$ c) $\log 10000$
Calculate the value of the following logarithms by directly applying the definition, without using a calculator:
a) $\log_2 32$
b) $\log_3 \frac{1}{9}$
c) $\log 10000$
Find the value of the unknown $x$ in each of the following equalities using the definition of a logarithm: a) $\log_x 25 = 2$ b) $\log_5 x = 3$ c) $\log_2 64 = x$
Find the value of the unknown $x$ in each of the following equalities using the definition of a logarithm:
a) $\log_x 25 = 2$
b) $\log_5 x = 3$
c) $\log_2 64 = x$
Properties of logarithms
Logarithms are exponents, so they follow the exponent rules. Remember that multiplying powers adds exponents: $10^2 \cdot 10^3 = 10^{5}$. In log language, that is exactly the product rule below.
These rules let you compute new logarithms from ones you already know.
Sometimes you need to rewrite a number before you can use a rule. For instance, $\log 8 = \log 2^3 = 3\log 2$, and $5 = \tfrac{10}{2}$ gives $\log 5 = \log 10 - \log 2 = 1 - \log 2$.
Given that, approximately, $\log 2 = 0,301$, calculate the value of $\log 8$ using exclusively the properties of logarithms.
Given that, approximately, $\log 2 = 0,301$, calculate the value of $\log 8$ using exclusively the properties of logarithms.
Given that $\log 2 = 0,301$ and $\log 3 = 0,477$, calculate the value of $\log 12$ and $\log 5$ using the properties of logarithms, without directly using the log key on…
Given that $\log 2 = 0,301$ and $\log 3 = 0,477$, calculate the value of $\log 12$ and $\log 5$ using the properties of logarithms, without directly using the log key on the calculator for those numbers. (Hint: remember that $5 = \frac{10}{2}$).
Expanding and condensing
The properties work in both directions. Expanding splits one log into a sum and difference of simple logs. Condensing does the reverse and packs everything into one log.
Expand the following expression by applying the properties of logarithms (logarithm of a product, quotient and power), so that only logarithms of simple variables…
Expand the following expression by applying the properties of logarithms (logarithm of a product, quotient and power), so that only logarithms of simple variables remain:
$\log \left( \frac{x^3 \cdot y^2}{\sqrt{z}} \right)$
Carry out the reverse process to the previous exercise. Group the following expression into a single logarithm using the corresponding properties:…
Carry out the reverse process to the previous exercise. Group the following expression into a single logarithm using the corresponding properties:
$2 \log a + \log b - 3 \log c$
Change of base
Calculators only have $\log$ (base 10) and $\ln$ (base $e$). To find something like $\log_4 15$ you need to convert.
Use a calculator and the change of base formula to find the value of $\log_4 15$. Round the result to three decimal places.
Use a calculator and the change of base formula to find the value of $\log_4 15$. Round the result to three decimal places.
Domain and vertical asymptote
Now we study $f(x) = \log_b x$ as a function. Since only positive numbers have logarithms, its domain is limited. (Some problems call this the domain of definition. It's just the domain.)
Move the slider. The curve gets closer and closer to the y-axis but never touches it.
To find the domain of a more complicated log, set the argument (what is inside) greater than $0$ and solve the inequality. The asymptote is where the argument equals $0$.
Determine the domain of definition of the following logarithmic functions: a) $f(x) = \log(x - 5)$ b) $g(x) = \ln(2x + 8)$
Determine the domain of definition of the following logarithmic functions:
a) $f(x) = \log(x - 5)$
b) $g(x) = \ln(2x + 8)$
Determine the domain of definition of the function $f(x) = \ln(x^2 - 4x - 5)$. Express the result in interval notation.
Determine the domain of definition of the function $f(x) = \ln(x^2 - 4x - 5)$. Express the result in interval notation.
Increasing or decreasing? Reading the graph
The base decides whether the graph goes up or down.
Notice that $\ln x$ has base $e \approx 2.718 > 1$, so it is increasing too, and so is $\log x$ (base $10$).
Indicate, reasoning your answer and without needing to draw them, which of the following functions are increasing and which are decreasing: a) $f(x) = \log_3 x$ b)…
Indicate, reasoning your answer and without needing to draw them, which of the following functions are increasing and which are decreasing:
a) $f(x) = \log_3 x$
b) $g(x) = \log_{0,5} x$
c) $h(x) = \ln x$
Observe the graphs of the logarithmic functions represented in the image above. Match, justifying your answer, Function A and Function B with their respective analytical…
Observe the graphs of the logarithmic functions represented in the image above. Match, justifying your answer, Function A and Function B with their respective analytical expressions:
1) $y = \log_2 x$
2) $y = \log_{1/2} x$
The inverse of an exponential function
The functions $y = b^x$ and $y = \log_b x$ undo each other: they are inverse functions. The log takes the output of the exponential and returns the input.
The image shows the graph of the exponential function $f(x) = e^x$ and its inverse function $g(x)$. a) Write the analytical expression of $g(x)$. b) Explain the…
The image shows the graph of the exponential function $f(x) = e^x$ and its inverse function $g(x)$.
a) Write the analytical expression of $g(x)$.
b) Explain the geometric meaning of the dotted orange line $y = x$ in relation to both curves.
c) Determine the domain and range of both functions, justifying how they are interchanged between a function and its inverse.
Transformations: shifts and reflections
Just like any other function, a log graph can be translated. (Review translations if you need to.)
When a problem gives you two points instead of an asymptote, write one equation for each point and solve the resulting system for the parameters. Try that in the last exercise below.
Given the function $f(x) = \log_3(12 - 3x)$: a) Determine its domain analytically. b) Indicate the equation of its vertical asymptote. c) In which direction (left or…
Given the function $f(x) = \log_3(12 - 3x)$:
a) Determine its domain analytically.
b) Indicate the equation of its vertical asymptote.
c) In which direction (left or right) does the graph of this function open with respect to its asymptote?
From the graph of the function $f(x)$ shown above, which corresponds to a translated logarithm of the form $f(x) = \log_a (x + b)$: a) Indicate the value of $b$ by…
From the graph of the function $f(x)$ shown above, which corresponds to a translated logarithm of the form $f(x) = \log_a (x + b)$:
a) Indicate the value of $b$ by observing the vertical asymptote.
b) Use the point $B(1, 2)$ to calculate the base $a$ of the logarithm.
c) Write the complete analytical expression of the function.
It is known that a logarithmic function of the form $f(x) = \log_a(x + b)$ passes through the origin of coordinates $(0, 0)$ and through the point $(6, 1)$. Set up a…
It is known that a logarithmic function of the form $f(x) = \log_a(x + b)$ passes through the origin of coordinates $(0, 0)$ and through the point $(6, 1)$.
Set up a system of equations to find the values of the parameters $a$ and $b$. Once found, write the final analytical expression of the function and indicate its vertical asymptote.
Solving logarithmic equations
There are two main strategies.
Always check at the end. Plug each solution back in, because the arguments of the original logs must be positive.
Solve the following simple logarithmic equations: a) $\log(3x - 1) = \log(x + 7)$ b) $\log_2(x - 4) = 3$
Solve the following simple logarithmic equations:
a) $\log(3x - 1) = \log(x + 7)$
b) $\log_2(x - 4) = 3$
Solve the following logarithmic equation, checking the validity of the solutions obtained: $\log(x + 2) + \log(x - 1) = 1$
Solve the following logarithmic equation, checking the validity of the solutions obtained:
$\log(x + 2) + \log(x - 1) = 1$
Find the values of $x$ and $y$ that satisfy the following system of non-linear equations: $\begin{cases} x - y = 9 \\ \log x - \log y = 1 \end{cases}$
Find the values of $x$ and $y$ that satisfy the following system of non-linear equations:
$\begin{cases} x - y = 9 \\ \log x - \log y = 1 \end{cases}$
Solving exponential equations with logs
When the unknown is in the exponent, take a log of both sides. The power rule brings the exponent down.
Some problems call the starting amount the initial capital; it's the principal $P$ from the interest formulas.
A capital is invested in a bank fund that offers an annual compound interest. The formula governing the accumulated capital $C$ over the years $t$ is…
A capital is invested in a bank fund that offers an annual compound interest. The formula governing the accumulated capital $C$ over the years $t$ is $C = C_0 \cdot 1,04^t$, where $C_0$ is the initial capital. If $2000$ dollars are invested, determine how many full years must pass for the capital to exceed $3000$ dollars. Use logarithms to solve for the unknown.
Carbon-14 dating is used to date ancient organic remains. The proportion of C-14 decreases exponentially with time according to the function…
Carbon-14 dating is used to date ancient organic remains. The proportion of C-14 decreases exponentially with time according to the function $P(t) = 100 \cdot 0,5^{\frac{t}{5730}}$, where $P$ is the percentage of C-14 remaining compared to the original and $t$ is the time elapsed in years.
If a fossil is discovered that retains only $15\%$ of its original Carbon-14, what is the estimated age of the fossil? Express the result in years and round to the nearest whole number.
Logarithmic scales: pH, sound, earthquakes
Some quantities range from tiny to gigantic, so scientists measure them with logarithms. On a log scale, each step of 1 multiplies the quantity by 10.
Back to the opening: a magnitude 8 quake and a magnitude 6 quake differ by $2$ points, so the amplitude is $10^2 = 100$ times greater. That is a huge difference, not a small one.
In chemistry, the acidity level of a solution is measured by its pH, which is defined using a base 10 logarithm with the formula $pH = -\log[H^+]$, where $[H^+]$ is the…
In chemistry, the acidity level of a solution is measured by its pH, which is defined using a base 10 logarithm with the formula $pH = -\log[H^+]$, where $[H^+]$ is the concentration of hydrogen ions in moles per liter. If a sample of lemon juice has a hydrogen ion concentration of $10^{-3}$ mol/L, calculate its pH.
The Richter scale for measuring the magnitude of earthquakes is logarithmic and is defined as $M = \log\left(\frac{A}{A_0}\right)$, where $A$ is the amplitude of the…
The Richter scale for measuring the magnitude of earthquakes is logarithmic and is defined as $M = \log\left(\frac{A}{A_0}\right)$, where $A$ is the amplitude of the seismic wave and $A_0$ is a reference amplitude.
An earthquake in city Alpha had a magnitude of $6$ on the Richter scale, and another in city Beta had a magnitude of $8$. How many times greater was the amplitude of the seismic wave of the Beta earthquake compared to that of Alpha? Prove your reasoning mathematically.
Working with log formulas
Real formulas often include a logarithm. Two skills matter: solving for a variable that's inside a log, and substituting into a formula that has a log of a power of 2.
The same two moves (isolate the log, then rewrite as a power) work for the decibel formula $d = 10\log\dfrac{I}{I_0}$: first divide by $10$.
Sound intensity is measured in decibels (dB) using a logarithmic function. The formula is $d = 10 \cdot \log\left(\frac{I}{I_0}\right)$, where $d$ is the decibels, $I$…
Sound intensity is measured in decibels (dB) using a logarithmic function. The formula is $d = 10 \cdot \log\left(\frac{I}{I_0}\right)$, where $d$ is the decibels, $I$ is the sound intensity and $I_0$ is the threshold intensity of hearing (a constant). Make the intensity $I$ the subject in terms of the decibels $d$ and $I_0$.
In computer science, the execution time $T$ of a certain sorting algorithm depends on the amount of data $n$ to be processed, and follows a function of the type…
In computer science, the execution time $T$ of a certain sorting algorithm depends on the amount of data $n$ to be processed, and follows a function of the type $T(n) = k \cdot n \cdot \log_2 n$, where $k$ is a constant specific to the computer.
If when processing $n = 8$ data items the computer takes $T = 24$ milliseconds:
a) Calculate the value of the constant $k$.
b) How long will the same computer take to process $n = 32$ data items?