Problem Sheet 3 - Runge Kutta#
a. Apply the Midpoint Method to approximate the solution of the given initial value problems using the indicated number of time steps. Compare the approximate solution with the given exact solution:
with the initial condition \(y(0)=1,\) Let \(N=4\), with the exact solution
b. Apply the Midpoint Method to approximate the solution of the given initial value problems using the indicated number of time steps. Compare the approximate solution with the given exact solution:
with the initial condition \(y(0)=2,\) Let \(N=4\), with the exact solution
a. Apply the 4th Order Runge Kutta Method to approximate the solution of the given initial value problems using the indicated number of time steps. Compare the approximate solution with the given exact solution
with the initial condition \(y(0)=1,\) Let \(N=4\), with the exact solution
b. Apply the 4th Order Runge Kutta Method to approximate the solution of the given initial value problems using the indicated number of time steps. Compare the approximate solution with the given exact solution
with the initial condition \(y(0)=2,\) \(N=4\), with the exact solution
Derive the difference equation for the Midpoint Runge Kutta method
for solving the ordinary differential equation
with the initial condition
by using a formula of the form
where \(k_1\) is defined as above,
and \(a\), \(b\), \(\alpha\) and \(\beta\) are constants are determined. Prove that \(a+b=1\) and \(b\alpha=b\beta=\frac{1}{2}\) and choose appropriate values to give the Midpoint Runge Kutta method.