Sub topic 10
Using Graphs: Slope, Intercept and Best-Fit Line
Prerequisites and purpose
Assume you know basic algebra, straight-line equations, SI units, and percentage error. In experimental physics, a graph helps reveal a physical quantity from several measured values. The slope and intercept often represent constants or correction terms.
For a straight line,
\[ y = mx + c \]
where \(m\) is the slope and \(c\) is the \(y\)-intercept.
Finding a physical quantity from a graph
Choose the axes so that the experimental equation becomes linear. Compare it with \(y=mx+c\).
| Experimental relation | Graph | Physical quantity |
|---|---|---|
| \(V=IR\) | \(V\) against \(I\) | Slope \(=R\) |
| \(T^2=(4\pi^2/g)L\) | \(T^2\) against \(L\) | Slope \(=4\pi^2/g\) |
| \(y=mx+c\) | \(y\) against \(x\) | Slope \(=m\), intercept \(=c\) |
Use two well-separated points on the best-fit line:
\[ m=\frac{y2-y1}{x2-x1} \]
Do not use two nearby points merely because they are measured points. A best-fit line is the line that represents the overall trend of the data. It may pass through none of the plotted points.
Best-fit lines and uncertainty
Plot every measured pair carefully, including units and suitable scales. A best-fit line should leave roughly balanced deviations above and below it. Random errors cause points to scatter around this line.
If the slope is needed, draw two large triangles on the line and calculate the slope from their corners. To estimate slope uncertainty, draw the steepest and shallowest acceptable lines:
\[ \Delta m \approx \frac{m{\max}-m{\min}}{2} \]
The result can then be written as \(m\pm\Delta m\). The intercept is read where the line crosses the \(y\)-axis. An intercept far from the expected value may indicate zero error, an unaccounted correction, or an incorrect model.
Automating a linear fit
The following Python program calculates the least-squares slope. Least squares chooses the line that minimizes the total squared vertical deviation from the data.
I = [0.1, 0.2, 0.3, 0.4] # current in A
V = [0.52, 0.98, 1.53, 2.01] # potential difference in V
n = len(I)
mean_I = sum(I) / n
mean_V = sum(V) / n
slope = sum((x - mean_I) * (y - mean_V)
for x, y in zip(I, V)) / sum((x - mean_I) ** 2 for x in I)
intercept = mean_V - slope * mean_I
print(f"Resistance = {slope:.2f} ohm")
print(f"Intercept = {intercept:.2f} V")For these readings, the slope gives the resistance in ohms. The intercept estimates the voltage offset.
Reading a graph in JEE questions
First identify the plotted variables and their units. Then rewrite the given law in the form \(y=mx+c\). Finally, connect the slope or intercept to the requested quantity. Check dimensions before selecting an answer.
Exercise
In a graph of \(T^2\) versus \(L\), the slope is \(4.00\ \mathrm{s^2\,m^{-1}}\). Find \(g\), using \(T^2=4\pi^2L/g\).
Show answer
Slope \(=4\pi^2/g\), so \(g=4\pi^2/4.00=9.87\ \mathrm{m\,s^{-2}}\).