SlideShare a Scribd company logo
1 of 16
Ch 2.1: Linear Equations;
Method of Integrating Factors
A linear first order ODE has the general form
where f is linear in y. Examples include equations with
constant coefficients, such as those in Chapter 1,
or equations with variable coefficients:
),( ytf
dt
dy
=
)()( tgytp
dt
dy
=+
bayy +−=′
Constant Coefficient Case
For a first order linear equation with constant coefficients,
recall that we can use methods of calculus to solve:
Cat
ekkeaby
Ctaaby
dta
aby
dy
a
aby
dtdy
±=+=
+−=−
−=
−
−=
−
∫∫
,/
/ln
/
/
/
,bayy +−=′
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.
)()( tgytp
dt
dy
=+
Example 1: 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
2/
2 t
eyy =+′
[ ] y
dt
td
dt
dy
tyt
dt
d )(
)()(
µ
µµ +=
t
ettt 2
)()(2)( =⇒=′ µµµ
)()(2)( 2/
teyt
dt
dy
t t
µµµ =+
Example 1: General Solution (2 of 2)
With µ(t) = e2t
, we solve the original equation as follows:
[ ]
tt
tt
tt
ttt
t
t
Ceey
Ceye
eye
dt
d
eye
dt
dy
e
etyt
dt
dy
t
eyy
22/
2/52
2/52
2/522
2/
2/
5
2
5
2
2
)()(2)(
2
−
+=
+=
=
=+
=+
=+′
µµµ
Method of Integrating Factors:
Variable Right Side
In general, for variable right side g(t), the solution can be
found as follows:
[ ]
atatat
atat
atat
atatat
Cedttgeey
dttgeye
tgeye
dt
d
tgeyae
dt
dy
e
tgtyta
dt
dy
t
tgayy
−−
+=
=
=
=+
=+
=+′
∫
∫
)(
)(
)(
)(
)()()()(
)(
µµµ
Example 2: General Solution (1 of 2)
We can solve the following equation
using the formula derived on the previous slide:
Integrating by parts,
Thus
tyy −=+′ 5
5
1
5/5/5/
)5()( tttatatat
CedtteeCedttgeey −−−−
+−=+= ∫∫
[ ]
5/5/
5/5/5/
5/5/5/
550
5525
5)5(
tt
ttt
ttt
tee
dtetee
dttedtedtte
−=
−−=
−=−
∫
∫∫∫
( ) 5/5/5/5/5/
550550 ttttt
CetCeteeey −−−
+−=+−=
Example 2: 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/
5505
5
1 t
Cetytyy −
+−=⇒−+−=′
Example 3: General Solution (1 of 2)
We can solve the following equation
using the formula derived on previous slide:
Integrating by parts,
Thus
tyy −=−′ 5
5
1
5/5/5/
)5()( tttatatat
CedtteeCedttgeey +−=+= ∫∫
−−−
[ ]
5/
5/5/5/
5/5/5/
5
5525
5)5(
t
ttt
ttt
te
dtetee
dttedtedtte
−
−−−
−−−
=
+−−−=
−=−
∫
∫∫∫
[ ] 5/5/5/5/
55 tttt
CetCeteey +=+= −
Example 3: Graphs of Solutions (2 of 2)
The graph on left shows direction field along with several
integral curves.
The graph on right shows several integral curves, and a
particular solution (in red) whose initial point on y-axis
separates solutions that grow large positively from those that
grow large negatively as t → ∞.
5/
555/ t
Cetytyy +=⇒−=−′
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
)()( tgytpy =+′
[ ] yttp
dt
dy
tyt
dt
d
)()()()( µµµ +=
)()()()()( ttgyttp
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, it follows that
Choosing k = 0, we then have
and note µ(t) > 0 as desired.
ktdtpttdtp
t
td
+=⇒= ∫∫∫ )()(ln)(
)(
)(
µ
µ
µ
,)( )( tdtp
et ∫
=µ
Solution for
General First Order Linear Equation
Thus we have the following:
Then
tdtp
ettgtyttp
dt
dy
t
tgytpy
∫
==+
=+′
)(
)(where),()()()()(
)()(
µµµµ
[ ]
tdtp
et
t
cdttgt
y
cdttgtyt
tgtyt
dt
d
∫
=
+
=
+=
=
∫
∫
)(
)(where,
)(
)()(
)()()(
)()()(
µ
µ
µ
µµ
µµ
Example 4: General Solution (1 of 3)
To solve the initial value problem
first put into standard form:
Then
and hence
( ) ,21,52 2
==−′ ytyyt
0for,5
2
≠=−′ tty
t
y
222
2
2
ln5
5
1
5
1
)(
)()(
CtttCdt
t
t
t
Ctdt
t
t
Cdttgt
y +=



+=
+
=
+
= ∫
∫∫
µ
µ
2
1
ln
ln2
2
)( 1
)(
2
t
eeeet ttdt
t
dttp
===
∫
=∫=






−−
µ
Example 4: Particular Solution (2 of 3)
Using the initial condition y(1) = 2 and general solution
it follows that
or equivalently,
22
2ln52)1( tttyCy +=⇒==
,ln5 22
Cttty +=
( )5/2ln5 2
+= tty
Example 4: 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).
( )
22
22
2
2ln5:SolutionParticular
ln5:SolutionGeneral
21,52:IVP
ttty
Cttty
ytyyt
+=
+=
==−′

More Related Content

What's hot

Absolute Value Functions & Graphs
Absolute Value Functions & GraphsAbsolute Value Functions & Graphs
Absolute Value Functions & Graphstoni dimella
 
9.3 Solving Systems With Gaussian Elimination
9.3 Solving Systems With Gaussian Elimination9.3 Solving Systems With Gaussian Elimination
9.3 Solving Systems With Gaussian Eliminationsmiller5
 
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...Dr.Summiya Parveen
 
Matrix and its operation (addition, subtraction, multiplication)
Matrix and its operation (addition, subtraction, multiplication)Matrix and its operation (addition, subtraction, multiplication)
Matrix and its operation (addition, subtraction, multiplication)NirnayMukharjee
 
Linear inequalities in two variables
Linear inequalities in two variablesLinear inequalities in two variables
Linear inequalities in two variableschristianjustine
 
Bmb12e ppt 1_1
Bmb12e ppt 1_1Bmb12e ppt 1_1
Bmb12e ppt 1_1John Hani
 
Determinant
Determinant Determinant
Determinant GpmMaths
 
Bmb12e ppt 1_3
Bmb12e ppt 1_3Bmb12e ppt 1_3
Bmb12e ppt 1_3John Hani
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture NotesDr. Nirav Vyas
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –itsvineeth209
 
Bmb12e ppt 1_2
Bmb12e ppt 1_2Bmb12e ppt 1_2
Bmb12e ppt 1_2John Hani
 
Introduction to engineering maths
Introduction to engineering mathsIntroduction to engineering maths
Introduction to engineering mathsKishore Kumar
 

What's hot (19)

Absolute Value Functions & Graphs
Absolute Value Functions & GraphsAbsolute Value Functions & Graphs
Absolute Value Functions & Graphs
 
Linear Equations
Linear EquationsLinear Equations
Linear Equations
 
Solving Linear Equations
Solving Linear EquationsSolving Linear Equations
Solving Linear Equations
 
9.3 Solving Systems With Gaussian Elimination
9.3 Solving Systems With Gaussian Elimination9.3 Solving Systems With Gaussian Elimination
9.3 Solving Systems With Gaussian Elimination
 
PC 10.6 notes Parametric
PC 10.6 notes ParametricPC 10.6 notes Parametric
PC 10.6 notes Parametric
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Determinants
DeterminantsDeterminants
Determinants
 
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
 
Matrix and its operation (addition, subtraction, multiplication)
Matrix and its operation (addition, subtraction, multiplication)Matrix and its operation (addition, subtraction, multiplication)
Matrix and its operation (addition, subtraction, multiplication)
 
Linear inequalities in two variables
Linear inequalities in two variablesLinear inequalities in two variables
Linear inequalities in two variables
 
Bmb12e ppt 1_1
Bmb12e ppt 1_1Bmb12e ppt 1_1
Bmb12e ppt 1_1
 
Determinant
Determinant Determinant
Determinant
 
Curve fitting
Curve fitting Curve fitting
Curve fitting
 
Bmb12e ppt 1_3
Bmb12e ppt 1_3Bmb12e ppt 1_3
Bmb12e ppt 1_3
 
R.Ganesh Kumar
R.Ganesh KumarR.Ganesh Kumar
R.Ganesh Kumar
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture Notes
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –
 
Bmb12e ppt 1_2
Bmb12e ppt 1_2Bmb12e ppt 1_2
Bmb12e ppt 1_2
 
Introduction to engineering maths
Introduction to engineering mathsIntroduction to engineering maths
Introduction to engineering maths
 

Similar to Ch02 1

Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...theijes
 
Solution of System of Linear Equations
Solution of System of Linear EquationsSolution of System of Linear Equations
Solution of System of Linear Equationsmofassair
 
New Algorithm to calculate kinetic parameters
New Algorithm to calculate kinetic parametersNew Algorithm to calculate kinetic parameters
New Algorithm to calculate kinetic parametersMuratz13
 
A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...Alexander Decker
 
International journal of engineering and mathematical modelling vol2 no1_2015_1
International journal of engineering and mathematical modelling vol2 no1_2015_1International journal of engineering and mathematical modelling vol2 no1_2015_1
International journal of engineering and mathematical modelling vol2 no1_2015_1IJEMM
 
numericalmethods.pdf
numericalmethods.pdfnumericalmethods.pdf
numericalmethods.pdfShailChettri
 
1.5 Quadratic Equations.pdf
1.5 Quadratic Equations.pdf1.5 Quadratic Equations.pdf
1.5 Quadratic Equations.pdfsmiller5
 
Tutorial on EM algorithm – Part 4
Tutorial on EM algorithm – Part 4Tutorial on EM algorithm – Part 4
Tutorial on EM algorithm – Part 4Loc Nguyen
 
Adomian decomposition Method and Differential Transform Method to solve the H...
Adomian decomposition Method and Differential Transform Method to solve the H...Adomian decomposition Method and Differential Transform Method to solve the H...
Adomian decomposition Method and Differential Transform Method to solve the H...IJERA Editor
 
13 1 basics_integration
13 1 basics_integration13 1 basics_integration
13 1 basics_integrationManarAdham
 

Similar to Ch02 1 (20)

Ch03 1
Ch03 1Ch03 1
Ch03 1
 
Integrating_Factors
Integrating_FactorsIntegrating_Factors
Integrating_Factors
 
Ch07 9
Ch07 9Ch07 9
Ch07 9
 
Ch02 7
Ch02 7Ch02 7
Ch02 7
 
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
 
Solution of System of Linear Equations
Solution of System of Linear EquationsSolution of System of Linear Equations
Solution of System of Linear Equations
 
Ch03 7
Ch03 7Ch03 7
Ch03 7
 
New Algorithm to calculate kinetic parameters
New Algorithm to calculate kinetic parametersNew Algorithm to calculate kinetic parameters
New Algorithm to calculate kinetic parameters
 
A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...
 
new math seminar paper
new math seminar papernew math seminar paper
new math seminar paper
 
International journal of engineering and mathematical modelling vol2 no1_2015_1
International journal of engineering and mathematical modelling vol2 no1_2015_1International journal of engineering and mathematical modelling vol2 no1_2015_1
International journal of engineering and mathematical modelling vol2 no1_2015_1
 
numericalmethods.pdf
numericalmethods.pdfnumericalmethods.pdf
numericalmethods.pdf
 
1.5 Quadratic Equations.pdf
1.5 Quadratic Equations.pdf1.5 Quadratic Equations.pdf
1.5 Quadratic Equations.pdf
 
Tutorial on EM algorithm – Part 4
Tutorial on EM algorithm – Part 4Tutorial on EM algorithm – Part 4
Tutorial on EM algorithm – Part 4
 
Project2
Project2Project2
Project2
 
Ijciet 10 02_085
Ijciet 10 02_085Ijciet 10 02_085
Ijciet 10 02_085
 
FUNCIONES DE GREEN
FUNCIONES DE GREENFUNCIONES DE GREEN
FUNCIONES DE GREEN
 
Adomian decomposition Method and Differential Transform Method to solve the H...
Adomian decomposition Method and Differential Transform Method to solve the H...Adomian decomposition Method and Differential Transform Method to solve the H...
Adomian decomposition Method and Differential Transform Method to solve the H...
 
13 1 basics_integration
13 1 basics_integration13 1 basics_integration
13 1 basics_integration
 
Ch04 3
Ch04 3Ch04 3
Ch04 3
 

More from Rendy Robert (20)

Ch08 3
Ch08 3Ch08 3
Ch08 3
 
Ch08 1
Ch08 1Ch08 1
Ch08 1
 
Ch07 8
Ch07 8Ch07 8
Ch07 8
 
Ch07 7
Ch07 7Ch07 7
Ch07 7
 
Ch07 6
Ch07 6Ch07 6
Ch07 6
 
Ch07 5
Ch07 5Ch07 5
Ch07 5
 
Ch07 4
Ch07 4Ch07 4
Ch07 4
 
Ch07 3
Ch07 3Ch07 3
Ch07 3
 
Ch07 2
Ch07 2Ch07 2
Ch07 2
 
Ch07 1
Ch07 1Ch07 1
Ch07 1
 
Ch06 6
Ch06 6Ch06 6
Ch06 6
 
Ch06 5
Ch06 5Ch06 5
Ch06 5
 
Ch06 4
Ch06 4Ch06 4
Ch06 4
 
Ch06 3
Ch06 3Ch06 3
Ch06 3
 
Ch06 2
Ch06 2Ch06 2
Ch06 2
 
Ch06 1
Ch06 1Ch06 1
Ch06 1
 
Ch05 8
Ch05 8Ch05 8
Ch05 8
 
Ch05 7
Ch05 7Ch05 7
Ch05 7
 
Ch05 6
Ch05 6Ch05 6
Ch05 6
 
Ch05 5
Ch05 5Ch05 5
Ch05 5
 

Ch02 1

  • 1. Ch 2.1: Linear Equations; Method of Integrating Factors A linear first order ODE has the general form where f is linear in y. Examples include equations with constant coefficients, such as those in Chapter 1, or equations with variable coefficients: ),( ytf dt dy = )()( tgytp dt dy =+ bayy +−=′
  • 2. Constant Coefficient Case For a first order linear equation with constant coefficients, recall that we can use methods of calculus to solve: Cat ekkeaby Ctaaby dta aby dy a aby dtdy ±=+= +−=− −= − −= − ∫∫ ,/ /ln / / / ,bayy +−=′
  • 3. 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. )()( tgytp dt dy =+
  • 4. Example 1: 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 2/ 2 t eyy =+′ [ ] y dt td dt dy tyt dt d )( )()( µ µµ += t ettt 2 )()(2)( =⇒=′ µµµ )()(2)( 2/ teyt dt dy t t µµµ =+
  • 5. Example 1: General Solution (2 of 2) With µ(t) = e2t , we solve the original equation as follows: [ ] tt tt tt ttt t t Ceey Ceye eye dt d eye dt dy e etyt dt dy t eyy 22/ 2/52 2/52 2/522 2/ 2/ 5 2 5 2 2 )()(2)( 2 − += += = =+ =+ =+′ µµµ
  • 6. Method of Integrating Factors: Variable Right Side In general, for variable right side g(t), the solution can be found as follows: [ ] atatat atat atat atatat Cedttgeey dttgeye tgeye dt d tgeyae dt dy e tgtyta dt dy t tgayy −− += = = =+ =+ =+′ ∫ ∫ )( )( )( )( )()()()( )( µµµ
  • 7. Example 2: General Solution (1 of 2) We can solve the following equation using the formula derived on the previous slide: Integrating by parts, Thus tyy −=+′ 5 5 1 5/5/5/ )5()( tttatatat CedtteeCedttgeey −−−− +−=+= ∫∫ [ ] 5/5/ 5/5/5/ 5/5/5/ 550 5525 5)5( tt ttt ttt tee dtetee dttedtedtte −= −−= −=− ∫ ∫∫∫ ( ) 5/5/5/5/5/ 550550 ttttt CetCeteeey −−− +−=+−=
  • 8. Example 2: 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/ 5505 5 1 t Cetytyy − +−=⇒−+−=′
  • 9. Example 3: General Solution (1 of 2) We can solve the following equation using the formula derived on previous slide: Integrating by parts, Thus tyy −=−′ 5 5 1 5/5/5/ )5()( tttatatat CedtteeCedttgeey +−=+= ∫∫ −−− [ ] 5/ 5/5/5/ 5/5/5/ 5 5525 5)5( t ttt ttt te dtetee dttedtedtte − −−− −−− = +−−−= −=− ∫ ∫∫∫ [ ] 5/5/5/5/ 55 tttt CetCeteey +=+= −
  • 10. Example 3: Graphs of Solutions (2 of 2) The graph on left shows direction field along with several integral curves. The graph on right shows several integral curves, and a particular solution (in red) whose initial point on y-axis separates solutions that grow large positively from those that grow large negatively as t → ∞. 5/ 555/ t Cetytyy +=⇒−=−′
  • 11. 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 )()( tgytpy =+′ [ ] yttp dt dy tyt dt d )()()()( µµµ += )()()()()( ttgyttp dt dy t µµµ =+
  • 12. Integrating Factor for General First Order Linear Equation Thus we want to choose µ(t) such that µ'(t) = p(t)µ(t). Assuming µ(t) > 0, it follows that Choosing k = 0, we then have and note µ(t) > 0 as desired. ktdtpttdtp t td +=⇒= ∫∫∫ )()(ln)( )( )( µ µ µ ,)( )( tdtp et ∫ =µ
  • 13. Solution for General First Order Linear Equation Thus we have the following: Then tdtp ettgtyttp dt dy t tgytpy ∫ ==+ =+′ )( )(where),()()()()( )()( µµµµ [ ] tdtp et t cdttgt y cdttgtyt tgtyt dt d ∫ = + = += = ∫ ∫ )( )(where, )( )()( )()()( )()()( µ µ µ µµ µµ
  • 14. Example 4: General Solution (1 of 3) To solve the initial value problem first put into standard form: Then and hence ( ) ,21,52 2 ==−′ ytyyt 0for,5 2 ≠=−′ tty t y 222 2 2 ln5 5 1 5 1 )( )()( CtttCdt t t t Ctdt t t Cdttgt y +=    += + = + = ∫ ∫∫ µ µ 2 1 ln ln2 2 )( 1 )( 2 t eeeet ttdt t dttp === ∫ =∫=       −− µ
  • 15. Example 4: Particular Solution (2 of 3) Using the initial condition y(1) = 2 and general solution it follows that or equivalently, 22 2ln52)1( tttyCy +=⇒== ,ln5 22 Cttty += ( )5/2ln5 2 += tty
  • 16. Example 4: 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). ( ) 22 22 2 2ln5:SolutionParticular ln5:SolutionGeneral 21,52:IVP ttty Cttty ytyyt += += ==−′