Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Logarithms, inverses and semi-log models

Lesson 3.2 · 50 min read · Updated

Suppose a sum of money grows exponentially and you want to know how long it takes to reach a target. An exponential gives you the amount when you know the time. This question runs the other way: you know the amount and want the time. That is the question "to what power?", and logarithms exist to answer it. In AP Precalculus they appear in three ways: as inverse functions, as tools for solving equations where the unknown sits in an exponent, and as the scale behind semi-log plots. We will look at all three, building on the exponential models of the previous lesson.

Inverse functions and the meaning of a logarithm

Think of a function as a machine: put one number in, and another comes out. The inverse runs the machine backwards. If ff maps input xx to output yy, its inverse f−1f^{-1} maps yy back to xx. To find it, write y=f(x)y=f(x), swap xx and yy, and solve for yy. Why swap? Because the roles of input and output have traded places. As a result, the graphs of ff and f−1f^{-1} are reflections in the line y=xy=x, and the domain of one is the range of the other.

The logarithm is the inverse of the exponential: y=log⁡bx  ⟺  by=x,b>0, b≠1, x>0.y=\log_b x \iff b^y=x,\qquad b>0,\ b\ne1,\ x>0. Read the formula above in words: log⁡bx\log_b x is the exponent that turns bb into xx. It is just the question "to what power?" written compactly. Two bases come up so often that they have names of their own. The common log is log⁡x=log⁡10x\log x=\log_{10}x; the natural log is ln⁡x=log⁡ex\ln x=\log_e x.

Logarithm rules

The four rules below hold when b>0, b\ne1 and M,N>0:

Rule Formula
Product \log_b(MN)=\log_b M+\log_b N
Quotient \log_b\dfrac MN=\log_b M-\log_b N
Power \log_b M^k=k\log_b M
Change of base \log_b M=\dfrac{\ln M}{\ln b}

Why does a product become a sum? Because a logarithm is an exponent, and multiplying powers adds exponents. So the log of a product is the sum of the logs. The other rules come from the exponent rules in the same way.

Solving exponential and logarithmic equations

  • Unknown in an exponent: isolate the power, then take a logarithm of both sides (or match bases). The logarithm brings the exponent down to where you can reach it.
  • Unknown inside a logarithm: combine into a single log, rewrite in exponential form, solve, and check the domain: every argument must be positive. Many students forget this step. Start by looking at where the unknown sits, because that tells you which route to take.

Logarithmic graphs and semi-log plots

A graph shows how a logarithm behaves. The graph of y=\log_b x with b>1 passes through (1,0) and (b,1), increases, is concave down, and has the vertical asymptote x=0. It creeps towards the asymptote but never touches it. Transformations work as usual: y=\log_b(x-h)+k has domain x>h and asymptote x=h.

-11235678910-3-2-11234xyO3.5(4, 1)(7, 3)
The graph of y=\log_2(x-3)+1

Now read the graph above. It is y=\log_2(x-3)+1: domain x>3 and asymptote x=3. To find where it crosses the horizontal axis, set the function equal to zero, which means \log_2(x-3)=-1, so x-3=\tfrac12. The x-intercept is therefore 3.5.

Exponential data grow so fast that they are hard to read on an ordinary graph. A semi-log plot gets round this: the vertical axis shows \log y. Exponential data y=ab^x then lie on a straight line, because \log y=\log a+x\log b. Reading off that line, the intercept is \log a and the slope is \log b.

Similar exercises

Exercise 1

Find the inverse of f(x)=5x-3 and check it with one value.

What you need and how to start

What you need: swap x and y, then solve for y.

Show solution

To find the inverse, write y=5x-3 and swap the variables: x=5y-3. Then 5y=x+3, so f^{-1}(x)=\dfrac{x+3}{5}.

Check: f(2)=7 and f^{-1}(7)=\dfrac{10}{5}=2.

So f^{-1}(x)=\dfrac{x+3}{5}.

Answer. f^{-1}(x)=\dfrac{x+3}{5}.

Exercise 2

Evaluate \log_9 27.

What you need and how to start

What you need: write both 9 and 27 as powers of 3.

Show solution

By definition, \log_9 27 is the power of 9 that gives 27. Let \log_9 27=y, so 9^y=27. Writing both as powers of 3 gives 3^{2y}=3^3.

Hence 2y=3 and y=\dfrac32.

So \log_9 27=\dfrac32.

Answer. \dfrac32.

Exercise 3

Solve e^{2x}=10, giving x to three decimal places.

What you need and how to start

What you need: take the natural log of both sides.

Show solution

The unknown x is in the exponent of e, so we take natural logs of both sides of the equation.

We have \begin{aligned}e^{2x}&=10\\\ln e^{2x}&=\ln10\\2x&=\ln10.\end{aligned}

Dividing both sides by 2, we get x=\dfrac{\ln10}{2}.

Substituting \ln10\approx2.3026, we have x\approx\dfrac{2.3026}{2}=1.1513. To three decimal places, x\approx1.151.

Check: e^{2\cdot1.151}=e^{2.302}\approx9.99\approx10.

So x\approx1.151.

Answer. x\approx1.151.

Exercise 4

Solve \log_2 x+\log_2(x-2)=3.

What you need and how to start

What you need: combine the logs, rewrite in exponential form, then check the domain x>2.

Show solution

By the product rule, \log_2\big[x(x-2)\big]=3, so x(x-2)=2^3=8.

Then x^2-2x-8=0, that is (x-4)(x+2)=0, so x=4 or x=-2.

The domain needs x>2, so x=-2 is rejected.

So the solution is x=4.

Answer. x=4.

Exercise 5

State the domain, vertical asymptote and x-intercept of y=\ln(x+1)-2.

What you need and how to start

What you need: the argument x+1 must be positive; set y=0 for the intercept.

Show solution

The argument must be positive, x+1>0, so the domain is x>-1 and the vertical asymptote is x=-1.

Setting y=0 gives \ln(x+1)=2, so x+1=e^2 and x=e^2-1\approx6.389.

So the domain is x>-1, the asymptote is x=-1 and the x-intercept is e^2-1\approx6.389.

Answer. x>-1; x=-1; x=e^2-1\approx6.389.

Applied exercises

Exercise 6

The pH of a solution is \text{pH}=-\log\left[\text{H}^+\right]. Find the pH of a solution with \left[\text{H}^+\right]=3.2\times10^{-4}.

What you need and how to start

What you need: \log\left(3.2\times10^{-4}\right)=\log3.2-4.

Show solution

By the product rule, \log\left(3.2\times10^{-4}\right)=\log3.2+\log10^{-4}\approx0.5051-4=-3.4949.

Hence \text{pH}=-(-3.4949)\approx3.4949, which rounds to 3.49 to two decimal places.

So the solution has pH about 3.49: it is acidic.

Answer. About 3.49.

Exercise 7

A radioactive substance has a half-life of 8 days. How long until only 10\% of it remains?

What you need and how to start

What you need: solve \left(\tfrac12\right)^{t/8}=0.1 with logarithms.

Show solution

The fraction left after t days is \left(\tfrac12\right)^{t/8}. Set it equal to 0.1 and take logs: \frac t8\log0.5=\log0.1,\qquad t=\frac{8\log0.1}{\log0.5}=\frac{8}{\log2}\approx26.6.

So 10\% remains after about 26.6 days.

Answer. About 26.6 days.

Exercise 8

Two earthquakes have magnitudes 7 and 5 on a scale where magnitude is M=\log\dfrac{A}{A_0}, with A the amplitude. How many times larger is the amplitude of the stronger one?

What you need and how to start

What you need: M_1-M_2=\log\dfrac{A_1}{A_2}.

Show solution

Subtracting the two formulas gives M_1-M_2=\log A_1-\log A_2=\log\dfrac{A_1}{A_2}, because the \log A_0 terms cancel.

So \log\dfrac{A_1}{A_2}=7-5=2, and \dfrac{A_1}{A_2}=10^2=100.

So the amplitude of the stronger earthquake is 100 times larger.

Answer. 100 times.

Exercise 9 Challenge

On a semi-log plot (base 10), data lie on the line through (0,\log5) and (4,\log80). Find the exponential model y=ab^x.

What you need and how to start

What you need: the intercept gives \log a; the slope gives \log b.

Show solution

Since \log y=\log a+x\log b, the intercept gives \log a=\log5, so a=5.

The slope is \dfrac{\log80-\log5}{4}=\dfrac{\log16}{4}=\log16^{1/4}=\log2, so b=2.

So the model is y=5\cdot2^x. Check: 5\cdot2^4=80.

Answer. y=5\cdot2^x.

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. The value of \log_2 32 is
Question 2. Which expression equals \log M+\log N-\log P?
Question 3. The graph of y=\log_3(x+2) has vertical asymptote
Question 4. If f(x)=e^x, then f^{-1}(x) is

Part II. True or false

Question 1. Consider g(x)=\ln x. Decide whether each statement is true or false.
a) The domain of g is x>0.
b) g(1)=0.
c) g is concave up.
d) g(e^3)=3.

Part III. Short answer

Question 1. Evaluate \log_3 81.

Question 2. Solve 2^x=64.

Show answers and explanations
  1. Part I, question 1: B. 2^5=32.
  2. Part I, question 2: C. Product rule, then quotient rule.
  3. Part I, question 3: B. The argument x+2 is zero at x=-2.
  4. Part I, question 4: A. The natural log undoes e^x.
  5. Part II, question 1: a) True; b) True; c) False; d) True. \ln x increases but is concave down.
  6. Part III, question 1: 4. 3^4=81.
  7. Part III, question 2: 6. 2^6=64.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email