Skip to main content
Examonaut

Topic 1 · Lesson 4 of 6

Straight-line graphs and gradients

Straight-line graphs: why physicists love them

A graph uses all your readings together, and smooths out random error in a way that a single calculation cannot. The most useful graph is a straight line, because you can tell by eye whether points lie on it, and its gradient and intercept are easy to measure and usually equal something physical.

A graph also defeats some systematic errors. In the graph below, every extension was measured with a 3 mm zero error. The line no longer goes through the origin, but it is exactly parallel to the true line, so a gradient-based result is unaffected. A non-zero intercept where you expected zero is the classic sign of a systematic error.

01234560102030load / Nextension / mm← intercept 3 mmreadings with a3 mm zero errortrue line(dashed)same gradient

Linearising: getting a straight line from a curved law

Most physics laws are not of the form y=mx+cy = mx + c to begin with. The trick is to rearrange the equation so that it matches y=mx+cy = mx + c, then decide what to plot on each axis.

How to choose the axes

  1. Step 1: Write down the equation, with the two variables you measured (one you changed, one that responded).
  2. Step 2: Rearrange so that one side is a function of the dependent variable only, and the other side is (constant) × (function of the independent variable), plus a constant if there is one.
  3. Step 3: Match to y=mx+cy = mx + c: yy is what you plot up, xx is what you plot across, mm is the gradient and cc is the intercept.
  4. Step 4: Write down what the gradient (or intercept) equals, then make the unknown the subject.

For a pendulum, T=2πlgT = 2\pi\sqrt{\dfrac{l}{g}}. Square both sides: T2=4π2g lT^2 = \dfrac{4\pi^2}{g}\,l. Compare with y=mx+cy = mx + c: plot T2T^2 up and ll across; the graph is a straight line through the origin with gradient 4π2g\dfrac{4\pi^2}{g}, so g=4π2gradientg = \dfrac{4\pi^2}{\text{gradient}}. The diagram below shows how a curve becomes a straight line.

00.51012l / mT / scurve: hard to test00.51024l / mT² / s²straight line through O

Other examples you will meet: for free fall from rest, v2=2ghv^2 = 2gh, so v2v^2 against hh has gradient 2g2g; for a cell, V=−rI+εV = -rI + \varepsilon, so VV against II has gradient −r-r and intercept ε\varepsilon.

Gradients, error bars and worst lines

To measure a gradient, draw a large triangle on the best-fit line, covering at least half the line, and read the coordinates of its corners from points on the line (not from your data points, unless they happen to sit exactly on the line). Gradient = change in yy ÷ change in xx, with units.

An error bar is a line through a plotted point showing its uncertainty, ± the uncertainty in each direction. The best-fit line should pass through, or very close to, every error bar. A worst line is the steepest, or the shallowest, straight line that still passes through every error bar. The uncertainty in the gradient is then

uncertainty in gradient=∣best gradient−worst gradient∣\text{uncertainty in gradient} = |\text{best gradient} - \text{worst gradient}|

and the percentage uncertainty in the gradient is this divided by the best gradient. The same method gives the uncertainty in an intercept.

00.20.40.60.8101234l / mT² / s²best line:gradient 4.01worst lines (dashed):4.28 and 3.72

Worked example

G from a graph, with its uncertaintytop grade

A student measures T2T^2 for five lengths of pendulum; the graph above shows the results with error bars of ±0.12 s². Find gg and its uncertainty.

Show solution
  1. Best line: from (0,0.02)(0, 0.02) to (1.10,4.43)(1.10, 4.43), gradient =4.43−0.021.10−0=4.01= \dfrac{4.43 - 0.02}{1.10 - 0} = 4.01 s² m⁻¹.
  2. Worst lines through all the error bars have gradients 4.28 and 3.72 s² m⁻¹. The larger difference from the best is ∣3.72−4.01∣=0.29|3.72 - 4.01| = 0.29 s² m⁻¹.
  3. Percentage uncertainty in gradient: 0.29/4.01×100%=7.2%0.29/4.01 \times 100\% = 7.2\%.
  4. g=4π2gradient=39.484.01=9.85g = \dfrac{4\pi^2}{\text{gradient}} = \dfrac{39.48}{4.01} = 9.85 m s⁻². Dividing by the gradient keeps the same percentage uncertainty, 7.2%, so Δg=0.072×9.85=0.71\Delta g = 0.072 \times 9.85 = 0.71 m s⁻².
  5. g=9.8±0.7g = 9.8 \pm 0.7 m s⁻². Percentage difference from 9.81 is 0.4%, much less than 7%, so the result agrees with the accepted value.

Practise this topic

Both are part of Premium.