Introduction to Log Graphs and Data Analysis

Welcome to one of the most powerful tools in a physicist's toolkit! In your IA2 practical studies, you will often encounter relationships between variables that aren't simple straight lines. They might be curves that look like a "power law" or an "exponential decay." While curves are pretty, they are very difficult to analyze accurately by eye.

Logarithmic graphs allow us to turn these tricky curves into easy-to-read straight lines. By "straightening" the data, we can use a ruler to find the gradient and intercept, which helps us calculate important constants like the decay constant or a time constant. Don't worry if you find logs intimidating at first—once you see the pattern, it's just like using \(y = mx + c\)!

Why Use Logs?

In Unit 6, you are expected to use logarithmic graphs to find relationships between variables. There are two main types of "curvy" relationships you will meet:

Power Law Relationships: For example, \(y = ax^n\). An example in physics might be how the period of a pendulum relates to its length.

Exponential Relationships: For example, \(y = Ae^{kx}\). This is very common in Unit 4 (Capacitor discharge) and Unit 5 (Radioactive decay).

By taking the logarithm of both sides of these equations, we can compare them to the standard equation for a straight line: \(y = mx + c\).

Type 1: The Power Law (\(y = ax^n\))

If you suspect a relationship follows a power law, where \(x\) is raised to a constant power \(n\), we use log-log analysis. This means we take the log of both the \(y\) and the \(x\) values.

The Math Step-by-Step:

1. Start with the equation: \(y = ax^n\)

2. Take the log (base 10) of both sides: \(\log(y) = \log(ax^n)\)

3. Use log rules to expand the right side: \(\log(y) = \log(a) + \log(x^n)\)

4. Bring the power down: \(\log(y) = n \log(x) + \log(a)\)

How to Plot It:

• Plot \(\log(y)\) on the vertical axis (y-axis).

• Plot \(\log(x)\) on the horizontal axis (x-axis).

• The gradient (\(m\)) of your straight line will be equal to the power \(n\).

• The y-intercept (\(c\)) will be equal to \(\log(a)\).

Quick Tip: If the graph is a straight line, it proves the power law relationship is correct!

Type 2: Exponential Relationships (\(y = Ae^{kx}\))

Exponential relationships are unique because the variable \(x\) is actually in the exponent. For these, we use natural logs (\(\ln\)), which use the base \(e\) (roughly 2.718). You will see this often in IA2 Physics.

The Math Step-by-Step:

1. Start with the equation: \(y = Ae^{kx}\)

2. Take the natural log of both sides: \(\ln(y) = \ln(Ae^{kx})\)

3. Expand the right side: \(\ln(y) = \ln(A) + \ln(e^{kx})\)

4. Since \(\ln\) and \(e\) are opposites, they cancel out: \(\ln(y) = kx + \ln(A)\)

How to Plot It:

• Plot \(\ln(y)\) on the vertical axis.

• Plot \(x\) (not \(\ln(x)\)!) on the horizontal axis.

• The gradient (\(m\)) is the constant \(k\).

• The y-intercept (\(c\)) is \(\ln(A)\).

Physics Examples You Need to Know

In Unit 6, you might be given data from experiments in Units 4 and 5. Here is how they look in log form:

1. Capacitor Discharge (Unit 4)

The charge \(Q\) on a capacitor at time \(t\) is given by: \(Q = Q_0 e^{-t/RC}\)

In log form: \(\ln(Q) = -\frac{1}{RC}t + \ln(Q_0)\)

• If you plot \(\ln(Q)\) against \(t\), the gradient is \(-\frac{1}{RC}\).

• This works the same way for Voltage (\(V\)) and Current (\(I\)).

2. Radioactive Decay (Unit 5)

The number of nuclei \(N\) remaining is: \(N = N_0 e^{-\lambda t}\)

In log form: \(\ln(N) = -\lambda t + \ln(N_0)\)

• If you plot \(\ln(N)\) against \(t\), the gradient is \(-\lambda\) (the decay constant).

Step-by-Step Data Analysis Guide

When you are given a table of data in a Unit 6 exam and asked to determine a relationship:

1. Create new columns: Calculate the \(\log\) or \(\ln\) values for your data. Ensure you use the correct number of significant figures (usually matching the precision of the raw data).

2. Plot the graph: Use a sharp pencil. Ensure your scales are sensible and cover at least half of the graph paper.

3. Draw a Line of Best Fit: This should be a single, thin, straight line with an even distribution of points above and below it.

4. Calculate the Gradient: Use a large triangle. The hypotenuse of the triangle should be at least half the length of your drawn line. Formula: \(m = \frac{\Delta y}{\Delta x}\).

5. Find the Intercept: You can read this from the y-axis if the x-axis starts at zero. If not, use the equation \(y = mx + c\) with a point from your line to calculate \(c\).

6. Back-calculate: If your intercept is \(\ln(A)\), remember to use the \(e^x\) function on your calculator to find the actual value of \(A\).

Key Terms and Definitions

Logarithm (log): The power to which a base (usually 10) must be raised to produce a given number.

Natural Logarithm (\(\ln\)): A logarithm with the base \(e\).

Gradient: The steepness of the line, calculated as "change in y / change in x".

Intercept: The point where the line crosses the vertical axis (where the horizontal variable is zero).

Summary and Key Takeaways

• To turn \(y = ax^n\) into a straight line, plot \(\log y\) against \(\log x\). The gradient is \(n\).

• To turn \(y = Ae^{kx}\) into a straight line, plot \(\ln y\) against \(x\). The gradient is \(k\).

• Always use a large triangle for gradient calculations to reduce uncertainty.

• Logarithms themselves do not have units, but you should label your axes clearly (e.g., \(\ln(V / \text{V})\)).

Note: For more on how to handle the uncertainties in these measurements, see the chapter on "Compound Uncertainties, Precision and Accuracy (IA2)".