The non-linear initial value problem in question is the following:
Our goal is to compute approximate values to the equation at the pointsand plot solutions using:
Part A) h=.1
The Euler's method states thatwhereWhen h=.1 and t=.5 we have that 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
Step 1
Step 2
Step 3
Step 4
Step 5
Answer
Now repeat the process for t=1
This time we have 10 steps since there are ten steps of length .1 in t=1.After computations we get the approximation
Keep repeating the process for t=1.5,2.0,2.5
Part B) h=.05
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 haveNow use Euler's method to approximate y(.5) after 10 steps
Answer
Just like in Part A, we repeat this process for T=1,1.5,2.0,2.5
Answers
Part C)
h=0.025
Answers
Part D)
h=0.01
Answers
Interactive Plot
h1=> h=.1
h2=> h=.05
h3=> h=.025
h4=> h=.01
Comments on the behavior
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:
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
With h=.01, we get
Technologies used for this project
Emathhelp.net was used for performing the computations of each Euler approximation. Link.
D3, a javascript datavisualization library, was used to plot the points created by each approximation in problem 1. Link.
Darryl Nester's Slope Field Generator was used to calculate the slope field of the differntial equation in problem
two. Link.
Mathjax was used to render the LaTeX on this webpage. Link.