HL AI · Modelling

Logarithmic scales and why they appear in HL AI modelling

26 Aug 2026 · by Pete Bromfield · 7 min read

Logarithmic scales and why they appear in HL AI modelling

In my decade of teaching IB Maths, I have seen students encounter data sets that just do not behave. You plot points, look for a trend, and sometimes the pattern is clear: linear, quadratic, exponential. But then there are those times when the data spans such a vast range, or curves so sharply, that a simple linear or exponential fit feels inadequate. Visualising it on a standard linear graph can make the critical early changes seem insignificant, while later changes dominate the plot. This is where logarithmic scales become indispensable, especially in IB Maths Applications and Interpretation (AI) HL. My HL AI students often first meet logarithmic scales in passing – perhaps discussing the Richter scale for earthquakes or pH values in Chemistry. They understand it compresses large numbers. But the real power, particularly for modelling, comes when we use these scales not just to display data, but to transform it, allowing us to apply the familiar tools of linear regression to seemingly complex non-linear relationships. This technique is a cornerstone of advanced modelling in HL AI, offering a sophisticated way to analyse and predict real-world phenomena.

What is a Logarithmic Scale? The Basics

At its heart, a logarithmic scale changes how distances represent values. On a standard linear scale, each tick mark represents an equal increment. For example, the distance from 1 to 2 is the same as the distance from 10 to 11. On a logarithmic scale, however, equal distances represent equal *ratios*. The distance from 1 to 10 is the same as the distance from 10 to 100, or from 100 to 1000. Each step multiplies the value by a fixed factor, rather than adding a fixed amount. The most common logarithmic scales use base 10 (`$\log_{10} x$`) or the natural logarithm base `$e$` (`$\ln x$`). The choice of base often depends on the context or the type of non-linear model we are trying to linearise. The primary benefit of this compression is its ability to effectively display and compare data that spans many orders of magnitude. Imagine plotting bacterial growth that starts at 10 cells and grows to 10 billion cells; a linear scale would render the initial growth almost invisible. A logarithmic scale makes these proportional changes visible and comparable across the entire range.

When and Why Do We Use Log Scales? Real-world Context

The world is full of phenomena that operate on a logarithmic scale, even if we don't always notice it immediately. The human ear perceives sound intensity logarithmically, which is why the decibel scale (`dB`) is logarithmic. An increase of 10 dB means the sound intensity has multiplied by a factor of 10. Similarly, the brightness of stars is measured on a logarithmic magnitude scale, and earthquake intensity is described by the Richter scale, where each whole number increase represents a tenfold increase in measured amplitude. In each of these cases, the *relative* change is more important or more meaningful than the *absolute* change. For a small earthquake, an increase from magnitude 2 to 3 represents a significant proportional jump in energy released. For a large earthquake, an increase from magnitude 7 to 8 represents the same proportional jump, even though the absolute difference in energy is far greater. Logarithmic scales provide a natural way to represent these proportional relationships and to compare vastly different magnitudes on a single, manageable graph. My students often grasp this better when we discuss real-world examples they have encountered outside of mathematics class.

Log Scales in IB Maths HL AI: Modelling Growth and Decay

In IB Maths HL AI, we frequently encounter data that exhibits non-linear growth or decay, often best described by exponential or power functions. These models are crucial for understanding everything from population dynamics and disease spread to financial investments and the performance of algorithms. Consider two common non-linear models:
  1. **Exponential Model:** `$y = ae^{kx}$` (or `$y = ab^x$`) This describes situations where the rate of change is proportional to the current value, leading to rapid increases or decreases. Think about compound interest or unchecked population growth.
  2. **Power Model:** `$y = ax^b$` This describes relationships where one quantity varies as a power of another. Examples include the relationship between the period of a pendulum and its length, or certain scaling laws in biology and physics.
The challenge with these models is that they are not linear. Fitting a straight line to their raw data would be inappropriate and yield poor predictions. This is precisely where logarithmic transformations come into play for HL AI students.

Linearising Data: The Power of Logarithmic Transformations

The genius of using logarithmic scales in modelling lies in their ability to transform non-linear relationships into linear ones. This is a powerful technique in HL AI because once a relationship is linear, we can apply the well-understood methods of linear regression to find the best-fit line, determine its equation, and then use it for interpolation and extrapolation. Let's look at how this works for our two common models:

Transforming an Exponential Model

Given an exponential model `$y = ae^{kx}$`, we can apply the natural logarithm (`$\ln$`) to both sides: `$\ln y = \ln (ae^{kx})$` Using the logarithm property `$\ln (MN) = \ln M + \ln N$`: `$\ln y = \ln a + \ln (e^{kx})$` Using the logarithm property `$\ln (M^P) = P \ln M$` and knowing `$\ln e = 1$`: `$\ln y = \ln a + kx$` Now, let `$Y = \ln y$` and `$A = \ln a$`. The equation becomes: `$Y = A + kx$` This is the equation of a straight line in the form `$Y = mx + c$`, where `$m = k$` and `$c = A = \ln a$`. So, if we plot `$\ln y$` against `$x$`, and the data is truly exponential, we should see a linear relationship. My students do this on their GDCs often, entering transformed data into lists and then performing linear regression.

Transforming a Power Model

Given a power model `$y = ax^b$`, we can apply the natural logarithm (or base 10 logarithm) to both sides. Let's use `$\ln$`: `$\ln y = \ln (ax^b)$` Using the logarithm property `$\ln (MN) = \ln M + \ln N$`: `$\ln y = \ln a + \ln (x^b)$` Using the logarithm property `$\ln (M^P) = P \ln M$`: `$\ln y = \ln a + b \ln x$` Now, let `$Y = \ln y$`, `$A = \ln a$`, and `$X = \ln x$`. The equation becomes: `$Y = A + bX$` Again, this is the equation of a straight line in the form `$Y = mX + c$`, where `$m = b$` and `$c = A = \ln a$`. So, if we plot `$\ln y$` against `$\ln x$`, and the data follows a power law, we should see a linear relationship. This ability to linearise data is critical. Once we have a linear relationship, we can use the GDC's linear regression function to find the equation of the line of best fit (`$Y = mX + c$`). From the slope `$m$` and the y-intercept `$c$`, we can then find the original parameters `$a$`, `$k$`, or `$b$` for our non-linear model. For example, if `$c = \ln a$`, then `$a = e^c$`. This process is central to how we approach modelling problems in `/paper3-hlai.html`.
Tip: When deciding between an exponential model ($y = ae^{kx}$) and a power model ($y = ax^b$) for a given dataset, plot both transformed graphs. Create one scatter plot of $(\ln y)$ vs $x$ and another of $(\ln y)$ vs $(\ln x)$. The graph that shows a more linear pattern, indicated by a higher Pearson product-moment correlation coefficient ($r$) or a visual inspection, suggests the more appropriate model.

Practical Applications and IB Exam Relevance

The skill of linearising data using logarithmic transformations is highly valued in IB HL AI exams, particularly in Paper 3 tasks and extended response questions in Paper 2. You might be given a set of data points and asked to determine the best-fit model, or to transform data and perform linear regression. Understanding how to interpret the parameters of the linearised model back into the context of the original non-linear model is crucial. For instance, if you find a slope `$m$` for your `$\ln y$` vs `$x$` plot, that `$m$` directly represents the growth rate `$k$` in the exponential model `$y = ae^{kx}$`. This concept is not just for exams; it reflects real-world data analysis. Scientists, economists, and data analysts regularly employ these techniques to make sense of complex datasets. From predicting the spread of a virus to modelling the scaling properties of biological organisms, logarithmic transformations offer a powerful analytical lens. Mastering these transformations means you gain a robust tool for approaching diverse modelling problems. My students often find that once they move past the initial unfamiliarity, the elegance and utility of these methods become clear. For further review of these concepts, my `/notes.html` page covers the full derivations and applications. In summary, logarithmic scales are far more than just a way to squeeze large numbers onto a graph. In the context of IB Maths HL AI, they are a fundamental tool for transforming complex non-linear relationships into manageable linear ones. This transformation allows us to leverage linear regression, a technique we understand well, to fit sophisticated exponential and power models to real-world data. By understanding when and how to apply these logarithmic transformations, you unlock a powerful method for analysing, interpreting, and making predictions about phenomena that display non-linear behaviour. It is a vital skill that extends beyond the classroom, providing a robust framework for quantitative analysis in many fields.

Want to actually drill this?

Every IB Maths topic on this page has a full practice engine at ibmathrevision.com — with AI grading trained on real IB mark schemes.

Get access →