03. Autonomous Equations
Slope Field¶
Definition: Slope Field
A slope field is a tool we can use to learn information about the solutions to an ODE even when we cannot solve it completely.
Using ODE, we look at many points in the plane and calculate the slope of a tangent to any solution \(y(x)\) at that point. By doing this for many points, we can see what graphs of solutions look like.
Autonomous Equations¶
An ODE is autonomous if it is in the form \(y’=f(y)\).
For example,
- \(y'=−y^2\)
- \(y'=4𝑦(1−𝑦)\)
What does the slope field of an autonomous equation look like?
Since \(y’\) depends only on y, the slope of any solution is constant along any horizontal line.
Given the ODE \(y’=-y^2\), we can find the slopes for any given y:
\((x,y)\) | \(y’=-y^2\) |
---|---|
\((2,1)\) | \(-1\) |
\((1,2)\) | \(-4\) |
\((3,0)\) | \(0\) |
Note
An autonomous ODE is a type of separable ODE, so we have an equilibrium solution \(y=k\) for any \(k\) satisfying \(f(k)=0\).
In our example, \(f(0)=0\), so \(y=0\) is an equilibrium solution to this ODE.
Actual Solutions to the ODE¶
For the ODE \(y’=-y^2\):
The equilibrium solution is \(y=0\).
To solve:
Here, the uniformity of the slope along each horizontal line is very clear, because each solution \(y = \frac{1}{x + C}\) is a right/left translation of the graph \(y = \frac{1}{x}\).
Text Only | |
---|---|
Sketching Solutions of an Autonomous ODE¶
\(y’=f(y)\)
We’ll be using the equation \(y’=4y(1-y)\).
- Sketch the equilibrium solutions \(y=k\) for each root \(k\) of \(f\)
- Sketch (on a separate pair of axes) the graph of \(f(y)\) as a function of \(y\), or at least investigate where \(f\) is positive/negative, increasing/decreasing, and find the extreme points.
- Sketch the function as \(y=4x(1-x)\)
- Find the roots (we already did this in step one)
- 1, 0
- Examine the expanded form \(y=-4x^2+4x\)
- Identify the extreme points
- 2nd derivative is \(y=-8x+4 \implies -8(x-\frac12)\)
- Root of 2nd derivative is \(x=\frac12\)
- Graph is a “frowning” parabola, so our extreme point is a maximum
- Examine the “signs” of \(f(y)\):
- Find the concavity of the solutions
- In an autonomous ODE, \(y’’ = f’\cdot f\)
- \(f’\cdot f > 0\)
- \(y(x)\) is concave up
- \(f’, f > 0\) i.e. \(f(y)\) is positive and increasing
- \(f’, f < 0\) i.e. \(f(y)\) is negative and decreasing
- \(y(x)\) is concave up
- \(f’\cdot f < 0\)
- \(y(x)\) is concave down
- \(f’ > 0 f < 0\) i.e. \(f(y)\) is negative and increasing
- \(f’ < 0, f > 0\) i.e. \(f(y)\) is positive and decreasing
- \(y(x)\) is concave down
- \(f’=0\) and changing sign \(\iff\) \(y\) is an extreme point of \(f\)
- y(x) has an inflection point
- In our example, \(f’\) only changes signs at it’s single root (see step 2.4.2), so that is our single point of inflection.
Given the above calculations and sketches, we examine the behavior of f, f’, y’’ as y passes through the values \(0, \frac12,1\), since those were our equilibrium solutions and inflection points:
\(y\) | \(f(y)\) | \(f’(y)\) | \(f’\cdot f=y’’(x)\) | \(\implies y\) is… |
---|---|---|---|---|
\(y<0\) | \((-)\) | \((+)\) | \((-)\cdot(+)=(-)\) | Concave down |
\(0<y<\frac12\) | \((+)\) | \((+)\) | \((+)\cdot(+)=(+)\) | Concave up |
\(\frac12<y<1\) | \((+)\) | \((-)\) | \((+)\cdot(-)=(-)\) | Concave down |
\(1<y\) | \((-)\) | \((-)\) | \((-)\cdot(-)=(+)\) | Concave up |
We can now sketch the slope field of the solutions:
Summary¶
Summary of Method to Sketch Solutions of an Autonomous ODE \(y’=f(y)\)
- Find the equilibrium solutions: \(y=k\) where \(f(k)=0\)
- Find where \(f\) is positive/negative/increasing/decreasing, and find the extreme points.
- If \(f(y_0)>0\) then \(y(x)\) is increasing along the line \(y=y_0\)
If \(f(y_0)<0\) then \(y(x)\) is decreasing along the line \(y=y_0\) - \(y’’=f’\cdot f\)
- If \(f’,f\) have the same sign (\(y’’>0\)) at \(y_0\), then \(y(x)\) is concave up along the line \(y=y_0\)
- If \(f’,f\) have different signs (\(y’’<0\)) at \(y_0\), then \(y(x)\) is concave down along the line \(y=y_0\)
- If \(f’=0\) at \(y_0\), \(y(x)\) has an inflection point along the line \(y=y_0\). This line is called a line of inflection.
Classification of Autonomous ODE Solutions¶
The equilibrium solutions of an AODE can be classified as one of three types:
- Stable:
- If \(y\) strays slightly from the equilibrium, then it will move towards it as \(x\) increases
- Unstable:
- If \(y\) strays slightly from the equilibrium, then it will move further away it as \(x\) increases
- Semi-Stable:
- Stable in one direction of \(y\) (up or down), and unstable in the other direction.