SlideShare a Scribd company logo
Mathematics For CS
Chapter 3:
1st
Order Differential Equations
Basic Mathematical Models; Direction Fields
Differential equations are equations containing derivatives.
Derivatives describe rates of change.
The following are examples of physical phenomena
involving rates of change:
Motion of fluids
Motion of mechanical systems
Flow of current in electrical circuits
Dissipation of heat in solid objects
Seismic waves; waves of energy that travel through Earth's layers
Population dynamics
A differential equation that describes a physical process is
often called a mathematical model.
Example 1: Free Fall
Formulate a differential equation describing motion of an
object falling in the atmosphere near sea level.
Variables: time t, velocity v, dv/dt=acceleration
Newton’s 2nd
Law: F = ma = m(dv/dt) net force
Force of gravity: F = mg downward force
Force of air resistance: F =  v upward force
Then
Taking g = 9.8 m/sec2
, m = 10 kg,  = 2 kg/sec,
we obtain
v
mg
dt
dv
m 


v
dt
dv
2
.
0
8
.
9 

Example 1: Sketching Direction Field
Using differential equation and table, plot slopes (estimates)
on axes below. The resulting graph is called a direction
field. (Note that values of v do not depend on t.)
v v'
0 9.8
5 8.8
10 7.8
15 6.8
20 5.8
25 4.8
30 3.8
35 2.8
40 1.8
45 0.8
50 -0.2
55 -1.2
60 -2.2
Example 1:
Direction Field & Equilibrium Solution
Arrows give tangent lines to solution curves, and indicate
where soln is increasing & decreasing (and by how much).
Horizontal solution curves are called equilibrium solutions.
Use the graph below to solve for equilibrium solution, and
then determine analytically by setting v' = 0.
49
2
.
0
8
.
9
0
2
.
0
8
.
9
:
0
Set









v
v
v
v
v
v 2
.
0
8
.
9 


Equilibrium Solutions
In general, for a differential equation of the form
find equilibrium solutions by setting y' = 0 and solving for y:
Example: Find the equilibrium solutions of the following.
,
b
ay
y 


a
b
t
y 
)
(
)
2
(
3
5
2 







 y
y
y
y
y
y
y
Solutions of Some Differential Equations
Consider the two differential equations of Free Fall and
Mice population:
These equations have the general form y' = ay - b
We can use methods of calculus to solve differential
equations of this form.
450
5
.
0
,
2
.
0
8
.
9 




 p
p
v
v
Example 2:
To solve the differential equation
we use methods of calculus, as follows (note what happens when p =
900).
450
5
.
0 

 p
p
 
0
,
900
900
900
5
.
0
900
ln
5
.
0
900
5
.
0
900
900
5
.
0
5
.
0
5
.
0
5
.
0




























C
t
C
t
C
t
e
k
ke
p
e
e
p
e
p
C
t
p
dt
p
dp
dt
p
dp
p
dt
dp
Example 2:
This gives one group of solutions
where k is a non-zero constant.
Note: is also an equilibrium
solution
Thus, all the solutions to this equation, obtained in two different
solution methods, may be included in a single expression (which
may not be always possible for other cases)
where k is an arbitrary constant, nonzero or zero.
t
ke
p 5
.
0
900 

900

p
,
900
450
5
.
0 5
.
0 t
ke
p
p
p 





Example 2: Integral Curves
Graphs of solutions (integral curves) for several values of k,
and direction field for differential equation, are given below.
Choosing k = 0, we obtain the equilibrium solution, while for
k  0, the solutions diverge from equilibrium solution.
Initial Conditions
A differential equation often has infinitely many solutions. If
a point on the solution curve is known, such as an initial
condition, then this determines a unique solution.
In the mice differential equation, suppose we know that the
mice population starts out at 850. Then p(0) = 850, and
t
t
e
t
p
k
ke
p
ke
t
p
5
.
0
0
5
.
0
50
900
)
(
:
Solution
50
900
850
)
0
(
900
)
(









Solution to General Equation
To solve the general equation (a ≠0)
we use methods of calculus, as follows (y ≠b/a).
Thus the general solution is, combining the equilibrium
solution y = b/a,
where k is a constant (k = 0 -> equilibrium solution).
Special case a = 0: the general solution is y = -bt + c
b
ay
y 


0
,
/
/
/
/
ln
/
/


































C
at
C
at
C
at
e
k
ke
a
b
y
e
e
a
b
y
e
a
b
y
C
t
a
a
b
y
dt
a
a
b
y
dy
adt
a
b
y
dy
a
b
y
a
dt
dy
,
at
ke
a
b
y 

Initial Value Problem
Next, we solve the initial value problem (a ≠0)
From previous slide, the solution to differential equation is
Using the initial condition to solve for k, we obtain
and hence the solution to the initial value problem is
at
e
a
b
y
a
b
y 







 0
0
)
0
(
, y
y
b
ay
y 



at
ke
a
b
y 

a
b
y
k
ke
a
b
y
y 




 0
0
0
)
0
(
Equilibrium Solution
Recall: To find equilibrium solution, set y' = 0 & solve for y:
From previous slide, our solution to initial value problem is:
Note the following solution behavior:
If y0 = b/a, then y is constant, with y(t) = b/a
If y0 > b/a and a > 0 , then y increases exponentially without bound
If y0 > b/a and a < 0 , then y decays exponentially to b/a
If y0 < b/a and a > 0 , then y decreases exponentially without bound
If y0 < b/a and a < 0 , then y increases asymptotically to b/a
a
b
t
y
b
ay
y
set





 )
(
0
at
e
a
b
y
a
b
y 







 0
Linear First Order Ordinary Differential
Equations
A linear first order ODE has the general form
where f is linear in y. Examples include equations with
constant coefficients, such as those seen so far.
or equations with variable coefficients:
)
,
( y
t
f
dt
dy

)
(
)
( t
g
y
t
p
dt
dy


b
ay
y 



Constant Coefficient Case
For a first order linear equation with constant coefficients,
recall that we can use methods of calculus to solve:
(Integrating step)
C
at
e
k
ke
a
b
y
C
t
a
a
b
y
dt
a
a
b
y
dy
a
a
b
y
dt
dy
















,
/
/
ln
/
/
/
,
b
ay
y 



Variable Coefficient Case:
Method of Integrating Factors
We next consider linear first order ODEs with variable coefficients:
The method of integrating factors involves multiplying this equation
by a function (t), chosen so that the resulting equation is easily
integrated.
Note that we know how to integrate
)
(
)
( t
g
y
t
p
dt
dy


)
(t
h
dt
dw

Example 3: Integrating Factor (1 of 2)
Consider the following equation:
Multiplying both sides by (t), we obtain
We will choose (t) so that left side is derivative of known
quantity. Consider the following, and recall product rule:
Choose (t) so that (note that there may be MANY qualified
(t) )
2
/
2 t
e
y
y 


  y
dt
t
d
dt
dy
t
y
t
dt
d )
(
)
(
)
(


 

t
e
t
t
t 2
)
(
)
(
2
)
( 


 


)
(
)
(
2
)
( 2
/
t
e
y
t
dt
dy
t t


 

Example 3: General Solution (2 of 2)
With (t) = e2t
, we solve the original equation as follows:
 
t
t
t
t
t
t
t
t
t
t
t
Ce
e
y
C
e
y
e
e
y
e
dt
d
e
y
e
dt
dy
e
e
t
y
t
dt
dy
t
e
y
y
2
2
/
2
/
5
2
2
/
5
2
2
/
5
2
2
2
/
2
/
5
2
5
2
2
)
(
)
(
2
)
(
2
















Example 4: General Solution (1 of 2)
Solve the following equation
Using the formula derived on the previous slide:
Solution is
Thus
t
y
y 


 5
5
1
5
/
5
/
5
/
)
5
(
)
( t
t
t
at
at
at
Ce
dt
t
e
e
Ce
dt
t
g
e
e
y 







 

 
5
/
5
/
5
/
5
/
5
/
5
/
5
/
5
/
5
50
5
5
25
5
)
5
(
t
t
t
t
t
t
t
t
te
e
dt
e
te
e
dt
te
dt
e
dt
t
e












  5
/
5
/
5
/
5
/
5
/
5
50
5
50 t
t
t
t
t
Ce
t
Ce
te
e
e
y 








Example 4: Graphs of Solutions (2 of 2)
The graph on left shows direction field along with several
integral curves.
The graph on right shows several solutions, and a particular
solution (in red) whose graph contains the point (0,50).
5
/
5
50
5
5
1 t
Ce
t
y
t
y
y 









Method of Integrating Factors for
General First Order Linear Equation
Next, we consider the general first order linear equation
Multiplying both sides by (t), we obtain
Next, we want (t) such that '(t) = p(t)(t), from which it
will follow that
)
(
)
( t
g
y
t
p
y 


  y
t
t
p
dt
dy
t
y
t
dt
d
)
(
)
(
)
(
)
( 

 

)
(
)
(
)
(
)
(
)
( t
t
g
y
t
t
p
dt
dy
t 

 

Integrating Factor for
General First Order Linear Equation
Thus we want to choose (t) such that '(t) = p(t)(t).
Assuming (t) > 0 (as we only need one (t) ), it follows
that
Choosing k = 0, we then have
and note (t) > 0 as desired.
k
t
d
t
p
t
t
d
t
p
t
t
d



 

 )
(
)
(
ln
)
(
)
(
)
(



,
)
( )
( t
d
t
p
e
t 


Solution for
General First Order Linear Equation
Thus we have the following:
Then
t
d
t
p
e
t
t
g
t
y
t
t
p
dt
dy
t
t
g
y
t
p
y







)
(
)
(
where
),
(
)
(
)
(
)
(
)
(
)
(
)
(




 
t
d
t
p
e
t
t
c
dt
t
g
t
y
c
dt
t
g
t
y
t
t
g
t
y
t
dt
d









)
(
)
(
where
,
)
(
)
(
)
(
)
(
)
(
)
(
)
(
)
(
)
(







General solution
Example 5: General Solution (1 of 3)
To solve the initial value problem
first put into standard form:
Then
and hence
Note: y -> 0 as t -> 0
  ,
2
1
,
5
2 2



 y
t
y
y
t
0
for
,
5
2



 t
t
y
t
y
2
2
2
2
2
ln
5
5
1
5
1
)
(
)
(
)
(
Ct
t
t
C
dt
t
t
t
C
tdt
t
t
C
dt
t
g
t
y 












 




2
1
ln
ln
2
2
)
( 1
)
(
2
t
e
e
e
e
t t
t
dt
t
dt
t
p
















Example 6: Particular Solution (2 of 3)
Using the initial condition y(1) = 2 and general solution
it follows that
or equivalently,
2
2
2
ln
5
2
)
1
( t
t
t
y
C
y 




,
ln
5 2
2
Ct
t
t
y 

 
5
/
2
ln
5 2

 t
t
y
Example 6: Graphs of Solution (3 of 3)
The graphs below show several integral curves for the
differential equation, and a particular solution (in red)
whose graph contains the initial point (1,2).
 
2
2
2
2
2
2
ln
5
:
Solution
Particular
ln
5
:
Solution
General
2
1
,
5
2
:
IVP
t
t
t
y
Ct
t
t
y
y
t
y
y
t








Annex A Exercises
29
Class Exercise 1
30
Solve
(1) Write the DE as
(2) Separate the variables
(3) Integrate both sides
General solution to x’=t/x
)
sin(t
y
dt
dy

dt
t
dy
y
)
sin(
1

Now integrate:
)
cos(
)
cos(
)
cos(
)
ln(
)
sin(
1
t
c
t
Ae
y
e
y
c
t
y
dt
t
dy
y













Solve
Separate the variables
Class Exercise 2
1

 y
dt
dy 2
)
0
( 
y
Solve
2. Choose µ(t)= left side is known derivative
𝑑
𝑑𝑡
[µ(𝑡)𝑦] = µ(𝑡)
𝑑𝑦
𝑑𝑡
+
𝑑µ(𝑡)
𝑑𝑡
𝑦
1. Multiply both side by µ(t)
Product Rule:
Class Exercise 3a
Separate variables:
Integrate
Class Exercise 3b
4. Apply Product Rule on LHS
5. Separation of variables
6. Integrate on both sides
3. Equation (1) will become
Class Exercise 3c
8. Now use the initial condition to calculate C
1
2
1
2
1
2
)
0
( 0








 
C
C
Ce
y
9. Substitute back to obtain the final solution
t
e
y 

1
7. Rearrange to make this explicit in y
t
Ce
y 

1
Class Exercise 4a
35
t
y
y 


 5
5
1
5
/
5
/
5
/
)
5
(
)
( t
t
t
at
at
at
Ce
dt
t
e
e
Ce
dt
t
g
e
e
y 







 

Solve
Consider
Solution:
Product Rule of Derivative
Class Exercise 4b
36
Consider
Class Exercise 4c
37
Consider
  5
/
5
/
5
/
5
/
5
/
5
50
5
50 t
t
t
t
t
Ce
t
Ce
te
e
e
y 








Finally the solution:
Class Exercise 5a
t
ty
dt
dy

 0
)
0
( 
y
Solve
t
ty
dt
dy


1. Put the ODE into the general form:
Already in the form:
2. Multiplying both sides by (t)
(1)
(2)
Class Exercise 5b
3. Choose (t) such that ' (t) = p(t)(t)
2
2
1
2
2
1
2
2
1
t
t
t
te
ty
e
dt
dy
e 

2
2
1
2
2
1
]
[ t
t
te
dt
y
e
d

4. Multiply by the integrating factor:
p(t)=t
Class Exercise 5c
Step 5: Integrate and make explicit in y:
2
2
1
2
2
1
2
2
1
2
2
1
1
t
t
t
t
Ce
y
C
e
C
dt
te
y
e









More Related Content

PPT
Ch02 1
PDF
Diffy Q Paper
PPT
Ch03 1
PPTX
Network Analysis Introduction class.pptx
PDF
microproject@math (1).pdf
PPTX
Chapter 1_Introduction to Differential Equations.pptx
PPTX
23MA202-Mathematical Foundations for Engineering - ODE
PPT
First order differential equations
Ch02 1
Diffy Q Paper
Ch03 1
Network Analysis Introduction class.pptx
microproject@math (1).pdf
Chapter 1_Introduction to Differential Equations.pptx
23MA202-Mathematical Foundations for Engineering - ODE
First order differential equations

Similar to Ch3-1stOrderDivgfdddffcffffEqs w. Notes.ppt (20)

PDF
UNIT-III.pdf
PPT
Lecture 1
PDF
258 lecnot2
PDF
Chapter 1: First-Order Ordinary Differential Equations/Slides
PPTX
MSME_ ch 5.pptx
PPTX
Extra Help 19- differential equations.pptx
PPTX
First order linear differential equation
PPT
Differential equations
PPT
Differential equations
PPT
Differential equation
PDF
Maths Notes - Differential Equations
PPTX
odes1.pptx
PPT
Differential Equations ppt and notes for
PPTX
formulation of first order linear and nonlinear 2nd order differential equation
PDF
MRS EMMAH.pdf
PDF
Week 4 [compatibility mode]
PDF
Deturck wilf
PDF
Solution for each chapter and Solution manual For Elementary Differential Equ...
PPT
5_2019_10_26!01_05_11_PM (4).ppt
UNIT-III.pdf
Lecture 1
258 lecnot2
Chapter 1: First-Order Ordinary Differential Equations/Slides
MSME_ ch 5.pptx
Extra Help 19- differential equations.pptx
First order linear differential equation
Differential equations
Differential equations
Differential equation
Maths Notes - Differential Equations
odes1.pptx
Differential Equations ppt and notes for
formulation of first order linear and nonlinear 2nd order differential equation
MRS EMMAH.pdf
Week 4 [compatibility mode]
Deturck wilf
Solution for each chapter and Solution manual For Elementary Differential Equ...
5_2019_10_26!01_05_11_PM (4).ppt
Ad

Recently uploaded (20)

PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPTX
Lesson notes of climatology university.
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
advance database management system book.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Classroom Observation Tools for Teachers
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction to Building Materials
Unit 4 Skeletal System.ppt.pptxopresentatiom
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Chinmaya Tiranga quiz Grand Finale.pdf
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Lesson notes of climatology university.
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Indian roads congress 037 - 2012 Flexible pavement
UNIT III MENTAL HEALTH NURSING ASSESSMENT
advance database management system book.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
A systematic review of self-coping strategies used by university students to ...
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
History, Philosophy and sociology of education (1).pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Classroom Observation Tools for Teachers
Final Presentation General Medicine 03-08-2024.pptx
RMMM.pdf make it easy to upload and study
Introduction to Building Materials
Ad

Ch3-1stOrderDivgfdddffcffffEqs w. Notes.ppt

  • 1. Mathematics For CS Chapter 3: 1st Order Differential Equations
  • 2. Basic Mathematical Models; Direction Fields Differential equations are equations containing derivatives. Derivatives describe rates of change. The following are examples of physical phenomena involving rates of change: Motion of fluids Motion of mechanical systems Flow of current in electrical circuits Dissipation of heat in solid objects Seismic waves; waves of energy that travel through Earth's layers Population dynamics A differential equation that describes a physical process is often called a mathematical model.
  • 3. Example 1: Free Fall Formulate a differential equation describing motion of an object falling in the atmosphere near sea level. Variables: time t, velocity v, dv/dt=acceleration Newton’s 2nd Law: F = ma = m(dv/dt) net force Force of gravity: F = mg downward force Force of air resistance: F =  v upward force Then Taking g = 9.8 m/sec2 , m = 10 kg,  = 2 kg/sec, we obtain v mg dt dv m    v dt dv 2 . 0 8 . 9  
  • 4. Example 1: Sketching Direction Field Using differential equation and table, plot slopes (estimates) on axes below. The resulting graph is called a direction field. (Note that values of v do not depend on t.) v v' 0 9.8 5 8.8 10 7.8 15 6.8 20 5.8 25 4.8 30 3.8 35 2.8 40 1.8 45 0.8 50 -0.2 55 -1.2 60 -2.2
  • 5. Example 1: Direction Field & Equilibrium Solution Arrows give tangent lines to solution curves, and indicate where soln is increasing & decreasing (and by how much). Horizontal solution curves are called equilibrium solutions. Use the graph below to solve for equilibrium solution, and then determine analytically by setting v' = 0. 49 2 . 0 8 . 9 0 2 . 0 8 . 9 : 0 Set          v v v v v v 2 . 0 8 . 9   
  • 6. Equilibrium Solutions In general, for a differential equation of the form find equilibrium solutions by setting y' = 0 and solving for y: Example: Find the equilibrium solutions of the following. , b ay y    a b t y  ) ( ) 2 ( 3 5 2          y y y y y y y
  • 7. Solutions of Some Differential Equations Consider the two differential equations of Free Fall and Mice population: These equations have the general form y' = ay - b We can use methods of calculus to solve differential equations of this form. 450 5 . 0 , 2 . 0 8 . 9       p p v v
  • 8. Example 2: To solve the differential equation we use methods of calculus, as follows (note what happens when p = 900). 450 5 . 0    p p   0 , 900 900 900 5 . 0 900 ln 5 . 0 900 5 . 0 900 900 5 . 0 5 . 0 5 . 0 5 . 0                             C t C t C t e k ke p e e p e p C t p dt p dp dt p dp p dt dp
  • 9. Example 2: This gives one group of solutions where k is a non-zero constant. Note: is also an equilibrium solution Thus, all the solutions to this equation, obtained in two different solution methods, may be included in a single expression (which may not be always possible for other cases) where k is an arbitrary constant, nonzero or zero. t ke p 5 . 0 900   900  p , 900 450 5 . 0 5 . 0 t ke p p p      
  • 10. Example 2: Integral Curves Graphs of solutions (integral curves) for several values of k, and direction field for differential equation, are given below. Choosing k = 0, we obtain the equilibrium solution, while for k  0, the solutions diverge from equilibrium solution.
  • 11. Initial Conditions A differential equation often has infinitely many solutions. If a point on the solution curve is known, such as an initial condition, then this determines a unique solution. In the mice differential equation, suppose we know that the mice population starts out at 850. Then p(0) = 850, and t t e t p k ke p ke t p 5 . 0 0 5 . 0 50 900 ) ( : Solution 50 900 850 ) 0 ( 900 ) (         
  • 12. Solution to General Equation To solve the general equation (a ≠0) we use methods of calculus, as follows (y ≠b/a). Thus the general solution is, combining the equilibrium solution y = b/a, where k is a constant (k = 0 -> equilibrium solution). Special case a = 0: the general solution is y = -bt + c b ay y    0 , / / / / ln / /                                   C at C at C at e k ke a b y e e a b y e a b y C t a a b y dt a a b y dy adt a b y dy a b y a dt dy , at ke a b y  
  • 13. Initial Value Problem Next, we solve the initial value problem (a ≠0) From previous slide, the solution to differential equation is Using the initial condition to solve for k, we obtain and hence the solution to the initial value problem is at e a b y a b y          0 0 ) 0 ( , y y b ay y     at ke a b y   a b y k ke a b y y       0 0 0 ) 0 (
  • 14. Equilibrium Solution Recall: To find equilibrium solution, set y' = 0 & solve for y: From previous slide, our solution to initial value problem is: Note the following solution behavior: If y0 = b/a, then y is constant, with y(t) = b/a If y0 > b/a and a > 0 , then y increases exponentially without bound If y0 > b/a and a < 0 , then y decays exponentially to b/a If y0 < b/a and a > 0 , then y decreases exponentially without bound If y0 < b/a and a < 0 , then y increases asymptotically to b/a a b t y b ay y set       ) ( 0 at e a b y a b y          0
  • 15. Linear First Order Ordinary Differential Equations A linear first order ODE has the general form where f is linear in y. Examples include equations with constant coefficients, such as those seen so far. or equations with variable coefficients: ) , ( y t f dt dy  ) ( ) ( t g y t p dt dy   b ay y    
  • 16. Constant Coefficient Case For a first order linear equation with constant coefficients, recall that we can use methods of calculus to solve: (Integrating step) C at e k ke a b y C t a a b y dt a a b y dy a a b y dt dy                 , / / ln / / / , b ay y    
  • 17. Variable Coefficient Case: Method of Integrating Factors We next consider linear first order ODEs with variable coefficients: The method of integrating factors involves multiplying this equation by a function (t), chosen so that the resulting equation is easily integrated. Note that we know how to integrate ) ( ) ( t g y t p dt dy   ) (t h dt dw 
  • 18. Example 3: Integrating Factor (1 of 2) Consider the following equation: Multiplying both sides by (t), we obtain We will choose (t) so that left side is derivative of known quantity. Consider the following, and recall product rule: Choose (t) so that (note that there may be MANY qualified (t) ) 2 / 2 t e y y      y dt t d dt dy t y t dt d ) ( ) ( ) (      t e t t t 2 ) ( ) ( 2 ) (        ) ( ) ( 2 ) ( 2 / t e y t dt dy t t     
  • 19. Example 3: General Solution (2 of 2) With (t) = e2t , we solve the original equation as follows:   t t t t t t t t t t t Ce e y C e y e e y e dt d e y e dt dy e e t y t dt dy t e y y 2 2 / 2 / 5 2 2 / 5 2 2 / 5 2 2 2 / 2 / 5 2 5 2 2 ) ( ) ( 2 ) ( 2                
  • 20. Example 4: General Solution (1 of 2) Solve the following equation Using the formula derived on the previous slide: Solution is Thus t y y     5 5 1 5 / 5 / 5 / ) 5 ( ) ( t t t at at at Ce dt t e e Ce dt t g e e y              5 / 5 / 5 / 5 / 5 / 5 / 5 / 5 / 5 50 5 5 25 5 ) 5 ( t t t t t t t t te e dt e te e dt te dt e dt t e               5 / 5 / 5 / 5 / 5 / 5 50 5 50 t t t t t Ce t Ce te e e y         
  • 21. Example 4: Graphs of Solutions (2 of 2) The graph on left shows direction field along with several integral curves. The graph on right shows several solutions, and a particular solution (in red) whose graph contains the point (0,50). 5 / 5 50 5 5 1 t Ce t y t y y          
  • 22. Method of Integrating Factors for General First Order Linear Equation Next, we consider the general first order linear equation Multiplying both sides by (t), we obtain Next, we want (t) such that '(t) = p(t)(t), from which it will follow that ) ( ) ( t g y t p y      y t t p dt dy t y t dt d ) ( ) ( ) ( ) (      ) ( ) ( ) ( ) ( ) ( t t g y t t p dt dy t     
  • 23. Integrating Factor for General First Order Linear Equation Thus we want to choose (t) such that '(t) = p(t)(t). Assuming (t) > 0 (as we only need one (t) ), it follows that Choosing k = 0, we then have and note (t) > 0 as desired. k t d t p t t d t p t t d        ) ( ) ( ln ) ( ) ( ) (    , ) ( ) ( t d t p e t   
  • 24. Solution for General First Order Linear Equation Thus we have the following: Then t d t p e t t g t y t t p dt dy t t g y t p y        ) ( ) ( where ), ( ) ( ) ( ) ( ) ( ) ( ) (       t d t p e t t c dt t g t y c dt t g t y t t g t y t dt d          ) ( ) ( where , ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) (        General solution
  • 25. Example 5: General Solution (1 of 3) To solve the initial value problem first put into standard form: Then and hence Note: y -> 0 as t -> 0   , 2 1 , 5 2 2     y t y y t 0 for , 5 2     t t y t y 2 2 2 2 2 ln 5 5 1 5 1 ) ( ) ( ) ( Ct t t C dt t t t C tdt t t C dt t g t y                    2 1 ln ln 2 2 ) ( 1 ) ( 2 t e e e e t t t dt t dt t p                
  • 26. Example 6: Particular Solution (2 of 3) Using the initial condition y(1) = 2 and general solution it follows that or equivalently, 2 2 2 ln 5 2 ) 1 ( t t t y C y      , ln 5 2 2 Ct t t y     5 / 2 ln 5 2   t t y
  • 27. Example 6: Graphs of Solution (3 of 3) The graphs below show several integral curves for the differential equation, and a particular solution (in red) whose graph contains the initial point (1,2).   2 2 2 2 2 2 ln 5 : Solution Particular ln 5 : Solution General 2 1 , 5 2 : IVP t t t y Ct t t y y t y y t        
  • 29. Class Exercise 1 30 Solve (1) Write the DE as (2) Separate the variables (3) Integrate both sides General solution to x’=t/x
  • 31. 1   y dt dy 2 ) 0 (  y Solve 2. Choose µ(t)= left side is known derivative 𝑑 𝑑𝑡 [µ(𝑡)𝑦] = µ(𝑡) 𝑑𝑦 𝑑𝑡 + 𝑑µ(𝑡) 𝑑𝑡 𝑦 1. Multiply both side by µ(t) Product Rule: Class Exercise 3a Separate variables: Integrate
  • 32. Class Exercise 3b 4. Apply Product Rule on LHS 5. Separation of variables 6. Integrate on both sides 3. Equation (1) will become
  • 33. Class Exercise 3c 8. Now use the initial condition to calculate C 1 2 1 2 1 2 ) 0 ( 0           C C Ce y 9. Substitute back to obtain the final solution t e y   1 7. Rearrange to make this explicit in y t Ce y   1
  • 34. Class Exercise 4a 35 t y y     5 5 1 5 / 5 / 5 / ) 5 ( ) ( t t t at at at Ce dt t e e Ce dt t g e e y            Solve Consider Solution: Product Rule of Derivative
  • 36. Class Exercise 4c 37 Consider   5 / 5 / 5 / 5 / 5 / 5 50 5 50 t t t t t Ce t Ce te e e y          Finally the solution:
  • 37. Class Exercise 5a t ty dt dy   0 ) 0 (  y Solve t ty dt dy   1. Put the ODE into the general form: Already in the form: 2. Multiplying both sides by (t) (1) (2)
  • 38. Class Exercise 5b 3. Choose (t) such that ' (t) = p(t)(t) 2 2 1 2 2 1 2 2 1 t t t te ty e dt dy e   2 2 1 2 2 1 ] [ t t te dt y e d  4. Multiply by the integrating factor: p(t)=t
  • 39. Class Exercise 5c Step 5: Integrate and make explicit in y: 2 2 1 2 2 1 2 2 1 2 2 1 1 t t t t Ce y C e C dt te y e        