Professional Documents
Culture Documents
Chapter 2 Exact and Linear Differential Equations
Chapter 2 Exact and Linear Differential Equations
In this chapter, we will learn how to recognize and solve three di↵erent types
of equations: Exact, linear, and Bernoulli. All of them are first order equa-
tions, therefore we expect a single integration constant in the solution.
At this stage it seems like there’s a special trick for every di↵erent kind
of question. You will gain familiarity with exercise and experience.
is exact, and
u = x4 + x2 y 2 + y 4
9
10 CHAPTER 2. EXACT EQUATIONS
@u
= 6yx + k 0 (y) = 3y 2 + 6xy
@y
k 0 (y) = 3y 2 ) k(y) = y 3
We do not need an integration constant here because u(x, y) = c already
contains one
u(x, y) = 3y 2 x + y 3 = c
2.2. INTEGRATING FACTORS 11
P dx + Qdy = 0 (2.3)
F P dx + F Qdy = 0 (2.4)
@(2xex y 2 ) @(2y)
= 2y, =0
@y @x
The equation is not exact. Let’s multiply both sides by e x . The new
equation is:
x2 + y 2 e x
=c
(F P )y = (F Q)x ) F y P + F Py = F x Q + F Q x (2.5)
12 CHAPTER 2. EXACT EQUATIONS
But this equation is more difficult than the one we started with. If we make
a simplifying assumption that F is a function of one variable only, we can
solve for F and obtain the following theorem:
Theorem 2.2: Consider the equation P dx + Qdy = 0. Define
✓ ◆ ✓ ◆
1 @P @Q 1 @Q @P
R= and R̃ = (2.6)
Q @y @x P @x @y
R
a) If R depends only on x, then F (x) = exp R(x) dx is an integrating
factor. ⇣R ⌘
b) If R̃ depends only on y, then F (y) = exp R̃(y)dy is an integrating
factor.
R
R(x)dx
F (x) = e = eln x = x
Z
u(x, y) = (4x3 y 2 + 2yx) dx + k(y) = x4 y 2 + yx2 + k(y)
@u
= 2x4 y + x2 + k 0 (y) = 2x4 y + x2 ) k(y) = 0
@y
u(x, y) = x4 y 2 + x2 y = c
2.3. LINEAR FIRST ORDER EQUATIONS 13
• Integrate both sides. Don’t forget the integration constant. The solu-
tion is: ✓Z ◆
h h
y(x) = e e r dx + c (2.12)
R
where h = p dx.
Example 2.4 Solve y 0 + 4y = 1
R
4 dx
The integrating factor is F = e = e4x . Multiply both sides of the
equation by e4x to obtain
e4x y 0 + 4e4x y =e4x
(e4x y)0 =e4x
4x e4x 1 4x
e y= +c ) y= + ce
4 4
14 CHAPTER 2. EXACT EQUATIONS
u(x) = [y(x)]1 a
(2.14)
Here a = 2 therefore u = y 1 ( 2) = y 3 ) u0 = 3y 2 y 0
Multiplying both sides of the equation by 3y 2 we obtain
2 2
2 0 ex
3 0 ex
3y y 2xy = ) u 2xu =
x x
This equation is linear. Its integrating factor is
R
2x dx x2
e =e
x2
Multiplying both sides by e , we get
x2 0 x2 1
e u 2xe u=
x
x2 1
(e u)0 =
x
x2 2
e u = ln x + c ) u = (ln x + c)ex
h i
2 1/3
y = (ln x + c)ex
EXERCISES 15
Exercises
Solve the following di↵erential equations. (Find an integrating factor if
necessary)
1) (yex + xyex + 1)dx + xex dy = 0
2) (2r + 2 cos ✓)dr 2r sin ✓d✓ = 0
3) (sin xy + xy cos xy)dx + (x2 cos xy)dy = 0
4) 2 cos ydx = sin ydy
5) 5dx ey x dy = 0
6) (2xy + 3x2 y 6 ) dx + (4x2 + 9x3 y 5 ) dy = 0
7) (3xey + 2y) dx + (x2 ey + x) dy = 0
5 1
8) y 0 + y =
x x
1 1
9) y 0 + y=
x ln x ln x
Answers
⇣ ⌘c
1) y = 1 e x
x
2) r2 + 2r cos ✓ = c
3) x sin xy = c
4) F = e2x , e2x cos y = c
5) F = ex , 5ex ey = c
6) F = y 3 , x 2 y 4 + x3 y 9 = c
7) F = x, x3 ey + x2 y = c
1 c
8) y= + 5
5 x
x+c
9) y =
ln x
c
10) y = 1+
cos x
x4
12) y = 4 5e 4
✓ ◆2
c ln cos x
13) y =
cos2 x
q
1 2x
14) y = 2
x + ce
✓ ◆5
x ln x x+c
15) y =
x5
✓ ◆1/4
1 c
16) y = 8
+ 4
x x