Module 5 First Order Differential Equations
Module S First Order Differential Equations
Differential Equations (DE)
- A differential equation contains derivatives of an unknown function.
- Examples:
- Algebraic equations examples:
- Rectilinear motion example: acceleration , initial velocity
Order of a DE
- The order of a DE refers to the highest derivative in the equation.
- Examples:
- (1st order DE)
- (2nd order DE)
- (3rd order DE)
- This module focuses only on 1st order DEs.
Direction Fields
- Direction fields can be used to understand and visualize the behavior of solutions to a DE.
- Consider 1st order DEs of the form .
- Example: Consider the DE (i.e., ).
- The DE says that the slope of the solution at is .
- A direction field is generated by plotting slope lines at an array of points.
- Example points:
- At ,
- At ,
- At ,
Matching DEs with Direction Fields
- Example: Match each of the DEs with its direction field.
- I.
- II.
- III.
- IV.
- V.
- VI.
- Solutions:
- I matches with E.
- II matches with A.
- III matches with B.
- IV matches with C.
- V matches with D.
- VI matches with F.
Plotting Solutions on a Direction Field
- To plot a solution on a direction field, we must specify a starting point .
- Then, move from that starting point in a direction parallel to the surrounding field lines.
- Important: You cannot cross a slope line if you are moving parallel to it.
Initial Value Problem (IVP)
- A DE with a starting point is called an initial value problem (IVP).
- is the DE.
- is the starting point/initial value.
- Example: Plot the solutions to the following IVPs using the provided direction field for .
- a)
- b)
- c)
Autonomous DES
- In previous sections, we considered direction fields of 1st order DEs of the form .
- A 1st order DE is called autonomous if it has the form .
- i.e., The RHS depends only on the dependent variable , not the independent variable .
- Examples of the DEs considered previously:
- Autonomous DES
- Not autonomous DES
- If we compare direction fields, we see that the slopes of an autonomous DE do not depend horizontally on .
- That is, the slope does not change as we move horizontally on the direction field.
Equilibrium Solutions of Autonomous DES
- An equilibrium solution of an autonomous DE is a solution of the form .
- Note: If , then . So, we find equilibrium solutions by solving .
- Example: Determine the equilibrium solutions of .
- Equilibrium sol
More Examples of Equilibrium Solutions
- Determine the equilibrium solutions of .
- Equilibrium sol
- Determine the equilibrium solutions of:
- a)
- Need
- b)
- Need
- a)
Stability of Equilibrium Solutions
- An equilibrium solution is:
- Stable if all nearby solutions approach as the independent variable .
- Unstable if all nearby solutions move away from as the independent variable .
- Can determine stability using a sign diagram.
- Example: Determine the stability of the equilibrium solutions of .
- Previously found and are equilibrium solutions.
- Test points:
- y = 2 \Rightarrow \frac{dy}{dx}(2) = 2^2 + 2 - 2 = 4 > 0
- y = 0 \Rightarrow \frac{dy}{dx}(0) = 0^2 + 0 - 2 = -2 < 0
- y = -3 \Rightarrow \frac{dy}{dx}(-3) = (-3)^2 - 3 - 2 = 4 > 0
- Hence, is an unstable sol, and is a stable sol.
More Examples of Stability
- Determine the equilibrium solutions of the following DE and determine the stability of these solutions:
- Previously found that and are equilibrium solutions.
- Test points:
- y = 3 \Rightarrow \frac{dy}{dx}(3) = 3^3 - 4(3)^2 + 4(3) = 3 > 0
- y = 1 \Rightarrow \frac{dy}{dx}(1) = 1^3 - 4(1)^2 + 4(1) = 1 > 0
- y = -1 \Rightarrow \frac{dy}{dx}(-1) = (-1)^3 - 4(-1)^2 + 4(-1) = -9 < 0
- So, is unstable, and is semi-stable (stable from below, unstable from above).
- Determine the equilibrium solutions of the following DEs & their stability.
- a)
- From previous example, and are equilibrium solutions.
- a)
Applications Examples
- Applications
- A. Natural growth
- \frac{dP}{dt} = rP
- P = population Size
- t = time
- r = Growth rate
- r=1
- Equilibrium sol
- \frac{dP}{dt} = rP
- \frac{dP}{dt} = P and P(0) = 5
Separable DES
- A 1st order DE is called separable if it can be written in the form
- \frac{dy}{dx} = f(y) g(x)
- or
- all y stuff = all x stuff
- dy/(f(y)) = g(x)dx
- Examples
- Separable DE
- \frac{dy}{dx} = cos(x)y,
- g(x) = cos(x)
- f(y) = y
- \frac{dy}{dx} = \frac{x}{y}
- g(x) = x
- f(y) = y
- Not separable
- \frac{dy}{dx} = cos(x)+ y^2
- Separable DE
- Solution technique
- \frac{dy}{dx} = dy = f(y)g(x)
- Integrate both sides
- \int\frac{dy}{f(y)} = \int^{} g(x) dx
- Remember differential and implicit form
- Differential form example
- General solution to the DE \frac{dy}{dx} = xy
- Separate the dy and dx
- \frac{dy}{y} = xdx
- note: integral dy/f(y) = \int f' divide dx
- \int^{}\frac{dy}{y} = \int x dx
- Lnly = \frac{X^2}{2} + C
- implicit solution
- Index laws to solve
- y = e^((\frac{x^2}{2})+c)
- y = ae^\frac{x^2}{2}
- explicit general solution
- y = Ae^(x^2/2)
- This is called the general solution to the DE
Particular solutions and the IVP
- We can get a particular solution by specifiying an initial condition (IC).
- This allows us to determine the particular value of the constant A.
- Eg. Solve the IVP \frac{dy}{dx} = xy and y(0) = 3.
- Solution:
- From the previous example, y = A e^(x^2/2).
- Applying IC: 3 = A e^(0) = A. So, A = 3.
- Solution:
More Separable DE Solutions
- Determine the general solution to the DE \frac{dy}{dx} = xy^2.
- Then, solve the IUP \frac{dy}{dx} = xy^2, y(1)=2
- Separable DE
- \frac{dy}{y^2} = xdx
- Integrate them
- \int y^-2 dy = \int xdx
- -y^-1 = \frac{x^2}{2} + C
- y = \frac{-1}{x^2/2 + C}
Cosine IVP and Separable General Solution Examples
- Solve the TVP \frac{dy}{dx} = \frac{cos(x)}{e^y} and y(0) = 0
- Determine the general sol \frac{dy}{dx} = \frac{y}{x}
- Solved this equation for Separable DE
- \int e^y = \int cos(x)dx
- e^(y) = sin(x) + C
- Take the Ln of each side
- Lne^y = ln(sin(x) + C)
- y = ln(sin(x) + C)
- Applying the initial conditions
- y = ae^\frac{x^2}{2}
- Applying the initial conditions
- y(0) =3
- y=3 Ae^(x^2/2)
Autonomous DE and More
- Autonomous DE and more
- \frac{dy}{dx}= \frac{dy}{(y^2 +y - 2)} = dx
- (y+2)(y-1)=0
- Equilibrium sols are \frac{dy}{(y+2)} and and (y-1)=0
- need A/y+2 + B/ y-1
- If y=1 then
- \frac{A}{(y-1)} + B/3 = 1/ y+2)(y-1)
Application of natural Growth Formulas
- Separable
- \frac{dp}{p} = dt
- Inp = t + c OR p = A e^( t/2)
- Apply the variables
- t=5 then evaluate a long answer
- Logistic growth: grow according to the logistic equation
- \frac{dp}{dt} = r * - \frac{p}{k}
- K = carrying capacity
- If r = (1/ 2), k= 100 P growings according y(o)=50
- Separable solution for P (t)
Logistic Growth Explained
- Logistical Growth problems
- A new substance that has a reactions in two froms
$P * Q \rightarrow X$
- Q >=x, or the concentration of the products
- What concentrations in x from this
Liner DES
A 1st order DE is called linear if it can be written in the form
\frac{dy}{dx} + P(x)y = Q(x).
Eg.
\frac{dy}{dx} + (cos(x)) y = e^2
Where p(x) = cos(x)
Examine y term
Solution technique
step 1: calculate Integrationg facor
1 = e^( integralP(xx)dx)
\int Ixy Q(x)dx
Combine Ixy etc info the general solution problem
Doses the integrate really work?
Determine the general solution to the DE.
\frac{dy}{dx} + 3y + 4
Solution for form of the DE
- Step 1: calculate integrating factor
- Ix = \int e^(p(x). dx) = \int e^(3 dx)
ICs and IUPs
- To determine a value for 'C', we need to specify an IC to give an IUP.
- Eg. Solve the IUP .
- Solution:
- From previous example, .
- .
- Solution:
More liner IVP and solutions
linear
\int1dx
= \int e ^ -1dx = e∧ -x
Step 2:
IxyQ(x) dx = \inte∧xy(x)dx
Let u=x
dv = \int e^( -x)
Then by parts -\int vdu
General solutions and formulas for solving
- General solutions formulas
- Solve the following IUPs x \frac{dy}{dx} + 2y = 3
- Obtain the general solution.
- Solve: Liner convert to standard form
- \frac{dy}{dx} + \frac{{3}}{x}y = 3
- Solve the following IUPs x \frac{dy}{dx} + 2y = 3
- 2) Sp(x)/dx = \int( dx/x)2=e^(2lnx)
- )simplify y (x), See previous example
Applications: Linear Model and Equations.
Models with liner equations and forumls
An Object of mass m is falling under gravity
\frac{dv}{dt} mg+ km= 100-2v/10
- V(0 = 0/ liner and separable