For the following problems, use the direction field below from the differential equation [latex]y^{\prime} =-2y[/latex]. Sketch the graph of the solution for the given initial conditions.
2. [latex]y\left(0\right)=0[/latex]
4. Are there any equilibria? What are their stabilities?
For the following problems, use the direction field below from the differential equation [latex]y^{\prime} ={y}^{2}-2y[/latex]. Sketch the graph of the solution for the given initial conditions.
6. [latex]y\left(0\right)=1[/latex]
8. Are there any equilibria? What are their stabilities?
Draw the direction field for the following differential equations, then solve the differential equation. Draw your solution on top of the direction field. Does your solution follow along the arrows on your direction field?
10. [latex]y^{\prime} ={e}^{t}[/latex]
12. [latex]\frac{dy}{dt}=t{e}^{t}[/latex]
Draw the directional field for the following differential equations. What can you say about the behavior of the solution? Are there equilibria? What stability do these equilibria have?
14. [latex]y^{\prime} ={y}^{2}-1[/latex]
16. [latex]y^{\prime} =1-{y}^{2}-{x}^{2}[/latex]
18. [latex]y^{\prime} =3y+xy[/latex]
Match the direction field with the given differential equations. Explain your selections.
20. [latex]y^{\prime} =-3t[/latex]
22. [latex]y^{\prime} =\frac{1}{2}y+t[/latex]
Match the direction field with the given differential equations. Explain your selections.
24. [latex]y^{\prime} =t\sin{y}[/latex]
26. [latex]y^{\prime} =t\tan{y}[/latex]
28. [latex]y^{\prime} ={y}^{2}{t}^{3}[/latex]
Estimate the following solutions using Euler’s method with [latex]n=5[/latex] steps over the interval [latex]t=\left[0,1\right][/latex]. If you are able to solve the initial-value problem exactly, compare your solution with the exact solution. If you are unable to solve the initial-value problem, the exact solution will be provided for you to compare with Euler’s method. How accurate is Euler’s method?
30. [latex]y^{\prime} ={t}^{2}[/latex]
32. [latex]{y}^{\prime }=y+{t}^{2},y\left(0\right)=3[/latex]. Exact solution is [latex]y=5{e}^{t}-2-{t}^{2}-2t[/latex]
33. [latex]{y}^{\prime }=2t,y\left(0\right)=0[/latex]
34. [T] [latex]y^{\prime} ={e}^{\left(x+y\right)},y\left(0\right)=-1[/latex]. Exact solution is [latex]y=\text{-}\text{ln}\left(e+1-{e}^{x}\right)[/latex]
36. [latex]{y}^{\prime }={2}^{x},y\left(0\right)=0[/latex], Exact solution is [latex]y=\frac{{2}^{x}-1}{\text{ln}\left(2\right)}[/latex]
38. [latex]{y}^{\prime }=-5t,y\left(0\right)=-2[/latex]. Exact solution is [latex]y=-\frac{5}{2}{t}^{2}-2[/latex]
Differential equations can be used to model disease epidemics. In the next set of problems, we examine the change of size of two sub-populations of people living in a city: individuals who are infected and individuals who are susceptible to infection. [latex]S[/latex] represents the size of the susceptible population, and [latex]I[/latex] represents the size of the infected population. We assume that if a susceptible person interacts with an infected person, there is a probability [latex]c[/latex] that the susceptible person will become infected. Each infected person recovers from the infection at a rate [latex]r[/latex] and becomes susceptible again. We consider the case of influenza, where we assume that no one dies from the disease, so we assume that the total population size of the two sub-populations is a constant number, [latex]N[/latex]. The differential equations that model these population sizes are
Here [latex]c[/latex] represents the contact rate and [latex]r[/latex] is the recovery rate.
40. Assuming the parameters are [latex]c=0.5,N=5[/latex], and [latex]r=0.5[/latex], draw the resulting directional field.
41. [T] Use computational software or a calculator to compute the solution to the initial-value problem [latex]y^{\prime} =ty,y\left(0\right)=2[/latex] using Euler’s Method with the given step size [latex]h[/latex]. Find the solution at [latex]t=1[/latex]. For a hint, here is “pseudo-code” for how to write a computer program to perform Euler’s Method for [latex]y^{\prime} =f\left(t,y\right),y\left(0\right)=2\text{:}[/latex]
Create function [latex]f\left(t,y\right)[/latex]
Define parameters [latex]y\left(1\right)={y}_{0},t\left(0\right)=0[/latex], step size [latex]h[/latex], and total number of steps, [latex]N[/latex]
Write a for loop:
for [latex]\text{k}=1\text{to N}[/latex]
[latex]\text{fn}=\text{f}\left(\text{t}\left(\text{k}\right),\text{y}\left(\text{k}\right)\right)[/latex]
[latex]\text{y}\left(\text{k+1}\right)=\text{y}\left(\text{k}\right)+\text{h*fn}[/latex]
[latex]\text{t}\left(\text{k+1}\right)=\text{t}\left(\text{k}\right)+\text{h}[/latex]
42. Solve the initial-value problem for the exact solution.
44. [latex]h=1[/latex]
46. [T] [latex]h=100[/latex]
48. [T] Evaluate the exact solution at [latex]t=1[/latex]. Make a table of errors for the relative error between the Euler’s method solution and the exact solution. How much does the error change? Can you explain?
Consider the initial-value problem [latex]y^{\prime} =-2y,y\left(0\right)=2[/latex].
50. Draw the directional field of this differential equation.
52. [T] By calculator or computer, approximate the solution using Euler’s Method at [latex]t=10[/latex] using [latex]h=100[/latex].