Академический Документы
Профессиональный Документы
Культура Документы
Equation
Overview
Calculus
Differential Integral
Integral
Diff. Eq.
Diff. Eq.
Ordinary Partial
Order
Initial Value/Boundary value problems
Order
2
d y dy
2
0 2nd order
dt dt
3
dx d x
x 3 3rd order
dt dt
Order of an ordinary diff. eq.
Order 1
or
Order 2
or
Order n
or
Order of an ordinary diff. eq.
Example
State the order of the following diff. equation
a) + + =0
b) +4 +3 =
c) 1 =
Initial/Boundary Value Problems
Initial conditions
Condition which have the same value for the
independent variable.
0 = 0 and (0) = 2
Initial value problem
Differential equations together with its initial equation
Solve the equation
+ 6 + 8 = cosh 2
Subject to initial condition
0 = 0 and (0) = 2
Initial/Boundary Value Problems, cont.
Example
Show that
=
where A and B are constants, is a general solution
of the equation
+2 +9 =0
Which satisfied the initial condition
= 3 and ( ) = 0
Standard form for 1st ODEs
dy
F ( x, y ) (1)
dx
Where F ( x, y ) is a function of x and y.
or
M ( x, y )dx N ( x, y )dy 0 (2)
For example;
dy
2 y 2x
dx
( 2 x y ) dx (3 xy ) dy 0
Types of 1st ODE
ODE can be classified into four types according to the
form of F ( x, y )
Type of ODE F ( x, y )
Separable ODEs F ( x, y ) f ( x ) g ( y )
y
Homogeneous ODEs F ( x, y ) F
x
M ( x, y )
Exact ODEs F ( x, y )
N ( x, y )
Linear ODEs F ( x, y ) r ( x ) p ( x ) y
Solution Method-Separable ODEs
b) = 2
Solution Method-Separable ODEs
Example :
Solve
dy
x xy
dx
Since the RHS of this eqution can be factorized to
x (1 y )
dy
(1 y )
( x )dx
Solution Method-Separable ODEs
1 y e
x
2
2
c e c e Ae
x2
2
2
( A e c )
dy 2 xy dy
1) 2 2) xe y
dx x 4 dx
dy ex
3)
dx 1 e x
Solution 1.1-(1)
f (x) g ( y)
dy 2 xy dy 2 xy 2x
2 2 2 ( y )
dx x 4 dx x 4 x 4
2x
2 ( y )
x 4
the equation becomes separable and we obtain
dy dy 2x
g ( y)
f ( x ) dx y 2 dx
x 4
Solution 1.1-(1)
Integrating LHS sides, we find
1
y dy ln y c1
For RHS sides,
ln y c1 ln x 2 4 c2 ln y ln x 2 4 c2 c1
Solution 1.1-(1)
y
ln 2
c 2 c1 C
x 4
y
e C A
x2 4
y A( x 2 4)
Solution 1.1-(2)
dy
xe y Take, f ( x) x and g ( y) e y
dx
dy dy y
f ( x ) dx xdx dy xdx
e
g ( y) ey
Then,
x2
e y c1 c2
2
x2 x2
e y c 2 c1 C (C c 2 c1 )
2 2
Finally,
x2 x2
y ln C or y ln C
2 2
Solution 1.1-(3)
dy ex ex
3) Take, f ( x) and g ( y) 1
dx 1 e x 1 e x
dy ex
f ( x ) dx (1)dy dx
g ( y)
1 ex
For RHS sides,
take u 1 e x and du e x dx
ex
dx 1 du ln u c ln 1 e x c
1 ex
u
Then combine both LHS and RHS, we find
y ln 1 e x c
Solution 1.1-(4)
dz 1 1
4) Take, f (t ) and g ( z) 1
dt t (t 2) t (t 2)
dy dz 1
g ( y)
f ( x ) dx g ( z)
f (t )dt (1)dz t (t 2)
dt
1
z c1 ln t c 2 ln t 2 c3
2
1 1
z ln t ln t 2 c 2 c3 2c1
2 2
1 t 1
z ln A ( A c 2 c3 2c1 )
2 t2 2
Solution Method- Homogeneous
ODEs
Homogeneou s equations are ODEs that may be written in
the form
dy A( x, y ) y
F (5)
dx B ( x, y ) x
Where A( x, y ) and B ( x, y ) are homogeneou s function of
the same degree. A function f ( x, y ) is homogeneou s of degree
n if, for any , it obeys
f ( x , y ) n f ( x, y )
Solution Method- Homogeneous
ODEs
For example
dy A( x, y ) x 2 y xy 2
3
dx B ( x, y ) x y3
A(x, y ) (x ) 2 (y ) (x )(y ) 2 3 x 2 y 3 xy 2 3 A( x, y )
B (x, y ) (x ) 3 (y ) 3 3 ( x 3 y 3 ) 3 B ( x, y )
b) =
Solution Method- Homogeneous
ODEs
If Eqn. (5) is " homogeneou s" the equation can be reduced to
separable equation by making the subtitutio n y ux and by
product differenti ation
dy du
ux dy A( x, y ) y
dx dx F
dx B ( x, y ) x
Subtitute into Eqn. (5),
du du
ux F (u ) x F (u ) u
dx dx
This is now is separable equation and can be integrated
to give
du 1
F (u ) u
x
dx (6)
Example 1.2
dy y 2 x 2
dx 2 xy
2) Find the general solution of the following differenti al
equation.
dy y y
tan
dx x x
Solution 1.2-(1)
dy y 2 x 2
dx 2 xy
(y ) 2 ( x ) 2 2 y 2 2 x 2 2 ( y 2 x 2 )
f (x , y ) 2
2
f ( x, y )
2(x )(y ) 2 xy (2 xy )
As seen, this equation is homogeneou s.
Make the substituti on y ux. Hence,
dy du
ux
dx dx
Substituti ng this expression into the equation gives :
Solution 1.2-(1)
du (ux ) 2 x 2 x 2 (u 2 1) u 2 1
ux 2
dx 2 x (ux ) 2x u 2u
du u 2 1 1 u2
x u
dx 2u 2u
We obtain the separable equation,
2u 1
2
du dx
u 1 x
The next step is to integrate the left and the right side
of the equation
2u 1
2
u 1
du dx
x
Solution 1.2-(1)
The left side of this equation can be solved as follows. Take
h u 2 1 and dh 2udu
2u 1
u 2
du dh ln h c1 ln u 2 1 c1
1 h
hence,
ln u 2 1 c1 ln x c 2
ln u 2 1 ln x c 2 c1 C (C c 2 c1 )
ln x (u 2 1) C
x (u 2 1) e C A ( A e C )
Solution 1.2-(1)
2
y
x 1 A
x
y 2 x 2 Ax
Find the values of A to satisfy the initial condition y (1)= 2
y 2 3x x 2
Solution 1.2-(2)
dy y y
tan
dx x x
Subtitutin g y ux , we obtain
du
ux u tan u
dx
Cancelling u on both sides, rearranging and integrating gives
du 1 1
x
dx
tan u
tan u
du
x
dx ln x c1
But
1 cos u
tan u
du cot udu sin u
du ln sin u c 2
Solution 1.2-(2)
Then
ln sin u c 2 ln x c2
ln sin u ln x c1 c2 C (C c1 c 2 )
sin u sin u
ln C e C A ( A e C )
x x
y y
sin Ax sin 1 Ax
x x
Finally the solution to the ODE is
y x sin 1 Ax
Exercise
2 dy
1) ( xy y ) y2 x y ln y Cy
dx
dy y x
2) y x C 2 ln x
dx x y
dy y2
3 2 2
3) ( x xy ) y3 y Ce 2 x
dx
Solution Method-Exact ODEs
A differenta l equation of type
M ( x, y )dx N ( x, y )dy 0
is called an exact differenti al equation if and only if
M N
(7)
y x
But, if M N
the equation is not exact equation.
y x
The general solution of an exact equation is given by
M ( x, y )dx
M ( x, y )dx
y
N ( x, y ) dy C
(8)
Please refer to text book for detail explanatio n
Example 1.3
and
M ( x, y ) dx P x
y y
P 3x 2
P ( x, y )
y
N ( x, y ) dy C
2
xy x xdy C
Finally, the solution to the original ODE is
3x 2
xy C
2
Solution 1.3-(2)
2 xydx ( x 2 3 y 2 ) dy 0
M ( x, y ) 2 xy and N ( x, y ) ( x 2 3 y 2 )
x x 2 y 3 y 2 dy C
2 2 2 2
x y x 3 y dy C
Finally, the solution t o the original ODE is
x2 y y3 C
Exercise
y y
1) e dx ( 2 y xe )dy 0 xe y y 2 C
2) (2 xy sin x ) dx ( x 2 cos y ) dy 0
x 2 y cos x sin y C
Solution Method-InExact ODEs
Equations that may be written in the form
M ( x, y )dx N ( x, y )dy 0
(9)
M N
but for which are known as inexact equations.
y x
However it can always be made exact by multiplyin g by
integratin g factor i ( x,y ) that obeys
(iM ) (iN )
(10)
y x
For an integratin g factor tha t is a function of both x and y ,
there exists no general method for finding it.
If, however, an integratin g factor exists that is a function of
either x or y alone, then equation (10) can be solved to find it.
Solution Method-InExact ODEs
If we assume that the integratin g factor is a function
of x alone, i i ( x ), the integratin g factor is then given by
f ( x)dx 1 M N
i ( x) e where f ( x) (11)
N y x
g ( y )dy 1 N M
i( y) e where g ( y ) (12)
M x y
Example 1.4
Find the general solution of the following differenti al
equation.
dy 2 3y
dx y 2x
Solution 1.4
Rearrangin g into the form Eq. (2), we have
dy 2 3y 4x 3y 2
(4 x 3 y 2 ) dx ( 2 yx ) dy 0
dx y 2x 2 yx
Take, M ( x, y ) 4 x 3 y 2 and N ( x, y ) 2 yx
M x
therefore, 6 y and 2y
y x
Solution 1.4
so the ODE is not exact in its present form.
However, if we calculate f ( x ) using Eqn.(11), wee see that
1 M N 1 2
f ( x) 6 y 2 y
N y x 2 yx x
a function of x alone.
Therefore an integrating factor exists that is also a function of
x alone. By using Eqn.(11), we obtain
2
i ( x) e
f ( x ) dx
e
x
dx
e 2 ln x x 2
multiplyin g given equation t hrough by integratin g factor
we obtain
(4 x 3 3 y 2 x 2 ) dx ( 2 yx 3 ) dy 0
Solution 1.4
iM ( x, y ) (4 x 3 3 y 2 x 2 ) and iN ( x, y ) (2 yx 3 )
(iM ) (iN )
and 6 yx 2
y x
using equation
iM ( x, y )dx
iM ( x, y ) dx
y
iN ( x, y ) dy C
calculate the general solution.
3 2 2
( 4 x 3 3 y 2 x 2 ) dx
3
( 4 x 3 y x ) dx
y
2 yx dy C
Solution 1.4
4 2 3
x y x
4
x y x
2 3
3
2 yx dy C
y
x 4 y 2 x 3 2 yx 3 2 yx 3 dy C
x 4 y 2 x3 C
x 4 y 2 x3 C
Exercise
Find the general solution of the following differenti al
equation.
1) (1 y 2 ) dx xydy 0 x2 x2 y2
C
2 2
2) ( x cos y ) dx sin ydy 0 e x (cos y x 1) C
Solution Method-Linear ODEs
Linear first - order ODEs are a special case of inexact
ODEs and can be written in the conventional form
dy
p ( x ) y r ( x) (13)
dx
Such equations can be made exact by multiplying
with an appropriate integrating factor whi ch is always
a function of x alone. We can find this factor i ( x ) by
Eq.(11), for this purpose we write Eq. (13) as
dy ( p ( x ) y r ( x )) dx 0
1 M N 1
f ( x) p ( x ) 0 p ( x )
N y x 1
i ( x) e f ( x ) dx
e p ( x ) dx
Solution Method-Linear ODEs
We now multiply (13) on both sides by this integrating
factor i ( x ). Then by the product rule
p ( x ) dx dy p ( x ) dx p ( x ) dx
e e p ( x ) y e r ( x )
dx
p ( x ) dx
d e y
e p ( x ) dx r ( x )
dx
By integrating the second and third of these three expressions
with respects to x we get
p ( x ) dx p ( x ) dx
e
y
e
r ( x )dx C
Solution Method-Linear ODEs
Finally we obtain
p ( x ) dx p ( x ) dx
ye e
r ( x )dx C (14)
Example 1.5
2 xdx 2 xdx
ye e
4 xdx C
ye x2
2 e 2 xdx C
x2
take u x 2 and du 2 xdx
ye x2
2 e du C
u
ye x2
2e x2
C
x2
y 2 Ce
Solution 1.4-(2)
dy
y e2x y e 2 x Ce x
dx
Solution 1.4-(3)
dy
y tan x sin 2 x y C cos x 2 cos 2 x
dx
ODEs Application in Mech. Eng.
-Mathematical Modeling
ODEs Application in Mech. Eng.
-Mathematical Modeling
What are DE?
Equations involving derivatives of different orders
How differenti al equations are derived?
They are derived from the laws of physics
Where are the laws of physics relevant to engineering applications?
Fundamenta ls laws of Physics;
- Conservati on of Energy - the first law of thermodynamics
- Conservati on of momentum
- Conservati on of mass