<< Chapter < Page | Chapter >> Page > |
Match the direction field with the given differential equations. Explain your selections.
Match the direction field with the given differential equations. Explain your selections.
Estimate the following solutions using Euler’s method with steps over the interval 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?
Exact solution is
Exact solution is
Exact solution is
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. represents the size of the susceptible population, and represents the size of the infected population. We assume that if a susceptible person interacts with an infected person, there is a probability that the susceptible person will become infected. Each infected person recovers from the infection at a rate 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, The differential equations that model these population sizes are
Here represents the contact rate and is the recovery rate.
Show that, by our assumption that the total population size is constant you can reduce the system to a single differential equation in
Assuming the parameters are and draw the resulting directional field.
[T] Use computational software or a calculator to compute the solution to the initial-value problem using Euler’s Method with the given step size Find the solution at For a hint, here is “pseudo-code” for how to write a computer program to perform Euler’s Method for
Create function
Define parameters step size and total number of steps,
Write a for loop:
for
Draw the directional field
[T] Evaluate the exact solution at 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?
Step Size | Error |
---|---|
Consider the initial-value problem
Show that solves this initial-value problem.
[T] By hand or by calculator or computer, approximate the solution using Euler’s Method at using
[T] By calculator or computer, approximate the solution using Euler’s Method at using
[T] Plot exact answer and each Euler approximation (for and at each on the directional field. What do you notice?
Notification Switch
Would you like to follow the 'Calculus volume 2' conversation and receive update notifications?