- 1
The differential equation dxdy=x+y, with y=1 when x=0, is solved numerically using the approximation (dxdy)n=hyn+1−yn with h=0.2. Here xn=0.2n and yn is the approximation to y at xn. (a)Find the approximation y1 to y(0.2). [1 mark] - A1.24
- B1.2
- C1.1
- D2
Show the mark scheme
(b)Find the approximation y2 to y(0.4). [1 mark] - A1.44
- B1.52
- C1.4
- D1.48
Show the mark scheme
(c)Given that y3=1.856, and that the exact solution is y=2ex−x−1, calculate the percentage error in y3 as an approximation to y(0.6). [2 marks] Show the mark scheme
Mark scheme
M1: exact value y(0.6)=2e0.6−1.6=2.044…
A1: 9.2% Total for question 1: 4 marks
- 2
The differential equation dxdy=x−y, with y=1 when x=0, is solved numerically using the approximation (dxdy)n=2hyn+1−yn−1 with h=0.1. Here xn=0.1n, y0=1, and the value y1=0.9 is found from the approximation (dxdy)n=hyn+1−yn. (a)Which formula gives yn+1 in terms of earlier values? [1 mark] - Ayn+1=yn−1+2h(xn−yn)
- Byn+1=yn+2h(xn−yn)
- Cyn+1=yn−1+h(xn−yn)
- Dyn+1=yn+h(xn+1−yn+1)
Show the mark scheme
- A0.82
- B0.86
- C0.84
- D1.2
Show the mark scheme
Show the mark scheme
Mark scheme
M1: y3=y1+0.2(x2−y2)=0.9+0.2(0.2−0.84)
A1: 0.772
Accept: follow-through from their y2 Total for question 2: 4 marks
- 3
The function y satisfies dx2d2y=−y, with y=0 and dxdy=1 when x=0. It is solved numerically with step length h=0.1, where xn=0.1n and yn approximates y at xn, using (dx2d2y)n=h2yn+1−2yn+yn−1 and (dxdy)n=2hyn+1−yn−1. (a)Show that yn+1=1.99yn−yn−1. [3 marks] Show the mark scheme
Mark scheme
M1: substitutes the second-derivative approximation into dx2d2y=−y, i.e. 0.01yn+1−2yn+yn−1=−yn
A1: yn+1−2yn+yn−1=−0.01yn
A1: yn+1=1.99yn−yn−1
AG: the final line must be reached from correct working (b)Use the formula in part (a) with n=0, together with the approximation for dxdy, to find y1. Hence find y2. [4 marks] Show the mark scheme
Mark scheme
M1: 0.2y1−y−1=1, so y1−y−1=0.2
M1: n=0 in the formula, y1=1.99y0−y−1=−y−1, as y0=0
A1: y1=0.1
A1: y2=1.99(0.1)−0=0.199 Total for question 3: 7 marks
- 4
The function y satisfies dx2d2y+2dxdy+y=0, with y=1 and dxdy=0 when x=0. It is solved numerically with h=0.5, where xn=0.5n and yn approximates y at xn, using (dx2d2y)n=h2yn+1−2yn+yn−1 and (dxdy)n=2hyn+1−yn−1. (a)(i) Show that 6yn+1−7yn+2yn−1=0.
(ii) Find y1. [6 marks] Show the mark scheme
Mark scheme
M1: (i) substitutes both approximations with h=0.5, 4(yn+1−2yn+yn−1)+2(yn+1−yn−1)+yn=0
A1: (i) 4yn+1−8yn+4yn−1+2yn+1−2yn−1+yn=0
A1: (i) 6yn+1−7yn+2yn−1=0
M1: (ii) 1y1−y−1=0, so y−1=y1
M1: (ii) n=0: 6y1−7y0+2y−1=0 with y0=1
A1: (ii) y1=87
Accept: 0.875 (b)(i) Find y2, an approximation to y(1).
(ii) The exact solution is y=(1+x)e−x. Calculate the percentage error in y2.
(iii) State, with a reason, how the approximation could be improved. [6 marks] Show the mark scheme
Mark scheme
M1: (i) y2=67y1−2y0
A1: (i) 1611=0.6875
M1: (ii) exact y(1)=2e−1=0.7358…, and error 0.73580.7358−0.6875
A1: (ii) 6.6%
B1: (iii) use a smaller step length h
B1: (iii) the difference approximations are then closer to the true derivatives
Accept: use of a method that is more accurate, with a reason Total for question 4: 12 marks
End of questions