Numerical methods in context

A level Maths (Edexcel) · Edexcel 9MA0 · P9.4 · Pure mathematics › Numerical methods

1 exam-style question plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and Full packs are open to everyone. Practice needs a free account.

Or take a quick quiz: 10 questions on this subtopic in A level Maths (Edexcel), marked as you tap.

Revision notes

Many equations and integrals that come from real situations cannot be solved exactly. You apply change of sign, iteration, Newton–Raphson and the trapezium rule to models and data, then interpret the answer in context, with units and a sensible accuracy, and comment on how reliable it is. These questions often combine several topics and are worth 6 to 10 marks.

Key facts

  • Change of sign: \(\mathrm{f}\) continuous, \(\mathrm{f}(a)\) and \(\mathrm{f}(b)\) of opposite signs \(\Rightarrow\) a root between \(a\) and \(b\)
  • Iteration: \(x_{n+1} = \mathrm{g}(x_n)\)
  • Newton–Raphson: \(x_{n+1} = x_n - \dfrac{\mathrm{f}(x_n)}{\mathrm{f}'(x_n)}\)
  • Trapezium rule: \(\dfrac{1}{2}h\left\{(y_0 + y_n) + 2(y_1 + \cdots + y_{n-1})\right\}\)
  • Distance \(= \int v\,\mathrm{d}t\) (area under a speed–time graph)
  • Decimal hours to minutes: multiply the decimal part by 60
  • Increasing at a decreasing rate (concave): the trapezium rule underestimates

Notes

Why numerical methods

  • Equations such as \(t = 2\ln(5t)\) or \(\theta - \sin\theta = 1\) have no algebraic solution, so you find an approximate root.
  • Data given only as a table of values cannot be integrated exactly, so you use the trapezium rule.

Setting up and solving

diagram
  • Write the condition as an equation, then rearrange it into the form the question asks for (\(\mathrm{f}(x) = 0\) or \(x = \mathrm{g}(x)\)).
  • Choose a starting value that makes sense in the context, e.g. after the maximum if you want the time when a quantity falls below a level.
  • A model may give two solutions: decide which one answers the question.
  • tCO0.227.154C = 2C = 10te−0.5t
    \(C = 2\) twice: early on as the drug builds up, and at \(t = 7.154\) as it wears off. Only the second answers 'when does it stop being effective?'
  • Optimisation: setting a derivative equal to zero can give an equation that you then solve numerically.

Integrals in context

diagram
  • The area under a rate graph is a total amount: under a speed–time graph it is distance; under a flow-rate graph, volume.
  • Units multiply: (units of \(y\)) \(\times\) (units of \(x\)), e.g. m s-1 \(\times\) s = m.
  • t (s)Ov (m/s)2.2105.2207.4308.1408.2distance≈ 259 m
    The area under a speed–time graph is the distance. The real curve bends downwards between the readings, so the trapezia slightly underestimate it.

Interpreting and evaluating

  • State the answer in the context of the question, with units and a sensible accuracy (e.g. to the nearest minute).
  • Trapezium rule: say whether the estimate is too high or too low from the shape of the graph, and that more frequent readings (smaller \(h\)) would improve it.
  • Question the model: is the answer within the range where the model is valid? Are the data accurate?

How to answer each type of question

M = method mark, A = answer mark, B = a mark on its own, A1* = the solution must be fully correct, with every step shown.

Estimate a total from data with the trapezium rule

4 marksGrade C
  1. Identify what the area under the graph represents (e.g. distance under a speed–time graph).
  2. Find \(h\) from the spacing of the readings and apply the rule to all the values.
  3. Give units, and use the shape of the data to say whether it is an over- or underestimate.

Example. A cyclist's speed, \(v\) m s-1, is recorded every 10 seconds.

\(t\) (s)010203040
\(v\) (m s-1)2.25.27.48.18.2
(a) Use the trapezium rule with all the values to estimate the distance travelled in the 40 seconds.
(b) The speed increases at a decreasing rate. State, with a reason, whether your answer to (a) is an overestimate or an underestimate.

Show the model answerHide the model answer
(a) \(h = 10\)
B1
\(\dfrac{1}{2} \times 10 \times \left[2.2 + 8.2 + 2(5.2 + 7.4 + 8.1)\right]\)
\(= 5 \times 51.8\)
M1
\(= 259\) m
A1
(b) Underestimate: the speed–time graph is concave (bends downwards), so the tops of the trapezia lie below the curve
B1

Solve a model equation numerically and interpret the answer

8 marksGrade B
  1. Use a change of sign to show when the event happens.
  2. Rearrange the condition into the given iterative form.
  3. Iterate with ANS, then interpret the root in context with units.

Example. The concentration of a drug in a patient's blood, \(C\) mg per litre, \(t\) hours after an injection, is modelled by \(C = 10t\mathrm{e}^{-0.5t}\). The drug is effective while \(C \ge 2\).
(a) Show that the concentration falls to 2 mg per litre between \(t = 7\) and \(t = 7.5\).
(b) Show that when \(C = 2\), \(t = 2\ln(5t)\).
(c) Use the iteration \(t_{n+1} = 2\ln(5t_n)\) with \(t_0 = 7\) to find \(t_1\), \(t_2\) and \(t_3\), to 3 decimal places.
(d) The root is 7.154 to 3 decimal places. Find, to the nearest minute, how long after the injection the drug stops being effective.

Show the model answerHide the model answer
(a) \(C(7) = 2.11\ldots \gt 2\) and \(C(7.5) = 1.76\ldots \lt 2\); \(C\) is continuous, so \(C = 2\) between these times
M1 A1
(b) \(10t\mathrm{e}^{-0.5t} = 2 \Rightarrow \mathrm{e}^{0.5t} = 5t \Rightarrow 0.5t = \ln(5t)\) M1 \(\Rightarrow t = 2\ln(5t)\)
A1*
(c) \(t_1 = 7.111\), \(t_2 = 7.142\), \(t_3 = 7.151\)
M1 A1
(d) \(0.154 \times 60 = 9.2\) minutes, so about 7 hours 9 minutes after the injection
M1 A1

Comment on the reliability of a numerical answer

2 marksGrade A
  1. Check whether the answer lies inside the range of the data used to build the model.
  2. Think about what the model ignores and how accurate the data are.
  3. Make each comment specific to the context.

Example. The model \(C = 10t\mathrm{e}^{-0.5t}\) for the concentration of a drug was fitted to readings taken during the first 5 hours after an injection. It predicts that the drug stops being effective about 7 hours 9 minutes after the injection.
Give two reasons why this prediction may not be reliable.

Show the model answerHide the model answer
The prediction is outside the range of the data (after 5 hours), so the model may not hold at that time
B1
The model does not allow for differences between patients (e.g. how quickly their bodies remove the drug), and the readings it was fitted to may contain measurement errors
B1

Don’t lose marks

  • Giving a bare number with no units or context.
  • Converting 7.154 hours to '7 hours 15 minutes' (0.154 hours is about 9 minutes).
  • Finding the wrong root of a model that has two solutions.
  • Using the number of readings instead of the number of intervals to find \(h\)
  • Generic comments such as 'the data might be wrong': tie reliability comments to the specific model and data.

More tips

Memory tricks

  • Rate \(\times\) time = amount: the trapezium rule on a table of rates gives a total amount.
  • Decimal hours to minutes: multiply the decimal part by 60.
  • Before iterating, check that the starting value is on the correct side of any maximum or minimum for the root you want.
  • Sense check: does the answer fit the story (a positive time, a realistic size)?

Exam technique

  • Read what the answer represents (a time of day, a duration, a distance) and answer exactly the question asked.
  • Give values to the accuracy requested, and carry full accuracy in the calculator between parts.
  • For 'evaluate' or 'comment' marks, refer to the numbers in the question and say whether an estimate is too big or too small, and why.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade D
    Form an equation from a contextTurn a condition such as 'the concentration falls to 2 mg per litre' into an equation \(\mathrm{f}(t) = 0\)
  2. Grade C
    Estimate totals from data with the trapezium ruleDistance \(= \int v\,\mathrm{d}t\), volume \(= \int (\text{flow rate})\,\mathrm{d}t\), cross-section area \(= \int (\text{depth})\,\mathrm{d}x\)
  3. Grade C
    Solve contextual equations numericallyUse a given iteration or Newton–Raphson, and a change of sign to locate or confirm the root.
  4. Grade B
    Interpret numerical answers in contextGive units and convert where sensible, e.g. 7.154 hours is about 7 hours 9 minutes.
  5. Grade A
    Judge the reliability of an estimateConsider over- or underestimates, how often the data were recorded, and whether the model holds.
  6. Grade A*
    Combine calculus with numerical methodsFor example, set a derivative equal to zero to find a maximum, then solve the resulting equation numerically.

Sample questions

Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.

Question 1Easy6 marks
Water flows into a large tank, which is empty at time \(t = 0\). The rate of flow, \(r\) litres per minute, is measured every 8 minutes for 48 minutes, where \(t\) is the time in minutes. The results are shown in the table.
\(t\) (minutes)081624324048
\(r\) (litres per minute)50.040.133.529.026.124.122.7
(a) Use the trapezium rule with all the values in the table to estimate the volume of water in the tank after 48 minutes. Give your answer to 3 significant figures.
[3]
(b) The tank holds 1800 litres. After 48 minutes, water continues to flow into the tank at a constant rate of 22.7 litres per minute. Use your answer to part (a) to estimate how many more minutes it takes for the tank to become full. Give your answer to the nearest minute.
[2]
(c) Suggest how the estimate in part (a) could be made more accurate.
[1]
Show the answer and mark scheme
(a) Answer: \(1510\) litres
  • B1 for the strip width \(h = 8\) (or \(\frac{1}{2} \times 8\) seen)
  • M1 for the correct bracket structure \(\left[y_0 + y_{6} + 2(y_1 + \cdots + y_{5})\right]\) with the values from the table
  • A1 for awrt \(1510\) litres

Worked solution: The volume is \(\int_{0}^{48} r \, \mathrm{d}t\), the area under the graph of \(r\) against \(t\).
\(\frac{1}{2} \times 8 \times \left[50.0 + 22.7 + 2(40.1 + 33.5 + 29.0 + 26.1 + 24.1)\right] = 1513.2\)⁠, so the volume is approximately \(1510\) litres (3 s.f.).

(b) Answer: 13 minutes
  • M1 for \(\frac{1800 - \text{their (a)}}{22.7}\)
  • A1 for 13 minutes

Worked solution: The volume still needed is about \(1800 - 1510 = 290\) litres, so the time is \(\frac{290}{22.7} = 12.775330\ldots\) minutes, i.e. about 13 more minutes.

(c) Answer: Measure the rate of flow at shorter time intervals, so that more, narrower strips are used
  • B1 for measuring the rate more frequently (more strips of smaller width)

Worked solution: Measure the rate of flow at shorter time intervals, so that the trapezium rule can use more, narrower strips.

Question 2Medium7 marks
The power output, \(P\) kilowatts, of a set of solar panels is recorded on a sunny day, every 3 hours from 6 am to 6 pm. The time \(t\) is measured in hours after 6 am. The results are shown in the table.
The energy generated, in kilowatt-hours (kWh), is given by \(\int_{0}^{12} P \, \mathrm{d}t\).
\(t\) (hours)036912
\(P\) (kW)0.001.982.801.980.00
(a) Use the trapezium rule with all the values in the table to estimate the energy generated between 6 am and 6 pm. Give your answer to 3 significant figures.
[3]
(b) Each kWh generated saves the household 30p. Use your answer to part (a) to estimate the amount saved on this day, giving your answer to the nearest penny.
[2]
(c) State whether your answer to part (a) is likely to be an overestimate or an underestimate of the energy generated.
[1]
(d) Give a reason for your answer to part (c).
[1]
Show the answer and mark scheme
(a) Answer: \(20.3\) kWh
  • B1 for the strip width \(h = 3\) (or \(\frac{1}{2} \times 3\) seen)
  • M1 for the correct bracket structure \(\left[y_0 + y_{4} + 2(y_1 + \cdots + y_{3})\right]\) with the values from the table
  • A1 for awrt \(20.3\) kWh

Worked solution: \(\frac{1}{2} \times 3 \times \left[0.00 + 0.00 + 2(1.98 + 2.80 + 1.98)\right] = 20.28\)⁠, so the energy generated is approximately \(20.3\) kWh (3 s.f.).

(b) Answer: £6.08
  • M1 for their energy \(\times 30\) (pence) or \(\times 0.3\) (pounds)
  • A1 for £6.08 (or £6.09 from the rounded answer to (a))

Worked solution: \(20.28 \times 30 = 608.4\) pence, so the saving is about £6.08.

(c) Answer: Underestimate
  • B1 for underestimate

Worked solution: Underestimate.

(d) Answer: The graph of \(P\) against \(t\) is concave, so the tops of the trapezia lie below the curve
  • B1 for a reason: the graph of \(P\) against \(t\) is concave (it rises at a decreasing rate and falls at an increasing rate), so the tops of the trapezia lie below the curve

Worked solution: The values rise more and more slowly and then fall more and more quickly, so the graph of \(P\) against \(t\) bends downwards (it is concave). The straight tops of the trapezia lie below the curve, so the trapezium rule gives an underestimate.

Question 3Hard11 marks
A circular pond has centre \(O\) and radius \(r\) metres. A straight fence \(AB\) is built across the pond, where \(A\) and \(B\) are points on the edge of the pond and angle \(AOB = \theta\) radians, \(0 \lt \theta \lt \pi\).
The smaller region cut off by the fence (the minor segment) is to have an area equal to one quarter of the area of the pond.
(a) Show that \(\theta - \sin\theta = \dfrac{\pi}{2}\).
[3]
(b) Show that the equation \(\theta - \sin\theta = \frac{\pi}{2}\) has a root between 2.2 and 2.4.
[2]
(c) Using the iteration formula \(\theta_{n + 1} = \dfrac{\pi}{2} + \sin\theta_n\) with \(\theta_1 = 2\), find \(\theta_2\) and \(\theta_3\), giving your answers to 4 decimal places.
[2]
(d) The iteration converges to the root \(\alpha\). Find \(\alpha\) correct to 3 decimal places, justifying the accuracy of your answer.
[2]
(e) Find the length of the fence \(AB\) as a multiple of \(r\), giving your answer to 3 significant figures.
[2]
Show the answer and mark scheme
(a) Answer: Segment area \(= \frac{1}{2}r^2\theta - \frac{1}{2}r^2\sin\theta = \frac{1}{4}\pi r^2 \Rightarrow \theta - \sin\theta = \frac{\pi}{2}\)
  • M1 for segment area = sector area − triangle area: \(\frac{1}{2}r^2\theta - \frac{1}{2}r^2\sin\theta\)
  • M1 for equating to \(\frac{1}{4}\pi r^2\)
  • A1* for cancelling \(\frac{1}{2}r^2\) to obtain the given equation

Worked solution: Area of segment = area of sector \(AOB\) − area of triangle \(AOB\) \(= \frac{1}{2}r^2\theta - \frac{1}{2}r^2\sin\theta\).
Setting this equal to \(\frac{1}{4}\pi r^2\) and dividing by \(\frac{1}{2}r^2\): \(\theta - \sin\theta = \frac{\pi}{2}\).

(b) Answer: With \(\mathrm{f}(\theta) = \theta - \sin\theta - \frac{\pi}{2}\): \(\mathrm{f}(2.2) = -0.179\), \(\mathrm{f}(2.4) = 0.154\); sign change and \(\mathrm{f}\) continuous.
  • M1 for evaluating \(\mathrm{f}(2.2)\) and \(\mathrm{f}(2.4)\) for a suitable \(\mathrm{f}\) (awrt \(-0.18\) and \(0.15\))
  • A1 for a change of sign, \(\mathrm{f}\) continuous, so a root lies between 2.2 and 2.4

Worked solution: Let \(\mathrm{f}(\theta) = \theta - \sin\theta - \frac{\pi}{2}\). \(\mathrm{f}(2.2) = -0.179\), \(\mathrm{f}(2.4) = 0.154\). \(\mathrm{f}\) is continuous and changes sign, so there is a root between 2.2 and 2.4.

(c) Answer: \(\theta_2 = 2.4801\), \(\theta_3 = 2.1851\)
  • M1 for an attempt at the iteration (calculator in radians)
  • A1 for 2.4801 and 2.1851

Worked solution: \(\theta_2 = \frac{\pi}{2} + \sin 2 = 2.4801\), \(\theta_3 = \frac{\pi}{2} + \sin 2.4801 = 2.1851\).

(d) Answer: 2.310
  • M1 for iterating further (or another method) and choosing the interval \([2.3095, 2.3105]\), evaluating \(\mathrm{f}(2.3095) = -0.0006\) and \(\mathrm{f}(2.3105) = 0.0010\)
  • A1 for a sign change, so \(\alpha = 2.310\) (3 d.p.)

Worked solution: Continuing the iteration gives values closing in on 2.3099. Check: \(\mathrm{f}(2.3095) = -0.00064 \lt 0\) and \(\mathrm{f}(2.3105) = 0.00104 \gt 0\). There is a change of sign, so \(2.3095 \lt \alpha \lt 2.3105\) and \(\alpha = 2.310\) to 3 d.p.

(e) Answer: \(AB = 1.83r\)
  • M1 for \(AB = 2r\sin\frac{\alpha}{2}\) (or the cosine rule \(AB^2 = 2r^2 - 2r^2\cos\alpha\))
  • A1 for \(1.83r\)

Worked solution: \(AB = 2r\sin\dfrac{\alpha}{2} = 2r\sin(1.1549\ldots) = 1.83r\)⁠.

More in Numerical methods

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.