AP Precalculus · Unit 2 · Topic 2.14

    2.14 Logarithmic Function Context and Data Modeling

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    A logarithmic model f(x)=a+bln⁡xf(x) = a + b\ln x (or with any base) fits data where multiplying the input by a constant factor adds a constant amount to the output: the opposite pattern to exponential data. Logarithmic scales such as pH =−log⁡[H+]= -\log[\text{H}^+] and decibels L=10log⁡II0L = 10\log\frac{I}{I_0} turn huge ranges of values into small, manageable numbers. A model can predict an output, or be solved to find the input that gives a target output.

    What you need to know

    • Recognise data and contexts suited to a logarithmic model.
    • Build a logarithmic model from a pattern or a log regression.
    • Use pH and decibel models and interpret what a change of one unit means.
    • Use a logarithmic model to predict outputs and to find inputs.

    The logarithmic pattern

    In the data below, each input is double the last, and each output is 3 more than the last. Multiplying inputs, adding outputs: that is the logarithmic pattern (topic 2.10).

    Inputs double, outputs add 3
    x124816
    y58111417

    Since log⁡2x\log_2 x goes 0, 1, 2, 3, 4 at those inputs, the data fit y=5+3log⁡2xy = 5 + 3\log_2 x exactly. A calculator's logarithmic regression fits y=a+bln⁡xy = a + b\ln x instead, giving y=5+4.328ln⁡xy = 5 + 4.328\ln x; the two are the same function, because log⁡2x=ln⁡xln⁡2\log_2 x = \frac{\ln x}{\ln 2} and 3ln⁡2≈4.328\frac{3}{\ln 2} \approx 4.328.

    Increasing and concave down: equal output steps need longer and longer input steps.
    • Predict: at x=32x = 32, y=5+3(5)=20y = 5 + 3(5) = 20.
    • Find an input: for y=23y = 23, 3log⁡2x=183\log_2 x = 18, so log⁡2x=6\log_2 x = 6 and x=26=64x = 2^6 = 64.

    Logarithmic scales in science

    pH. The acidity of a solution is pH=−log⁡[H+]\text{pH} = -\log[\text{H}^+], where [H+][\text{H}^+] is the hydrogen-ion concentration in moles per litre. If [H+]=3.2×10−5[\text{H}^+] = 3.2 \times 10^{-5}, the pH is −log⁡(3.2×10−5)≈4.49-\log(3.2 \times 10^{-5}) \approx 4.49. Because of the minus sign, a lower pH means more acidic, and a drop of 1 in pH means ten times the hydrogen-ion concentration.

    Decibels. Sound level is L=10log⁡II0L = 10\log\frac{I}{I_0} dB, where I0I_0 is the quietest audible intensity. A sound 1,000 times as intense as another is 10log⁡1000=3010\log 1000 = 30 dB louder, whatever the starting level. Each extra 10 dB means ten times the intensity.

    Using a model sensibly

    A logarithmic model has a vertical asymptote, so it cannot be used at input 0 or below, and it grows without bound, slowly. In context, check that the inputs make sense (no negative concentrations) and that predictions far beyond the data are reasonable: a model of test scores against hours of study will eventually predict more than 100%.

    Logarithmic or exponential? The two patterns are mirror images, and it is easy to mix them up. In exponential data, the inputs go up by a constant amount and the outputs are multiplied by a constant factor. In logarithmic data, the inputs are multiplied by a constant factor and the outputs go up by a constant amount. So look at which column changes by multiplication: if it is the output column, think exponential; if it is the input column, think logarithmic. Writing 'multiply' or 'add' above each column takes seconds and settles the choice.

    Key terms

    Logarithmic model
    y=a+blog⁡cxy = a + b\log_c x; fits data where equal input ratios give equal output differences.
    pH
    −log⁡[H+]-\log[\text{H}^+]; a decrease of 1 means ten times the acidity.
    Decibel
    10log⁡II010\log\frac{I}{I_0}; each 10 dB is a tenfold increase in intensity.
    Logarithmic regression
    A calculator fit of y=a+bln⁡xy = a + b\ln x to data.

    Common mistakes

    • Thinking pH 3 is twice as acidic as pH 6.

      It has 103=100010^3 = 1000 times the hydrogen-ion concentration.

    • Choosing a log model for data whose outputs multiply as inputs add.

      That pattern is exponential; logs are the reverse.

    • Using a log model at x = 0.

      The model is undefined there; restrict the domain.

    How this topic is tested

    • Justify a log model with the pattern: 'when x doubles, y increases by about 3'.
    • Interpret coefficients in context with units.
    • When finding an input, rewrite the log equation in exponential form.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 2 · Multiple Representations

      Which data are best modelled by a logarithmic function?

    2. Question 2 · MP 1 · Procedural and Symbolic Fluency

      A solution has [H+]=10−3[\text{H}^+] = 10^{-3} mol/L. What is its pH?

    3. Question 3 · MP 3 · Communication and Reasoning

      Sound A is 20 dB louder than sound B. How many times as intense is A?

    4. Question 4 · MP 1 · Procedural and Symbolic Fluency

      Using y=5+3log⁡2xy = 5 + 3\log_2 x, for what x is y = 14?

    5. Question 5 · MP 3 · Communication and Reasoning

      A log regression for plant height (cm) against days gives h(d)=2.1+6.4ln⁡dh(d) = 2.1 + 6.4\ln d. Which is a reasonable interpretation of 6.4?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Modeling a Non-Periodic Context (short) · 3 points

    The loudness of a sound is L(I)=10log⁡II0L(I) = 10\log\frac{I}{I_0} decibels, where II is the intensity and I0I_0 a fixed reference intensity.

    1. (a) Find the increase in loudness when the intensity is multiplied by 1,000.
    2. (b) A sound has loudness 85 dB. Find its intensity as a multiple of I0I_0.

    Connected topics

    Frequently asked questions

    Which base should a log model use?

    Any base gives the same family of models. Calculators use ln; contexts like pH and decibels use base 10.

    How is a log model different from a square-root model?

    Both rise slowly and are concave down, but a log model adds the same amount each time x is multiplied by a constant. Check that pattern in the data.

    Is the Richter scale logarithmic too?

    Yes. Each whole number on the magnitude scale means ten times the measured wave amplitude.

    How this shows up on the exam42 multiple-choice questions (29 without a calculator) and 4 free-response questions of 6 points. See what each one asks you to do.Full-length AP Precalculus practice examsUnit 2 is one of the 3 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ, calculator and no-calculator parts), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Exponential and Logarithmic Functions on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Precalculus practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 2 practice test: 75 questions with explanations

    All topics in Unit 2: Exponential and Logarithmic Functions

    1. 2.1 Change in Arithmetic and Geometric Sequences
    2. 2.2 Change in Linear and Exponential Functions
    3. 2.3 Exponential Functions
    4. 2.4 Exponential Function Manipulation
    5. 2.5 Exponential Function Context and Data Modeling
    6. 2.6 Competing Function Model Validation
    7. 2.7 Composition of Functions
    8. 2.8 Inverse Functions
    9. 2.9 Logarithmic Expressions
    10. 2.10 Inverses of Exponential Functions
    11. 2.11 Logarithmic Functions
    12. 2.12 Logarithmic Function Manipulation
    13. 2.13 Exponential and Logarithmic Equations and Inequalities
    14. 2.14 Logarithmic Function Context and Data Modeling
    15. 2.15 Semi-log Plots

    Other units in AP Precalculus

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.