When a quantity is approximated instead of computed exactly, the mismatch between the actual and approximate values is measured by three related notions of error, all built on linear approximation (equation f(x0+Δx)−f(x0)≈f′(x0)Δx).
Definition (Absolute Error).
Absolute error=Actual value−Approximate value.
If h=x−x0 is the change in the input and E(h)=f(x0+h)−f(x0)−f′(x0)h, then E(h) is the absolute error made by using the linear approximation in place of the true value; E(0)=0 and h→0limhE(h)=0 whenever f is differentiable at x0, i.e. the error vanishes faster than h itself.
Absolute error alone doesn't say whether an approximation is good — an absolute error of 5 is trivial if the actual value is 10,000 but huge if the actual value is 6. This is fixed by dividing out the actual value:
Definition (Relative and Percentage Error). If the actual value is nonzero,
Relative error=Actual valueActual value−Approximate value,Percentage error=Relative error×100.
Absolute error carries the same units as the quantity being measured (cm, cm2, cm3, ...); relative error and percentage error are dimensionless (unit-free) ratios, which is exactly what makes them fit for comparing two very differently-sized approximations.
Working method for an error problem. Given a quantity Q=f(x) measured via x, and a measurement/change dx in x:
- Absolute error in Q ≈dQ=f′(x)dx (evaluated at the reference value of x).
- Relative error ≈QdQ=f(x)f′(x)dx.
- Percentage error =100× relative error.
Powers scale the percentage error linearly. If Q=xn (or more generally Q=cxn), logarithmic differentiation gives QdQ=nxdx — so the percentage error in xn is n times the percentage error in x. The same idea run in reverse (with n=n1 replaced by a root) shows the percentage error in the nth root of a number is n1 times the percentage error in the number — e.g. an area A=πr2 has percentage error 2× that of r (since n=2), while a volume V=34πr3 has percentage error 3× that of r.
Whenever the problem gives a measured value instead of the actual value (e.g. "measured as 12.65 cm instead of the actual 12.5 cm"), take x0= actual value and dx= measured − actual — this sign convention keeps absolute/relative/percentage error consistent with the definition above.