All flashcards topics

Numerical solution of differential equationsEdexcel A-Level Further Maths: Flashcards

Card 1 of 140 of 14 known

Question

State the forward difference approximation to $\frac{dy}{dx}$ at $x_n$.

Tap or press Space to reveal

Tap card or press Space to flip

See all 14 cards
State the forward difference approximation to dydx\frac{dy}{dx} at xnx_n.
yn+1−ynh\frac{y_{n+1}-y_n}{h}.
State the central difference approximation to dydx\frac{dy}{dx} at xnx_n.
yn+1−yn−12h\frac{y_{n+1}-y_{n-1}}{2h}.
State the approximation to d2ydx2\frac{d^2y}{dx^2} at xnx_n.
yn+1−2yn+yn−1h2\frac{y_{n+1}-2y_n+y_{n-1}}{h^2}.
Give the formula for yn+1y_{n+1} from the forward difference method.
yn+1=yn+hf(xn,yn)y_{n+1}=y_n+hf(x_n,y_n).
Give the formula for yn+1y_{n+1} from the central difference method.
yn+1=yn−1+2hf(xn,yn)y_{n+1}=y_{n-1}+2hf(x_n,y_n).
Give the formula for yn+1y_{n+1} for d2ydx2=f(x,y)\frac{d^2y}{dx^2}=f(x,y).
yn+1=2yn−yn−1+h2f(xn,yn)y_{n+1}=2y_n-y_{n-1}+h^2f(x_n,y_n).
What is the step length hh?
The constant gap between successive xx values, xn=x0+nhx_n=x_0+nh.
Why does the central difference method need two starting values?
Each step uses yn−1y_{n-1}, so both y0y_0 and y1y_1 are needed.
How is y1y_1 found for the central difference method?
By the forward difference method: y1=y0+hf(x0,y0)y_1=y_0+hf(x_0,y_0).
What do the initial conditions give for a second-order equation?
y0y_0 and the gradient at x0x_0.
How do you find y1y_1 for a second-order equation?
Combine the central difference at n=0n=0 with the recurrence formula at n=0n=0, to eliminate y−1y_{-1}.
How is the percentage error calculated?
exact−estimateexact×100\frac{\text{exact}-\text{estimate}}{\text{exact}}\times100.
How can a numerical estimate be improved?
Use a smaller step length, so the difference approximations are more accurate.
What must be done when the equation contains both dydx\frac{dy}{dx} and d2ydx2\frac{d^2y}{dx^2}?
Replace both by their difference approximations and collect the yn+1y_{n+1}, yny_n and yn−1y_{n-1} terms.

Exam questions on Numerical solution of differential equations

  1. The differential equation dydx=x+y\frac{dy}{dx}=x+y, with y=1y=1 when x=0x=0, is solved numerically using the approximation (dydx)n=yn+1−ynh\left(\frac{dy}{dx}\right)_n=\frac{y_{n+1}-y_n}{h} with h=0.2h=0.2. Here xn=0.2nx_n=0.2n and yny_n is the approximation to yy at xnx_n.
    Given that y3=1.856y_3=1.856, and that the exact solution is y=2ex−x−1y=2e^x-x-1, calculate the percentage error in y3y_3 as an approximation to y(0.6)y(0.6).2 marks
  2. The differential equation dydx=x−y\frac{dy}{dx}=x-y, with y=1y=1 when x=0x=0, is solved numerically using the approximation (dydx)n=yn+1−yn−12h\left(\frac{dy}{dx}\right)_n=\frac{y_{n+1}-y_{n-1}}{2h} with h=0.1h=0.1. Here xn=0.1nx_n=0.1n, y0=1y_0=1, and the value y1=0.9y_1=0.9 is found from the approximation (dydx)n=yn+1−ynh\left(\frac{dy}{dx}\right)_n=\frac{y_{n+1}-y_n}{h}.
    Find y3y_3.2 marks
  3. The function yy satisfies d2ydx2=−y\frac{d^2y}{dx^2}=-y, with y=0y=0 and dydx=1\frac{dy}{dx}=1 when x=0x=0. It is solved numerically with step length h=0.1h=0.1, where xn=0.1nx_n=0.1n and yny_n approximates yy at xnx_n, using (d2ydx2)n=yn+1−2yn+yn−1h2\left(\frac{d^2y}{dx^2}\right)_n=\frac{y_{n+1}-2y_n+y_{n-1}}{h^2} and (dydx)n=yn+1−yn−12h\left(\frac{dy}{dx}\right)_n=\frac{y_{n+1}-y_{n-1}}{2h}.
    Show that yn+1=1.99yn−yn−1y_{n+1}=1.99y_n-y_{n-1}.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).