Dove's LibraryDove's Library

2.14 - Logarithmic Function Context and Data Modeling

Overview

Logarithmic models fit situations where the input has to be multiplied by the same amount to make the output go up by the same amount. They're the flip side of exponential models: an exponential model tells you how big something is after tt steps, and a log model tells you how many steps it took to get that big. This topic covers when a log model fits, how to build one from a context, from two points, or from data, and how to use it to answer questions.

When a logarithmic model fits

Logarithmic functions are inverses of exponential functions, so they model proportional growth (repeated multiplication) seen from the other side. In a log model, the input values change proportionally over equal-length output intervals: every time the output changes by the same amount, the input has been multiplied by the same factor.
  • Sound level: every time the intensity of a sound is multiplied by 10, its level goes up 10 decibels.
  • pH: every time the hydrogen ion concentration is multiplied by 10, the pH goes down 1.
  • Earthquake magnitude: every time the seismic wave amplitude is multiplied by 10, the magnitude goes up 1.
  • Doublings: the number of times an amount has doubled goes up 1 every time the amount is multiplied by 2.

Whole-number outputs

When the output of a log model is a whole number, it tells you how many times the starting value has been multiplied by the proportion.
Say a bacteria culture starts with 500 cells and doubles every hour. The exponential model is N(t)=500⋅2tN(t) = 500 \cdot 2^t. Its inverse tells you how many doublings it takes to reach xx cells:
D(x)=log⁡2(x500)D(x) = \log_2\left(\frac{x}{500}\right)
D(4000)=log⁡28=3D(4000) = \log_2 8 = 3: to get from 500 cells to 4000 cells, the starting amount was multiplied by 2 three times (500→1000→2000→4000500 \to 1000 \to 2000 \to 4000). Outputs that aren't whole numbers still make sense: D(10,000)=log⁡220≈4.32D(10{,}000) = \log_2 20 \approx 4.32, so it takes about 4.32 doublings, or about 4.32 hours.

Building a model from a proportion and a zero

Suppose you know the proportion (the input is multiplied by rr each time the output goes up by 1) and the zero (the input x=cx = c where the output is 0). Then the model is
f(x)=log⁡r(xc)f(x) = \log_r\left(\frac{x}{c}\right)
This works because f(c)=log⁡r1=0f(c) = \log_r 1 = 0, and multiplying xx by rr adds log⁡rr=1\log_r r = 1 to the output. If each multiplication by rr adds dd to the output instead of 1, use f(x)=dlog⁡r(xc)f(x) = d\log_r\left(\frac{x}{c}\right).

Example 1: A model from a proportion and a zero

A logarithmic function ff has a zero at x=4x = 4. Each time the input is multiplied by 3, the output increases by 2. Write a formula for ff, then find f(36)f(36) and f(20)f(20).
The proportion is 3, each multiplication adds 2, and the zero is at x=4x = 4:
f(x)=2log⁡3(x4)f(x) = 2\log_3\left(\frac{x}{4}\right)f(36)=2log⁡39=2(2)=4f(36) = 2\log_3 9 = 2(2) = 4
That fits the pattern: 4→12→364 \to 12 \to 36 is two multiplications by 3, and each one adds 2.
f(20)=2log⁡35=2⋅ln⁡5ln⁡3≈2.930f(20) = 2\log_3 5 = 2 \cdot \frac{\ln 5}{\ln 3} \approx 2.930
Answer: f(x)=2log⁡3(x4)f(x) = 2\log_3\left(\frac{x}{4}\right), with f(36)=4f(36) = 4 and f(20)≈2.930f(20) \approx 2.930.

Building a model from two points

With two input-output pairs, use the form f(x)=a+bln⁡xf(x) = a + b\ln x. Plug in both points and solve the system for aa and bb. The natural log is the usual choice here (it's what calculators use, and it's common in real-world models), but any base works: by change of base, bln⁡xb\ln x is just a different constant times log⁡nx\log_n x.

Example 2: A model from two points (AP-style)

Suppose a student's typing speed after tt weeks of practice is modeled by W(t)=a+bln⁡tW(t) = a + b\ln t, in words per minute. After 1 week the student types 30 words per minute, and after 4 weeks, 45 words per minute.
  1. Find aa and bb.
  1. Predict the student's speed after 8 weeks.
  1. When does the model predict the student will reach 60 words per minute?
Part 1: use t=1t = 1 first, since ln⁡1=0\ln 1 = 0:
30=a+bln⁡1=a⇒a=3030 = a + b\ln 1 = a \quad\Rightarrow\quad a = 30
Then use t=4t = 4:
45=30+bln⁡4⇒b=15ln⁡4≈10.82045 = 30 + b\ln 4 \quad\Rightarrow\quad b = \frac{15}{\ln 4} \approx 10.820
By change of base, the model is also W(t)=30+15log⁡4tW(t) = 30 + 15\log_4 t. That form shows the proportional pattern: every time the practice time is multiplied by 4, the speed goes up 15 words per minute.
Part 2: use the base 4 form, since log⁡48=32\log_4 8 = \frac{3}{2}:
W(8)=30+15log⁡48=30+15(1.5)=52.5W(8) = 30 + 15\log_4 8 = 30 + 15(1.5) = 52.5
Part 3: set the model equal to 60 and solve for the input:
30+15log⁡4t=60⇒log⁡4t=2⇒t=42=1630 + 15\log_4 t = 60 \quad\Rightarrow\quad \log_4 t = 2 \quad\Rightarrow\quad t = 4^2 = 16
Answer: a=30a = 30 and b=15ln⁡4≈10.820b = \frac{15}{\ln 4} \approx 10.820. The model predicts about 52.5 words per minute after 8 weeks, and 60 words per minute after 16 weeks of practice.

Building a model with transformations

Sometimes the context tells you how to transform f(x)=alog⁡bxf(x) = a\log_b x:
  • Where the asymptote goes. log⁡bx\log_b x is undefined at x=0x = 0. If the inputs start at 0 (like t=0t = 0 months), shift left: f(t)=alog⁡b(t+1)+kf(t) = a\log_b(t + 1) + k is defined at t=0t = 0, with f(0)=kf(0) = k.
  • A reference value. Many science scales divide the input by a reference amount, so the output is 0 at that amount. That's a horizontal dilation, which by the product property is also a vertical translation.
  • How fast it changes. A vertical dilation by aa sets how much the output goes up for each multiplication of the input.

Example 3: The decibel scale

The sound level, in decibels, of a sound with intensity II (in watts per square meter) is L(I)=10log⁡(I10−12)L(I) = 10\log\left(\frac{I}{10^{-12}}\right).
  1. Find the sound level of normal conversation, which has intensity I=10−6I = 10^{-6}.
  1. How much does the sound level go up when the intensity doubles?
  1. A concert measures 110 decibels. Find its intensity.
Part 1:
L(10−6)=10log⁡(10−610−12)=10log⁡(106)=10(6)=60 decibelsL\left(10^{-6}\right) = 10\log\left(\frac{10^{-6}}{10^{-12}}\right) = 10\log\left(10^6\right) = 10(6) = 60 \text{ decibels}
Part 2: use the product property on L(2I)L(2I):
L(2I)=10log⁡(2⋅I10−12)=10log⁡2+L(I)≈L(I)+3.01L(2I) = 10\log\left(2 \cdot \frac{I}{10^{-12}}\right) = 10\log 2 + L(I) \approx L(I) + 3.01
Doubling the intensity adds about 3 decibels, no matter how loud the sound started.
Part 3: this time you know the output and need the input:
110=10log⁡(I10−12)⇒11=log⁡(I10−12)110 = 10\log\left(\frac{I}{10^{-12}}\right) \quad\Rightarrow\quad 11 = \log\left(\frac{I}{10^{-12}}\right)I10−12=1011⇒I=1011⋅10−12=10−1=0.1\frac{I}{10^{-12}} = 10^{11} \quad\Rightarrow\quad I = 10^{11} \cdot 10^{-12} = 10^{-1} = 0.1
Answer: conversation is 60 decibels, doubling the intensity adds about 3.01 decibels, and the concert's intensity is 0.1 watts per square meter. (The model is 10log⁡I10\log I shifted up 120, since L(I)=10log⁡I−10log⁡10−12=10log⁡I+120L(I) = 10\log I - 10\log 10^{-12} = 10\log I + 120.)

Logarithmic regression

For a data set, technology can find the best log model. A log model fits data that rises (or falls) quickly at first and then keeps changing more and more slowly, without leveling off. On a TI-84:
  1. Press STAT, choose Edit, and enter the inputs in L1 and the outputs in L2. Every input must be positive.
  1. Press STAT, arrow over to CALC, and choose LnReg. Use L1 and L2 as the lists, then Calculate.
  1. The calculator gives aa and bb for y=a+bln⁡xy = a + b\ln x, plus rr and r2r^2 (turn on Stat Diagnostics in the mode menu if you don't see them).

Example 4: Logarithmic regression (AP-style)

Suppose a factory tracks how many units a new employee assembles per hour after xx days on the job (made-up data for practice).
Days on the job, xx
1
2
4
6
10
15
20
30
Units per hour, yy
11
17
22
25
30
32
35
38
  1. Find a logarithmic regression model for the data.
  1. Predict the employee's rate after 25 days.
  1. Use the model to estimate when the rate will reach 36 units per hour.
Part 1: LnReg on the data gives
y≈11.179+7.891ln⁡xy \approx 11.179 + 7.891\ln x
with r≈0.999r \approx 0.999. The points hug the curve, so the log model fits well.
2.14 - Logarithmic Function Context and Data Modeling
Part 2: plug in x=25x = 25:
y≈11.179+7.891ln⁡25≈36.58y \approx 11.179 + 7.891\ln 25 \approx 36.58
Part 3: set the model equal to 36 and solve for xx:
11.179+7.891ln⁡x=36⇒ln⁡x=36−11.1797.891≈3.145511.179 + 7.891\ln x = 36 \quad\Rightarrow\quad \ln x = \frac{36 - 11.179}{7.891} \approx 3.1455x≈e3.1455≈23.2x \approx e^{3.1455} \approx 23.2
Answer: the model is y≈11.179+7.891ln⁡xy \approx 11.179 + 7.891\ln x. It predicts about 36.6 units per hour after 25 days, and a rate of 36 units per hour after about 23.2 days on the job. Be careful predicting far past 30 days: the model keeps rising forever, but a real worker's speed will level off at some point.

Using a log model

Once you have a model, you can use it in both directions:
  • Predict the output: plug in the input. (W(8)=52.5W(8) = 52.5 words per minute in Example 2.)
  • Find the input: set the model equal to the output and solve, usually by rewriting the log in exponential form. (W(t)=60W(t) = 60 gave t=16t = 16 weeks.)
On the AP exam you won't be asked to explain what aa and bb mean in context for a model like f(x)=a+blog⁡nxf(x) = a + b\log_n x. You will be asked to build the model and use it to answer questions, with units.

Common mistakes

  • Using a log model when the input can be 0 or negative. The log is undefined there. Shift the input first, for example log⁡b(t+1)\log_b(t + 1).
  • Mixing up which variable changes proportionally. In a log model the input gets multiplied while the output changes by equal steps. In an exponential model it's the other way around.
  • Rounding aa and bb too early. Keep at least three decimal places (or store the full values in your calculator) until the final answer.
  • Extrapolating too far. Log models never level off, but many real quantities do.
  • Leaving out units and context. "23.2" isn't an answer; "about 23.2 days on the job" is.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.