Lecture Note - Chapter 1
Lecture Note - Chapter 1
SSCE1793
Classification by type
Ordinary Differential Equations (ODE) Contains one or more dependent variables with respect to one independent variable
=>
Partial Differential Equations (PDE) involve one or more dependent variables and two or more independent variables
Can you determine which one is the DEPENDENT VARIABLE and which one is the INDEPENDENT VARIABLES from the following equations ???
+ =0
2 2
=>
+ = 0
+ + = 2
=> + + =
Dependent Variable: Independent Variable:
SSCE1793
Examples: a)
2
+ = sin
Order :
Degree:
b)
2 2
+ 2 = cos
Order :
Degree:
c)
2 2
+ =
Order :
Degree:
d)
3 3
+ = 0
Order :
Degree:
2) 2 + = sin 2 2
Nonlinear Differential Equations Dependent variables and their derivatives are not of degree 1
SSCE1793
Examples: 1) + 2 = sin 2)
2
Order :
Degree:
+ = sin
2
Order :
Degree:
3)
3 3
2 + 2
= +1
Order :
Degree:
2)
1 = 5 ; 2 = 2
Boundary condition
Initial Value Problems (IVP) 2 +2 + + sin 2 Boundary Value Problems (BVP) 2 + 2 + + sin 2 Boundary Conditions: 0 = 1 ; 1 = 2 Initial Conditions: 0 = 0 ; 0 = 1
SSCE1793
Examples: = cos + sin Show that the above equation is a solution of the following DE + = 0 Solutions: (2) (1)
SSCE1793
1.2
Types of first order ODE Separable equation Homogenous equation Exact equation Linear equation Bernoulli Equation
How to identify? Suppose , = = Hence this become a SEPARABLE EQUATION if it can be written as = () Method of Solution : integrate both sides of equation 1 = ()
SSCE1793
Example 1: Solve the initial value problem cos = , 1 + 2 2 Solution: i) Separate the functions 0 = 1
ii)
iii)
iv)
Final answer
Note: Some DE may not appear separable initially but through appropriate substitutions, the DE can be separable.
SSCE1793
Example 2: Show that the DE = ( + )2 can be reduced to a separable equation by using substitution = + . Then obtain the solution for the original DE.
ii)
iii)
iv)
SSCE1793
1.2.2 Homogenous Equation How to identify? Suppose , = , , is homogenous if , = , for every real value of Method of Solution : i) ii) Determine whether the equation homogenous or not Use substitution = and = + in the original DE Separable equation method
iii) Separate the variable and iv) Integrate both sides v) Use initial condition (if given) to find the constant value
Solutions: a) 2 + 2 , = = ( + ) , =
b)
, =
= + 2 + 2
SSCE1793
ii)
= +
into (1)
Note: Non-homogenous can be reduced to a homogenous equation by using the right substitution.
SSCE1793
Example 3: Find the solution for this non-homogenous equation 2 = + 5 by using the following substitutions = + 3, = + 2 Solutions: i) Differentiate (2) and (3)
(1)
(2),(3)
ii)
iii)
iv)
10
SSCE1793
Condition for an exact equation. = Method of Solution (Method 1): i) Write the DE in the form , + , = 0 And test for the exactness = ii) If the DE is exact, then =
, =
(1), (2)
11
SSCE1793
iii)
iv) v) vi)
Integrate to get Replace () into (3). If there is any initial conditions given, substitute the condition into the solution. Write down the solution in the form , = , where A is a constant
Method of Solution (Method 2): i) Write the DE in the form , + , = 0 And test for the exactness = ii) If the DE is exact, then =
, =
(1), (2)
iii)
iv)
Compare (3) and (4) to get value for 1 () and 2 (). Replace 1 () into (3) OR 2 () into (4). If there are any initial conditions given, substitute the conditions into the solution. Write down the solution in the form , = , where A is a constant
12
SSCE1793
ii) Find ,
iv) Find
v)
13
SSCE1793
Note: Some non-exact equation can be turned into exact equation by multiplying it with an integrating factor.
14
SSCE1793
Example 2: + 2 + + + 2 = 0 Show that the following equation is not exact. By using integrating factor, , = , solve the equation. Solution: i) Show that it is not exact
iv) Find ,
v) Find
vi) Write , =
15
SSCE1793
1.2.4 Linear First Order Differential Equation How to identify? The general form of the first order linear DE is given by + = ()
(1)
Determine the value of dan such the the coefficient of is 1. Calculate the integrating factor, = Write the equation in the form of = () =
()
iv)
()
16
SSCE1793
ii)
iii)
iv)
Final answer
Note: Non-linear DE can be converted into linear DE by using the right substitution.
17
SSCE1793
Example 2: Using = 2 , convert the following non-linear DE into linear DE. 2 Solve the linear equation. Solutions: i) Differentiate = to get and replace into the non-linear equation.
2 = 1;
1 = 1
ii)
Change the equation into the general form of linear equation & determine and
iii)
iv)
Find
v)
18
SSCE1793
1.2.5 Equations of the form = ( + ) How to identify? When the DE is in the form = ( + ) use substitution = + to turn the DE into a separable equation Method of Solution : i) Differentiate ( 2 ) wrt ( to get ) = + ii) iii) Replace ( 3 ) into ( 1 ) Solve using the separable equation solution (3)
(1)
(2)
19
SSCE1793
ii)
iii)
Replace ( 2 ) into ( 1 )
iv)
20
SSCE1793
1.2.6 Bernoulli Equation How to identify? The general form of the Bernoulli equation is given by + = where 0, 1 To reduce the equation to a linear equation, use substitution = 1 Method of Solution : iv) Divide ( 1 ) with + 1 =
(1)
(2)
(3)
v)
vi)
Replace ( 4 ) into ( 3 ) 1 + = 1 + 1 = 1 ( ) ( )
vii)
Solve using the linear equation solution Find integrating factor, = Solve
= ()
21
SSCE1793
iii)
Using substitution, =
iv)
v)
vi)
vii)
Since = 3 = 3
22
SSCE1793
1.3
General Solution Q1: Find the solution for () It is a separable equation. Therefore =
ln = + = + = + =
= + 0
ln 6 = ln =
1 1 ln = 1.098612 6 3
= + 0 1.0986 = 70 + 30 1.0986
23
SSCE1793
Example 1: According to Newtons Law of Cooling, the rate of change of the temperature satisfies = ( ) Where is the ambient temperature, is a constant and is time in minutes. When object is placed in room with temperature 10C, it was found that the temperature of the object drops from 90C to 30C in 30 minutes. Then determine the temperature of an object after 20 minutes.
Solution: i) Determine all the information given. Room temperature = = 10C When = 0, 0 = 90C When = 30, 30 = 30C Question: Temperature after 20 minutes, = 20, = ? ii) Find the solution for = + iii) Use the conditions given to find and When = 0, 0 = 90C , = 10C 90 = 10 + => = 80 = 10 + 80 When = 30, 30 = 30C 30 = 10 + 80 30 20 30 = 80 1 1 = ln = 0.04621 30 4 = 10 + 80 0.04621 iv) = , = ? 20 = 10 + 80 0.04621 20 = 41.75
24
SSCE1793
Where is a constant is the size of population / number of dollars / amount of radioactive The problems: 1. Population Growth 2. Compound Interest 3. Radioactive Decay 4. Drug Elimination
Example 1: A certain city had a population of 25000 in 1960 and a population of 30000 in 1970. Assume that its population will continue to grow exponentially at a constant rate. What populations can its city planners expect in the year 2000? Solution: 1) Extract the information = 0, 0 = 25000 = 10, 10 = 30000 = 40, 40 = ? 2) Solve the DE =
=>
3) Use the initial & boundary conditions = 0, 0 = 25000 = 25000 => = 25000 = 10, 10 = 30000 30000 = 25000 10 10 = ln 30000 25000 => = 0.01823
= 51840
SSCE1793
Electric Circuits - RC
Given that the DE for an RL-circuit is Where () is the voltage source is the inductance is the resistance CASE 1 : = (constant) i) + = 0 (1) + = ()
ii)
iii)
iv)
= 1
= 0 +
26
SSCE1793
Write into the linear equation form and determine and 0 + = = 0 , = sin
iii) Multiply the DE with the integrating factor 0 = iv) Integrate the equation to find = 1
(1)
Sign
Integrate
1
2
+ -
sin 1 cos w 1 w
2
sin
0 +
1 w
1 R cos 2 w w L
2
sin
sin
2
R wL
sin
(2)
27
SSCE1793
0
2
(3)
0 0 = cos + sin 2 R 1+ wL
2
0 0 cos + sin w 2 1 R 1 + wL
2
0 0 cos + sin w 2
Where is the external force is the mass of the body is the velocity of the body with the same direction with is the time Example 1: A particle moves vertically under the force of gravity against air resistance 2 , where is a constant. The velocity at any time is given by the differential equation = 2 . If the particle starts off from rest, show that = Such that =
2 1 2 + 1
28
SSCE1793
Solution: i) Extract the information from the question Initial Condition = 0, = 0 ii) Separate the DE 1 = 2 1 = 2 2 Let =
, 1 = 2 2
iii)
= +
29
SSCE1793
2 + 1 = 2 1 = vi) 2 1 2 + 1 1 2 1 1 + 2
When , 2 0
=> =
30