Section 1.3 Geometric and Quantitative Analysis
Objectives
To understand that direction fields are a useful way of analyzing a differential equation from a geometric point of view, especially since not all differential equations can be solved analytically.
To understand that an autonomous equation is a differential equation of the form
and that phase lines can be used to analyze autonomous differential equations.To understand equilibrium solutions to a differential equation
are those solutions given by for all In particular, an equilibrium solution is either a sink, source, or node.
Subsection 1.3.1 RC Circuits
Suppose that we wish to analyze how an electric current flows through a circuit. An RC circuit is a very simple circuit might contain a voltage source, a capacitor, and a resistor (Figure 1.3.1). A battery or generator is an example of a voltage source. The glowing red heating element in a toaster or an electric stove is an example of something that provides resistance in a circuit. A capacitor stores an electrical charge and can be made by separating two metal plates with an insulating material. Capacitors are used to power the electronic flashes for cameras. Current,Subsection 1.3.2 Direction Fields
Any differential equationplot_slope_field
. We will learn how to add solution curves at the end of this section.
xxxxxxxxxx
t, y = var('t, y')
f(t, y) = y^2/2 - t
plot_slope_field(f, (t, -1, 5), (y, -5, 10), headaxislength=3, headlength=3, axes_labels=['$t$','$y(t)$'])
Activity 1.3.1. Plotting Direction Fields.
Plot the direction field and the solution curves for each of the following initial conditions.
(a)
(b)
(c)
(d)
(e)
In each case comment on anything that you notice about the direction field and the solutions.
Subsection 1.3.3 RC Circuits Revisited
Now let us return to our RC circuit and consider different functionsSubsection 1.3.4 Plotting Direction Fields with Sage
The Sage interact below will help you plot direction fields for a given initial value problem. A Sage interact is a menu driven Sage applet. All of the Sage code is “under the hood.” You can then change each field in the cell output to solve a particular initial value problem.Subsection 1.3.5 Autonomous Differential Equations
An autonomous differential equation is one of the formExample 1.3.9. A Logistic Model with Harvesting.
Let us consider a trout pond that has a carrying capacity of 200 fish. Suppose that the trout population can be modeled according to the logistic equation
where
The direction field for this equation is given in Figure 1.3.10.
One of the basic questions that we can ask of our model is whether or not we have a sustainable population in our trout pond given this harvest rate. If so, under what conditions for sustainablility?
Activity 1.3.2. Autonomous Equations and Phase Lines.
For each of the differential equations below, draw the phase line and classify each equilibrium solution as a sink, a source, or a node.
(a)
(b)
(c)
(d)
In each case comment on anything that you notice about the phase line and the equilibrium solutions.
Subsection 1.3.6 Important Lessons
Direction fields and phase lines are a useful way of analyzing a differential equation from a geometric point of view, especially since not all differential equations can be solved analytically.
An autonomous equation is a differential equation of the form
We can use a phase line to analyze autonomous differential equations.Equilibrium solutions to a differential equation
are those solutions given by for all In this case, any solution must be constant. We can classify equilibrium solutions according to whether they are stable or unstable. In particular, an equilibrium solution is either a sink, source, or node.
Reading Questions 1.3.7 Reading Questions
1.
Explain why solution curves to a differential equation cannot intersect.
2.
Explain in your own words what an autonomous differential equation is.
Exercises 1.3.8 Exercises
Plotting direction fields by hand.
For each of the differential equations in Exercise Group 1.3.8.1–6, plot the direction field on the integer coordinates
7.
Use Sage to plot the direction fields of each differential equation in Exercise Group 1.3.8.1–6.
xxxxxxxxxx
t, x = var('t, x')
f(t,x) = x + t
plot_slope_field(f, (t, -2, 2), (x, -2, 2), headaxislength=3, headlength=3, axes_labels=['$t$','$x(t)$'])
Equilibrium solutions and phase lines.
Find the equilibrium solutions for each of the differential equations in Exercise Group 1.3.8.8–13. Draw the phase line for each equation and classify each equilibrium solution as a sink, a source, or a node.
Sketching solutions.
Each of the differential equations in Exercise Group 1.3.8.14–19 has several initial conditions specified. Sketch the solution curves that satisfy the initial conditions. Sketch your solutions for each equation on the same pair of axes.
Phase lines from graphs of the derivative.
Consider the differential equation
24.
What happens if we increase the harvest rate to 100 in Example 1.3.9? What should be our strategy to maintain a viable population in the trout pond and still permit fishing?
Subsection 1.3.9 Sage—Plotting Direction Fields and Solutions
Subsubsection 1.3.9.1 Plotting direction fields
If we wish to plot a direction field for a differential equation, we can use the commandplot_slope_field
. Let us plot the direction field for the equation There are a few extra commands to specify the size of the arrows in the plot and to label the axes. Try changing or omitting these commands and see what happens.xxxxxxxxxx
t, y = var('t, y')
f(t, y) = y^2/2 - t
v = plot_slope_field(f, (t,-1,5), (y,-5,10), headaxislength=3, headlength=3, axes_labels=['$t$','$y(t)$'])
v
For more examples and options, seexxxxxxxxxx
t, y = var('t, y')
f(t, y) = y^2/2 - t
v = plot_slope_field(f, (t,-1,5), (y,-5,10), headaxislength=3, headlength=3, axes_labels=['$t$','$y(t)$'])
v
doc.sagemath.org/html/en/reference/plotting/sage/plot/plot_field.html
Subsubsection 1.3.9.2 Plotting solutions
Now let us find a numerical solution to the equation using the commanddesolve_rk4
. This is a fourth-order Runge-Kutta method, and returns a numerical solution (a table of values). Here, we must supply the dependent variable and initial conditions.
Of course, we can combine the two plots.xxxxxxxxxx
t, y = var('t, y')
f(t, y) = y^2/2 - t
p = desolve_rk4(f, y, ics=[-1,0], ivar=t, output='plot', end_points=[-1,5], thickness=2)
p
There are many other commands and packages to solve ordinary differential equations using Sage. For more information, seexxxxxxxxxx
t, y = var('t, y')
f(t, y) = y^2/2 - t
p = plot_slope_field(f, (t,-1,5), (y,-5,10), headaxislength=3, headlength=3, axes_labels=['$t$','$y(t)$'], fontsize=12)
p += desolve_rk4(f, y, ics=[-1,0], ivar=t, output='plot', end_points=[-1,5], thickness=2)
p.show(xmin = -1, xmax = 5, ymin = -5, ymax = 10) #set the size of the plot window
www.sagemath.org/doc/reference/calculus/sage/calculus/desolvers.html
. Below is an empty Sage cell, where you can practice.
xxxxxxxxxx
Exercises 1.3.9.3 Sage Exercises
1.
Suppose that the population of a trout pond can be accurately modeled by the logistic equation
At time
- Plot the direction field for this equation using Sage.
xxxxxxxxxx
Plot the graphs of two or three representative solutions to this equation on the direction field.
Find formulas for the solutions of this equation for initial conditions
Give a qualitative description of how the disease affects the population.