6.4 · SLPaper 1Paper 2

Graphs and data analysis

In a minute

A graph turns a table of results into a relationship you can see, test and measure. This lesson covers , and , plotting with a , , , and .

You'll be able to

  • Tell direct and inverse proportionality from positive and negative correlation.
  • Sketch a graph with labelled but unscaled axes to show a trend.
  • Plot graphs with sensible scales and draw a line or curve of best fit.
  • Find rates of change from gradients and tangents, and interpolate and extrapolate.
  • Draw uncertainty bars and use them to find the in a gradient.
  • Use logarithmic scales, and linearise a graph when theory predicts its form.
Before you start3 quick questions on what this builds on
Check yourself
A straight displacement–time graph passes through (0,0)(0, 0) and (5.0 s,12 m)(\pu{5.0 s}, \pu{12 m}). What is its gradient, in m s−1\text{m s}^{-1}?
Check yourself
What does the area between a velocity–time graph and the time axis represent?
Check yourself
A length is measured as (25.0±0.5) cm(25.0 \pm 0.5)\ \text{cm}. What is its ?

Revise first: 1.1 Describing motion, 1.2 Equations of motion and motion graphs and 6.3 Uncertainties and errors

Relationships and sketches

Before you plot anything, ask how yy should change when xx changes.

A straight line missing the origin, y=mx+cy = mx + c with c≠0c \ne 0, is linear but not proportional.

Four sketch graphs with labelled but unscaled axes, y up and x across. First, direct proportionality: a straight line through the origin. Second, linear but not proportional: a straight line that crosses the y-axis above the origin. Third, inverse proportionality: a curve that falls steeply and then more gently, getting closer to both axes without touching them. Fourth, negative correlation: scattered points that tend to fall from top left to bottom right. yx0 direct proportionality yx0 linear, not proportional yx0 inverse proportionality yx0 negative correlation
Four patterns to recognise. Only the first is direct proportionality.

Proportionality is an exact rule; a correlation is any trend. Even a strong correlation doesn't show cause, because a third factor may drive both variables.

A **sketch** shows the shape, not the values. Label both axes with the quantities but give no scales. Show where the line starts and whether it is straight, steepening or flattening.

Worked exampleThree samples of one metal have volumes 2.0 cm3\pu{2.0 cm3}, 5.0 cm3\pu{5.0 cm3} and 8.0 cm3\pu{8.0 cm3} and masses 15.8 g\pu{15.8 g}, 39.5 g\pu{39.5 g} and 63.2 g\pu{63.2 g}. Show that mass m∝m \propto volume VV and find the constant.

Try it first, then reveal one step at a time.

  1. If m∝Vm \propto V, the ratio mV\frac{m}{V} is the same for every sample.
Worked exampleA ball falls from rest with negligible air resistance. Sketch how its kinetic energy EkE_\text{k} varies with time tt, and describe the shape.

Try it first, then reveal one step at a time.

  1. Find the rule first: v=gtv = gt, so Ek=12mv2=12mg2t2E_\text{k} = \frac{1}{2}mv^{2} = \frac{1}{2}mg^{2}t^{2}.
Check yourself
For sound in air at a fixed temperature, wavelength is inversely proportional to frequency. A 320 Hz\pu{320 Hz} note has a wavelength of 1.07 m\pu{1.07 m}. What is the wavelength of a 480 Hz\pu{480 Hz} note, in metres, to 3 significant figures?
Check yourself
Over one summer, a town's daily sales of electric fans and its daily number of sunburn cases rise and fall together. What does this show?
Check yourself
Which sketch shows yy directly proportional to xx?

Plotting a graph and drawing the best fit

To **plot** a graph, mark each point accurately on a scaled grid:

1. Put the variable you change on the xx-axis and the one you measure on the yy-axis.

2. Label each axis as quantity / unit: tt / s, FF / N.

3. Choose scales so the points fill more than half the grid each way. Use steps of 1, 2 or 5 per square, times a power of ten.

4. Include the origin only if you need it, such as to read an intercept.

5. Mark each point with a small, neat cross.

Rule a straight line, or draw one smooth curve if the points clearly curve. Never join the dots: the line averages out the scatter.

Don't force the line through the origin. Let the data decide where it crosses the axis.

A point far from the trend is an anomalous result. Check or repeat it; if it still doesn't fit, leave it out of the line and say why.

A plotted graph with labelled axes, y over unit up and x over unit across. Eight crosses rise from left to right close to a straight line. One ruled straight line of best fit runs through their trend, with points scattered on both sides of it; it does not pass through every point and is not forced through the origin. A ninth cross lies well above the line and is circled and labelled anomalous: check it, then leave it out of the line. y / unit x / unit anomalous: check it, then leave it out line of best fit
The follows the trend, not every point. The circled point is anomalous.
Worked exampleCurrent readings run from 0.08 A\pu{0.08 A} to 0.46 A\pu{0.46 A}, and the grid has 10 large squares upwards. Suggest a scale and a label for the axis.

Try it first, then reveal one step at a time.

  1. Divide the largest value by the squares: 0.4610=0.046\frac{0.46}{10} = 0.046 A per square.
Worked exampleSix of seven plotted points lie close to a straight line; one sits well above it. Describe how to draw the line of best fit.

Try it first, then reveal one step at a time.

  1. Deal with the odd point first, then fit the rest.
Check yourself
A student changes the length of a wire and measures its resistance. Which variable goes on the xx-axis?
Check yourself
The points on a graph clearly follow a curve. What should you draw?

Gradients and reading values off a graph

A rate of change, how fast yy changes with xx, is the of the graph.

Learn this
gradient=ΔyΔx\text{gradient} = \frac{\Delta y}{\Delta x}

For a straight line, draw a large triangle using two points on the line that are far apart, not data points off it.

Its unit is the yy unit over the xx unit: on a velocity–time graph, m s−2\text{m s}^{-2}.

On a curve, the rate changes from point to point. Draw the tangent, a straight line touching the curve at that point. Its gradient is the rate of change there.

Velocity in metres per second, 0 to 10, against time in seconds, 0 to 10. A curve rises from the origin, steeply at first and then more gently. A straight tangent touches the curve at 4.0 seconds, where the velocity is 5.0 metres per second. The tangent passes through 2.6 metres per second at 0 seconds and 8.6 metres per second at 10.0 seconds. A dashed triangle under the tangent shows a change in time of 10.0 seconds and a change in velocity of 6.0 metres per second. 02468100246810 t / s v / m s⁻¹ tangent at t = 4.0 s Δt = 10.0 s Δv = 6.0 m s⁻¹
Draw the tangent at the point, then a large triangle on the tangent.

The multiplies the axes instead: velocity times time gives displacement.

**Interpolation** is reading a value between your data points. **Extrapolation** is extending the line beyond them, for example back to an axis to find an intercept.

Extrapolation assumes the trend continues outside the measured range, and it may not: an overstretched spring changes behaviour.

Worked exampleA cyclist's velocity–time graph is a curve. Its tangent at t=4.0 st = \pu{4.0 s} passes through (0,2.6 m s−1)(0, \pu{2.6 m s-1}) and (10.0 s,8.6 m s−1)(\pu{10.0 s}, \pu{8.6 m s-1}). Determine the acceleration at t=4.0 st = \pu{4.0 s}.

Try it first, then reveal one step at a time.

  1. Acceleration is the gradient of the tangent.
Worked exampleLoads of 1.5 N\pu{1.5 N} to 6.0 N\pu{6.0 N} hang on a spring. The graph of length LL against load FF is a straight line through (1.5 N,18.4 cm)(\pu{1.5 N}, \pu{18.4 cm}) and (6.0 N,27.4 cm)(\pu{6.0 N}, \pu{27.4 cm}). Extrapolate to find the unloaded length.

Try it first, then reveal one step at a time.

  1. Gradient: 27.4−18.46.0−1.5=9.04.5=2.0 cm N−1\frac{27.4 - 18.4}{6.0 - 1.5} = \frac{9.0}{4.5} = \pu{2.0 cm N-1}.
Check yourself
Using the same line, what is the spring's length with a load of 4.0 N\pu{4.0 N}? Give your answer in cm to 3 significant figures.
Check yourself
A graph shows momentum pp / kg m s⁻¹ against time tt / s for a moving object. What does its gradient represent?
Check yourself
Why is a value found by extrapolation less reliable than one found by interpolation?

Uncertainty bars

A graph shows each point's with a bar.

A point at F=(3.6±0.2) NF = (3.6 \pm 0.2)\ \text{N} has a vertical from 3.4 N\pu{3.4 N} to 3.8 N\pu{3.8 N}. Draw bars on each axis with a noticeable uncertainty.

A good line of best fit passes through every bar. If no straight line can, the data are not linear, some points are anomalous, or the uncertainties were underestimated.

For the uncertainty in a gradient, draw the steepest and shallowest straight lines through every bar:

Learn this
Δ(gradient)=max gradient−min gradient2\Delta(\text{gradient}) = \frac{\text{max gradient} - \text{min gradient}}{2}

An intercept's uncertainty is found the same way, from the two lines' intercepts.

Force in newtons, 0 to 6, against extension in metres, 0 to 0.12. Five points at extensions 0.02, 0.04, 0.06, 0.08 and 0.10 metres rise in a straight trend, each with a vertical uncertainty bar of plus or minus 0.2 newtons. A solid line of best fit runs through every bar. A dashed steepest line, gradient 52.6 newtons per metre, and a dashed shallowest line, gradient 44.2 newtons per metre, also pass through every bar; they cross near the middle point. The best line has gradient 48.4 newtons per metre. steepest best fit shallowest 0.000.020.040.060.080.100.120123456 x / m F / N
The steepest and shallowest lines must each pass through every bar.

Data are consistent with direct proportionality only if some straight line through the origin passes through every bar.

Worked exampleOn a graph of force FF against extension xx, the best line has gradient 48.4 N m−1\pu{48.4 N m-1}. The steepest and shallowest lines through all the bars have gradients 52.6 N m−1\pu{52.6 N m-1} and 44.2 N m−1\pu{44.2 N m-1}. Determine the uncertainty in the spring constant kk, the gradient.

Try it first, then reveal one step at a time.

  1. Δk=52.6−44.22=8.42=4.2 N m−1\Delta k = \frac{52.6 - 44.2}{2} = \frac{8.4}{2} = \pu{4.2 N m-1}.
Worked exampleA graph of potential difference VV against current II has uncertainty bars. The best line crosses the VV-axis at 0.35 V\pu{0.35 V}; the steepest and shallowest lines through all the bars cross it at 0.12 V\pu{0.12 V} and 0.58 V\pu{0.58 V}. Deduce whether VV could be directly proportional to II.

Try it first, then reveal one step at a time.

  1. Lines that fit the bars cross the VV-axis between 0.12 V\pu{0.12 V} and 0.58 V\pu{0.58 V}. Is zero in that range?
Check yourself
A time is plotted at (2.40±0.05) s(2.40 \pm 0.05)\ \text{s}. How long is its whole uncertainty bar, in seconds?
Check yourself
Before rounding, the spring example gave k=48.4 N m−1k = 48.4\ \text{N m}^{-1} and Δk=4.2 N m−1\Delta k = 4.2\ \text{N m}^{-1}. What is the percentage uncertainty in kk, to 2 significant figures?
Check yourself
No straight line can be drawn through all the uncertainty bars on a graph. What can you conclude?

Logarithmic scales

Some data span many powers of ten, such as star luminosities. On an ordinary axis the small values crowd into one corner.

Each factor-of-10 step is a decade. Zero never appears on a .

The position of a value yy along the axis is set by log⁡10y\log_{10} y. So a point a fraction ff of the way from 10n10^{n} to 10n+110^{n+1} has the value 10n+f10^{n+f}.

So halfway between 100 and 1000 is 102.5≈31610^{2.5} \approx 316, not 550. Minor gridlines crowd towards the next power of ten.

A logarithmic axis of frequency in hertz with major marks at 1, 10, 100, 1000 and 10 000, equally spaced. Each gap is labelled times 10. Between the major marks, minor marks for 2 to 9 crowd closer together towards the next power of ten. A marker halfway between 100 and 1000 reads 316, not 550. A second marker 0.70 of the way from 100 to 1000 reads about 500. 110100100010 000× 10× 10× 10× 10f / Hzhalfway: 316, not 5500.70 of a decade: 102.70 ≈ 500
Equal gaps are equal factors of 10.

To construct one, use log paper, or plot log⁡10y\log_{10} y on an ordinary axis, labelled like log⁡10(f / Hz)\log_{10}(f\,/\,\text{Hz}).

If both axes are logarithmic and the points are straight, then y=kxny = kx^{n}, with gradient n=Δlog⁡10yΔlog⁡10xn = \frac{\Delta \log_{10} y}{\Delta \log_{10} x}.

The HR diagram in 5.13 uses log scales.

Worked exampleOn a logarithmic frequency axis, a loudspeaker's output peak lies 0.70 of the way from the 100 Hz\pu{100 Hz} gridline to the 1000 Hz\pu{1000 Hz} one. Find its frequency.

Try it first, then reveal one step at a time.

  1. The gridlines are 10210^{2} and 10310^{3} Hz, so the peak is at 102.70=50110^{2.70} = 501 Hz.
Worked exampleA straight log–log graph of orbital period TT against radius rr passes through Earth (1.00 AU,1.00 yr)(\pu{1.00 AU}, \pu{1.00 yr}) and Jupiter (5.20 AU,11.9 yr)(\pu{5.20 AU}, \pu{11.9 yr}). Find the gradient nn.

Try it first, then reveal one step at a time.

  1. log⁡1011.9−log⁡101.00=1.0755\log_{10} 11.9 - \log_{10} 1.00 = 1.0755 and log⁡105.20−log⁡101.00=0.7160\log_{10} 5.20 - \log_{10} 1.00 = 0.7160.
Check yourself
On a logarithmic axis, which value lies exactly halfway between the gridlines for 10 and 1000?
Check yourself
A logarithmic axis runs from 1⋅10−3 m\pu{1e-3 m} to 1⋅102 m\pu{1e2 m}. How many decades (factors of 10) does it span?

Linearising a graph

Is a curve y∝x2y \propto x^{2} or y∝x3y \propto x^{3}? You can't tell by eye, but a straight line is easy to test.

Match the equation to y=mx+cy = mx + c: what multiplies the xx-axis quantity is the gradient.

1. y=kx2y = kx^{2}: plot yy against x2x^{2}. The gradient is kk.

2. y=kxy = \frac{k}{x}: plot yy against 1x\frac{1}{x}. The gradient is kk.

3. y=kxny = kx^{n} with nn unknown: plot log⁡10y\log_{10} y against log⁡10x\log_{10} x. The gradient is nn.

A mass mm on a spring oscillates with period T=2πmkT = 2\pi\sqrt{\frac{m}{k}} (3.1). Squaring gives T2=4π2k mT^{2} = \frac{4\pi^{2}}{k}\,m, so T2T^{2} against mm is straight with gradient 4π2k\frac{4\pi^{2}}{k}.

Two graphs of the same data for a mass on a spring. Left: period T in seconds, 0 to 0.4, against mass m in kilograms, 0 to 1.0. Six crosses follow a curve through the origin that rises steeply and then flattens. Right: T squared in seconds squared, 0 to 0.16, against mass in kilograms. The same six results now lie on a straight line through the origin, with gradient 0.162 seconds squared per kilogram. 00.51.000.20.4m / kgT / scurve: hard to test 00.51.000.080.16m / kgT² / s²straight line through the origin
The same results: a curve when you plot TT, a straight line when you plot T2T^{2}.

Linearise only when theory gives an equation to test. Data that are already straight need no change.

Worked exampleFor one spring, a graph of T2T^{2} against mm is a straight line through (0,0)(0, 0) with gradient 0.162 s2 kg−1\pu{0.162 s2 kg-1}. Determine the spring constant kk.

Try it first, then reveal one step at a time.

  1. From T2=4π2k mT^{2} = \frac{4\pi^{2}}{k}\,m, the gradient is 4π2k\frac{4\pi^{2}}{k}.
Worked exampleTheory suggests the light intensity II at distance dd from a small lamp is I=kd2I = \frac{k}{d^{2}}. Suggest what graph to plot, and how it would test the theory.

Try it first, then reveal one step at a time.

  1. Match I=k×1d2I = k \times \frac{1}{d^{2}} to y=mxy = mx.
Check yourself
To test v2=u2+2asv^{2} = u^{2} + 2as for constant acceleration, you plot v2v^{2} against ss. What does the gradient equal?
Check yourself
That graph has a gradient of 3.2 m s−2\pu{3.2 m s-2}. What is the acceleration, in m s−2\text{m s}^{-2}, to 2 significant figures?

Common mistakes

  • Forcing the line through the origin. Draw the best line for the points, then test the origin against the bars.
  • Taking a gradient from data points off the line, or close together. Use two far-apart points on the line.
  • Leaving the unit off a gradient. Divide the yy unit by the xx unit: N\text{N} over m\text{m} gives N m−1\text{N m}^{-1}.
  • Joining the points dot to dot. Draw one smooth line or curve through the trend.
  • Reading a logarithmic axis as if it were linear. Halfway between 10 and 100 is 101.5≈3210^{1.5} \approx 32, not 55.

Exam tips

  • "Determine the gradient": show a large triangle and the two points you read, then the value with its unit.
  • "Sketch": labelled axes and the right shape, no scale. "Plot" and "draw": accurate, on a scaled grid.
  • "Deduce whether the data support" proportionality: say whether a line through the origin passes through every bar, then conclude.
  • "Outline why" a graph is straight: rearrange into y=mx+cy = mx + c, name each axis, and say what the gradient equals.

Key takeaways

Learn thisDirect proportionality: y=kxy = kx, straight through the origin. Inverse: y=kxy = \frac{k}{x}, so xyxy is constant. Correlation is any trend, not proof of cause.
Learn thisIndependent variable on xx; axes labelled quantity / unit; scales of 1, 2 or 5 filling over half the grid. Sketches: labelled axes, no scales.
Learn thisBest fit: one ruled line or smooth curve, points evenly either side; never join dots or force it through the origin.
Learn thisGradient =ΔyΔx= \frac{\Delta y}{\Delta x} from a large triangle, in yy unit per xx unit; on a curve, use the tangent.
Learn thisGradient uncertainty =max gradient−min gradient2= \frac{\text{max gradient} - \text{min gradient}}{2}, using lines through every bar.
Learn thisData fit y∝xy \propto x only if a line through the origin passes through every bar.
Learn thisLog scale: equal steps are factors of 10; a fraction ff past 10n10^{n} is 10n+f10^{n+f}. Straight log–log means y=kxny = kx^{n}, gradient nn.
Learn thisLinearise into y=mx+cy = mx + c only when theory gives the equation.

Practise this

21 past-paper questions on Graphs, data processing and modelling in the Physics HL bank, each with a mark scheme and a worked explanation.

Also: Experimental design, investigation and evaluation (16)

Practise Graphs, data processing and modelling →