You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Mathematical Expression Editor
We describe numerical and graphical methods for understanding differential
equations.
1 Slope fields
We cannot (yet!) solve the differential equation
\[ y' = x+y \]
However, from the equation alone,
we can describe some facts about the solution.
Consider the solution \(y\) to the differential equation \(y'=x+y\) which passes through the point \((1,2)\).
Is \(y\) increasing or decreasing at \(x=1\)?
increasing decreasing
By definition, a
solution to this differential equation which passes through \((1,2)\) must have \(y(1)=2\), and
\begin{align*} y'(1) &= 1+y(1)\\ &=1+2\\ &=3. \end{align*}
This is positive, so the function is increasing at \(x=1\).
In fact, we can say more. The
differential equation
\[ y' = x+y \]
tells us the slope of any solution passing through a
given point.
Consider the solution \(y\) to the differential equation \(y'=x+y\) which passes
through the point \((1,-2)\). What is the slope of the solution \(y\) at \(x=1?\)
By definition, a
solution to this differential equation which passes through \((1,-2)\) must have \(y(1)=-2\), and
\begin{align*} y'(1) &= 1+y(-1)\\ &= 1-2=-1. \end{align*}
Hence the slope is \(-1\) at \(x=1\).
The slope of \(y\) at \(x=1\) is \(\answer {-1}\).
Given a differential equation, say \(y'=x+y\), we can pick points in the plane and compute
what the slope of a solution at those points will be. Repeating this process,
we can generate a slope field. The slope field for the differential equation \(y' = x+y\)
looks like this:
Let’s be explicit:
A slope field, also called a direction field, is a graphical aid for
understanding a differential equation, formed by:
Choosing a grid of points.
At each point, computing the slope given by the differential equation, using
the \(x\) and \(y\)-values of the point.
At each point, drawing a short line segment with that slope.
Here is the slope field for the differential equation \(y'=x+y\), with a few solutions of the
differential equation also graphed.
Notice that the slope
field suggests one solution to this differential equation, which is a straight
line.
Of the solutions shown in the slope field above, what is the formula for the linear
solution?
The first differential equation, \(y' = x^3\), is rather easy to solve, we simply integrate both sides.
This type of differential equation is called a pure-time differential equation.
Pure-time differential equations express the derivative of the solution explicitly as a
function of an independent variable. We can symbolically describe a pure-time
differential equation as
\[ \frac {dy}{dx} = F(x). \]
On the other hand, the second differential equation, \(y'=(y+1)(y-2)\) does not involve the
independent variable, \(x\), at all! Such differential equations are called autonomous
differential equations.
A differential equation that does not involve the independent variable is called an
autonomous differential equation. We can symbolically write
\[ \frac {dy}{dx} = F(y) \]
to express an
autonomous differential equation.
Finally the third differential equation, \(y'= x+y\), expresses \(y'\) as a function of both \(y\) and the
independent variable \(x\). Such a differential equation is called a nonautonomous
differential equation. We can symbolically describe a nonautonomous differential
equation as
\[ \frac {dy}{dx} = F(x,y). \]
Which of the following are autonomous differential equations?
Since autonomous differential equations only depend on the function’s value their
behavior does not depend on the independent variable,
Which of the five slope fields shown are for autonomous differential equations?
If a differential equation is autonomous,
then all of the slopes will be the same on each horizontal line.
Which of
the five slope fields shown are for pure-time differential equations?
If a differential equation is pure-time, then
all of the slopes will be the same on each vertical line.
Which of the five slope fields
shown are for differential equations that are neither autonomous nor pure-time?
If a differential equation is neither
autonomous nor pure-time, then the slope will change along horizontal lines and
vertical lines.
Consider the differential equation \(y' = (y+1)(2-y)\), whose slope field is given below. Which of the
following statements appear to be true?
The solution passing through the origin has \(\lim _{x \to \infty } f(x) = 2\).The solution passing through \((0,3)\) has \(\lim _{x \to \infty } f(x) = \infty \).The solution passing through \((0,-3)\) is always decreasing.There are two solutions
which are constant functions. Every solution has a vertical tangent line at \(x=0\).
Consider the autonomous differential equation:
\[ y'=(y+1)(2-y) \]
The constant functions \(f(x) = -1\) and \(f(x) =2\) are
solutions to this differential equation. In fact, for any autonomous differential
equation \(y' = F(y)\), where \(F\) is a function of \(y\), if \(F(c) = 0\) for any constant \(c\), then \(y = c\) will be a constant
solution to the differential equation. These constant solutions are also known as
equilibrium solutions. We can witness these solutions if we inspect the
slope field:
Consider the autonomous differential equation \(y'=\cos (y)\). Which of the following
are equilibrium solutions?
First note that this
differential equation is pure-timeautonomousnonautonomous, and hence any
solution where \(y'=\answer [given]{0}\), will be an equilibrium solution. Hence we must solve the equation
\[ y^2 -3y + 2 = \answer [given]{0}. \]
Write with me to factor
\[ y^2 -3y + 2 = (y-1)(\answer [given]{y-2}), \]
hence \(y= 1\) and \(y=\answer [given]{2}\) are equilibrium solutions to this differential
equation.
3 Euler’s Method
In science and mathematics, finding exact solutions to differential equations is not
always possible. We have already seen that slope fields give us a powerful way to
understand the qualitative features of solutions. Sometimes we need a more precise
quantitative understanding, meaning we would like numerical approximations of the
solutions.
Again, suppose you have set up the following differential equation
\[ y' = x+y \]
If we know that \(y\)
solves this differential equation, and \(y(0) = 1\), how might we go about approximating \(y(1)\)? One
idea is to repeatedly use linear approximation.
Let us approximate just using the two subintervals
Plotting our approximation with the actual solution we find:
This approximation could be improved by using more subintervals. We will now
formalize the method of using repeated linear approximation to approximate
solutions to differential equations, and call it Euler’s Method.
Euler’s Method Consider a differential equation on the interval \([a,b]\)
\[ y' = F(x,y) \]
where \(F\) is
a function of two variables and it is given that \(y(a) = y_0\). To approximate \(y\) on the
interval:
Set \(x_0=a\) and \(y_0 = y(a)\).
Decide either a step-size \(dx\) or how many subintervals \(n\) you want to divide
the interval \([a,b]\) into. Either way: