Unit 2 · Topic 2.14 · about 30 minutes · 7 parts · 15 scored checks, 1 of them multiple choice

Logarithmic Function Context and Data Modeling

Ten invented Wi-Fi signal readings taken down a hallway, from negative 30 dBm at 1 meter to negative 61 dBm at 32 meters, drawn as dots with a logarithmic regression curve passing close to all of them. Dashed vertical lines at 2, 4, 8, 16 and 32 meters show the curve dropping by about 6.1 dBm at each doubling of the distance, even though each doubling covers twice as many meters as the one before.Tap to open the picture full size

Part 1 Think first

Where does the signal drop again?

Guess before you learn. A wrong guess still makes the answer stick.

Predict first

Your phone's Wi-Fi app shows signal strength in dBm. The number is negative, and the closer it is to 0, the stronger the signal. Standing 2 meters from the router, it reads −36. At 4 meters it reads −42. You keep walking down the hall. At about what distance would you expect it to read −48?

In short. A logarithmic function model fits a situation where the input is multiplied by the same factor for each equal step in the output, and you build one from a proportion and a real zero, from two input-output pairs, by transforming alogb⁡x, or with a logarithmic regression.

  • A logarithmic function is the inverse of an exponential one, so a whole-number output counts how many times the initial value was multiplied by the proportion.
  • A logarithmic regression (LnReg on a graphing calculator) fits y=a+bln⁡x with the natural logarithm, and needs every input to be positive.
  • The model predicts an output when you substitute an input, and gives an input when you set it equal to a value and undo ln⁡ by raising e to both sides.

Part 2 Learn it

Four short ideas, each checked as you go

2a. Inputs that multiply, outputs that step

A logarithmic function is the inverse of an exponential function, so it answers the backward version of a growth question. A culture starts with 200 cells and doubles every generation, so after n generations it has x=200⋅2n cells. Turn that around and ask how many generations it takes to reach x cells. The answer is n(x)=log2⁡(x200).

Generations needed to reach x cells, n(x)=log2⁡(x200)
Cells xGenerations n(x)
2000
4001
8002
1,6003
3,2004

Read the table down. Each input is 2 times the one before, while each output is 1 more. That is the pattern to look for in data: inputs that change proportionally over equal-length output intervals. When you see it, a logarithmic model is a good candidate.

A whole-number output has a plain meaning. n(1600)=3 says the starting 200 was multiplied by 2 three times to reach 1,600. The output counts the multiplications.

The Wi-Fi readings in Think first have the same shape. The distances 2, 4 and 8 meters multiply by 2, and the readings drop by 6 each time.

Quick check · Fill the statement

No calculator. A culture starts with 300 cells and triples every generation, so after n generations it has x=300⋅3n cells. Tap a blank, then tap an answer.

The model n(x)=log3⁡(x300) gives n(8100)= , the number of times 300 was multiplied by 3. Each step of 1 in n goes with a cell count the one before, and n(x) is the of the function x=300⋅3n.

2b. From a proportion and a zero, or from two points

A logarithmic model can be built from either of two kinds of information.

A proportion and a real zero. The proportion is the factor the input is multiplied by for each step of 1 in the output. The real zero is the input where the output is 0. For the culture, the proportion is 2 and the zero is at x=200, since it takes no generations to have the 200 cells you started with. A base 2 logarithm that equals 0 at 200 is n(x)=log2⁡(x200).

Two input-output pairs. Say the phone reads −36 at 2 meters and −48 at 8 meters. The distances that matter are doublings, so use f(d)=a+blog2⁡d. Since log2⁡2=1 and log2⁡8=3, the two pairs give

−36=a+b−48=a+3b

Subtract the first from the second: −12=2b, so b=−6 and a=−36+6=−30. The model is f(d)=−30−6log2⁡d. Check it on the reading you did not use: f(4)=−30−12=−42, which matches.

Quick check · Calculate

No calculator. A nature reserve counts bird species in survey plots of different sizes. A model S(x)=a+blog3⁡x, with x the plot area in hectares, gives 10 species for a 3-hectare plot and 18 species for a 27-hectare plot. How many species does the model predict for a 243-hectare plot?

2c. Shaping alogb⁡x to fit the context

The plain model f(x)=alogb⁡x is 0 at x=1, and its output changes by a each time x is multiplied by b. A context rarely lines up with that, so you transform it to match what the context tells you.

Building a model that rises 5 each time the input doubles
What the context saysTransformationModel
The output is 0 at x=1None5log2⁡x
The output is 0 at x=8Horizontal dilation: divide x by 85log2⁡(x8)
The output is 20 at x=1Vertical translation: add 2020+5log2⁡x
The input starts at 0, where a logarithm is not definedHorizontal translation: use x+15log2⁡(x+1)
The output falls 5 each time x doublesReflection: make a negative−5log2⁡x

Check a row before trusting it. In 5log2⁡(x8), putting in x=8 gives 5log2⁡1=0, and doubling x adds 5.

One more thing about the base. The natural logarithm, ln⁡x with base e, is often useful in modeling real data. Any base can be rewritten that way, since log2⁡x=ln⁡xln⁡2, so the choice of base changes how a model looks, not what it predicts.

Quick check · Match

No calculator. Each description gives a feature of a context. Tap a description, then the model that fits it.

2d. Logarithmic regression, then predicting and solving

Real data never land exactly on a curve, so you let technology fit one. On a graphing calculator, enter the inputs and outputs as two lists and run a logarithmic regression, LnReg. It returns y=a+bln⁡x, using the natural logarithm. It needs every input to be positive, because ln⁡x is not defined for x≤0.

Then the model does two jobs. Suppose LnReg gives y=4.2+2.5ln⁡x.

  • Predict an output. At x=10, y=4.2+2.5ln⁡10≈9.956.
  • Find an input. For y=12, subtract and divide to get ln⁡x=12−4.22.5=3.12, then raise e to both sides: x=e3.12≈22.646.

The last step undoes ln⁡, so it uses e, not 10. Keep the calculator's full values while you work and round at the end. And when an input is far outside the data, the answer assumes the pattern keeps going, so say that when you use it.

Quick check · Decide and justify

No calculator. A logarithmic regression on a data set gives y=12.4+3.1ln⁡x. Which expression gives the input at which the model's output is 25?

Which reason supports your answer?

Part 3 Watch it done

A game's levels from two data points

Watch each step, then do the last one yourself.

In a phone game, the level goes up by the same amount each time a player's total points double. A player is level 12 at 1,000 points and level 20 at 16,000 points. Write a model L(p) for the level at p points, find the level at 64,000 points, and find the points needed for level 30.

  1. Step 1 · Find the proportion

    16,000 is 1,000 multiplied by 16, and 16=24, so that is four doublings. Over those four doublings the level went from 12 to 20, up 8. So each doubling of the points adds 2 levels.

  2. Step 2 · Transform $a\log_b x$ to match

    Start from 2log2⁡p, which rises 2 every time p doubles. Divide p by 1,000 inside the logarithm so it is 0 at p=1000, then add 12 so the level there is 12: L(p)=12+2log2⁡(p1000). Check the other pair: L(16000)=12+2log2⁡16=12+8=20.

  3. Why this step?

    Why divide p by 1,000 inside the logarithm?

    Because log2⁡1=0. Dividing by 1,000 makes the logarithm 0 exactly at p=1000, so the level there is the 12 that was added on. Without it, 12+2log2⁡1000 is about 31.9, not 12.

  4. Step 3 · Predict an output

    At 64,000 points, 640001000=64=26, so L(64000)=12+2⋅6=24.

  5. Your step · Calculate

    No calculator. Finish it. How many points does the model say a player needs to reach level 30?

    points

Part 4 Try it

Fit a typing practice curve

A student practices typing and records their speed, in words per minute, after 1 to 12 weeks of practice (invented data): 19, 27, 33, 37, 42, 44, 45, 46, 50, 50, 52 and 52. Early weeks bring big gains and later weeks small ones. The lab below opens on these data with the logarithmic model selected, which is the same fit a calculator's LnReg gives. Read the model it prints, type 16 into the prediction box, then find the week where the model reaches 48 words per minute.

Lab

Model Builder

The data set is the typing practice data. The lab prints the model as y=a+bln⁡x and shows its exact predictions in the Predicted y box. To find an input, solve the printed model for x, or try values of x in the box until the prediction is 48.

Open the full Model Builder lab

Try it · Calculate

Graphing calculator required. A student's typing speed, in words per minute, is 19, 27, 33, 37, 42, 44, 45, 46, 50, 50, 52 and 52 after 1 to 12 weeks of practice. Run a logarithmic regression on these data. What typing speed does the model predict after 16 weeks? Give your answer to one decimal place.

words per minute

Try it · Calculate

Graphing calculator required. A student's typing speed, in words per minute, is 19, 27, 33, 37, 42, 44, 45, 46, 50, 50, 52 and 52 after 1 to 12 weeks of practice. Run a logarithmic regression on these data. After how many weeks does the model predict a speed of 48 words per minute? Give your answer to one decimal place.

weeks

Part 5 Explain it

Write it the way the exam asks

Nothing you type leaves this page.

Free response is 37.5% of the exam score. This one is shaped like Question 2, Modeling a Non-Periodic Context.

Free-response practice · Question 2 style

Graphing calculator required. A programmer times how long a search takes on sorted lists of different sizes. For list sizes n of 1, 2, 4, 8, 16, 32 and 64 thousand items, the average search times T are 1.2, 1.5, 1.9, 2.24, 2.52, 2.83 and 3.19 microseconds (invented data). (A) Using values from the data, explain why a logarithmic function model is appropriate. (B) Use a logarithmic regression to find a model T(n)=a+bln⁡n, with n in thousands of items. (C) Use the model to predict the search time for a list of 100 thousand items. (D) Use the model to find the list size for which the model predicts a search time of 4 microseconds.

Model answer

(A) Each time the list size doubles, the time goes up by about the same amount: 0.30, 0.40, 0.34, 0.28, 0.31 and 0.36 microseconds. Inputs that change proportionally over roughly equal output steps are the pattern of a logarithmic function. (B) T(n)=1.206+0.477ln⁡n. (C) T(100)=1.206+0.477ln⁡100≈3.401 microseconds, using the calculator's unrounded values. (D) Set 1.206+0.477ln⁡n=4, so ln⁡n≈5.862 and, keeping the unrounded values, n=eln⁡n≈351.480. The model predicts 4 microseconds for a list of about 351 thousand items. Both (C) and (D) go past the 64 thousand items in the data, so they assume the pattern continues.

Score your own answer. This is a self-check, not a grade. Tick each point your answer makes.

Part 6 Check yourself

Signal down a hallway

The three case questions use the same table. Answer them from it.

A student walks down a long school hallway with a phone and records the Wi-Fi signal strength at several distances from the router. Signal strength is measured in dBm: the readings are negative, and a reading closer to 0 is a stronger signal. A logarithmic regression of signal strength against distance is called W(d).

Wi-Fi signal strength at distance d from the router (invented data)
d (meters)Signal (dBm)
1−30
2−37
3−39
4−41
6−46
8−49
12−52
16−54
24−58
32−61

Case question 1 · Multiple choice

No calculator. Which feature of the Wi-Fi table best supports using a logarithmic model for signal strength against distance?

Case question 2 · Calculate

Graphing calculator required. Use a logarithmic regression W(d)=a+bln⁡d on the Wi-Fi table, with d the distance in meters and W(d) the signal strength in dBm. What signal strength does the model predict at 20 meters? Give your answer to one decimal place.

dBm

Case question 3 · Calculate

Graphing calculator required. Use a logarithmic regression W(d)=a+bln⁡d on the Wi-Fi table, with d the distance in meters and W(d) the signal strength in dBm. At what distance does the model predict a signal strength of −60 dBm? Give your answer to the nearest tenth of a meter.

meters

The rest stand on their own and do not use the case.

Check yourself · Spot the error

No calculator. A student builds a model for the number of rounds R(x) a knockout tournament needs for x teams, where each round knocks out half of the teams still playing. Tap the first line with a mistake.

Check yourself · Sort it

No calculator. Tap a card, then the bin it belongs in.

A logarithmic model fits

Not a logarithmic pattern

Check yourself · Put it in order

No calculator. A student has a data table and needs the input at which a logarithmic regression model reaches an output of 70. Put the steps in order.

Part 7 Keep it

Bring back earlier ideas

Pulling an older idea back up is what makes it last.

A keypad lock uses a code of n digits, each from 0 to 9. It has N(n)=10n possible codes, so a 4-digit lock has 10,000 of them. A lock maker works the other way round. She starts from how many possible codes she wants and needs the number of digits that gives exactly that many. That is a question for the inverse of N.

From 2.10 Inverses of Exponential Functions · Decide and justify

No calculator. Which function D takes a number of possible codes x and returns the number of digits that gives exactly that many codes?

Which reason supports your answer?

From 2.6 Competing Function Model Validation · Spot the error

No calculator. A food truck's model predicts 132 lunches on Friday, and the truck sells 120. A student works out what the residual says. Tap the first line with a mistake.

In three lines

  • A logarithmic model fits when the inputs multiply over equal output steps; a whole-number output counts the multiplications.
  • Build it from a proportion and a real zero, from two input-output pairs, by transforming alogb⁡x, or by LnReg, which fits y=a+bln⁡x.
  • Substitute to predict an output; to find an input, isolate ln⁡x and raise e to both sides.

Vocabulary

Logarithmic function model
A function such as f(x)=alogb⁡x, or a transformation of it, used to describe a situation where the inputs change proportionally over equal-length output intervals.
Proportion
The factor the input is multiplied by for each equal step in the output of a logarithmic model, such as 2 when every doubling adds the same amount.
Real zero
An input where the model's output is 0, which together with a proportion is enough to build a logarithmic model.
Logarithmic regression
A fit by technology, such as LnReg on a graphing calculator, of a model y=a+bln⁡x to a data set whose inputs are all positive.
Natural logarithm
The logarithm with base e, written ln⁡x, the base a logarithmic regression uses and the inverse of ex.
Course alignment, for teachers

AP Precalculus topic 2.14, Unit 2: Exponential and Logarithmic Functions.

  • Skill 1.C: Construct new functions, using transformations, compositions, inverses, or regressions, that may be useful in modeling contexts, criteria, or data, with and without technology.
  • Skill 3.B: Apply numerical results in a given mathematical or applied context.

This lesson maps all 6 essential knowledge statements of the topic to the part that teaches each one: 6 are checked by a scored question. The map is in the lesson file.