Problem Sheet 2#
Apply 2nd Order Taylor Method to approximate the solution of the given initial value problems using the indicated number of time steps, N. Compare the approximate solution with the given exact solution, and compare the actual error with the theoretical local and global error:
a. \(y'=t-y, \ \ (0\leq t \leq 4)\) with the initial condition \(y(0)=1\), \(N=4\), with the exact solution \(y(t)=2e^{-t}+t-1.\) The Lipschitz constant is determined on \(D=\{(t,y);0\leq t \leq 4, y\in \rm I\!R \}.\)
b. \(y'=y-t, \ \ (0\leq t \leq 2) \) with the initial condition \(y(0)=2,\) \(N=4\), with the exact solution \(y(t)=e^{t}+t+1\). The Lipschitz constant is determined on \( D=\{(t,y);0\leq t \leq 2, y\in \rm I\!R \}. \)
Apply 3rd Order Taylor 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, and compare the actual error with the theoretical local and global error
a. \(y'=t-y, \ \ (0\leq t \leq 4)\) with the initial condition \(y(0)=1\), \(N=4\), with the exact solution \(y(t)=2e^{-t}+t-1.\) The Lipschitz constant is determined on \(D=\{(t,y);0\leq t \leq 4, y\in \rm I\!R \}.\)
b. \(y'=y-t, \ \ (0\leq t \leq 2) \) with the initial condition \(y(0)=2,\) \(N=4\), with the exact solution \(y(t)=e^{t}+t+1\). The Lipschitz constant is determined on \( D=\{(t,y);0\leq t \leq 2, y\in \rm I\!R \}. \)
Apply the 2nd Order Taylor method using \(N=4\) steps to approximate the solution of initial value problem
Apply 2nd Order Taylor Method to approximate the solution of the given initial value problems using the indicated number of time steps.
a. \(y'=0.2y-0.01y^2, \ \ (2000\leq t \leq 2002)\) with the initial condition \(y(2000)=6,\) and \(h=0.5\).
b. \(y'=0.2y-0.01y^2+\sin(2\pi t), \ \ (2000\leq t \leq 2002)\)with the initial condition \(y(2000)=6,\) and \(h=0.5\).
Adapt the Python code for the 2nd Order Taylor method provided to approximate solution of the integrate and fire differential equation:
(159)#\[\begin{equation} \tau_m\frac{dV}{dt} = -(V-E_L) + R_mI(t), \ \ -50\leq t \leq 400, \end{equation}\]where \(E_L = -75\), \(\tau_m = 10\), \(R_m = 10\) and \(I(t)=0.01t\) and the initial condition \(V(0) = -75\) using a stepsize of \(h=0.5\).