First Order ODE
First Order ODE
Example:
c
Verify that y = (c an arbitrary constant) is a solution of the ODE
′
x
xy = −y for all x ̸= 0.
′ c ′ c ′
Here y = − 2 and xy = − thus xy = −y , the given ODE.
x x
y ′ = f (x, y ), y (x0 ) = y0
′
Solve the IVP y = y + e x , y (0) = 1/2
Sol.
′ y2 − x2 y x
y = = − .
2xy 2x 2y
′ ′
Substitute y = ux and y = u x + u,
′ u 1
u x +u = −
2 2u
′ u 1 −u 2 − 1
=⇒ u x = − − =
2 2u 2u
2u du dx
=⇒ 2
=−
1+u x
Ordinary Differential Equation 8 / 44
Integrating we get,
1
ln (1 + u 2 ) = − ln |x| + c1 = ln + c1 .
x
Taking exponents on both sides and putting u = y /x,
y 2 c
1+ =
x x
2 2
=⇒ x + y = cx
c 2 c2
or x − + y2 =
2 4
This general solution represents a family of circles passing through
the origin with centres on the x-axis.
u(x, y ) = c
∂u ∂u
a) =M and b) =N (8)
∂x ∂y
∂M ∂ 2u ∂N ∂ 2u
= and = .
∂y ∂y ∂x ∂x ∂x ∂y
= sin (x + y ) + k(y )
∂u dk
= cos (x + y ) + = N = 3y 2 + 2y + cos (x + y ).
∂y dy
dk
Hence, = 3y 2 + 2y =⇒ k = y 3 + y 2 + c ∗ .
dy
Substituting k in u, we get the general solution,
u(x, y ) = sin (x + y ) + y 3 + y 2 = c.
Example 1
The equation −y dx + x dy = 0 is not exact because M = −y and
∂M ∂N
N = x, so that, = −1 but = 1.
∂y ∂x
Hence, we cannot find the solution by integrating M with respect to
x or N with respect to y , because
Z
∂u dk
u = M dx + k(y ) = −xy + k(y ) hence = −x + .
∂y dy
∂u
But should be equal to N = x. This is impossible because k(y )
∂y
can depend only on y .
−y dx + x dy y 1 y
= − 2 dx + dy = d = 0.
x2 x x x
Integrating we get the general solution, y /x = c, a constant.
Fy P + FPy = Fx Q + FQx
where the subscripts denote partial derivatives.
Consider an integrating factor in one variable. Let F = F (x). Then
′ dF
Fy = 0 and Fx = F = and hence Equation 13 becomes
dx
′
FPy = F Q + FQx .
Ordinary Differential Equation 19 / 44
Dividing by FQ and reshuffling terms
1 dF 1 ∂P ∂Q
=R where R= − (14)
F dx Q ∂y ∂x
R
R(x)dx
F (x) = e (15)
1 dF ∗ ∗ 1 ∂Q ∂P
= R where R = − (16)
F ∗ dy P ∂x ∂y
R ∗ (y )dy
R
F ∗ (y ) = e (17)
∂P ∂ x+y
= (e + ye y )
∂y ∂y
= e x+y + e y + ye y
∂Q ∂
= (xe y − 1)
∂x ∂x
= ey
∂P ∂Q
Hence ̸=
∂y ∂x
Ordinary Differential Equation 24 / 44
Step 2: Integrating factor. General Solution
1 ∂P ∂Q
R= −
Q ∂y ∂x
1
= y (e x+y + e y + ye y − e y )
xe − 1
Here R depends on both x and y and hence Theorem 1 fails. Now,
∗ 1 ∂Q ∂P
R = −
P ∂x ∂y
1
= x+y (e y − e x+y + e y − ye y )
e + ye y
= −1
(e x + y )dx + (x − e −y )dy = 0
Here M = e x + y and N = x − e −y
Z
u= (e x + y )dx
= e x + xy + k(y )
u(x, y ) = e x + xy + e − y = c
e x + xy + e −y = 1 + e = 3.72
∴ e h = sec x, e −h = cos x,
e h r = (sec x)(2 sin x cos x) = 2 sin x
u(x) = [y (x)1−a ].
′ ′
Hence, u = (1 − a)y −a y
= (1 − a)y −a (gy a − py )
Ordinary Differential Equation 31 / 44
Simplifying, we get,
′
u = (1 − a)(g − py 1−a ),
Then we solve this linear ODE to find the solution u(x), using
which we find the required solution y (x).
R : |x − x0 | < a, |y − y0 | < b
and bounded in R; that is there is a number K such that
Then the initial value problem has at most one solution y (x). Thus
by Theorem 1, the problem has precisely one solution. This solution
exists at least for all x in that subinterval |x − x0 | < α
|f (x, y )| = |1 + y 2 | ≤ K = 10
∂f
= 2|y | ≤ M = 6
∂y
b
α= = 0.3 < a
K
whenever the points (x, y1 ) and (x, y2 ) both lie in D. The constant
K is called a Lipschitz condition for the function f (x, y ).
|fy (x, y )| ≤ M can be replaced by Lipschitz conidition, which is
weaker than the former, in the conditions for uniqueness of a
solution.
where f is continuous.
Suppose ϕ(x) is a solution of the IVP. Then, (29) becomes,
′
ϕ (x) = f (x, ϕ(x)), ϕ(x0 ) = y0
Zx Zx
′
ϕ (t)dt = f (t, ϕ(t))dt
x0 x0
Zx
=⇒ ϕ(x) − ϕ(x0 ) = f (t, ϕ(t))dt
x0
Zx
=⇒ ϕ(x) = ϕ(x0 ) + f (t, ϕ(t))dt (30)
x0
Zx
ϕn (x) = ϕ(x0 ) + f (t, ϕn−1 (t))dt (30)
x0