Skip to content

Search topics

Practise for free Sign in

Formula Numerical methods

Relative and absolute error

When to use it

Judging how good a numerical estimate is. For approximation 48 and exact value 50 the relative error |48 − 50|/50 is 1/25. A relative error is never negative: here it is 1/25, at least 0.

Last checked Source: Numerical methods for integrals and curves Source: Numerical methods for integrals and curves qualifications.pearson.com (opens in a new tab)

Relative and absolute error for your study of A-level maths, with its source.

Worked case: Trapezium estimate 2.75 for exact value 8/3.

See also Perfect squares, Equations e^x = k and ln x = k, Exponential growth differential equation and Solving aˣ = b with logarithms.

Result: 3.13%

Application 1: Use the trapezium rule with 5 strips to estimate the integral of e^(−x²) from 0 to 1. Step 1: Strip width h = (1.000 − 0)/5 = 0.2000. Step 2: y-values: 1.0000, 0.9608, 0.8521, 0.6977, 0.5273, 0.3679. Step 3: Estimate = h/2 × [first + last + 2(sum of the others)] = 0.1000 × [1.3679 + 2 × 3.0379]. Step 4: Estimate ≈ 0.7444. Result: ≈ 0.7444.

Application 2: Use the trapezium rule with 4 strips to estimate the integral of x³ from 0 to 2. Step 1: Strip width h = (2.000 − 0)/4 = 0.5000. Step 2: y-values: 0.0000, 0.1250, 1.0000, 3.3750, 8.0000. Step 3: Estimate = h/2 × [first + last + 2(sum of the others)] = 0.2500 × [8.0000 + 2 × 4.5000]. Step 4: Estimate ≈ 4.2500. Result: ≈ 4.2500.

Application 3: Use the trapezium rule with 4 strips to estimate the integral of √(1 + x³) from 0 to 2. Step 1: Strip width h = (2.000 − 0)/4 = 0.5000. (Divide the interval evenly.) Step 2: y-values: 1.0000, 1.0607, 1.4142, 2.0917, 3.0000. (Evaluate the function at each ordinate.) Step 3: Estimate = h/2 × [first + last + 2(sum of the others)] = 0.2500 × [4.0000 + 2 × 4.5665]. (The trapezium formula.) Step 4: Estimate ≈ 3.2833. (Round at the end.) Result: ≈ 3.2833.

Points to check

  • Dividing by the approximate value, error = |x − y|/|x|: The relative error divides by the exact value: for approximation 48 and exact value 50 it is 1/25, whereas dividing by 48 gives 1/24.
  • Reporting the absolute error |x − y| as the relative error: The relative error is a ratio: |48 − 50| / 50 = 1/25, while the absolute error is 2.
  • Leaving out the modulus, giving (x − y)/y: The error is measured by size: |48 − 50|/50 = 1/25, never negative.
  • Doubling the end ordinates instead of the middle ones.

Study brief

  • Numerical methods permit finding solutions to a required level of accuracy for mathematical problems that cannot be solved analytically. When using these techniques, it is necessary to evaluate the accuracy or limitations of the resulting solutions. This evaluation may involve making reasoned estimates regarding the precision of the outcomes obtained. Identifying the limitations of a solution is an important part of the mathematical problem-solving cycle, which involves specifying the problem, collecting and processing information, and interpreting results. Such processes may highlight a need to repeat the cycle to improve precision. In certain contexts, like finding roots of functions, the behavior of the function is important; for example, sign change methods are appropriate for continuous functions on a small interval, though they may fail if an interval is too large or if an asymptote is present. Evaluating accuracy is a key skill when using numerical methods to solve problems in context.

Practise for free

Test yourself with exam-style questions and see why each answer is right or wrong.

Start practising
Free practice, no card Start without an account Sources checked Every fact names its official source
Works on any device Phone, tablet or desktop
Contact us Questions or a correction