First-Order Ordinary Differential Equations: G (X, Y, Y) 0
First-Order Ordinary Differential Equations: G (X, Y, Y) 0
First-Order Ordinary Differential Equations: G (X, Y, Y) 0
G(x, y, y ) = 0
in normal form:
y = F (x, y)
in differential form:
M (x, y)dx + N (x, y)dy = 0
Although no general method for solution is available, there are several cases of
physically relevant nonlinear equations which can be solved analytically :
Separable equations
dy f ( x )
=
dx g ( y )
Solution :
! g ( y)dy =! f ( x)dx
dy
= y 2e x
dx
Ex 1
i.e
!1 x
=e +c
y
or
y=
! " dy = " e dx
y
x
!1
(e x + c)
dy
= f (ax + by )
dx
Change variables :
dz
= a + bf ( z ) !
dxx
Ex 2
dy
= (!4 x + y ) 2
dx
1
4
x = ln(
dz
dx
z = ax + by
z !2
z+2
)+C
x=!
= a + b ddyx
1
dz .
(a + bf ( z ))
z = y ! 4x
"
dz
dy
= "4 +
= z2 " 4
dx
dx
4x
y = 4 x + 2 (1(1+! kkee4 x ))
k a constant
Homogeneous equations
dy
= f ( y /x).
dx
The equation is invariant under x ! sx,
y = vx "
Solution
i.e. v ' =
"
dv
f (v) ! v
y ! sy
.... homogeneous
y! = v'x + v.
1
( f (v) ! v)
x
= " dx = ln x + constant.
x
Ex 3
Change variables
xy
dy
! y 2 = ( x + y ) 2 e ! y /x
dx
y = vx "
(1 + v) 2 ! v
(v"x + v) ! v =
e
v
Homogeneous
y! = v!x + v.
e v vdv
# ln x = $
.
(1 + v) 2
u ! 1+ v
u
1 1 u
!1 e
e " ( ! 2 )e du = e [ ].
u u
u
!1
y
x
i.e. ln x =
e
1+
y
x
dy x + 2 y + 1
=
dx x + y + 2
x = x '+ a,
y = y '+ b
a = !3, b = 1
2+a+b = 0
Homogeneous
dy
+ P( x) y = Q( x) y n ,
dx
To solve, change variable to
Gives the equation
Ex 4
y '+ y = y
2/3
n !1
z=y
1! n
"
dz
dy
= (1 ! n) y ! n
dx
dx
dz
+ (1 ! n) P( x) z = (1 ! n)Q( x)
dx
z=y
1! n
=y
1/ 3
z 1
! z '+ = 3
3
1st order linear
! ze x / 3 = " e x / 3 dx / 3
z = y1/ 3 = 1 + ce ! x / 3
Exercise:
Solve the equation 2 y = y/x + x2 /y
with initial condition y(1) = 2.
This equation is Bernoulli with n = 1.
Set z = y 2 . Then z z/x = x2 .
Integrating factor I(x) = 1/x
Z
z(x) = x [ dx x2 /x + const.] = x3 /2 + const. x
Thus y = z
1/2
p
= x3 /2 + const. x
Homework
1.
2
dy
y(x + y)
=
dx
x2
homogeneous
with y(1) = 1.
2.
Bernoulli
[Answ.: y = 1/(1 + ex
/2 )]
Exact equations
A first-order ODE
M (x, y)dx + N (x, y)dy = 0
is exact if there exists a function (x, y) such that
=M ,
x
=N .
y
N (x, y) = x2 cos y ,
Fig.1
Orthogonal trajectories
Given the family of curves representing solutions of ODE y = f (x, y),
orthogonal trajectories are given by a second family of curves which are
solutions of
y = 1/f (x, y).
Then each curve in either family is perpendicular
to every curve in the other family.
Example:
Find the orthogonal trajectories to the family of circles y = x/y.
Solve y = y/x .
dx
dy
=
ln y = ln x + constant
y
x
i.e., y = cx : family of straight lines through the origin
Z
Homework
a) Find the family of curves corresponding to solutions of the ODE
y = (y 2 x2 )/(2xy).
b) Find the orthogonal trajectories to the above family of curves.
homogeneous equation y = f (y/x)
Fig.2
= linear mass
density
T
x
Using Newtons law, the shape y(x) of the chain obeys
the 2ndorder nonlinear differential equation
y
=a
Setting y = q
1 + (y ) 2
q =a
, a
1+q2
g/T
Separation of variables
p
dq = a
2
1+q
dx
1 + q 2 ) = ax
Homework
1.
2.
Summary
No general method of solution for 1st-order ODEs beyond linear case;
rather, a variety of techniques that work on a case-by-case basis.
Main guiding criteria:
methods to bring equation to separated-variables form
methods to bring equation to exact differential form
transformations that linearize the equation