The non-linear initial value problem in question is the following:
$$y^{\prime}=5-3 \sqrt{y}, \quad y(0)=2$$
Our goal is to compute approximate values to the equation at the points$$t=0.5,1,1.5,2.0,2.5$$and plot solutions using:$$a)\: h=0.1 \: b)\: h=0.05\: c)\: h=0.025 \: d)\: h=0.01$$
Part A) h=.1
The Euler's method states that$$y_{n+1}=y_{n}+h \cdot f\left(t_{n}, y_{n}\right),$$where$$t_{n+1}=t_{n}+h$$When h=.1 and t=.5 we have that $$h=\frac{1}{10}, t_{0}=0, y_{0}=2, f(t, y)=5-3 \sqrt{y}$$We have a step size of .1 and we are trying to approximate y(.5) so we will use this method to calculate one
point at each of the five steps
This time we will see twice as many steps as there were in part a because the step size has been reduced by a halfWhen h=.05 and t=.05, we have
$$h=\frac{1}{20}, t_{0}=0, y_{0}=2, f(t, y)=5-3 \sqrt{y}$$
Now use Euler's method to approximate y(.5) after 10 steps
Answer
$$y\left(\frac{1}{2}\right)=2.30166603354356$$
Just like in Part A, we repeat this process for T=1,1.5,2.0,2.5
With smaller values of h, it seems that our answers are becoming more refined and closer to a single solution. Though it is difficult to see on the interactive graph, the approximations at h=.01 are closer to a single solution than they are at h=.1
Problem 2
In this problem, we are concerned with the following initial value problem:
$$y^{\prime}=-t y+0.1 y^{3}, \quad y(0)=\alpha$$
This differential equation can be represented by the vector field below:
Part A
When we plug in different values for alpha between 1 and 4 we get lines of different behaviors
The red line represents alpha = 1
The green line represents alpha = 2
The blue line represents alpha = 3
It is clear that between alpha = 2 and alpha = 3, there is a value for alpha that is a "tipping point" that leads to either divergence or convergence.
Part B
In order to approximate the value of this tipping point, I plugged in values of alpha between 2 and 3 until they either drew a line that diverged or converged.
Last black line is alpha = 2.3714, it seems that the tipping point is about 2.73
Here, each time that I plugged in a value for alpha with a decimal place that was either slightly greater than 2.3 and if it stayed convergent then I would keep on increasing the value of the decimal place until it became divergent.
Part C
In order to approximate the tipping point, we can also use Euler's method