Chapter 6 of 11 · 11 min read
Linearising a relation
Turning power laws, exponentials and odd model functions into straight lines, so that a ruler (or least squares) gives the physics.
Why straight lines
The human eye can judge a straight line accurately and a curve only poorly. And a straight line has just two parameters, slope and intercept, which you can read and give errors for. So whenever a model is , look for new variables and such that
with and simple functions of the unknowns and .
The standard transformations
- Power law (Kepler's third law, mass–luminosity, the Cepheid ): . Plot against ; the slope is the exponent.
- Exponential (decays, ): .
- Magnitudes are already logarithms. is a straight line in against , with . The same applies to atmospheric extinction, against airmass .
- Inverse relations such as Wien's law : plot against .
- Kepler's third law : plot against , or against (slope 2/3).
- Hubble's law : already linear, and should pass through the origin.
Custom variables
Recent problems often hand you an awkward model and expect you to find the variable that makes it linear.
2017 D2 (cored dark matter halo). . Once is known, define . Then , a straight line through the origin whose slope gives .
2023 DA2 (astrometric microlensing). . With this is : the slope is the Einstein radius.
2018 D1 (UV slope). becomes , so a line in against has slope .
The recipe: isolate the unknown you want as a multiplicative constant, then call everything it multiplies .
Errors after a transformation
Transform the error bars too. If , then . Error bars that were equal in become unequal in , which is a reason to use a weighted fit afterwards.
Put the quantity with the largest relative error on the vertical axis. Ordinary least squares assumes is exact.
Finally, check the result is straight. If the transformed points still curve, the model or a parameter is wrong. In 2017 D2, using the fallback kpc makes the – plot visibly bent, which tells you that value is wrong.
Key formulas
- Power law
- Exponential
- Error of a logarithm
Common mistakes
- Plotting y against log x when the model is a power law (both axes need logs).
- Forgetting that a magnitude is already a logarithm and taking its log again.
- Keeping the original error bars after transforming the variable.
- Not checking that the transformed data actually look straight.
Practise this chapter
Past IOAA problems that use these skills.
Saved in this browser only.
