Skip to content

Search topics

Practise for free Sign in

Worked example Numerical methods

Numerical methods for integrals and curves worked example

In one sentence

5 worked examples on Numerical methods for integrals and curves, each solved step by step.

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

Numerical methods for integrals and curves for your study of A-level maths, with its source.

Related pages include Geometric sequences and series, Secant, cosecant and cotangent, Statistical hypothesis tests and Proof.

Points to check

  • Doubling the end ordinates instead of the middle ones.

Study brief

  • Numerical integration methods allow for the calculation of the approximate area under a curve when analytical solutions are not possible. One such approach is the trapezium rule. For instance, this rule can be applied to evaluate the integral of 2x + 1 from 0 to 1. This process involves using specific values such as 0, 0.25, 0.5, 0.75 and 1. A sketch of the graph can help determine if the result provides an over-estimate or an under-estimate. Students can also use definite integrals to find finite areas bounded by various shapes. Examples include finding the area between the curve y = 6x – x2 and the line y = 2x, or the area between the curves y = x2 – 5x + 6 and y = 4 – x2. These calculations can involve curves defined parametrically. Understanding the accuracy and limitations of these numerical solutions is essential. Additionally, locating roots of f(x) = 0 can be achieved by observing sign changes in an interval where the function is continuous. If the interval is too large, an even number of roots might exist, meaning the sign does not change. If a function is not continuous, a sign change might incorrectly suggest a root where an asymptote exists instead.

Worked examples

Example 1

Problem

Use the trapezium rule with 6 strips to estimate the integral of sin x from 0 to π.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Strip width h = (3.142 − 0)/6 = 0.5236.
  2. 2 y-values: 0.0000, 0.5000, 0.8660, 1.0000, 0.8660, 0.5000, 0.0000.
  3. 3 Estimate = h/2 × [first + last + 2(sum of the others)] = 0.2618 × [0.0000 + 2 × 3.7321].
  4. 4 Estimate ≈ 1.9541.

Answer

≈ 1.9541

Example 2

Problem

Use the trapezium rule with 4 strips to estimate the integral of 1/(1 + x) from 0 to 1.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Strip width h = (1.000 − 0)/4 = 0.2500.
  2. 2 y-values: 1.0000, 0.8000, 0.6667, 0.5714, 0.5000.
  3. 3 Estimate = h/2 × [first + last + 2(sum of the others)] = 0.1250 × [1.5000 + 2 × 2.0381].
  4. 4 Estimate ≈ 0.6970.

Answer

≈ 0.6970

Example 3

Problem

Use the trapezium rule with 4 strips to estimate the integral of x³ from 0 to 2.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Strip width h = (2.000 − 0)/4 = 0.5000.
  2. 2 y-values: 0.0000, 0.1250, 1.0000, 3.3750, 8.0000.
  3. 3 Estimate = h/2 × [first + last + 2(sum of the others)] = 0.2500 × [8.0000 + 2 × 4.5000].
  4. 4 Estimate ≈ 4.2500.

Answer

≈ 4.2500

Example 4

Problem

Use the trapezium rule with 4 strips to estimate the integral of √(1 + x³) from 0 to 2.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Strip width h = (2.000 − 0)/4 = 0.5000.

    Why: Divide the interval evenly.

  2. 2 y-values: 1.0000, 1.0607, 1.4142, 2.0917, 3.0000.

    Why: Evaluate the function at each ordinate.

  3. 3 Estimate = h/2 × [first + last + 2(sum of the others)] = 0.2500 × [4.0000 + 2 × 4.5665].

    Why: The trapezium formula.

  4. 4 Estimate ≈ 3.2833.

    Why: Round at the end.

Answer

≈ 3.2833

Example 5

Problem

Use the trapezium rule with 5 strips to estimate the integral of e^(−x²) from 0 to 1.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Strip width h = (1.000 − 0)/5 = 0.2000.
  2. 2 y-values: 1.0000, 0.9608, 0.8521, 0.6977, 0.5273, 0.3679.
  3. 3 Estimate = h/2 × [first + last + 2(sum of the others)] = 0.1000 × [1.3679 + 2 × 3.0379].
  4. 4 Estimate ≈ 0.7444.

Answer

≈ 0.7444

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