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 )
Ex 1
dy
= y 2e x ! " dy = " e dx
2
x
dx y
!1 x !1
i.e =e +c or y=
y (e x + c)
Almost separable equations
dy
= f (ax + by )
dx
Change variables : z = ax + by dz
dx = a + b ddyx
x=!
dz 1
= a + bf ( z ) ! dz .
dxx (a + bf ( z ))
dy dz dy
Ex 2 = (!4 x + y ) 2 z = y ! 4x ! = "4 + = z2 " 4
dx dx dx
4x
1
x = ln(
4
z !2
z+2 )+C " 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 ! sy .... homogeneous
1
i.e. v ' = ( f (v) ! v)
x
" dv
f (v) ! v = " dx = ln x + constant.
x
dy
Ex 3 xy ! y 2 = ( x + y ) 2 e ! y /x Homogeneous
dx
(1 + v) 2 ! v e v vdv
(v"x + v) ! v = e # ln x = $ .
v (1 + v) 2
u u u
y
e
x
i.e. ln x = y
1+ x
Homogeneous but for constants
dy x + 2 y + 1
=
dx x + y + 2
1 + a + 2b = 0
dy ' x '+ 2 y '+ 1 + a + 2b a = !3, b = 1
=
dx ' x '+ y '+ 2 + a + b 2+a+b = 0
dy
+ P( x) y = Q( x) y n , n !1
dx
dz dy
To solve, change variable to z=y 1! n " = (1 ! n) y ! n
dx dx
dz
Gives the equation + (1 ! n) P( x) z = (1 ! n)Q( x) 1st order Linear
dx
2/3 1! n 1/ 3 z 1
Ex 4 y '+ y = y z=y =y ! z '+ = 3
3
1st order linear
z = y1/ 3 = 1 + ce ! x / 3
Exercise:
Solve the equation 2 y = y/x + x2 /y
with initial condition y(1) = 2.
1/2
p
Thus y = z = x3 /2 + const. x
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 , =N .
x y
Example: y = x/y.
Z Z
separable equation y dy = x dx y 2 /2 = x2 /2 + c
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 .
dy dx
Z Z
= ln y = ln x + constant
y x
i.e., y = cx : family of straight lines through the origin
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.
Fig.2
T
x
Using Newtons law, the shape y(x) of the chain obeys
the 2ndorder nonlinear differential equation
y =a 1 + (y ) 2 , a g/T
Setting y = q q =a 1+q2
1
Z Z
Separation of variables p dq = a dx
1+q 2
p
Using q = dy/dx = 0 at x = 0 ln(q + 1 + q 2 ) = ax
1 eax + eax 1
Thus y(x) = + constant = cosh ax + constant
a 2 a
Historical note. The problem of the catenary was the subject of a challenge
posed by Jakob Bernoulli in 1690, in response to which the problem was solved
the following year indipendently by Johann Bernoulli, Leibniz and Huygens.
Homework
y 2 = x2 y
y = y ey