1005 Tut2
1005 Tut2
1005 Tut2
By y(0) = 0, c = 12 . Thus
1 1
y = x − 1 + ex + e−x .
2 2
1 2 y3 1 2 1
− y 3 u0 + y = 2 , ⇒ − u0 + y −2 = 2 ,
2 x x 2 x x
1 2 1
⇒ − u0 + u = 2 , ⇒
2 x x
4 2
u0 − u = − 2 . (1)
x x
3) Now we have a linear DE.
R
− x4 dx 1
I(x) = e = e−4 ln |x| = .
x4
1
4) Multiply (1) by I(x):
1 0 4 2 1 1 2
4
(u − u) = − 2 4 ⇒ ( 4 u)0 = − 6 , i.e.,
x x x x x x
u 0 2
4
= − 6.
x x
5) Integrating two sides we have
u 2 2 2
4
= 5 + C, ⇒ u = + Cx4 , ⇒ y −2 = + Cx4 .
x 5x 5x 5x
3. Solve the initial-value problem:
and
fy (x, y) = Q(x, y) = 2x3 y + 20x2 y 4 . (2)
Integrating (1) to x we have
f (x, y) = x3 y 2 + 4x2 y 5 + C.
The solution is
x3 y 2 + 4x2 y 5 = C.
Sub y(2) = 1: C=24. Thus the solution is
x3 y 2 + 4x2 y 5 = 24.
2
4. Find an integrating factor y 5 + (2xy 4 − yey )y 0 = 0.
Solution: Here
∂P ∂Q
∂y
− ∂x 3
=
−P y
so that there is an integrating factor which is a function of y only, which satisfies
3
I 0 /I = ,
y
I(y) = y 3 .
Solution: Let P (x, y) = 1 − xy, Q(x, y) = x(y − x). Then Py = −x, Qx = y − 2x.
Py 6= Qx . The equation is not exact.
Note that
Py − Qx x−y 1
= =− .
Q x(y − x) x
We can find an integrating factor which is a function of x only.
Z Z
Py − Qx 1 1
I(x) = exp dx = exp − dx = .
Q x x
There exists a potential function f (x, y) such that
1
fx (x, y) = I(x)P (x, y) = − y, (1)
x
and
fy (x, y) = I(x)Q(x, y) = y − x. (2)
Integrating (1) to x we have
Z
1
f (x, y) = ( − y)dx + g(y) = ln x − xy + g(y). ⇒
x
fy (x, y) = −x + g 0 (y).
3
Combining this with (2) we have g 0 (y) = y. ⇒ g(y) = 21 y 2 . ⇒
1
f (x, y) = ln x − xy + y 2 + C.
2
The solution is
1
ln x − xy + y 2 = C.
2