Question: 1 . Consider the problem of finding, on the interval [ a , b ] where a and b are real numbersConsider the problem of

1. Consider the problem of finding, on the interval [a, b] where a and b are real numbersConsider the problem of finding, on the interval a,b where a and b are real numbers
which are such that ab, the solution y to the initial value problem
y'=f(x,y(x)),y(a)=y0
where
f=-s(y-(x+2))+1,
where s is your student ID number and
y(0)=1
For appropriate integers j, let xj=a+jh where h is the step size and is such that N=b-ah
is an integer.
[15 marks] For each of the following mehods (2),(3),(4), write the Python code that
produces the discrete time points in a straight line xin[0,10-5] for h=0.000002,0.00000125,
implements the method and plots numerical solution togehter with the exact one in the same
axes. Save all codes in CW1q1_your_name.py
Save all solutions in CW1_your_name.pdf
a Consider a one-step finite difference method to find the approximate solution to (1)
yn+1=yn+hf(xn+h,yn+hf(xn,yn))
a1[5 marks] Find such values of that the local truncation error of the FDE (2) is
O(h2).
a2[5 marks] Find the interval of stability for (2) with the value of obtained in part
[a1] and explain why (2) is not absolutely stable.
which are such that a = b, the solution y to the initial value problem
y
= f(x, y(x)), y(a)= y0(1)
where
f =s(y (x +2))+1,
where s is your student ID number and
y(0)=1
For appropriate integers j, let xj = a + jh where h is the step size and is such that N =
ba
h
is an integer.
[15 marks] For each of the following mehods (2),(3),(4), write the Python code that
produces the discrete time points in a straight line x in [0,105
] for h =0.000002,0.00000125,
implements the method and plots numerical solution togehter with the exact one in the same
axes. Save all codes in CW1q1 your name.py
Save all solutions in CW1 your name.pdf
a Consider a one-step finite difference method to find the approximate solution to (1)
yn+1= yn + hf(xn +\alpha h, yn +\alpha hf(xn, yn))(2)
a1[5 marks] Find such values of \alpha that the local truncation error of the FDE (2) is
O(h
2
).
a2[5 marks] Find the interval of stability for (2) with the value of \alpha obtained in part
[a1] and explain why (2) is not absolutely stable.
1 . Consider the problem of finding, on the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!