Educerie

Educerie · AP · Precalculus

AP Precalculus 2.14

Logarithmic Function Context and Data Modeling

How do you build a logarithmic model from a context, from two data points or from regression, and how do you use it to predict and to solve?

What you will learn

  • Understand that a logarithm counts multiplications and models equal output steps for proportional input steps
  • Know three ways to build a logarithmic model: proportion and zero, two pairs, regression
  • Know how to predict an output and solve for an input, with units

You must be able to

  1. Count doublings or multiplications with logb(P ÷ P0)
  2. Solve for a and k from two pairs
  3. Run and store a logarithmic regression and use it to three decimals
  4. Solve a + b ln x = c exactly
  5. Spot diminishing returns as a clue for a logarithmic model
  6. State the domain limit and where the model stops being sensible

In the exam. Section I Part B (calculator): use a logarithmic regression to predict a value or solve for an input, or build the model from two points. Free-response 2 (calculator, real-world) can use a logarithmic model, as the 2024 paper did for sales; students lose points by writing equations that mix units, by not solving a system with technology, and by not giving the average rate of change with its units.

1Counting multiplications

If a quantity starts at P0P_0 and is multiplied by bb each period, after nn periods it is P=P0bnP = P_0 b^n. Solving for nn:

n=log⁡b ⁣(PP0)n = \log_b\!\left(\frac{P}{P_0}\right)

If nn is a whole number, it is the number of times the initial value was multiplied.

Worked example 1. A colony of 500500 bacteria doubles every hour. It now has 16,00016{,}000. How many doublings have happened?

n=log⁡216000500=log⁡232=5n = \log_2\frac{16000}{500} = \log_2 32 = 5

So 55 doublings. The input is the ratio P/P0P/P_0, a multiplicative quantity. Each doubling adds 11 to the output.

2Building from a proportion and a zero

A logarithmic function f(x)=alog⁡bxf(x) = a\log_b x has its zero at x=1x = 1. If the context puts the zero at another input x0x_0, use alog⁡b(x/x0)a\log_b(x/x_0).

Worked example 2. An invented rating is 00 at an input of 1010 and rises by 44 points each time the input triples.

f(x)=4log⁡3x10f(x) = 4\log_3\frac{x}{10}f(30)=4log⁡33=4,f(90)=4log⁡39=8f(30) = 4\log_3 3 = 4, \qquad f(90) = 4\log_3 9 = 8

The proportion is the multiplier (33) that goes with the equal step of 44.

3Building from two pairs

Use f(x)=alog⁡bx+kf(x) = a\log_b x + k. Choose a base that fits the data, or use ln⁡\ln. Two pairs give two equations in aa and kk.

Worked example 3. A logarithmic model f(x)=alog⁡2x+kf(x) = a\log_2 x + k passes through (2,5)(2, 5) and (8,11)(8, 11).

alog⁡22+k=5  ⇒  a+k=5a\log_2 2 + k = 5 \;\Rightarrow\; a + k = 5alog⁡28+k=11  ⇒  3a+k=11a\log_2 8 + k = 11 \;\Rightarrow\; 3a + k = 11

Subtract: 2a=62a = 6, so a=3a = 3 and k=2k = 2. So

f(x)=3log⁡2x+2f(x) = 3\log_2 x + 2

Check: f(8)=3⋅3+2=11f(8) = 3\cdot 3 + 2 = 11. Quadrupling the input from 22 to 88 adds 66, which is 33 per doubling.

4Regression

A calculator can fit y=a+bln⁡xy = a + b\ln x to data. The table is an invented data set.

xx124816
yy3.15.27.09.110.9

Run a logarithmic regression (y=a+bln⁡xy = a + b\ln x). The calculator gives

y≈3.160+2.813ln⁡xy \approx 3.160 + 2.813\ln x
  • Each time xx is multiplied by ee (about 2.7182.718), yy goes up by b≈2.813b \approx 2.813.
  • To predict at x=10x = 10: 3.160+2.813ln⁡10≈9.6383.160 + 2.813\ln 10 \approx 9.638.
  • To find xx when y=15y = 15, graph y=15y = 15 with the model and find the intersection: x≈67.266x \approx 67.266.

Keep the unrounded regression equation stored. Rounding aa and bb first can change the third decimal.

5The natural logarithm in context

The natural logarithm is the usual choice because calculators fit it directly, and because it appears when a quantity grows by a continuous exponential rate.

Worked example 4. An invented learning model gives a score S(n)=20+15ln⁡nS(n) = 20 + 15\ln n after nn hours of practice (n≥1n \ge 1).

  • S(1)=20S(1) = 20, the starting score. S(10)=20+15ln⁡10≈54.539S(10) = 20 + 15\ln 10 \approx 54.539.
  • The first doubling of practice time, 11 to 22 hours, adds 15ln⁡2≈10.415\ln 2 \approx 10.4 points. Going from 1010 to 2020 hours adds the same 10.410.4 points, though it takes ten times as many hours. That is diminishing returns, a clue for a logarithmic model.
  • To score 8080: 20+15ln⁡n=8020 + 15\ln n = 80, ln⁡n=4\ln n = 4, n=e4≈54.598n = e^4 \approx 54.598 hours.

6Domain, limits and the context

  • x>0x > 0, so the model says nothing about x=0x = 0, and it may be silly for tiny xx.
  • A logarithmic model has no upper limit, but it climbs so slowly that real quantities with a cap (a percent that can't pass 100100) may follow it only for a while. A sound answer says where the model stops being reasonable.
  • The output is in the units of the context. Always say them.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.