Semi-Log Plots
Practise this section (12)A video goes viral. After 1 hour it has 10 views, after 2 hours 100, after 3 hours 1,000, after 4 hours 10,000. On an ordinary graph the first few points sit on the floor and the last one shoots off the page. Can we draw a graph where all the points are easy to see, and where "growing by the same factor every hour" looks like something simple? That is what a semi-log plot does.
Why use a logarithmic axis?
On a regular axis, equal steps mean equal differences: the gap from 0 to 10 is the same as the gap from 10 to 20.
On a logarithmic axis, equal steps mean equal factors: the gap from 1 to 10 is the same as the gap from 10 to 100 and from 100 to 1000. Each step multiplies by 10.
Here is one decade of a log axis. The labeled ticks 10 and 100 are far apart, but the ticks in between get squeezed together toward the top.
One decade of a logarithmic axis: the ticks at 1, 10, 100 and 1000 are equally spaced (each is ×10) and the minor ticks crowd together going up. The point halfway between 10 and 100 is ≈ 31.6, not 55.The midpoint of the gap between 10 and 100 is not the average 55. Halfway up means $\log y = 1.5$ (halfway between $\log 10=1$ and $\log 100=2$), so $y = 10^{1.5} \approx 31.6$. Notice that $31.6^2 \approx 1000 = 10 \times 100$: halfway on a log axis is the geometric middle, not the arithmetic middle.
On a semi-log plot, the vertical axis shows labeled ticks at $1, 10, 100, 1000$, equally spaced. A point is plotted halfway vertically between the ticks for 10 and 100.…
On a semi-log plot, the vertical axis shows labeled ticks at $1, 10, 100, 1000$, equally spaced. A point is plotted halfway vertically between the ticks for 10 and 100. What value of $y$ does it represent? Explain why it is not 55.
A straight line means exponential
Why do we bother with this axis? Because of what happens to exponential functions. Start with $y = ab^x$ and take the log of both sides:
$$\log y = \log(ab^x) = \log a + \log(b^x) = \log a + x\log b$$Rearrange it as $\log y = (\log b)\,x + \log a$. That is a linear equation in $x$, with slope $\log b$ and $y$-intercept $\log a$.
The reason is the log rule $\log(\text{product}) = \log + \log$. An exponential function multiplies $y$ by the same factor $b$ for each step in $x$. Multiplying by $b$ adds $\log b$ to $\log y$. Equal additions mean equal rises, which is a straight line.
A straight line in the (x, log y) plane with y-intercept log a and a slope triangle showing that when x increases by 1, log y rises by log b.So when you see a straight line on a semi-log plot, you can read the exponential model straight off it.
You can also test a table. Since $\log y_2 - \log y_1 = \log\dfrac{y_2}{y_1}$, equal steps in $x$ give a constant difference in $\log y$ exactly when the ratios $\dfrac{y_2}{y_1}$ are constant, which is the signature of an exponential.
Try the slider below. Think of it as the $(x, \log y)$ plane: $m$ is $\log b$ and $c$ is $\log a$. Steeper means a bigger growth factor, higher means a bigger starting value.
A table gives $x=0,1,2,3$ and $y=10, 100, 1000, 10000$. Compute $\log y$ for each point. What is the slope of the line through the points $(x,\log y)$? What does this…
A table gives $x=0,1,2,3$ and $y=10, 100, 1000, 10000$. Compute $\log y$ for each point. What is the slope of the line through the points $(x,\log y)$? What does this say about the data?
Three functions are $f(x)=5\cdot 3^x$, $g(x)=5x+3$, and $h(x)=x^2$. Which of them will appear as a straight line on a semi-log plot, with $x$ on a regular axis and $y$…
Three functions are $f(x)=5\cdot 3^x$, $g(x)=5x+3$, and $h(x)=x^2$. Which of them will appear as a straight line on a semi-log plot, with $x$ on a regular axis and $y$ on a logarithmic axis? Explain.
A semi-log model is $\log y=2x+1$. Rewrite it in the form $y=ab^x$ and identify $a$ and $b$. Explain what the slope 2 and the intercept 1 tell you about $b$ and $a$.
A semi-log model is $\log y=2x+1$. Rewrite it in the form $y=ab^x$ and identify $a$ and $b$. Explain what the slope 2 and the intercept 1 tell you about $b$ and $a$.
Building the model
Now we put the pieces together. To build an exponential model from data or from a semi-log line:
-
Replace each $y$ by $\log y$ (or $\ln y$).
-
Find the line $\log y = mx + c$: use two points, or a calculator regression on $(x, \log y)$.
-
Convert: $b = 10^m$, $a = 10^c$, so $y = ab^x$.
Using two points, the slope is the usual formula applied to $(x, \log y)$:
$$m = \frac{\log y_2 - \log y_1}{x_2 - x_1}$$Notice the last step. Keeping the model in the form $y = 10^{mx+c}$ is more accurate than rounding $a$ and $b$ first. Round only at the end.
(Calculator active) The data are: $x=0,1,2,3,4$ and $y=4,12,36,108,324$. (a) Compute $\log y$ for each point, rounded to three decimal places. (b) Find the slope and…
(Calculator active) The data are: $x=0,1,2,3,4$ and $y=4,12,36,108,324$.
(a) Compute $\log y$ for each point, rounded to three decimal places.
(b) Find the slope and intercept of the line $\log y=mx+b$.
(c) Convert the line back to $y=ab^x$ and check it against the data.
(Calculator active) A semi-log line passes through $(1, 2.0)$ and $(4, 3.5)$ in the $(x,\log y)$ plane. (a) Find the equation $\log y=mx+b$. (b) Write the model as…
(Calculator active) A semi-log line passes through $(1, 2.0)$ and $(4, 3.5)$ in the $(x,\log y)$ plane.
(a) Find the equation $\log y=mx+b$.
(b) Write the model as $y=a\,b^x$ with exact values of $a$ and $b$, then approximate them.
(c) Find $y$ when $x=6$.
(d) Interpret $a$ and $b$ in terms of $y$.
Growth rate, doubling time, and half-life
Once you have $y = ab^x$, the parts have meaning in context.
-
$a$ is the starting value ($y$ when $x = 0$).
-
$b$ is the factor by which $y$ is multiplied each time $x$ increases by 1.
-
If $b > 1$, $b = 1 + r$ where $r$ is the percent growth rate per unit. If $0 < b < 1$, $b = 1 - r$ and $r$ is the percent decay rate.
Why these formulas? Each unit of $x$ adds $m$ to $\log y$. To double $y$ you need to add $\log 2 \approx 0.301$ to $\log y$, so you need $\log 2 / m$ units. To multiply $y$ by 10 you must add $\log 10 = 1$.
Comparing two models is also easier on the log scale. Both are straight lines, so you can find where they cross by setting the right sides equal.
(Calculator active) A semi-log analysis with natural logarithms gives $\ln y=0.07x+3$, where $x$ is in years. (a) Rewrite the model in the form $y=ab^x$. (b) Find the…
(Calculator active) A semi-log analysis with natural logarithms gives $\ln y=0.07x+3$, where $x$ is in years.
(a) Rewrite the model in the form $y=ab^x$.
(b) Find the annual percent growth rate.
(c) Find $y$ when $x=10$.
A bacteria culture is counted at times $t=0,2,4,6$ hours. The values $\log_{10}N$ are $1.70, 2.30, 2.90, 3.50$. (a) Find the slope per hour and the intercept of the line…
A bacteria culture is counted at times $t=0,2,4,6$ hours. The values $\log_{10}N$ are $1.70, 2.30, 2.90, 3.50$.
(a) Find the slope per hour and the intercept of the line $\log N=mt+b$.
(b) Write $N$ as a function of $t$ in the form $N=ab^t$ (with $b\approx 2$).
(c) State the doubling time in hours, and estimate $N$ at $t=10$.
Two radioactive samples are monitored. On a semi-log plot, sample A follows $\log y=-0.1x+3$ and sample B follows $\log y=-0.3x+4$, where $x$ is in days and $y$ in…
Two radioactive samples are monitored. On a semi-log plot, sample A follows $\log y=-0.1x+3$ and sample B follows $\log y=-0.3x+4$, where $x$ is in days and $y$ in grams-equivalents.
(a) Which sample starts with more, and which decays faster? Justify from the slopes and intercepts.
(b) Rewrite each model as $y=ab^x$, with $b$ to three decimal places.
(c) Find the day when both samples have the same amount, and find that amount.
(d) Which sample has the shorter half-life? Explain.
Checking the fit
Real data are never perfectly on a line. Two questions matter: how close are the points to a line, and does the pattern of misses show a problem?
Residuals in the log scale. For a line fitted to $(x, \log y)$, the residual at each point is
$$\text{residual} = \log y_{\text{actual}} - \log y_{\text{predicted}}$$If an exponential model fits, the residuals are small and scatter randomly above and below zero. A curved pattern (negative, then positive, then negative, for instance) says the data are not exponential.
A second quick test is the differences of $\log y$. For exponential data they are constant, so growing or shrinking differences point to something else.
Remember two limits.
Back to the viral video: the views $10, 100, 1000, 10000$ have $\log y = 1, 2, 3, 4$, a perfect line of slope 1. Each hour multiplies the views by $10^1 = 10$. On a semi-log plot that is a straight line, and you can read the growth rate right off the slope.
(Calculator active) The data are $x=0,1,2,3,4,5$ and $y=7, 17.5, 43.75, 109.375, 273.4375, 683.59375$. The values of $\log y$ are…
(Calculator active) The data are $x=0,1,2,3,4,5$ and $y=7, 17.5, 43.75, 109.375, 273.4375, 683.59375$. The values of $\log y$ are $0.845, 1.243, 1.641, 2.039, 2.437, 2.835$.
(a) Show that the points $(x,\log y)$ are linear and find the line.
(b) Convert it to the model $y=ab^x$.
(c) Use the model to predict $y$ at $x=8$ and explain the meaning of $b$.
(d) Explain why this supports an exponential model but does not prove one.
For a data set, the points $(x,\log y)$ are $(0,1),(1,1.5),(2,2.2),(3,3.1),(4,4.2)$. (a) Compute the differences between consecutive $\log y$-values. Do the data follow…
For a data set, the points $(x,\log y)$ are $(0,1),(1,1.5),(2,2.2),(3,3.1),(4,4.2)$.
(a) Compute the differences between consecutive $\log y$-values. Do the data follow an exponential model? Explain.
(b) Jayden draws the line through the first and last points, $\log y=0.8x+1$. Compute its residuals in the $\log y$ scale at each $x$.
(c) Compare the actual $y$ and the predicted $y$ at $x=2$.
(d) Describe how fast the data grow compared with an exponential model.
(Calculator active) On a semi-log plot, the number of subscribers of a service follows a straight line that passes through $(0, 2)$ in the $(t,\log y)$ plane, where $t$…
(Calculator active) On a semi-log plot, the number of subscribers of a service follows a straight line that passes through $(0, 2)$ in the $(t,\log y)$ plane, where $t$ is in years and $y$ in thousands. The slope is $0.04$.
(a) Write the model $y=ab^t$.
(b) Find the annual percent growth rate.
(c) How many years does it take for $y$ to be multiplied by 10?
(d) Find the doubling time to two decimal places.
(e) Explain why a straight line on this plot would be misleading if the service has a limited potential market.
Summary
Can't find your problem here?
The AI checks one of your exercises: paste the problem with your answer or take a photo of it.