Lectures Mid
Lectures Mid
Lectures Mid
Ordinary Differential
Equations (1)
If the derivatives are partial derivatives then the equation is called partial
DE (PDE).
Definition: The order of ODE is the highest derivative appearing in the equation.
For the previous examples : (1) of order 2 , (2) of order 3 .
Definition: A general form for an nth order equation with x independent and y
dependent can be expressed
If all the derivatives asin an equation are ordinary, then the equation is
appearing
F ( x, y, y, y,..., y(n) ) 0 or y(n) f ( x, y, y, y,..., y(n1) ) ......(*) .
called an Ordinary DE (ODE).
independent variables.
Definition: A function
If the derivatives ( x) isderivatives
are partial called an explicit
then thesolution to the
equation equation
is called (*)DE
partial on an
If all the
interval I , ifderivatives
substituting y by inan
appearing ( x)equation are the
will satisfy ordinary, then the equation is
equation.
(PDE).
called an Ordinary DE (ODE).
Example: Show that ( x) x 2 ln( x) is a solution of
If all the derivatives appearing in an equation are ordinary, then the equation is
x2 y 3xy 4 y 0, x 0 .
Ifcalled an Ordinary
the derivatives DEpartial
are (ODE). derivatives then the equation is called partial DE
(PDE).
Solution:
If(the
x) derivatives
2 x ln( x) are
x partial derivatives then the equation is called partial DE
(PDE).
( x) 2ln( x) 3
L.H .S x2 (2ln( x) 3) 3x(2 x ln( x) x) 4 x 2 ln( x)
2 x2 ln( x) 3x2 6 x2 ln( x) 3x2 4 x2 ln( x) 0 R.H .S
xy 0
Example: Show that x y e is an implicit solution of
1 xe xy
dy
dx
1 ye xy 0
Example: Find the largest interval that makes the DE has a unique solution
0
1 1
2ln( x 1) 2
(3) y y y , y (2) 6, y (2) y (2) 1
3 ( x 3)(6 2 x)
2ln( x 1)
Solution: is continuous for x 1 0 x 1
3
2
is continuous for x 3
( x 3)(6 2 x)
Therefore, the largest open interval the contains the initial point x0 2 is (1,3)
Prof. Husein Mahmoud Jaradat
Al al-Bayt University Mathematics department Ordinary Differential Equations 1
1
(4) y (tan 2 x) y , y(2) 4 .
ln x
sin 2 x
Solution: tan 2 x is continuous if
cos 2 x
3 5 3 5
cos 2 x 0 2 x , , ,... x , , ,...
2 2 2 4 4 4
1
is continuous when x 0 and when ln x 0 x 1 .
ln x
From the following diagram, we choose the largest interval the contains the
initial point x0 2 .
3
Hence, the largest interval is (1, )
4 .
1 1
(5) y y , y (1.5) 0 .
1 ln( x 2) x 2
1
Solution: is continuous when x 2 0 x 2 and when
1 ln( x 2)
1 ln( x 2) 0 ln( x 2) 1 x 2 e x e 2 0.71 .
1
q ( x) is continuous for x 2 0 x 2
x2
As we can see from the above sketch, and since the initial point is x0 1.5 ,
then the largest interval is (e 2,2) .
Remarks:
ln( f ( x)) f ( x) ln(e f ( x)
1) e )
2) ln( f ( x) g ( x)) ln( f ( x)) ln( g ( x))
f ( x)
3) ln( ) ln( f ( x)) ln( g ( x))
g ( x)
1
4) ln( ) ln( g ( x))
g ( x)
dy
Example: Solve y2 9
dx
dy
Solution: dx Separable
y2 9
dy
2 dx............(1)
y 9
1 1 A B A( y 3) B( y 3)
LHS :
y 2 9 ( y 3)( y 3) ( y 3) ( y 3) ( y 3)( y 3)
1 A( y 3) B( y 3)
1 1 1 1 1
y 3 B , y 3 A
6 6 y 2 9 6( y 3) 6( y 3)
dy dy
back to (1), we get dx
6( y 3) 6( y 3)
1 1 1 y 3 y 3
ln( y 3) ln( y 3) x c ln x c ln 6( x c)
6 6 6 y 3 y 3
ln y 3
y 3
e y 3 e6( xc) de6 x y 3 de6 x y 3de6 x
y 3
6 x 6 x 3de6 x 3
y (1 de ) 3de 3 y explicit
1 de6 x
Remarks:
f ( x)
1) dx ln f ( x) c
f ( x)
2) tan( x) dx ln cos( x) c ln sec( x) c
3) cot( x) dx ln sin( x) c
dx tan 1( ) c
1 1 x
4)
a2 x2 a a
y x
Solution: y(4 x2 )dy x(2 y 2 )dx dy dx Separable
(2 y 2 ) (4 x 2 )
1 1
ln 2 y 2 ln 4 x 2 c ln 2 y 2 ln 4 x 2 d
2 2
ln 2 y2 ln 4 x2 d
e e 2 y 2 A(4 x 2 ) Implicit solution
3 3
Now , y(0) 1 A y (4 x2 ) 2
4 4
3
But y (0) 1 y (4 x 2 ) 2
4
x y dy sin( x)dx
Example: Is the DE e separable ?
sin( x)
Solution: e xe y dy sin( x)dx e y dy dx Separable
ex
2 Linear Equations:
dy P( x)dx
P( x)e y Q( x)e
P( x)dx P( x)dx
e
dx
d P( x)dx P( x)dx
ye Q( x)e
dx
Integrating this equation, we get
ye Q( x)e
P( x)dx P( x)dx
dx
1
y Q( x) ( x)dx
( x)
Example: Find an integrating factor of the following linear DE, then solve it
dy
sin( x) (cos( x)) y 2 , y( ) 0
dx 2
Solution: ( x) eln(sin( x)) sin( x)
1 1 2
y Q( x) ( x)dx sin( x)dx
( x) sin( x) sin( x)
1
y (2 x c)
sin( x)
2x
y( ) 0 c y
2 sin( x)
Example: Find an integrating factor of the following linear DE, then solve it
1
y yx , x0
x
1dx
1
P( x)dx ( x) e x eln x eln x x1
1
Solution: ( x) e
x
1
y Q( x) ( x)dx x dx y x( x c) x 2 cx
( x)
dx
Important remark: If the linear DE can be written as P ( y ) x Q( y ) ,
dy
1
then the equation is linear in x , and the solution is x Q( y) ( y)dy
( y)
( y) e
P( y)dy
where
dy 1
Example: Solve ((Not separable, Not linear in y ))
dx x y 2
dx dx
Solution: x y2 x y2 Linear in x
dy dy
dy
( y) e e e y
P( y)dy
x
1 1
Q( y) ( y)dy y y 2e
y dy
( y) e
x y 2 2 y 2 ce
y
dy 1
HW: Solve , y(1) 0
dx x 3 y 2
3 Exact Equations:
Solution: M y 2 x , N x 2 x exact
Let u(x,y)=c be the solution.
Let ux M 2xy and u y N x2 1
u x2 y g ( y)
2
Now , u y x g ( y ) g( y) 1 g ( y) y
u x2 y y
c
So , the solution is x2 y y c y
x2 1
dy xy 2 cos( x)sin( x)
Example: Solve , y(0) 2
dx 2
y(1 x )
Solution: xy2 cos( x)sin( x) dx y(1 x2) dy 0
M N
M y 2 xy , N x 2 xy exact
Let u(x,y)=c be the solution.
Solution: Exact iff M y N x 3 y 2 4kxy3 3 y 2 40 xy3 k 10
Example: Determine the function M(x,y) so that the DE
x
M ( x, y ) dx sec2 ( y ) dy 0 is exact
y
1 1
Solution: Exact iff M y N x M y M ( x, y) dy ln( y) g ( x)
y y
Remark: Any separable DE is also exact.
2 y 6 x dx 3x 4 x2 y 1 dy 0 , then solve it.
Solution: 2xy3 6x2 y2 dx 3x2 y2 4x3y dy 0
M N
M y 6 xy 2 12 x2 y N x exact.
Solving, we get u x2 y3 2 x3 y 2 x2 y3 2x3 y 2 c is the solution .
Prof. Husein Mahmoud Jaradat
Al al-Bayt University Mathematics department Ordinary Differential Equations 1
Special Integrating Factor:
M y Nx
(1) If is continuous and depends only on x (function of x only),
N
M y Nx
dx
then ( x) e N is an integrating factor for the DE.
Nx M y
(2) If is continuous and depends only on y (function of y only),
M
N x M y
dy
then ( y) e M is an integrating factor for the DE.
M y Nx 1 ln x 1 1
Solution: (function of x only), then
N x ln( x) x
M y Nx 1ln x1 1
dx x ln( x) dx x dx ln( x) 1
( x) e N e e e
x
2) y3 cos(x) y dx y2 sin(x) x y dy 0
Nx M y y 2 cos( x) 1 3 y 2 cos( x) 1 2( y 2 cos( x) 1) 2
Solution:
M y3 cos( x) y y( y 2 cos( x) 1) y
dy
Definition: If the function f(x,y) in the DE f ( x, y) can be expressed
dx
y x
as a function of or , then the DE is called homogeneous.
x y
y
To solve this equation we substitute u
x
dy du
y xu ux which will transform into a separable equation.
dx dx
Remark: If all the exponents in the numerator and denominator are equal then
the equation is homogeneous.
(1) xy y2 x2 dy x2 dx 0
x2
dy x2 x2 dy x2 1
√
dx xy y 2 x2 x2 dx xy y 2 x2 ( y ) ( y )2 1
x x
x2 x2 x2
dy 3x 2 y
(2) Not homogenous.
dx x2 y 2
dy x2 y 2 3
(3) Not homogenous.
dx xy y 2 x2
y y y
( ) ( )
y dx x xy dy 0
dy y x x x
(4) √
dx x xy x xy xy y
1 1 ( )
x x x2 x
dy y ln( y) ln( x) 1 dy y y
(5) ln( ) 1 √
dx x dx x x
Prof. Husein Mahmoud Jaradat
Al al-Bayt University Mathematics department Ordinary Differential Equations 1
y
dy
Example: Solve x y xe , y (1) 1
x
dx
dy y ( xy )
Solution: ( )e
dx x
y dy du
Let u y xu ux
x dx dx
du
ux u eu xdu eu dx
dx
y x ln ln x c
y x ln ln( x) e1
x dy x sec( ) y dx
y
Example: Solve
x
dy y y
Solution: sec( )
dx x x
y dy du
Let u y xu u x
x dx dx
du
u x sec(u ) u xdu sec(u )dx
dx
du
dx
cos udu
dx
sin(u ) ln | x | c
sec(u ) x x
sin( ) ln | x | c sin1 ln | x | c
y y
x x
y x sin 1 ln | x | c
dy
Consider the DE f (ax by c) , a, b 0
dx
Remarks:
(1) tan 2 ( x) 1 sec2 ( x)
1 1
(3) cos2 ( x) cos(2 x)
2 2
1 1
(4) sin 2 ( x) cos(2 x)
2 2
Prof. Husein Mahmoud Jaradat
Al al-Bayt University Mathematics department Ordinary Differential Equations 1
dy
Example: Solve tan 2 ( x y)
dx
du dy dy du
Solution: Let u x y
1 1
dx dx dx dx
du du du du
1 tan 2 (u) tan 2 (u) 1 sec2 (u) dx
dx dx dx sec2 (u)
1 1 1 1
cos2 (u) du dx cos(2u ) du dx u sin(2u ) x c
2 2 2 4
1 1
( x y) sin(2( x y)) x c
2 4
1 e y x5
dy
Example: Solve
dx
du dy dy du
Solution: Let u y x 5 1 1
dx dx dx dx
du du u
1 1 eu e
dx dx
du eu dx eu du dx eu x c eu x c
u ln x c u ln x c y x 5 ln x c
y x 5 ln x c
dy
Definition: The DE P( x) y Q( x) y n , n , n 0,1 is called
dx
Bernoulli's equation.
1 3
dy
Example: Solve y2 y 2 1 , y(0) 4
dx
dy 1
Solution: y y 2 ,
dx
3
1 3
So, n , 1 n Let u y 2
2 2
du 3 3
u (linear)
dx 2 2
3 3x
( x) e
2
dx
e2
3 3 3 x
1 3 2x 1 2x
u e dx e c 1 ce 2
3x 2 3 x
e 2 e 2
3 3 x
y 2 1 ce 2
Now,
3 1
0
y(0) 4 (4) 2 1 ce (64) 2 1 c 8 1 c c 7
3 3 x
y 1 7e 2
2
Prof. Husein Mahmoud Jaradat
Al al-Bayt University Mathematics department Ordinary Differential Equations 1
dy a1x b1y c1
[d] Consider the DE
dx a x b y c
2 2 2
a b
1 1
If c2 c 2 0 (i.e. not both zero) and 0 then we use the
1 2 a b
2 2
substitution u a x b y or u a x b y , and this will reduce the equation into
2 2 1 1
a separable equation.
dy 1 x y
Example: Solve
dx x y
1 1
Solution: c2 c 2 0 and 0
1 2 1 1
du dy dy du
Let u x y 1 1
dx dx dx dx
du 1 u du 1 du 1 u 2 x2
1 1 1 udu dx udu dx c
dx u dx u dx u 2 2
( x y )2 x 2
c
2 2
Definition: Two curves are said to be orthogonal iff the tangent lines at their
point of intersection are perpendicular.
Definition: Two families of curves are said to be orthogonal iff every curve of
one family is orthogonal to every curve of the other family. Such families are
called orthogonal trajectories of each other.
dy dx
Step 2: Replace by , then give the DE of the orthogonal trajectories.
dx dy
Step 3: Solve the ODE in step 2.
step2:
dx
x
2
dy 4 y x 1
dy 4
y x
1
dy 4 y x 2 1 dx x dx x x
4 dx
step3: ((linear)) ( x) e x
4
e4ln x eln x x 4
1 1 1 x 4 x6 1 x2 c
y x4 ( x)dx ( c)
x4 x x4 4 6 4 6 x4
1 1 x2 1
But y(0)=1 c y
12 4 6 12 x 4
Prof. Husein Mahmoud Jaradat
Al al-Bayt University Mathematics department Ordinary Differential Equations 1
Second-order equation reducible to first-order:
(1) y – missing:
Preliminary Theory:
Remarks:
(1) f & f are linearly dependent iff a constant c such that f c f
1 2 2 1
.
(2) f1, f 2 ,..., f n are linearly dependent iff
a constants c , c ,..., cn such that f m c f ... c f c f ... cn f n
1 2 11 m1 m1 m1 m1
Example:
(1) If f e x & f e x2 , then f e x2 e2 e x e2 f
1 2 2 c 1
Linearly dependent.
(2) f 0, f 1, f x, f x 2
1 2 3 4
Now, c f c f c f c f 0 c 0 c 1 c
11 2 2 3 3 4 4 1 2 3 4
x c x2 0
Choose c c c 0 & c 1 ((not all zeros)) Linearly dependent.
2 3 4 1
(3) f 1, f x, f x 2
1 2 3
Now, c f c f c f 0 c 1 c x c x 2 0
11 2 2 3 3 1 2 3
Note that, the only solution when c c c 0 ((all zeros)) Linearly
1 2 3
independent.
Example: If f ( x) e
mx & f ( x) enx . Show that f & f are linearly
1 2 1 2
dependent if m n .
mx nx emx enx (mn) x (n m)
Solution: W e , e e
memx nenx
So W e
mx , enx (0) 1 1 n m 0 Linearly independent.
m n
x x 2 x
Example: Show that e , xe , x e are linearly independent.
ex xe x x2 e x
x x 2 x x xe x e x ( x 2 2 x) e x
Solution: W e , xe , x e e
ex ( x 2)e x ( x2 4 x 2) e x
(2 x 3) 1
Solution: p ( x) 2 .
x 1 x 1
p( x) dx (2 1 ) dx
e e x1 e2 xln( x1) ( x 1)e2 x
x ( x 1)e2 x ( x 1)2 x
So , y2 ( x) e 2 x
dx e
e 2
x ( x 1)2 x
Thus, the general solution is y g c1y1 c2 y2 c1 e c2 e .
2
sin( x)
Example: Given that y1( x) is a solution for the DE
x
1
x2 y xy ( x2 ) y 0, x 0 . Find the 2nd linearly independent solution.
4
p( x) dx 1
x dx eln( x)
1
Solution: e e
x
sin( x) 1 sin( x) 2
So , y2 ( x) 2
dx csc ( x) dx
x sin( x) x
x
x
sin( x) cos( x)
( cot( x))
x x
1x
and the general solution is y g c y c y c e 2 c e3x .
11 2 2 1 2
(2) 2 y 11y 5 y 0 .
1
Solution: 2m3 11m2 5m 0 m(2m 1)(m 5) 0 m 0, m , m 5
1 2 2 3
1
x
Thus, the fundamental solutions are y1( x) 1, y2 ( x) e 2 , y ( x) e5 x
3
1x
5x
So , the general solution is y g c1 c2 e 2 c3 e .
Case 2:
: Repeated roots: If the auxiliary equation has a root m of
multiplicity r , then the fundamental solutions are
m x m x m x
y ( x) e 1 , y ( x) xe 2 , ..., y ( x) x r 1e n .
1 2 r
2 x
Example: If x e is a solution of a linear homogeneous third order DE with
constant coefficients. Find the DE.
Solution: m 0, m 0, m 2 .
1 2 3
Then, the auxiliary equation is m2 (m 2) 0 m3 2m2 0
So, the DE is y 2 y 0
Example: Solve
x 2 y 2 y .
Example: Given that x, x 3 are the solutions of C-E equation of order 2. Find
the DE.
m2 m 2m m 3 0 m2 m 3m 3 0 m(m 1) 3m 3 0
Then, the DE is x2 y 3xy 3 y 0