Ode 3
Ode 3
Ghorai 1
Lecture III
Solution of first order equations
Theorem 1. abd
Proposition 1. abd
1 Separable equations
These are equations of the form
y 0 = f (x)g(y)
Assuing g is nonzero, we divide by g and integrate to find
Z
dy Z
= f (x)dx + C
g(y)
What happens if g(y) becomes zero at a point y = y0 ?
Example 1. xy 0 = y + y 2
Solution: We write this as
Z
dy Z
dx Z
dy Z dy
= +C ⇒ − = ln x + C ⇒ ln y − ln(1 + y) = ln x + C
y + y2 x y 1+y
Note: Strictly speaking, we should write the above solution as
ln |y| − ln |1 + y| = ln |x| + C
When we wrote the solution without the modulas sign, it was (implicitly) assumed
that x > 0, y > 0. This is acceptable for problems in which the solution domain is not
given explicitly. But for some problems, the modulas sign is necessary. For example,
consider the following IVP:
xy 0 = y + y 2 , y(−1) = −2.
Try to solve this.
3 Exact equation
A first order ODE of the form
M (x, y) dx + N (x, y) dy = 0 (1)
is exact if there exits a function u(x, y) such that
∂u ∂u
M= and N = .
∂x ∂y
Then the above ODE can be written as du = 0 and hence the solution becomes u = C.
Theorem 2. Let M and N be defined and continuously differentiable on a rectangle
rectangle R = {(x, y) : |x − x0 | < a, |y − y0 | < b}. Then (1) is exact if and only if
∂M/∂y = ∂N/∂x for all (x, y) ∈ R.
Proof: We shall only prove the necessary part. Assume that (1) is exact. Then there
exits a function u(x, y) such that
∂u ∂u
M= and N = .
∂x ∂y
Since M and N have continuous first partial derivatives, we have
∂M ∂ 2u ∂N ∂ 2u
= and = .
∂y ∂y∂x ∂x ∂x∂y
Now continuity of 2nd partial derivative implies ∂M/∂y = ∂N/∂x.
S. Ghorai 3
µM dx + µN dy = 0
is exact. Hence
∂(µM ) ∂(µN )
= .
∂y ∂x
Comment: If an equation has an integrating factor, then it has infinitely many inte-
grating factors.
Proof: Let µ be an integrating factor. Then
µM dx + µN dy = du
Thus, Z u
µg(u)M dx + µg(u)N dy = dv, whare v = g(u) du
xdy − ydx
= 0 ⇒ d(y/x) = 0
x2
Also, 1/xy is an integrating factor since
xdy − ydx
= 0 ⇒ d ln(y/x) = 0
xy
Similarly it can be shown that 1/y 2 , 1/(x2 + y 2 ) etc. are integrating factors.
S. Ghorai 4
Now if we divide this by xy, then the last term remains differential and the first term
also becomes differential:
d(xy)
2xdx + = 0 ⇒ d x2 + ln(xy) = 0 ⇒ x2 + ln(xy) = C
xy