Semi Log And Log Log Graphs

Download as PDF

Ever tried to graph data that skyrockets off the page? Semi-log and log-log graphs are special tools that tame wild curves, turning them into straight lines. They help us visualize and understand relationships involving rapid growth or vast ranges of numbers, from population booms to planetary orbits.

Semi Log And Log Log Graphs — an original Algebra911 reference diagram defining semi log and log log graphs with its key formula and a worked example.
A Clear Guide to Semi-Log and Log-Log Graphs

What Are Semi-Log and Log-Log Graphs?

A semi-log or log-log graph is a way of plotting data using a logarithmic scale on one or both axes to reveal relationships that would be hidden on a standard linear graph. On a normal graph, the distance between grid lines is constant—the space between 1 and 2 is the same as between 9 and 10. This is called a linear scale. However, when you have data that grows incredibly fast, like an exponential function, a linear scale can't keep up. The initial values get squished near the bottom, while the later values shoot off the top of the chart.

This is where logarithmic scales save the day. A logarithmic scale is based on powers of 10. The distance between 1 and 10 is the same as the distance between 10 and 100, and the same as between 100 and 1000. It expands the small values and compresses the large ones, allowing us to see the full range of data clearly.

  • A Semi-Log Graph uses a logarithmic scale on only one axis (usually the y-axis) and a linear scale on the other. This type of graph is perfect for visualizing exponential relationships.
  • A Log-Log Graph uses a logarithmic scale on both the x-axis and the y-axis. This is the go-to tool for analyzing power law relationships.

The main goal of using these graphs is to take a relationship that produces a curve on a standard plot and transform it into a straight line. Straight lines are much, much easier for us to analyze and understand.

Why Do We Even Need Logarithmic Scales?

Imagine you're tracking the number of bacteria in a petri dish. Let's say it starts with 100 and doubles every hour. After 1 hour, you have 200. After 5 hours, you have 3,200. After 10 hours, you have over 100,000! If you try to plot this on a standard graph with a y-axis from 0 to 100,000, the first few hours of data will be an indistinguishable smudge near the zero line. You lose all the detail of the early growth.

A logarithmic scale solves this problem. On a log scale, the jump from 100 to 1,000 takes up the same amount of space as the jump from 1,000 to 10,000, and from 10,000 to 100,000. This allows you to see both the small and large values clearly on the same graph. The exponential growth that looked like a sharp curve now looks like a perfectly straight line, revealing the constant rate of change in a new way.

Many real-world phenomena span huge ranges of values and are best understood with log scales:

  • The Richter Scale: For measuring earthquake intensity. A magnitude 6 earthquake has 10 times the shaking amplitude of a magnitude 5.
  • The Decibel Scale: For measuring sound loudness. A 20 dB sound has 10 times the intensity of a 10 dB sound.
  • The pH Scale: For measuring acidity. A solution with pH 4 is 10 times more acidic than one with pH 5.

In science and engineering, these graphs are essential for finding the mathematical model that best describes a set of experimental data.

How Does a Semi-Log Graph Work?

A semi-log graph is the perfect tool for dealing with exponential functions. An exponential function has the general form:

y=abx

Here, a is the initial value (when x=0) and b is the growth factor. When you plot this on a standard linear graph, you get a curve that gets steeper and steeper.

However, if you plot it on a semi-log graph with a logarithmic y-axis, something magical happens: it becomes a straight line. Why? Let's look at the math. If we take the common logarithm (log base 10) of both sides of the equation:

log(y)=log(abx)

Using the rules of logarithms, we can split the right side:

log(y)=log(a)+log(bx)

And another logarithm rule lets us bring the exponent down:

log(y)=log(a)+xlog(b)

Let's rearrange this slightly to look more familiar:

log(y)=(log(b))x+log(a)

This looks just like the equation of a line, Y=mX+c, where:

  • Y=log(y)
  • The slope m=log(b)
  • The variable X=x
  • The y-intercept c=log(a)

By plotting x on a linear axis and y on a log axis, the graph paper is essentially calculating log(y) for you, resulting in a straight line.

Example 1

Let's plot the exponential function y=42x on a semi-log graph. First, let's generate some points:

x (Linear Axis)y (Log Axis)
0420=4
1421=8
2422=16
3423=32
4424=64
5425=128

On a semi-log plot, the x-axis is linear (0, 1, 2, 3...). The y-axis is logarithmic, marked in cycles like 1, 10, 100, 1000. To plot the point (3, 32), you would find 3 on the linear x-axis. On the y-axis, you'd go into the cycle between 10 and 100. The grid lines would be for 20, 30, 40, etc. You'd find 32 and mark the point. When you plot all these points, they will form a perfect straight line. The slope of this line is log(2)0.301, and it would intercept the y-axis at y=4.

What's the Deal with Log-Log Graphs?

While semi-log graphs are for exponential functions, log-log graphs are designed for power functions. A power function has the general form:

y=axk

Here, a is a constant coefficient and k is the exponent. Examples include area formulas (like A=πr2, where k=2) and many laws in physics and biology. On a standard graph, these functions also produce curves.

To straighten this curve out, we need a log-log graph, with logarithmic scales on both axes. Let's see why this works by taking the logarithm of both sides of the power function equation:

log(y)=log(axk)

Using our logarithm rules again:

log(y)=log(a)+log(xk)

log(y)=log(a)+klog(x)

Rearranging this into a familiar form:

log(y)=klog(x)+log(a)

This is again the equation of a line, Y=mX+c, but this time:

  • Y=log(y)
  • The slope m=k (This is incredibly useful!)
  • The variable X=log(x)
  • The y-intercept c=log(a)

The most important takeaway is that the slope of the straight line on a log-log graph is equal to the exponent k in the power function. This allows scientists to determine the exponent in a physical law just by plotting experimental data and measuring the slope!

Example 2

Let's plot the power function y=3x2 on a log-log graph. First, let's find some points. Note that log scales can't start at zero, so we'll start x at 1.

x (Log Axis)y (Log Axis)
1312=3
2322=12
5352=75
103102=300
203202=1200

When you plot these (x,y) pairs on a log-log graph, they will form a straight line. If you were to pick two points on the line, say (log(2),log(12)) and (log(10),log(300)), and calculate the slope, you would get:

m=log(300)log(12)log(10)log(2)=log(300/12)log(10/2)=log(25)log(5)=2log(5)log(5)=2

The slope is exactly 2, which is the exponent k in our original function y=3x2! This demonstrates how log-log plots can reveal the exponent of a power law relationship.

How Do You Read and Create These Graphs?

Reading and creating these graphs takes a little practice because the scales are not intuitive at first.

Reading the Graph

  1. Identify the Scale Type: First, check each axis. Is it linear or logarithmic? A log scale will have unevenly spaced grid lines, typically marked with powers of 10 (e.g., 0.1, 1, 10, 100).
  2. Find Your Point: Locate the point you want to read.
  3. Read the Linear Axis: Reading the value on a linear axis is straightforward, just as you've always done.
  4. Read the Logarithmic Axis: This is the tricky part. The lines between 10 and 100 do not represent 20, 30, 40... in even spaces. The line for 20 is closer to 10, while the line for 90 is very close to 100. You have to estimate based on these compressed markings. The halfway mark in distance between 10 and 100 is not 55, it's actually around 31.6 (10100)!

Creating the Graph

  1. Choose the Right Graph: Look at your data. Does it seem to be growing by a constant factor (e.g., doubling)? Use a semi-log plot. Does it seem to follow a polynomial relationship? Try a log-log plot. The goal is to find the plot that makes your data points form a straight line.
  2. Determine the Range: Find the minimum and maximum values for both your x and y data.
  3. Set Up the Axes: For any log axis, you need to determine how many 'cycles' you need. If your y-data ranges from 5 to 850, you'll need cycles for 1-10, 10-100, and 100-1000. Mark these major divisions. Then, fill in the intermediate lines (2, 3, 4... and 20, 30, 40...).
  4. Plot the Points: Take each (x,y) data pair and plot it directly onto the graph paper. You do not need to calculate any logarithms yourself. The special grid lines on the graph paper do that work for you.
Example 3

Kepler's Third Law relates a planet's orbital period (T, in years) to its average distance from the sun (R, in astronomical units). The law is a power function: T2R3, or T=cR1.5. Let's plot data for a few planets on a log-log graph to verify this.

PlanetDistance R (AU)Period T (Years)
Mercury0.390.24
Venus0.720.62
Earth1.01.0
Mars1.521.88
Jupiter5.2011.86

If we plot this data on a log-log graph, the points will form a nearly perfect straight line. If we then measured the slope of that line, we would find it to be very close to 1.5, confirming the exponent in Kepler's Law!

Key formulas for semi log and log log graphs by Algebra911.
Key formulas for semi log and log log graphs by Algebra911.

How Can Graphs Help Identify Function Types?

One of the most powerful uses of these graphs is to identify the type of function that best models a set of data. If you have a table of experimental data, you can plot it on all three types of graphs (linear, semi-log, and log-log) and see which one produces a straight line. This tells you the underlying relationship between your variables.

Here is a summary table to help you:

If a plot of your data produces a straight line on a......then the relationship is......with the general equation:
Standard Linear GraphLineary=mx+b
Semi-Log Graph (log y-axis)Exponentialy=abx
Log-Log GraphPower Lawy=axk

This method is a fundamental tool in data analysis. By transforming data so it appears linear, we can easily find the constants of the model (like the slope and intercept) and create a predictive equation for the phenomenon we are studying.

What Are Some Common Mistakes to Avoid?

Working with logarithmic scales can be tricky at first. Here are some common pitfalls to watch out for:

  • Reading the Log Scale Incorrectly: The most common error is treating a logarithmic scale like a linear one. Remember, the grid lines are not evenly spaced. The space between 1 and 2 is much larger than the space between 8 and 9. Always check the labels for the major cycles (1, 10, 100...) to orient yourself.
  • Plotting the Logarithm of the Data: When using logarithmic graph paper, you plot the raw data value directly. For example, to plot a y-value of 300, you find the line labeled '300' (or the 3rd line in the 100-1000 cycle). You should not calculate log(300)2.47 and plot that value on a linear scale. The special paper does the transformation for you.
  • Forgetting About Zero and Negatives: The logarithm of zero or a negative number is undefined. Therefore, a logarithmic axis can never start at or include 0. It must start at a positive value, like 0.01, 0.1, or 1. If your data includes zero or negative values, you cannot use a log scale for that axis.
  • Choosing the Wrong Graph Type: If you plot exponential data on a log-log graph, it won't be a straight line. If you plot power law data on a semi-log graph, it also won't be a straight line. Part of the skill is learning to recognize which graph type is appropriate for your data to achieve that desired linear relationship.

Quick Summary: Which Graph Should I Use?

Feeling a little overwhelmed? Here's a quick reference guide. The goal is always to make your data form a straight line. Choose the graph type based on the underlying mathematical relationship you suspect (or discover) in your data.

  • For Linear Relationships (y=mx+b):
    Use a standard Linear Graph. Both axes have evenly spaced grid lines.
  • For Exponential Relationships (y=abx):
    Use a Semi-Log Graph. The y-axis should have a logarithmic scale, and the x-axis should have a linear scale. This is perfect for things that grow by a constant percentage, like compound interest or population growth.
  • For Power Law Relationships (y=axk):
    Use a Log-Log Graph. Both the x-axis and y-axis should have logarithmic scales. This is ideal for many relationships in science, like those between size and strength, or period and distance in astronomy.

Frequently Asked Questions

What's the main difference between a semi-log and a log-log graph?

The main difference is the number of logarithmic axes. A semi-log graph has one logarithmic axis and one linear axis. A log-log graph has two logarithmic axes.

Can a logarithmic scale ever show the value zero?

No, a logarithmic scale cannot show zero or any negative numbers. This is because the logarithm of zero (or a negative number) is undefined. The scale can get infinitely close to zero (e.g., 0.1, 0.01, 0.001) but will never reach it.

Why is the spacing on a log scale so uneven?

The spacing represents multiplicative factors, not additive ones. The distance from 1 to 10 (a 10x increase) is the same as the distance from 10 to 100 (another 10x increase). This compresses large values and expands small ones.

What kind of real-world data is plotted on these graphs?

Semi-log graphs are often used for things like population growth, radioactive decay, or the cooling of an object. Log-log graphs are very common in science and engineering, used for things like planetary orbits (Kepler's Laws), the relationship between an animal's size and its metabolic rate, and frequency analysis in electronics.

Does it matter which axis is logarithmic on a semi-log graph?

Yes, it matters greatly. For an exponential function like y=abx, the y-axis must be logarithmic to produce a straight line. If the function were x=aby, then the x-axis would need to be the logarithmic one.

What does the slope of the line on these graphs tell me?

On a semi-log plot for y=abx, the slope is related to the base of the exponent (slope = log(b)). On a log-log plot for y=axk, the slope is exactly equal to the exponent k, which is an extremely useful property for data analysis.

Is the Richter scale for earthquakes a log scale?

Yes, the Richter scale is a classic real-world example of a logarithmic scale. An increase of 1 on the scale (e.g., from a 5.0 to a 6.0) corresponds to a tenfold increase in the measured amplitude of the seismic waves.

Can I make these graphs in a spreadsheet program?

Absolutely. Spreadsheet programs like Microsoft Excel and Google Sheets make it very easy. After creating a standard scatter plot, you can go into the chart's axis options and change the scale from 'Linear' to 'Logarithmic' with a single click.