ODEs· Note 03

Autonomous Equations

Year 2 · Semester IILast updated

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)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)y’=f(y).
For example,

  • y′=−y2y'=−y^2
  • y′=4𝑦(1−𝑦)y'=4𝑦(1−𝑦)
    What does the slope field of an autonomous equation look like?
    Since y’y’ depends only on y, the slope of any solution is constant along any horizontal line.

Given the ODE y’=−y2y’=-y^2, we can find the slopes for any given y:

(x,y)(x,y) y’=−y2y’=-y^2
(2,1)(2,1) −1-1
(1,2)(1,2) −4-4
(3,0)(3,0) 00

Note

An autonomous ODE is a type of separable ODE, so we have an equilibrium solution y=ky=k for any kk satisfying f(k)=0f(k)=0.

In our example, f(0)=0f(0)=0, so y=0y=0 is an equilibrium solution to this ODE.

Actual Solutions to the ODE

For the ODE y’=−y2y’=-y^2:

The equilibrium solution is y=0y=0.

To solve:

−1y2y′=1  ⟹  ∫−1y2 dy=∫1 dx-\frac{1}{y^2} y' = 1 \implies \int -\frac{1}{y^2} \, dy = \int 1 \, dx 1y=x+C  ⟹  y=1x+C\frac{1}{y} = x + C \implies y = \frac{1}{x + C}

Here, the uniformity of the slope along each horizontal line is very clear, because each solution y=1x+Cy = \frac{1}{x + C} is a right/left translation of the graph y=1xy = \frac{1}{x}.

y = \frac{1}{x + C_1}
y = \frac{1}{x + C_2}
y = \frac{1}{x + C_3}
C_1=-1
C_2=0
C_3=1

Sketching Solutions of an Autonomous ODE

y’=f(y)y’=f(y)
We’ll be using the equation y’=4y(1−y)y’=4y(1-y).

  1. Sketch the equilibrium solutions y=ky=k for each root kk of ff
    1. 4y(1−y)=04y(1-y)=0
      • y=1y=1
      • y=0y=0
  2. Sketch (on a separate pair of axes) the graph of f(y)f(y) as a function of yy, or at least investigate where ff is positive/negative, increasing/decreasing, and find the extreme points.
    1. Sketch the function as y=4x(1−x)y=4x(1-x)
    2. Find the roots (we already did this in step one)
      • 1, 0
    3. Examine the expanded form y=−4x2+4xy=-4x^2+4x
    4. Identify the extreme points
      1. 2nd derivative is y=−8x+4  ⟹  −8(x−12)y=-8x+4 \implies -8(x-\frac12)
      2. Root of 2nd derivative is x=12x=\frac12
    5. Graph is a “frowning” parabola, so our extreme point is a maximum
  3. Examine the “signs” of f(y)f(y):
    • For arguments yy where f(y)<0  ⟹  y′>0  ⟹  y(x)f(y)<0\implies y'>0\implies y(x) is decreasing
    • For arguments yy where f(y)>0  ⟹  y′>0  ⟹  y(x)f(y)>0\implies y'>0\implies y(x) is increasing
    • For arguments yy where f(y)=0  ⟹  f(y)=0\implies we already know this is an equilibrium solution
  4. Find the concavity of the solutions
    • In an autonomous ODE, y’’=f’⋅fy’’ = f’\cdot f
    • f’⋅f>0f’\cdot f > 0
      • y(x)y(x) is concave up
        • f’,f>0f’, f > 0 i.e. f(y)f(y) is positive and increasing
        • f’,f<0f’, f < 0 i.e. f(y)f(y) is negative and decreasing
    • f’⋅f<0f’\cdot f < 0
      • y(x)y(x) is concave down
        • f’>0f<0f’ > 0 f < 0 i.e. f(y)f(y) is negative and increasing
        • f’<0,f>0f’ < 0, f > 0 i.e. f(y)f(y) is positive and decreasing
    • f’=0f’=0 and changing sign   ⟺  \iff yy is an extreme point of ff
      • y(x) has an inflection point
    • In our example, f’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,12,10, \frac12,1, since those were our equilibrium solutions and inflection points:

yy f(y)f(y) f’(y)f’(y) f’⋅f=y’’(x)f’\cdot f=y’’(x)   ⟹  y\implies y is…
y<0y<0 (−)(-) (+)(+) (−)⋅(+)=(−)(-)\cdot(+)=(-) Concave down
0<y<120<y<\frac12 (+)(+) (+)(+) (+)⋅(+)=(+)(+)\cdot(+)=(+) Concave up
12<y<1\frac12<y<1 (+)(+) (−)(-) (+)⋅(−)=(−)(+)\cdot(-)=(-) Concave down
1<y1<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)y’=f(y)
  1. Find the equilibrium solutions: y=ky=k where f(k)=0f(k)=0
  2. Find where ff is positive/negative/increasing/decreasing, and find the extreme points.
  3. If f(y0)>0f(y_0)>0 then y(x)y(x) is increasing along the line y=y0y=y_0
    If f(y0)<0f(y_0)<0 then y(x)y(x) is decreasing along the line y=y0y=y_0
  4. y’’=f’⋅fy’’=f’\cdot f
  • If f’,ff’,f have the same sign (y’’>0y’’>0) at y0y_0, then y(x)y(x) is concave up along the line y=y0y=y_0
  • If f’,ff’,f have different signs (y’’<0y’’<0) at y0y_0, then y(x)y(x) is concave down along the line y=y0y=y_0
  • If f’=0f’=0 at y0y_0, y(x)y(x) has an inflection point along the line y=y0y=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:

  1. Stable:
    • If yy strays slightly from the equilibrium, then it will move towards it as xx increases
  2. Unstable:
    • If yy strays slightly from the equilibrium, then it will move further away it as xx increases
  3. Semi-Stable:
    • Stable in one direction of yy (up or down), and unstable in the other direction.