D2-03
D2-03
D2-03
Lecture 3 (D2)
Prachi Mahajan
IIT Bombay
∂u ∂u
=M & = N.
∂x ∂y
Definition
The differential form
is called closed if
∂M ∂N
= ,
∂y ∂x
i.e.,
My = Nx .
Proof: ∂u ∂u
(i) Let M = ∂x and N = ∂y . Then,
∂2u ∂2u
My = & Nx = .
∂y ∂x ∂x∂y
By the theorem on mixed partials, (what’s this?), My = Nx
and hence M(x, y )dx + N(x, y )dy is closed. Recall from MA
105 that this proof is same as that of “curl of grad is zero”.
Recall: A convex set is a set of points such that, given any two
points A, B in that set, the line segment AB joining them lies
entirely within that set.
Prachi Mahajan, IITB MA108: D2-03
Closed Forms
(ii) Now, let D be convex, and Mdx + Ndy be a closed form.
Consider the vector field
H(x, y ) = (M(x, y ), N(x, y )).
By our assumptions, H is continuously differentiable
throughout D. What’s its curl? The curl of H is given by
i j k
∂ ∂ ∂
∇ × H = ∂x ∂y ∂z = (Nx − My )k = 0.
M N 0
Step I:
Z
u(x, y ) = (y cos x + 2xe y )dx + k(y ) = y sin x + x 2 e y + k(y ).
Step II:
uy = sin x + x 2 e y + k 0 (y ) = sin x + x 2 e y − 1.
u(x, y ) = y sin x + x 2 e y − y = c
dy
µ·M +µ·N =0
dx
is exact; i.e.,
(µ · M)y = (µ · N)x .
Thus,
µy M + µMy = µx N + µNx .
Such a function µ(x, y ) is called an integrating factor of the given
ODE.
Prachi Mahajan, IITB MA108: D2-03
Integrating Factors
Note: In practice, we start by looking for an IF which depends only
on one variable x or y . Suppose µ is a function of x. Then,
µy M + µMy = µx N + µNx becomes
µMy = µx N + µNx ;
i.e.,
−Nµx + (My − Nx )µ = 0.
Thus,
dµ My − Nx
= µ.
dx N
M −N
If further, y N x is a function of x then the above is a separable
ODE which we try to solve to find µ.
Note: In the above discussion, if we assume µ to be a function of
y then we get an analogous equation:
dµ Nx − My
= µ.
dy M
Prachi Mahajan, IITB MA108: D2-03
Examples
Example: Solve the ODE:
dy
(8xy − 9y 2 ) + (2x 2 − 6xy ) = 0.
dx
Let M = 8xy − 9y 2 and N = 2x 2 − 6xy . Thus, My = 8x − 18y
and Nx = 4x − 6y . As My 6= Nx , the given ODE is not exact.
We first try to find an IF depending only upon one variable. Note
that
My − Nx 4x − 12y 2
= = .
N 2x(x − 3y ) x
Hence by the earlier discussion, we have:
dµ 2
= µ.
dx x
Solving this separable ODE, we get ln |µ| = ln x 2 . Hence,
µ(x) = x 2
can be chosen as an IF for the given ODE.
Prachi Mahajan, IITB MA108: D2-03
Example continued
Multiplying the given ODE by µ(x) = x 2 , we get:
dy
(8x 3 y − 9x 2 y 2 ) + (2x 4 − 6x 3 y ) = 0.
dx
Check that this is an exact ODE. To solve this exact ODE, we
need to find u(x, y ) such that
8x 3 y − 9x 2 y 2 = ux & 2x 4 − 6x 3 y = uy .
To find u(x, y ):
Step I: u(x, y ) = 2x 4 y − 3x 3 y 2 + k(y ).
Step II: uy = 2x 4 − 6x 3 y + k 0 (y ) = 2x 4 − 6x 3 y .
Thus, k 0 (y ) = 0. Hence,
u(x, y ) = 2x 4 y − 3x 3 y 2 = c
Definition
A first order linear DE of the type
dy
+ p(x)y = g (x)
dx
is called a linear DE in standard form.
Here we assume p(x) and g (x) are continuous on an interval I .
R
pdx dy
e is an integrating factor for + p(x)y = g (x), i.e.,
dx
R
pdx
R
pdx dy
e (py − g ) + e =0
dx
or equivalently,
d R pdx R
e · y = e pdx · g
dx
is exact. Solving this, we get:
R
Z R
− pdx pdx
y =e e · g dx + c .
ty 1 + 2y = 4t 2 ; y (1) = 2.
t 2 y 1 + 2yt = 4t 3 ;
i.e.,
d 2
(t y ) = 4t 3 .
dt
Integrating
d 2
(t y ) = 4t 3 ,
dt
we get:
c
y = t2 + .
t2
1
The initial condition y (1) = 2 gives c = 1. Hence y = t 2 + t2
is a
solution of the IVP.