Académique Documents
Professionnel Documents
Culture Documents
1
CHAPTER 1
xy 0 − 8x2 y = sin x,
xy 0 + (ln x)y = 0,
y 0 = x2 y − 2,
are not in the form (1), but they are linear, since they can be rewritten as
y 0 + 3/x2 y = 1,
y 0 − 8xy = sin x/x,
y 0 + ln x/xy = 0,
y 0 − x2 y = −2.
Example 2. Here are some nonlinear first order equations:
xy 0 + 3y 2 = 2x (because y is squared),
yy 0 = 3 (because of the product yy 0 ),
y 0 + xey = 12 (because of ey ).
3.0
2.5
a=2
2.0
a = 1.5
1.5 a=1
1.0
a = −1
0.5
a = −2.5
a = −4
x
0.2 0.4 0.6 0.8 1.0
We already know from calculus that if c is any constant, then y = ceax satisfies (2).
However, let’s pretend we have forgotten this, and use this problem to illustrate a general
method for solving a homogeneous linear first order equation.
We know that (2) has the trivial solution y ≡ 0. Now suppose y is a nontrivial solution
of (2). Then, since a differentiable function must be continuous, there must be some open
interval I on which y has no zeros. We rewrite (2) as
y0
=a
y
for x in I. Integrating this shows that
ln |y| = ax + k, so |y| = ek eax ,
where k is an arbitrary constant. Since eax can never equal zero, y has no zeros, so y is
either always positive or always negative. Therefore we can rewrite y as
y = ceax (3)
where
ek if y > 0,
c=
−ek if y < 0.
This shows that every nontrivial solution of (2) is of the form y = ceax for some nonzero
constant c. Since setting c = 0 yields the trivial solution, all solutions of (2) are of the
form (3). Conversely, (3) is a solution of (2) for every choice of c, since differentiating
(3) yields y 0 = aceax = ay.
Imposing the initial condition y(x0 ) = y0 yields y0 = ceax0 , so c = y0 e−ax0 and
c<0 c>0
c>0 c<0
v+1
or = De2x for some constant D. Note that v = 1 and v = −1 are also solutions.
v−1
Now we need to unsubstitute to obtain
x−y+2
= De2x ,
x−y
6
and also the two solutions x − y + 1 = 1 or y = x, and x − y + 1 = −1 or y = x + 2. We
solve the first equation for y.
x − y + 2 = (x − y)De2x ,
x − y + 2 = Dxe2x − yDe2x ,
−y + yDe2x = Dxe2x − x − 2,
y (−1 + De2x ) = Dxe2x − x − 2,
Dxe2x − x − 2
y= .
De2x − 1
Note that D = 0 gives y = x + 2, but no value of D gives the solution y = x.
··
^
Remark 6. Substitution in differential equations is applied in much the same way
that it is applied in calculus. You guess. Several different substitutions might work.
There are some general patterns to look for. We summarize a few of these in a table.
When you see Try substituting
yy 0 v = y2
2 0
y y v = y3
(cos y)y 0 v = sin y
0
(sin y)y v = cos y
y 0 ey v = ey
Usually you try to substitute in the most complicated part of the equation with the
hopes of simplifying it. The above table is just a rule of thumb. You might have to
modify your guesses. If a substitution does not work (it does not make the equation any
simpler), try a different one.
Separable Equations
Definition 7. A first order differential equation is separable if it can be written as
h(y)y 0 = g(x), (8)
where the left side is a product of y 0 and a function of y and the right side is a function of
x. Rewriting a separable differential equation in this form is called separation of variables.
In the previous section, we used separation of variables to solve homogeneous linear
equations. In this section we’ll apply this method to nonlinear equations.
To see how to solve (8), let’s first assume that y is a solution. Let G(x) and H(y) be
antiderivatives of g(x) and h(y); that is,
H 0 (y) = h(y) and G0 (x) = g(x). (9)
Then, from the chain rule,
d
H(y(x)) = H 0 (y(x))y 0 (x) = h(y)y 0 (x).
dx
Therefore, (8) is equivalent to
d d
H(y(x)) = G(x).
dx dx
Integrating both sides of this equation and combining the constants of integration yields
H(y(x)) = G(x) + c. (10)
7
Although we derived this equation on the assumption that y is a solution of (8), we can
now view it differently: Any differentiable function y that satisfies (10) for some constant
c is a solution of (8). To see this, we differentiate both sides of (10), using the chain rule
on the left, to obtain
H 0 (y(x))y 0 (x) = G0 (x),
which is equivalent to
h(y(x))y 0 (x) = g(x)
because of (9).
In conclusion, to solve (8) it suffices to find functions G = G(x) and H = H(y) that
satisfy (9). Then any differentiable function y = y(x) that satisfies (10) is a solution of
(8).
Example 8. Solve the equation
y 0 = x(1 + y 2 ).
Solution.
Separating variables yields
y0
= x.
1 + y2
Integrating yields
x2
arctan y = +c
2
Thus,
x2
y = tan +c .
2
··
^
Example 9. (1) Solve the equation
x
y0 = − . (11)
y
(2) Solve the initial value problem
x
y 0 = − , y(1) = 1. (12)
y
(3) Solve the initial value problem
x
y 0 = − , y(1) = −2. (13)
y
Solution.
Separating variables in (11) yields
yy 0 = −x.
Integrating yields
y2 x2
= − + c, or, equivalently, x2 + y 2 = 2c.
2 2
The last equation shows that c must be positive if y is to be a solution of (11) on an open
interval. Therefore we let 2c = a2 (with a > 0) and rewrite the last equation as
x 2 + y 2 = a2 . (14)
8
This equation has two differentiable solutions for y in terms of x:
√
y= a2 − x2 , −a < x < a, (15)
and
√
y = − a2 − x 2 , −a < x < a. (16)
The solution curves defined by (15) are semicircles above the x-axis and those defined by
(16) are semicircles below the x-axis (Figure 3).
The solution of (12) is positive when x = 1; hence, it is of the form (15). Substituting
x = 1 and y = 1 into (14) to satisfy the initial condition yields a2 = 2; hence, the solution
of (12) is
√ √ √
y = 2 − x2 , − 2 < x < 2.
The solution of (13) is negative when x = 1 and is therefore of the form (16). Substi-
tuting x = 1 and y = −2 into (14) to satisfy the initial condition yields a2 = 5. Hence,
the solution of (13) is
√ √ √
y = − 5 − x2 , − 5 < x < 5.
··
^
(a)
1
x
−2 −1 1 2
−1
−2
(b)
√ √ √ √
Figure
√ 3. √(a) y = 2 − x2 , − 2 < x < 2; (b) y = − 5 − x2 ,
− 5<x< 5
1.5
0.5
−0.5
−1
−1.5
−2 x
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
Since y(x) 6= ±1 for x on the interval under discussion, the quantity (y − 1)/(y + 1) can’t
change sign in this interval. Hence, we can rewrite the last equation as
y−1 2
= ce−x /2 ,
y+1
where c = ±ek , depending upon the sign of (y − 1)/(y + 1) on the interval. Solving for y
yields
2
1 + ce−x /2
y= . (20)
1 − ce−x2 /2
11
We’ve now shown that if y is a solution of (19) that is not identically equal to ±1,
then y must be as in (20). By substituting (20) into (19) you can verify that (20) is a
solution of (19). Thus, the solutions of (19) are y ≡ 1, y ≡ −1 and the functions of the
form (20). Note that the constant solution y ≡ 1 can be obtained from this formula by
taking c = 0; however, the other constant solution, y ≡ −1, can’t be obtained in this
way.
Figure 5 shows a direction field and some integrals for (19).
y
3
−1
−2
−3 x
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
x(1 − y 2 )
0
Figure 5. A direction field and integral curves for y =
2
··
^
13
y
2
1.5
0.5
−0.5
−1 x
1 1.5 2 2.5 3 3.5 4
2x + 1
Figure 6. A direction field and integral curves for y 0 = t
5y 4 + 1
y
2
1.5
0.5
−0.5
−1
−1.5
−2 x
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
Exercises
x
(1) Solve y 0 = .
y
(2) Solve y 0 = x2 y.
dx
(3) Solve = (x2 − 1) t, for x(0) = 0.
dt
14
dx
(4) Solve = x sin(t), for x(0) = 1.
dt
dy
(5) Solve = xy + x + y + 1.
dx
(6) Solve xy 0 = y + 2x2 y, where y(1) = 1.
dy y2 + 1
(7) Solve = 2 , for y(0) = 1.
dx x +1
dy x2 + 1
(8) Find an implicit solution for = 2 , for y(0) = 1.
dx y +1
(9) Find an explicit solution for y 0 = xe−y , y(0) = 1.
(10) Find an explicit solution for xy 0 = e−y , for y(1) = 1.
2
(11) Find an explicit solution for y 0 = ye−x , y(0) = 1. It is alright to leave a definite
integral in your answer.
(12) Solve y 0 = 2xy.
(13) Solve x0 = 3xt2 − 3t2 , x(0) = 2.
1
(14) Find an implicit solution for x0 = 2 , x(0) = 1.
3x + 1
(15) Find an explicit solution to xy 0 = y 2 , y(1) = 1.
sin(x)
(16) Find an implicit solution to y 0 = .
cos(y)
In Exercises 17–21 find the general solution.
(17) y 0 + ay = 0 (a=constant)
(18) y 0 + 3x2 y = 0
(19) xy 0 + (ln x)y = 0
(20) xy 0 + 3y = 0
(21) x2 y 0 + y = 0
In Exercises
22–27 solve the initial value problem.
1 + x
(22) y0 + y = 0, y(1) = 1
x
0 1
(23) xy + 1 + y = 0, y(e) = 1
ln x
(24) xy 0 +(1 + x cot
x)y = 0, y (π/2) = 2
2x
(25) y0 − y = 0, y(0) = 2
1 + x2
k
(26) y 0 + y = 0, y(1) = 3 (k= constant)
x
(27) y 0 + (tan kx)y = 0, y(0) = 2 (k= constant)
In Exercises 28 –31 find the general solution. Also, plot a direction field and
some integral curves on the rectangular region {−2 ≤ x ≤ 2, −2 ≤ y ≤ 2}.
(28) y 0 + 3y = 1
0 1 2
(29) y + −1 y =−
x x
0 −x2
(30) y + 2xy = xe
2x e−x
(31) y0 + y =
1 + x2 1 + x2
15
In Exercises 32 –40 find the general solution.
1 7
(32) y0 + y = 2 + 3
x x
4 1 sin x
(33) y0 + y= 5
+
x−1 (x − 1) (x − 1)4
2
(34) xy 0 + (1 + 2x2 )y = x3 e−x
2
(35) xy 0 + 2y = 2 + 1
x
(36) y 0 + (tan x)y = cos x
sin x
(37) (1 + x)y 0 + 2y =
1+x
(38) (x − 2)(x − 1)y 0 − (4x − 3)y = (x − 2)3
2
(39) y 0 + (2 sin x cos x)y = e− sin x
(40) x2 y 0 + 3xy = ex
In Exercises 41–45 solve the initial value problem and sketch the graph of the
solution.
(41) y 0 + 7y = e3x , y(0) = 0
2
(42) (1 + x2 )y 0 + 4xy = , y(0) = 1
1 + x2
2
(43) xy 0 + 3y = , y(−1) = 0
x(1 + x2 )
(44) y 0 + (cot x)y = cos x, y (π/2) = 1
1 2
(45) y 0 + y = 2 + 1, y(−1) = 0
x x
In Exercises 46–53 solve the initial value problem.
1 sin x
(46) (x − 1)y 0 + 3y = 3
+ , y(0) = 1
(x − 1) (x − 1)2
(47) xy 0 + 2y = 8x2 , y(1) = 3
(48) xy 0 − 2y = −x2 , y(1) = 1
(49) y 0 + 2xy = x, y(0) = 3
0 1 + (x − 1) sec2 x
(50) (x − 1)y + 3y = , y(0) = −1
(x − 1)3
1 + 2x2
(51) (x + 2)y 0 + 4y = , y(−1) = 2
x(x + 2)3
(52) (x2 − 1)y 0 − 2xy = x(x2 − 1), y(0) = 4
(53) (x2 − 5)y 0 − 2xy = −2x(x2 − 5), y(2) = 7
In Exercises 54–58 solve the initial value problem and leave the answer in a form
involving a definite integral.
(54) y 0 + 2xy = x2 , y(0) = 3
1 sin x
(55) y 0 + y = 2 , y(1) = 2
x x
0 e−x tan x
(56) y +y = , y(1) = 0
x
2x ex
(57) y0 + y = , y(0) = 1
1 + x2 (1 + x2 )2
2
(58) xy 0 + (x + 1)y = ex , y(1) = 2
16
(59) (a) Plot a direction field and some integral curves for
xy 0 − 2y = −1 (A)
on the rectangular region {−1 ≤ x ≤ 1, −.5 ≤ y ≤ 1.5}. What do all the
integral curves have in common?
(b) Show that the general solution of (A) on (−∞, 0) and (0, ∞) is
y = 1/2 + cx2 .
(c) Show that y is a solution of (A) on (−∞, ∞) if and only if
1/2 + c1 x2 , x ≥ 0,
(
y=
1/2 + c2 x2 , x < 0,
where c1 and c2 are arbitrary constants.
(d) Conclude from c) that all solutions of (A) on (−∞, ∞) are solutions of the
initial value problem
xy 0 − 2y = −1, y(0) = 1/2.
(e) Use b) to show that if x0 6= 0 and y0 is arbitrary, then the initial value
problem
xy 0 − 2y = −1, y(x0 ) = y0
has infinitely many solutions on (−∞, ∞).
(60) Suppose f is continuous on an open interval (a, b) and α is a constant.
(a) Derive a formula for the solution of the initial value problem
y 0 + αy = f (x), y(x0 ) = y0 , (A)
where x0 is in (a, b) and y0 is an arbitrary real number.
(b) Suppose (a, b) = (a, ∞), α > 0 and lim f (x) = L. Show that if y is the
x→∞
solution of (A), then lim y(x) = L/α.
x→∞
(61) Assume that all functions in this exercise are defined on a common interval (a, b).
(a) Prove: If y1 and y2 are solutions of
y 0 + p(x)y = f1 (x)
and
y 0 + p(x)y = f2 (x)
respectively, and c1 and c2 are constants, then y = c1 y1 + c2 y2 is a solution
of
y 0 + p(x)y = c1 f1 (x) + c2 f2 (x).
(This is the principle of superposition.)
(b) Use a) to show that if y1 and y2 are solutions of the nonhomogeneous equa-
tion
y 0 + p(x)y = f (x), (A)
then y1 − y2 is a solution of the homogeneous equation
y 0 + p(x)y = 0. (B)
(c) Use (a)to show that if y1 is a solution of (A) and y2 is a solution of (B),
then y1 + y2 is a solution of (A).
17
(62) Some nonlinear equations can be transformed into linear equations by changing
the dependent variable. Show that if
g 0 (y)y 0 + p(x)g(y) = f (x)
where y is a function of x and g is a function of y, then the new dependent
variable z = g(y) satisfies the linear equation
z 0 + p(x)z = f (x).
(63) Solve by the method discussed in Exercise 62.
(64) We’ve shown that if p and f are continuous on (a, b) then every solution of
y 0 + p(x)y = f (x) (A)
on (a, b) can be written as y = uy1 , where y1 is a nontrivial solution of the
complementary equation for (A) and u0 = f /y1 . Now suppose f , f 0 , . . . , f (m)
and p, p0 , . . . , p(m−1) are continuous on (a, b), where m is a positive integer, and
define
f0 = f,
0
fj = fj−1 + pfj−1 , 1 ≤ j ≤ m.
Show that
u(j+1) = fj /y1 , 0 ≤ j ≤ m.
Of course, to get a closed form formula for y, we need to be able to find a closed form
formula for the integrals appearing above.
Example 15. Solve
2
y 0 + 2xy = ex−x , y(0) = −1.
2
Solution. First note that p(x) = 2x and f (x) = ex−x . The integrating factor is
2
R
r(x) = e p(x) dx = ex . We multiply both sides of the equation by r(x) to get
2 2 2 2
ex y 0 + 2xex y = ex−x ex ,
d h x2 i
e y = ex .
dx
We integrate
2
ex y = ex + C,
2 2
y = ex−x + Ce−x .
Nexamplet, we solve for the initial condition −1 = y(0) = 1+C, so C = −2. The solution
is
2 2
y = ex−x − 2e−x .
··
^
Example 16. By using the variation of parameters find the general solution of
y 0 + 2y = x3 e−2x . (28)
By applying (a) of Example 3 with a = −2, we see that y1 = e−2x is a solution of the
complementary equation y 0 + 2y = 0. Therefore, we seek solutions of (28) in the form
y = ue−2x , so that
y 0 = u0 e−2x − 2ue−2x and y 0 + 2y = u0 e−2x − 2ue−2x + 2ue−2x = u0 e−2x . (29)
Hence, y is a solution of (28) if and only if
u0 e−2x = x3 e−2x or, equivalently, u0 = x3 .
19
y
2
1.5
0.5
−0.5
−1
−1.5
−2 x
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Thus,
x4
u= + c,
4
and
y = ue−2x = e−2x x4 /4 + c
15
10
x
1 2 3
−5
− 10
− 15
21
Remark 18. Let us summarize the method of variation of parameters for solving
(2) If x0 is an arbitrary point in (a, b) and y0 is an arbitrary real number, then the
initial value problem
y 0 + p(x)y = f (x), y(x0 ) = y0
has the unique solution
Z x
y0 f (t)
y = y1 (x) + dt
y1 (x0 ) x0 y1 (t)
on (a, b).
Proof. To show that (39) is the general solution of (38) on (a, b), we must prove
that:
(i) If c is any constant, the function y in (39) is a solution of (38) on (a, b).
(i) If y is a solution of (38) on (a, b) then y is of the form (39) for some constant c.
22
To prove i), we first observe that any function of the form (39) is defined on (a, b),
since p and f are continuous on (a, b). Differentiating (39) yields
Z
0 0
y = y1 (x) c + f (x)/y1 (x) dx + f (x).
= −p(x)y(x) + f (x),
which implies that y is a solution of (38).
To prove ii), suppose y is a solution of (38) on (a, b). From the proof of Theorem ??,
we know that y1 has no zeros on (a, b), so the function u = y/y1 is defined on (a, b).
Moreover, since
y 0 = −py + f and y10 = −py1 ,
u0 = y1 y 0 − y10 y/y12
Since Z x0
y(x0 ) = y1 (x0 ) c + f (t)/y1 (t) dt = cy1 (x0 ),
x0
we see that y(x0 ) = y0 if and only if c = y0 /y1 (x0 ).
Sometimes the integrals that arise in solving a linear first order equation can’t be evalu-
ated in terms of elementary functions. In this case the solution must be left in terms of
an integral.
Example 20. (1) Find the general solution of
y 0 − 2xy = 1.
(2) Solve the initial value problem
y 0 − 2xy = 1, y(0) = y0 . (40)
Solution. To apply variation of parameters, we need a nontrivial solution y1 of the
complementary equation; thus, y10 − 2xy1 = 0, which we rewrite as
y10
= 2x.
y1
23
Integrating this and taking the constant of integration to be zero yields
2
ln |y1 | = x2 , so |y1 | = ex .
2 2
We choose y1 = ex and seek solutions of (40) in the form y = uex , where
2 2
u0 ex = 1, so u0 = e−x .
Therefore Z
2
u=c+ e−x dx,
but we can’t simplify the integral on the right because there’s no elementary function
2
with derivative equal to e−x . Therefore the best available form for the general solution
of (40) is
Z
x2 x2 −x2
y = ue = e c + e dx . (41)
For a given value of y0 and each fixed x, the integral on the right can be evaluated
by numerical methods. An alternate procedure is to apply the numerical integration
procedures discussed in Chapter 3 directly to the initial value problem (40). Figure 10
··
shows graphs of of (42) for several values of y0 . ^
24
Example 21. Solve the initial value problem
y 0 = 2xy 2 , y(0) = y0
and determine the interval of validity of the solution.
Solution.
First suppose y0 6= 0. From exampleample 11, we know that y must be of the form
y = −1/x2 + c. (43)
Imposing the initial condition shows that c = −1/y0 . Substituting this into (43) and
rearranging terms yields the solution
y = y0 /1 − y0 x2 .
This is also the solution if y0 = 0. If y0 < 0, the denominator isn’t zero for any value
of x, √ the solution is valid on (−∞, ∞). If y0 > 0, the solution is valid only on
so the √
(−1/ y0 , 1/ y0 ).
··
^
Exercises
(1) Solve
2
y 0 + 2xy = ex−x , y(0) = −1.
(2) Write the solution of the following problem as a definite integral, but try to
simplify as far as you can. You will not be able to find the solution in closed
form.
2
y 0 + y = ex −x , y(0) = 10.
0
(3) Solve y + xy = x.
(4) Solve y 0 + 6y = ex .
3
(5) Solve y 0 + 3x2 y = sin(x) e−x , with y(0) = 1.
(6) Solve y 0 + cos(x)y = cos(x).
1
(7) Solve 2 y 0 + xy = 3, with y(0) = 0.
x +1
(8) Solve y 0 + 3x2 y = x2 .
π
(9) Solve y 0 + 2 sin(2x)y = 2 sin(2x), y( ) = 3.
2
In Exercises 10–15 find all solutions.
3x2 + 2x + 1
(10) y0 =
y−2
(11) (sin x)(sin y) + (cos y)y 0 = 0
(12) xy 0 + y 2 + y = 0
(13) y 0 ln |y| + x2 y = 0
(2x + 1)y
(14) (3y 3 + 3y cos y + 1)y 0 + =0
1 + x2
(15) x2 yy 0 = (y 2 − 1)3/2
In Exercises 16–19 find all solutions. Also, plot a direction field and some integral
curves on the indicated rectangular region.
(16) y 0 = x2 (1 + y 2 ); {−1 ≤ x ≤ 1, −1 ≤ y ≤ 1}
(17) y 0 (1 + x2 ) + xy = 0; {−2 ≤ x ≤ 2, −1 ≤ y ≤ 1}
(18) y 0 = (x − 1)(y − 1)(y − 2); {−2 ≤ x ≤ 2, −3 ≤ y ≤ 3}
25
(19) (y − 1)2 y 0 = 2x + 3; {−2 ≤ x ≤ 2, −2 ≤ y ≤ 5}
In Exercises 22–25 solve the initial value problem and graph the solution.
(22) (3y 2 + 4y)y 0 + 2x + cos x = 0, y(0) = 1
(y + 1)(y − 1)(y − 2)
(23) y 0 + = 0, y(1) = 0
x+1
(24) y 0 + 2x(y + 1) = 0, y(0) = 2
(25) y 0 = 2xy(1 + y 2 ), y(0) = 1
In Exercises 26–32 solve the initial value problem and find the interval of validity
of the solution.
(26) y 0 (x2 + 2) + 4x(y 2 + 2y + 1) = 0, y(1) = −1
(27) y 0 = −2x(y 2 − 3y + 2), y(0) = 3
2
(28) y 0 = , y(2) = 0
1 + 2y
(29) y 0 = 2y − y 2 , y(0) = 1
(30) x + yy 0 = 0, y(3) = −4
(31) y 0 + x2 (y + 1)(y − 2)2 = 0, y(4) = 2
(32) (x + 1)(x − 2)y 0 + y = 0, y(1) = −3
(1 + y 2 )
(33) Solve y 0 = explicitly.
√ (1 + x2 )p
(34) Solve y 0 1 − x2 + 1 − y 2 = 0 explicitly.
cos x
(35) Solve y 0 = , y(π) = π/2 explicitly.
sin y
(36) Solve the initial value problem
y 0 = ay − by 2 , y(0) = y0 .
Discuss the behavior of the solution if a) y0 ≥ 0; b) y0 < 0.
(37) The population P = P (t) of a species satisfies the logistic equation
P 0 = aP (1 − αP )
and P (0) = P0 > 0. Find P for t > 0, and find lim P (t).
t→∞
(38) An epidemic spreads through a population at a rate proportional to the product
of the number of people already infected and the number of people susceptible,
but not yet infected. Therefore, if S denotes the total population of susceptible
people and I = I(t) denotes the number of infected people at time t, then
I 0 = rI(S − I),
where r is a positive constant. Assuming that I(0) = I0 , find I(t) for t > 0, and
show that lim I(t) = S.
t→∞
(39) By plotting direction fields and solutions of
y 0 = qy − y 3 ,
26
convince yourself that q0 = 0 is a bifurcation value of q for this equation. exam-
pleplain what makes you draw this conclusion.
(40) Suppose a disease spreads according to the model of exampleercise 38, but there’s
a medication that cures the infected population at a constant rate of q individuals
per unit time, where q > 0. Then the equation for the number of infected
individuals becomes
I 0 = rI(S − I) − q.
Assuming that I(0) = I0 > 0, use the results of exampleercise ?? to describe
what happens as t → ∞.
(41) Assuming that p 6≡ 0, state conditions under which the linear equation
y 0 + p(x)y = f (x)
is separable. If the equation satisfies these conditions, solve it by separation of
variables and by the method developed in Section 2.1.
2xe−x (x + 1)e4x
(42) y 0 + y = (44) y 0 − y =
1 + yex (y + ex )2
xe2x
x6 (45) y 0 − 2y =
(43) xy 0 − 2y = 1 − ye−2x
y + x2
(46) Use variation of parameters to show that the solutions of the following equations
are of the form y = uy1 , where u satisfies a separable equation u0 = g(x)p(u).
Find y1 and g for each equation.
a) xy 0 + y = h(x)p(xy)
b) xy 0 − y = h(x)p (y/x)
c) y 0 + y = h(x)p(ex y)
d) xy 0 + ry = h(x)p(xr y)
v 0 (x)
e) y 0 + y = h(x)p (v(x)y)
v(x)
Exact Differential Equations
In this section it’s convenient to write first order differential equations in the form
M (x, y) dx + N (x, y) dy = 0. (44)
This equation can be interpreted as
M (x, y) + N (x, y) dy/dx = 0, (45)
where x is the independent variable and y is the dependent variable, or as
M (x, y) dx/dy + N (x, y) = 0, (46)
where y is the independent variable and x is the dependent variable. Since the solutions
of (45) and (46) will often have to be left in implicit, form we’ll say that F (x, y) = c is an
implicit solution of (44) if every differentiable function y = y(x) that satisfies F (x, y) = c
is a solution of (45) and every differentiable function x = x(y) that satisfies F (x, y) = c
is a solution of (46).
Here are some examples:
27
Equation (44) Equation (45) Equation (46)
dy dx
3x2 y 2 dx + 2x3 y dy = 0 3x2 y 2 + 2x3 y =0 3x2 y 2 + 2x3 y = 0
dx dy
dy dx
(x2 + y 2 ) dx + 2xy dy = 0 (x2 + y 2 ) + 2xy =0 (x2 + y 2 ) + 2xy = 0
dx dy
dy dx
3y sin x dx − 2xy cos x dy = 0 3y sin x − 2xy cos x = 0 3y sin x − 2xy cos x = 0
dx dy
Note that a separable equation can be written as (44) as
M (x) dx + N (y) dy = 0.
We’ll develop a method for solving (44) under appropriate assumptions on M and
N . This method is an extension of the method of separation of variables (Exercise 44).
Before stating it we consider an example.
Example 22. Show that
x4 y 3 + x2 y 5 + 2xy = c (47)
is an implicit solution of
(4x3 y 3 + 2xy 5 + 2y) dx + (3x4 y 2 + 5x2 y 4 + 2x) dy = 0. (48)
Solution.
Regarding y as a function of x and differentiating (47) implicitly with respect to x
yields
dy
(4x3 y 3 + 2xy 5 + 2y) + (3x4 y 2 + 5x2 y 4 + 2x) = 0.
dx
Similarly, regarding x as a function of y and differentiating (47) implicitly with respect
to y yields
dx
(4x3 y 3 + 2xy 5 + 2y) + (3x4 y 2 + 5x2 y 4 + 2x) = 0.
dy
Thus, (47) is an implicit solution of (48) in either of its two possible interpretations.
··
^
You may think this example is pointless, since concocting a differential equation that
has a given implicit solution isn’t particularly interesting. However, it illustrates the next
important theorem, which we’ll prove by using implicit differentiation, as in Example 22.
Theorem 23. If F = F (x, y) has continuous partial derivatives Fx and Fy , then
F (x, y) = c (c=constant), (49)
is an implicit solution of the differential equation
Fx (x, y) dx + Fy (x, y) dy = 0. (50)
Proof. Regarding y as a function of x and differentiating (49) implicitly with respect
to x yields
Fx (x, y) + Fy (x, y) dy/dx = 0.
28
On the other hand, regarding x as a function of y and differentiating (49) implicitly with
respect to y yields
Fx (x, y) dx/dy + Fy (x, y) = 0.
Thus, (49) is an implicit solution of (50) in either of its two possible interpretations.
Example 22 shows that it’s easy to solve (51) if it’s exact and we know a function F
that satisfies (52). The important questions are:
Question 1. Given an equation (51), how can we determine whether it’s exact?
Question 2. If (51) is exact, how do we find a function F satisfying (52)?
To discover the answer to Question 1, assume that there’s a function F that satisfies
(52) on some open rectangle R, and in addition that F has continuous mixed partial
derivatives Fxy and Fyx . Then a theorem from calculus implies that
Fxy = Fyx . (53)
If Fx = M and Fy = N , differentiating the first of these equations with respect to y and
the second with respect to x yields
Fxy = My and Fyx = Nx . (54)
From (53) and (54), we conclude that a necessary condition for exactness is that My = Nx .
This motivates the next theorem, which we state without proof.
Theorem 24. [The Exatness Condition] Suppose M and N are continuous and have
continuous partial derivatives My and Nx on an open rectangle R. Then
M (x, y) dx + N (x, y) dy = 0
is exact on R if and only if
My (x, y) = Nx (x, y) (55)
for all (x, y) in R..
To help you remember the exactness condition, observe that the coefficients of dx and
dy are differentiated in (55) with respect to the “opposite” variables; that is, the coefficient
of dx is differentiated with respect to y, while the coefficient of dy is differentiated with
respect to x.
Example 25. Show that the equation
3x2 y dx + 4x3 dy = 0
is not exact on any open rectangle.
29
Solution. Here,
M (x, y) = 3x2 y and N (x, y) = 4x3
so
My (x, y) = 3x2 and Nx (x, y) = 12x2 .
Hence, My = Nx on the line x = 0, but not on any open rectangle, so there’s no function F
such that Fx (x, y) = M (x, y) and Fy (x, y) = N (x, y) for all (x, y) on any open rectangle.
The next example illustrates two possible methods for finding a function F that
satisfies the condition Fx = M and Fy = N if M dx + N dy = 0 is exact.
··
^
Example 26. Solve
(4x3 y 3 + 3x2 ) dx + (3x4 y 2 + 6y 2 ) dy = 0. (56)
Solution. (Method 1) Here
M (x, y) = 4x3 y 3 + 3x2 , N (x, y) = 3x4 y 2 + 6y 2 ,
and
My (x, y) = Nx (x, y) = 12x3 y 2
for all (x, y). Hence, Theorem 24 implies that there’s a function F such that
Fx (x, y) = M (x, y) = 4x3 y 3 + 3x2 (57)
and
Fy (x, y) = N (x, y) = 3x4 y 2 + 6y 2 (58)
for all (x, y). To find F , we integrate (57) with respect to x to obtain
F (x, y) = x4 y 3 + x3 + ϕ(y), (59)
where ϕ(y) is the “constant” of integration. (Here ϕ is “constant” in that it’s independent
of x, the variable of integration.) If ϕ is any differentiable function of y then F satisfies
(57). To determine ϕ so that F also satisfies (58), assume that ϕ is differentiable and
differentiate F with respect to y. This yields
Fy (x, y) = 3x4 y 2 + ϕ0 (y).
Comparing this with (58) shows that
ϕ0 (y) = 6y 2 .
We integrate this with respect to y and take the constant of integration to be zero because
we’re interested only in finding some F that satisfies (57) and (58). This yields
ϕ(y) = 2y 3 .
Substituting this into (59) yields
F (x, y) = x4 y 3 + x3 + 2y 3 . (60)
Now Theorem 23 implies that
x4 y 3 + x3 + 2y 3 = c
is an implicit solution of (56). Solving this for y yields the explicit solution
1/3
y = c − x3 /2 + x4 .
··
^
30
y
1
0.8
0.6
0.4
0.2
−0.2
−0.4
−0.6
−0.8
−1 x
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Figure 11. A direction field and integral curves for (4x3 y 3 + 3x2 ) dx +
(3x4 y 2 + 6y 2 ) dy = 0
Exercises
In Exerrcises 1–17 determine which equations are exact and solve them.
34
(1) 6x2 y 2 dx + 4x3 y dy = 0
(2) (3y cos x + 4xex + 2x2 ex ) dx + (3 sin x + 3) dy = 0
(3) 14x2 y 3 dx + 21x2 y 2 dy = 0
(4) (2x − 2y 2 ) dx + (12y 2 − 4xy) dy = 0
(5) (x + y)2 dx + (x + y)2 dy = 0
(6) (4x + 7y) dx + (3x + 4y) dy = 0
(7) (−2y 2 sin x + 3y 3 − 2x) dx + (4y cos x + 9xy 2 ) dy = 0
(8) (2x + y) dx + (2y + 2x) dy = 0
(9) (3x2 + 2xy + 4y 2 ) dx + (x2 + 8xy + 18y) dy = 0
(10) (2x2 + 8xy
2
+ y ) dx + (2x2
+ xy 3 /3) dy = 0
1 1
(11) + 2x dx + + 2y dy = 0
x y
(12) (y sin xy + xy 2 cos xy) dx + (x sin xy + xy 2 cos xy) dy = 0
x dx y dy
(13) 2 2 3/2
+ 2 =0
(x + y ) (x + y2 )3/2
x 2 2 2 2 x
(14) e (x y + 2xy ) + 6x dx + (2x ye + 2) dy = 0
2 +y 2
(15) x2 ex (2x2 + 3) + 4x dx + (x3 ex +y − 12y 2 ) dy = 0
(16) exy (x4 y + 4x3 ) + 3y dx + (x5 exy + 3x) dy = 0
then Fx = M and Fy = N .
(39) Under the assumptions of Exercise 38, show that
Z y Z x
F (x, y) = N (x0 , s) ds + M (t, y) dt.
y0 x0
(40) Use the method suggested by Exercise 38, with (x0 , y0 ) = (0, 0), to solve the
these exact equations:
(a) (x3 y 4 + x) dx + (x4 y 3 + y) dy = 0
(b) (x2 + y 2 ) dx + 2xy dy = 0
(c) (3x2 + 2y) dx + (2y + 2x) dy = 0
(41) Solve the initial value problem
2 2xy
y0 + y = − 2 , y(1) = −2.
x x + 2x2 y + 1
(42) Solve the initial value problem
3 2x4 (4x3 − 3y)
y0 − y = 5 , y(1) = 1.
x 3x + 3x3 + 2y
(43) Solve the initial value problem
!
x2
2 3x + 2ye
y 0 + 2xy = −e−x , y(0) = −1.
2x + 3yex2
(44) Rewrite the separable equation
h(y)y 0 = g(x) (A)
as an exact equation
M (x, y) dx + N (x, y) dy = 0. (B)
Show that applying the method of this section to (B) yields the same solutions
that would be obtained by applying the method of separation of variables to (A)
(45) Suppose all second partial derivatives of M = M (x, y) and N = N (x, y) are
continuous and M dx + N dy = 0 and −N dx + M dy = 0 are exact on an open
rectangle R. Show that Mxx + Myy = Nxx + Nyy = 0 on R.
37
(46) Suppose all second partial derivatives of F = F (x, y) are continuous and Fxx +
Fyy = 0 on an open rectangle R. (A function with these properties is said to be
harmonic; see also Exercise 45.) Show that −Fy dx + Fx dy = 0 is exact on R,
and therefore there’s a function G such that Gx = −Fy and Gy = Fx in R. (A
function G with this property is said to be a harmonic conjugate of F .)
(47) Verify that the following functions are harmonic, and find all their harmonic
conjugates. (See Exercise 46.)
(a) x2 − y 2 (b) ex cos y (c) x3 − 3xy 2
(d) cos x cosh y (e) sin x cosh y
Integrating Factors
We saw that if M , N , My and Nx are continuous and My = Nx on an open rectangle
R then
M (x, y) dx + N (x, y) dy = 0 (71)
is exact on R. Sometimes an equation that isn’t exampleact can be made exact by
multiplying it by an appropriate function. For instance,
(3x + 2y 2 ) dx + 2xy dy = 0 (72)
is not exact, since My (x, y) = 4y 6= Nx (x, y) = 2y in (72). However, multiplying (72) by
x yields
(3x2 + 2xy 2 ) dx + 2x2 y dy = 0, (73)
which is exact, since My (x, y) = Nx (x, y) = 4xy in (73). Solving (73) by the procedure
given in previous section yields the implicit solution
x3 + x2 y 2 = c.
Definition. A function µ = µ(x, y) is an integrating factor for (71) if
µ(x, y)M (x, y) dx + µ(x, y)N (x, y) dy = 0 (74)
is exact.
If we know an integrating factor µ for (71), we can solve the exact equation (74)
by the method of previous section. It would be nice if we could say that (71) and (74)
always have the same solutions, but this isn’t so. For example, a solution y = y(x) of
(74) such that µ(x, y(x)) = 0 on some interval a < x < b could fail to be a solution of
(71) (Exercise 10), while (71) may have a solution y = y(x) such that µ(x, y(x)) isn’t
even defined (Exercise 11). Similar comments apply if y is the independent variable and
x is the dependent variable in (71) and (74). However, if µ(x, y) is defined and nonzero
for all (x, y), (71) and (74) are equivalent; that is, they have the same solutions.
39
Proof. (a) If (My −Nx )/N is independent of y, then (78) holds with p = (My −Nx )/N
and q ≡ 0. Thus,
R R
p(x) dx q(y) dy
P (x) = ±e and Q(y) = ±e = ±e0 = ±1,
so (80) is an integrating factor for (81) on R.
(b) If (Nx − My )/M is independent of x then eqrefeq:2.6.8 holds with p ≡ 0 and
q = (Nx − My )/M , and a similar argument shows that (82) is an integrating factor for
(81) on R.
The next two examples show how to apply Theorem 33.
Example 34. Find an integrating factor for the equation
(2xy 3 − 2x3 y 3 − 4xy 2 + 2x) dx + (3x2 y 2 + 4y) dy = 0 (83)
and solve the equation.
Solution. In (83)
M = 2xy 3 − 2x3 y 3 − 4xy 2 + 2x, N = 3x2 y 2 + 4y,
and
My − Nx = (6xy 2 − 6x3 y 2 − 8xy) − 6xy 2 = −6x3 y 2 − 8xy,
so (83) isn’t exact. However,
My − Nx 6x3 y 2 + 8xy
=− 2 2 = −2x
N 3x y + 4y
is independent of y, so Theorem 33a) applies with p(x) = −2x. Since
Z Z
p(x) dx = − 2x dx = −x2 ,
2
µ(x) = e−x is an integrating factor. Multiplying (83) by µ yields the exact equation
2 2
e−x (2xy 3 − 2x3 y 3 − 4xy 2 + 2x) dx + e−x (3x2 y 2 + 4y) dy = 0. (84)
To solve this equation, we must find a function F such that
2
Fx (x, y) = e−x (2xy 3 − 2x3 y 3 − 4xy 2 + 2x) (85)
and
2
Fy (x, y) = e−x (3x2 y 2 + 4y). (86)
Integrating (86) with respect to y yields
2
F (x, y) = e−x (x2 y 3 + 2y 2 ) + ψ(x). (87)
Differentiating this with respect to x yields
2
Fx (x, y) = e−x (2xy 3 − 2x3 y 3 − 4xy 2 ) + ψ 0 (x).
2 2
Comparing this with (85) shows that ψ 0 (x) = 2xe−x ; therefore, we can let ψ(x) = −e−x
in (87) and conclude that
2
e−x y 2 (x2 y + 2) − 1 = c
0 x
−1
−2
−3
−4
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
Figure 12. A direction field and integral curves for (2xy 3 −2x3 y 3 −4xy 2 +
2x) dx + (3x2 y 2 + 4y) dy = 0
0 x
−1
−2
−3
−4
−4 −3 −2 −1 0 1 2 3 4
Figure 13. A direction field and integral curves for 2xy 3 ey dx + (3x2 y 2 +
x2 y 3 + 1)ey dy = 0
Theorem 33 does not apply in the next example but the more general argument that
led to Theorem 33 provides an integrating factor.
Example 36. Find an integrating factor for
(3xy + 6y 2 ) dx + (2x2 + 9xy) dy = 0 (93)
and solve the equation.
Solution. In (93)
M = 3xy + 6y 2 , N = 2x2 + 9xy,
and
My − Nx = (3x + 12y) − (4x + 9y) = −x + 3y.
Hence,
My − Nx −x + 3y Nx − My x − 3y
= and = 2 ,
M 3xy + 6y 2 N 2x + 9xy
42
so Theorem 33 does not apply.
Following the more general argument that led to Theorem 33, we look for functions
p = p(x) and q = q(y) such that
My − Nx = p(x)N − q(y)M ;
that is,
−x + 3y = p(x)(2x2 + 9xy) − q(y)(3xy + 6y 2 ).
Since the left side contains only first degree terms in x and y, we rewrite this equation as
xp(x)(2x + 9y) − yq(y)(3x + 6y) = −x + 3y.
This will be an identity if
xp(x) = A and yq(y) = B, (94)
where A and B are constants such that
−x + 3y = A(2x + 9y) − B(3x + 6y),
or, equivalently,
−x + 3y = (2A − 3B)x + (9A − 6B)y.
Equating the coefficients of x and y on both sides shows that the last equation holds for
all (x, y) if
2A − 3B = −1
9A − 6B = 3,
which has the solution A = 1, B = 1. Therefore (94) implies that
p(x) = 1/x and q(y) = 1/y.
Since Z Z
p(x) dx = ln |x| and q(y) dy = ln |y|,
we can let P (x) = x and Q(y) = y; hence, µ(x, y) = xy is an integrating factor. Multi-
plying (93) by µ yields the exact equation
(3x2 y 2 + 6xy 3 ) dx + (2x3 y + 9x2 y 2 ) dy = 0.
This equation has the implicit solution
x3 y 2 + 3x2 y 3 = c. (95)
This is also an implicit solution of (93). Since x ≡ 0 and y ≡ 0 satisfy (95), you should
check to see that x ≡ 0 and y ≡ 0 are also solutions of (93). (Why is it necesary to check
this?)
Figure 14 shows a direction field and integral curves for (93).
··
^
See Exercise 37 for a general discussion of equations like (93).
Example 37. The separable equation
− y dx + (x + x6 ) dy = 0 (96)
can be converted to the exact equation
dx dy
− 6
+ =0 (97)
x+x y
43
y
1.5
0.5
0 x
−0.5
−1
−1.5
−2
−4 −3 −2 −1 0 1 2 3 4
Solution. In (96)
M = −y, N = x + x6 ,
and
My − Nx = −1 − (1 + 6x5 ) = −2 − 6x5 .
We look for functions p = p(x) and q = q(y) such that
My − Nx = p(x)N − q(y)M ;
that is,
− 2 − 6x5 = p(x)(x + x6 ) + q(y)y. (98)
The right side will contain the term −6x5 if p(x) = −6/x. Then (98) becomes
−2 − 6x5 = −6 − 6x5 + q(y)y,
so q(y) = 4/y. Since
Z Z
6 1
p(x) dx = − dx = −6 ln |x| = ln 6 ,
x x
44
y
0.8
0.6
0.4
0.2
0 x
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
and Z Z
q(y) dy = 4/y dy = 4 ln |y| = ln y 4 ,
we can take P (x) = x−6 and Q(y) = y 4 , which yields the integrating factor µ(x, y) =
x−6 y 4 . Multiplying (96) by µ yields the exampleact equation
y5
4
y 4
− 6 dx + +y dy = 0.
x x5
We leave it to you to use the method of the Section 2.5 to show that this equation has
the implicit solution
(y/x)5 + y 5 = k.
Solving for y yields
y = k 1/5 x(1 + x5 )−1/5 ,
which we rewrite as
y = cx(1 + x5 )−1/5
by renaming the arbitrary constant. This is also a solution of (96).
Figure 15 shows a direction field and some integral curves for (96).
··
^
Example 38. Solve
x2 + y 2 dy
+ 2y = 0.
x+1 dx
x2 + y 2
Solution. Let M = and N = 2y. Compute
x+1
2y 2y
My − Nx = −0= .
x+1 x+1
45
As this is not zero, the equation is not exact. We notice
My − Nx 2y 1 1
P (x) = = =
N x + 1 2y x+1
is a function of x alone. We compute the integrating factor
R
P (x) dx
e = eln(x+1) = x + 1.
We multiply our given equation by (x + 1) to obtain
dy
x2 + y 2 + 2y(x + 1) = 0,
dx
which is an exact equation that we solved in 29. The solution was
s
C − ( 13 )x3
y=± .
x+1
Example 39. Solve
dy
y 2 + (xy + 1) = 0.
dx
Solution. First compute
My − Nx = 2y − y = y.
As this is not zero, the equation is not exact. We observe
My − Nx y 1
Q(y) = = 2 =
M y y
is a function of y alone. We compute the integrating factor
R 1
e− Q(y) dy
= e− ln y = .
y
Therefore we look at the exact equation
xy + 1 dy
y+ = 0.
y dx
Check that this equation is exact. We follow the procedure for exampleact equations
F (x, y) = xy + A(y),
and
xy + 1 1
= x + = x + A0 (y). (99)
y y
1
Consequently A0 (y) = or A(y) = ln y. Thus F (x, y) = xy + ln y. It is not possible to
y
solve F (x, y) = C for y in terms of elementary functions, so let us be content with the
implicit solution:
xy + ln y = C.
··
^
Exercises
46
(1) Solve the following exact equations, implicit general solutions will suffice:
a) (2xy + x2 ) dx + (x2 + y 2 + 1) dy = 0
dy
b) x5 + y 5 =0
dx
dy
c) ex + y 3 + 3xy 2 =0
dx
d) (x + y) cos(x) + sin(x) + sin(x)y 0 = 0
(2) Find the integrating factor for the following equations making them into exact
equations:
y
a) exy dx + exy dy = 0
x
ex + y 3
b) dx + 3x dy = 0
y2
2x + 2y 2
c) 4(y 2 + x) dx + dy = 0
y
d) 2 sin(y) dx + x cos(y) dy = 0
dy
(3) Suppose you have an equation of the form: f (x) + g(y) = 0.
dx
a) Show it is exact.
b) Find the form of the potential function in terms of f and g.
(4) Suppose that we have the equation f (x) dx − dy = 0.
a) Is this equation exact?
b) Find the general solution using a definite integral.
(5) Find the potential function F (x, y) of the exact equation
1 + xy 1
dx + + x dy = 0
x y
in two different ways.
a) Integrate M in terms of x and then differentiate in y and set to N .
b) Integrate N in terms of y and then differentiate in x and set to M .
(6) A function u(x, y) is said to be harmonic function if uxx + uyy = 0.
a) Show that −uy dx + ux dy = 0 is an exact equation. Therefore there exists
(at least locally) the so-called harmonic conjugate function v(x, y) such that
vx = −uy and vy = ux .
Verify that the following u are harmonic and find the corresponding harmonic
conjugates v:
b) u = 2xy
c) u = ex cos y
d) u = x3 − 3xy 2
(7) Solve the following exact equations, implicit general solutions will suffice:
a) cos(x) + yexy + xexy y 0 = 0
b) (2x + y) dx + (x − 4y) dy = 0
dy
c) ex + ey =0
dx
d) (3x + 3y) dx + (3y 2 + 3x) dy = 0
2
(8) Find the integrating factor for the following equations making them into exact
equations:
1
a) dx + 3y dy = 0
y
b) dx − e−x−y dy = 0
47
cos(x) 1 x
c) 2
+ dx + 2 dy = 0
y y y
y2
d) 2y + dx + (2y + x) dy = 0
x
(9) a) Show that every separable equation y 0 = f (x)g(y) can be written as an exact
equation, and verify that it is indeed exact. b) Using this rewrite y 0 = xy as an
exact equation.
(10) (a) Verify that µ(x, y) = y is an integrating factor for
1
y dx + 2x + dy = 0 (A)
y
on any open rectangle that does not intersect the x axis or, equivalently,
that
y 2 dx + (2xy + 1) dy = 0 (B)
is exact on any such rectangle.
(b) Verify that y ≡ 0 is a solution of (B), but not of (A).
(c) Show that
y(xy + 1) = c (C)
is an implicit solution of (B), and explain why every differentiable function
y = y(x) other than y ≡ 0 that satisfies (C) is also a solution of (A).
(11) (a) Verify that µ(x, y) = 1/(x − y)2 is an integrating factor for
−y 2 dx + x2 dy = 0 (A)
on any open rectangle that does not intersect the line y = x or, equivalently,
that
−y 2 /(x − y)2 dx + x2 /(x − y)2 dy = 0 (B)
is exact on any such rectangle.
(b) Use Theorem 13 to show that
xy
=c (C)
(x − y)
is an implicit solution of (B), and explain why it’s also an implicit solution
of (A)
(c) Verify that y = x is a solution of (A), even though it can’t be obtained from
(C).
In Exercises 12–25 find an integrating factor; that is a function of only one
variable, and solve the given equation.
(12) y dx − x dy = 0
(13) 3x2 y dx + 2x3 dy = 0
(14) 2y 3 dx + 3y 2 dy = 0
(15) (5xy + 2y + 5) dx + 2x dy = 0
(16) (xy + x + 2y + 1) dx + (x + 1) dy = 0
(17) (27xy 2 + 8y 3 ) dx + (18x2 y + 12xy 2 ) dy = 0
(18) (6xy 2 + 2y) dx + (12x2 y + 6x + 3) dy = 0
1
(19) y 2 dx + xy 2 + 3xy + dy = 0
y
(20) (12x3 y + 24x2 y 2 ) dx + (9x4 + 32x3 y + 4y) dy = 0
(21) (x2 y + 4xy + 2y) dx + (x2 + x) dy = 0
(22) −y dx + (x4 − x) dy = 0
48
(23) cos x cos y dx + (sin x cos y − sin x sin y + y) dy = 0
(24) (2xy + y 2 ) dx + (2xy + x2 − 2x2 y 2 − 2xy 3 ) dy = 0
(25) y sin y dx + x(sin y − y cos y) dy = 0
In Exercises 26–32 find an integrating factor of the form µ(x, y) = P (x)Q(y) and
solve the given equation.
(26) y(1 + 5 ln |x|) dx + 4x ln |x| dy = 0
(27) (αy + γxy) dx + (βx + δxy) dy = 0
(28) (3x2 y 3 − y 2 + y) dx + (−xy + 2x) dy = 0
(29) 2y dx + 3(x2 + x2 y 3 ) dy = 0
(30) (a cos xy − y sin xy) dx + (b cos xy − x sin xy) dy = 0
(31) x4 y 4 dx + x5 y 3 dy = 0
(32) y(x cos x + 2 sin x) dx + x(y + 1) sin x dy = 0
In Exercises 33–36 find an integrating factor and solve the equation. Plot a direc-
tion field and some integral curves for the equation in the indicated rectangular
region.
(33) (x4 y 3 + y) dx + (x5 y 2 − x) dy = 0; {−1 ≤ x ≤ 1, −1 ≤ y ≤ 1}
(34) (3xy + 2y 2 + y) dx + (x2 + 2xy + x + 2y) dy = 0; {−2 ≤ x ≤ 2, −2 ≤ y ≤ 2}
(35) (12xy + 6y 3 ) dx + (9x2 + 10xy 2 ) dy = 0; {−2 ≤ x ≤ 2, −2 ≤ y ≤ 2}
(36) (3x2 y 2 + 2y) dx + 2x dy = 0; {−4 ≤ x ≤ 4, −4 ≤ y ≤ 4}
(37) Suppose a, b, c, and d are constants such that ad − bc 6= 0, and let m and n be
arbitrary real numbers. Show that
(axm y + by n+1 ) dx + (cxm+1 + dxy n ) dy = 0
has an integrating factor µ(x, y) = xα y β .
(38) Suppose M , N , Mx , and Ny are continuous for all (x, y), and µ = µ(x, y) is an
integrating factor for
M (x, y) dx + N (x, y) dy = 0. (A)
Assume that µx and µy are continuous for all (x, y), and suppose y = y(x) is a
differentiable function such that µ(x, y(x)) = 0 and µx (x, y(x)) 6= 0 for all x in
some interval I. Show that y is a solution of (A) on I.
(39) According to Theorem 19, the general solution of the linear nonhomogeneous
equation
y 0 + p(x)y = f (x) (A)
is Z
y = y1 (x) c + f (x)/y1 (x) dx , (B)
a) exy + sin(x) = C, b) x2 + xy − 2y 2 = C, c) ex + ey = C, d)
3 3
x + 3xy + y = C.
(47) Find the integrating factor for the following equations making them into exact
equations:
1
a) dx + 3y dy = 0
y
b) dx − e−x−y dy = 0
50
cos(x) 1 x
c) 2
+ dx + 2 dy = 0
y y y
y2
d) 2y + dx + (2y + x) dy = 0
x
(1) Solve
x2 y 0 = y 2 + xy − x2 . (122)
(2) Solve the initial value problem
x2 y 0 = y 2 + xy − x2 , y(1) = 2. (123)
Solution. We first find solutions of (122) on open intervals that don’t contain x = 0.
We can rewrite (122) as
y 2 + xy − x2
y0 =
x2
for x in any such interval. Substituting y = ux yields
(ux)2 + x(ux) − x2
u0 x + u = = u2 + u − 1,
x2
so
u0 x = u2 − 1. (124)
By inspection this equation has the constant solutions u ≡ 1 and u ≡ −1. Therefore
y = x and y = −x are solutions of (122). If u is a solution of (124) that doesn’t assume
the values ±1 on some interval, separating variables yields
u0 1
2
= ,
u −1 x
or, after a partial fraction examplepansion,
1 1
1/2 − u0 = 1/x.
u−1 u+1
Multiplying by 2 and integrating yields
u − 1
ln
= 2 ln |x| + k,
u + 1
or
u − 1 k 2
u + 1 = e x ,
59
which holds if
u−1
= cx2 (125)
u+1
where c is an arbitrary constant. Solving for u yields
1 + cx2
u= .
1 − cx2
Therefore
x(1 + cx2 )
y = ux = (126)
1 − cx2
is a solution of (123) for any choice of the constant c. Setting c = 0 in (126) yields the
solution y = x. However, the solution y = −x can’t be obtained from (126). Thus, the
solutions of (122) on intervals that don’t contain x = 0 are y = −x and functions of the
form (126).
The situation is more complicated if x = 0 is the open interval. First, note that
y = −x satisfies (122) on (−∞, ∞). If c1 and c2 are arbitrary constants, the function
x(1 + c1 x2 )
, a < x < 0,
− 2
y= 1 c 1 x (127)
x(1 + c2 x2 )
, 0 ≤ x < b,
1 − c2 x 2
In the last two examples we were able to solve the given equations explicitly. However,
this isn’t always possible, as you’ll see in the exercises.
Example 53. Solve
xy 0 + y(x + 1) + xy 5 = 0, y(1) = 1.
60
First, the equation is Bernoulli (p(x) = (x + 1)/x and q(x) = −1). We substitute
v = y 1−5 = y −4 , v 0 = −4y −5 y 0 .
−1
In other words, y 5 v 0 = y 0 . So
4
xy 0 + y(x + 1) + xy 5 = 0,
−xy 5 0
v + y(x + 1) + xy 5 = 0,
4
−x 0
v + y −4 (x + 1) + x = 0,
4
−x 0
v + v(x + 1) + x = 0,
4
and finally
4(x + 1)
v0 −
v = 4.
x
The equation is now linear. We can use the integrating factor method. Let us assume
that x > 0 so |x| = x. This assumption is OK, as our initial condition is x = 1. Let us
compute the integrating factor.
Z x
e−4x+4
Rx −4(s + 1)
e1 p(s) ds
= ds = e−4x−4 ln(x)+4 = e−4x+4 x−4 = ,
1 s x4
Rx
e− 1 p(s) ds
= e4x+4 ln(x)−4 = e4x−4 x4 .
Rx
Z x R
t
− p(s) ds p(s) ds
v(x) = e 1 e 1 4 dt + 1
1
x
e−4t+4
Z
4x−4 4
=e x 4 dt + 1 .
1 t4
The integral in this examplepression is not possible to find in closed form. As we said
before, it is perfectly fine to have a definite integral in our solution. Now unsubstitute
Z x −4t+4
−4 4x−4 4 e
y =e x 4 dt + 1 ,
1 t4
e−x+1
y= Rx 1/4 .
e−4t+4
x 4 1 t4
dt + 1
··
^
Exercises
In Exercises 1–4 solve the given Bernoulli equation.
(1) y 0 + y = y 2
x2
(2) 7xy 0 − 2y = − 6
y
(3) x2 y 0 + 2y = 2e1/x y 1/2
1
(4) (1 + x2 )y 0 + 2xy =
(1 + x2 )y
In Exercises 5 and 6 find all solutions. Also, plot a direction field and some
integral curves on the indicated rectangular region.
61
(5) y 0 − xy = x3 y 3 ; {−3 ≤ x ≤ 3, 2 ≤ y ≥ 2}
1+x
(6) y 0 − y = y 4 ; {−2 ≤ x ≤ 2, −2 ≤ y ≤ 2}
3x
In Exercises 7–11 solve the√ initial value problem.
0 3
(7) y − 2y = xy , y(0) = 2 2
(8) y 0 − xy = xy 3/2 , y(1) = 4
(9) xy 0 + y = x4 y 4 , y(1) = 1/2
(10) y 0 − 2y = 2y 1/2 , y(0) = 1
48x
(11) y 0 − 4y = 2 , y(0) = 1
y
In Exercises 12 and 13 solve √the initial value problem and graph the solution.
(12) x2 y 0 + 2xy = y 3 , y(1) = 1/ 2
(13) y 0 − y = xy 1/2 , y(0) = 4
(14) You may have noticed that the logistic equation
P 0 = aP (1 − αP )
from Verhulst’s model for population growth can be written in Bernoulli form as
P 0 − aP = −aαP 2 .
This isn’t particularly interesting, since the logistic equation is separable, and
therefore solvable by the method studied in Section 2.2. So let’s consider a more
complicated model, where a is a positive constant and α is a positive continuous
function of t on [0, ∞). The equation for this model is
P 0 − aP = −aα(t)P 2 ,
a non-separable Bernoulli equation.
(a) Assuming that P (0) = P0 > 0, find P for t > 0.
(b) Verify that your result reduces to the known results for the Malthusian
model where α = 0, and the Verhulst model where α is a nonzero constant.
(c) Assuming that
Z t
−at
lim e α(τ )eaτ dτ = L
t→∞ 0
xy + y 2 y 2 − 3xy − 5x2
(22) y 0 = , y(−1) = 2 (25) y 0 = , y(1) = −1
x2 x2
3 3 2 0 2 2
x +y (26) x y = 2x + y + 4xy, y(1) √=1
(23) y 0 = , y(1) = 3
xy 2 (27) xyy 0 = 3x2 + 4y 2 , y(1) = 3
(24) xyy 0 + x2 + y 2 = 0, y(1) = 2
(44) 3xy 2 y 0 = y 3 + x
(45) xyy 0 = 3x6 + 6y 2
64
(46) x3 y 0 = 2(y 2 + x2 y − x4 ) (47) y 0 = y 2 e−x + 4y + 2ex
In Exercises 56–59, given that y1 is a solution of the given equation, use the
method suggested by exercise 55 to find other solutions.
(56) y 0 = 1 + x − (1 + 2x)y + xy 2 ; y1 = 1
(57) y 0 = e2x + (1 − 2ex )y + y 2 ; y1 = ex
(58) xy 0 = 2 − x + (2x − 2)y − xy 2 ; y1 = 1
(59) xy 0 = x3 + (1 − 2x2 )y + xy 2 ; y1 = x
(60) Solve y 0 + y(x2 − 1) + xy 6 = 0, with y(1) = 1.
(61) Solve 2yy 0 + 1 = y 2 + x, with y(0) = 1.
(62) Solve y 0 + xy = yp4 , with y(0) = 1.
(63) Solve yy 0 + x = x2 + y 2 .
(64) Solve y 0 = (x + y − 1)2 .
x2 − y 2
(65) Solve y 0 = , with y(1) = 2.
xy
(66) Solve xy 0 + y + y 2 = 0, y(1) = 2.
(67) Solve xy 0 + y + x = 0, y(1) = 1.
(68) Solve y 2 y 0 = y 3 − 3x, y(0) = 2.
2 2
(69) Solve 2yy 0 = ey −x + 2x.
(70) Solve x2 y 0 = y 2 + xy, y(1) = 1.
In Exercises 11–13 find a first order differential equation for the given family of
curves.
(11) Lines through a given point (x0 , y0 ).
(12) Circles through (−1, 0) and (1, 0).
(13) Circles through (0, 0) and (0, 2).
(14) Use the method exampleample 59(a) to find the equations of lines through the
given points tangent to the parabola y = x2 . Also, find the points of tangency.
(a) (5, 9) (b) (6, 11) (c) (−6, 20) (d) (−3, 5)
(15) (a) Show that the equation of the line tangent to the circle
x2 + y 2 = 1 (A)
at a point (x0 , y0 ) on the circle is
1 − x0 x
y= if x0 6= ±1. (B)
y0
72
(b) Show that if y 0 is the slope of a nonvertical tangent line to the circle (A)
and (x, y) is a point on the tangent line then
(y 0 )2 (x2 − 1) − 2xyy 0 + y 2 − 1 = 0. (C)
(c) Show that the segment of the tangent line (B) on which (x − x0 )/y0 > 0 is
an integral curve of the differential equation
p
0 xy − x2 + y 2 − 1
y = , (D)
x2 − 1
while the segment on which (x − x0 )/y0 < 0 is an integral curve of the
differential equation
p
xy + x2 + y 2 − 1
y0 = . (E)
x2 − 1
(d) Show that the upper and lower semicircles of (A) are also integral curves of
(D) and (E).
(e) Find the equations of two lines through (5,5) tangent to the circle (A), and
find the points of tangency.
(16) (a) Show that the equation of the line tangent to the parabola
x = y2 (A)
at a point (x0 , y0 ) 6= (0, 0) on the parabola is
y0 x
y= + . (B)
2 2y0
(b) Show that if y 0 is the slope of a nonvertical tangent line to the parabola (A)
and (x, y) is a point on the tangent line then
4x2 (y 0 )2 − 4xyy 0 + x = 0. (C)
(c) Show that the segment of the tangent line defined in a) on which x > x0 is
an integral curve of the differential equation
p
y + y2 − x
y0 = , (D)
2x
while the segment on which x < x0 is an integral curve of the differential
equation p
y − y2 − x
y0 = , (E)
2x √
(d) Show that √ the upper and lower halves of the parabola (A), given by y = x
and y = − x for x > 0, are also integral curves of (D) and (E).
(17) Use the results of Exercise 16 to find the equations of two lines tangent to the
parabola x = y 2 and passing through the given point. Also find the points of
tangency. (a) (−5, 2) (b) (−4, 0) (c) (7, 4) (d) (5, −3)
(18) Find a curve y = y(x) through (1,2) such that the tangent to the curve at any
point (x0 , y(x0 )) intersects the x axis at xI = x0 /2.
(19) Find all curves y = y(x) such that the tangent to the curve at any point
(x0 , y(x0 )) intersects the x axis at xI = x30 .
(20) Find all curves y = y(x) such that the tangent to the curve at any point passes
through a given point (x1 , y1 ).
(21) Find a curve y = y(x) through (1, −1) such that the tangent to the curve at any
point (x0 , y(x0 )) intersects the y axis at yI = x30 .
73
(22) Find all curves y = y(x) such that the tangent to the curve at any point
(x0 , y(x0 )) intersects the y axis at yI = x0 .
(23) Find a curve y = y(x) through (0, 2) such that the normal to the curve at any
point (x0 , y(x0 )) intersects the x axis at xI = x0 + 1.
(24) Find a curve y = y(x) through (2, 1) such that the normal to the curve at any
point (x0 , y(x0 )) intersects the y axis at yI = 2y(x0 ).
In Exercises 25–29 find the orthogonal trajectories of the given family of curves.
(25) x2 + 2y 2 = c2
(26) x2 + 4xy + y 2 = c
(27) y = ce2x
2
(28) xyex = c
(29) y = cex /x
(30) Find a curve through (−1, 3) orthogonal to every parabola of the form
y = 1 + cx2
that it intersects. Which of these parabolas does the desired curve intersect?
(31) Show that the orthogonal trajectories of
x2 + 2axy + y 2 = c
satisfy
|y − x|a+1 |y + x|a−1 = k.
(32) If lines L and L1 intersect at (x0 , y0 ) and α is the smallest angle through which
L must be rotated counterclockwise about (x0 , y0 ) to bring it into coincidence
with L1 , we say that α is the angle from L to L1 ; thus, 0 ≤ α < π. If L and L1
are tangents to curves C and C1 , respectively, that intersect at (x0 , y0 ), we say
that C1 intersects C at the angle α. Use the identity
tan A + tan B
tan(A + B) =
1 − tan A tan B
to show that if C and C1 are intersecting integral curves of
f (x, y) + tan α
y 0 = f (x, y) and y0 = (α 6= π/2) ,
1 − f (x, y) tan α
respectively, then C1 intersects C at the angle α.
(33) Use the result of exampleercise 32 to find a family of curves that intersect every
nonvertical line through the origin at the angle α = π/4.
(34) Use the result of exampleercise 32 to find a family of curves that intersect every
circle centered at the origin at a given angle α 6= π/2
Exercises
(1) True or false. Don’t forget to justify your answer.
(a) e−t cos(3t)y 0 = y is a first order, linear, separable ordinary differential equa-
tion.
(b) (x + 2)xex sin y + (x2 ex cos y)y 0 = 0 is NOT an exampleact equation.
(c) If y1 is a solution of y 00 + 4y 0 + 5y = 0, so is 3y1 .
(2) Solve the initial value problem
3
y 0 + 2y = t; y(0) = .
4
74
(3) Let y(t) be the particular solution of the following initial value problem
y 0 = (−y)(2 − y)(y + 4); y(3) = −2
What is lim y(t) ?
t→∞
x2
(4) Solve y 0 =
y(1 + x3 )
0 x2
(5) For y = , write an initial condition so that it has a unique solution.
y(1 + x3 )
x2
(6) For y 0 = , write an initial condition so that it has no solution.
y(1 + x3 )
x2
(7) For y 0 = , write an initial condition so that it has more than one
y(1 + x3 )
solution.
(8) Match the following direction fields with their differential equations.
(I) yy 0 + x = 0
(II) y 0 + 1 − y 2 = 0
(III) x2 y 0 − y = 0
(IV) (y − 1)y 0 + x3 − 4x = 0
(9) Solve t3 y 0 + 4t2 y = e−t ; y(−1) = 1.
dy −xy − y 2
(10) Solve = 2
dx 2x + 5xy
(11) Solve the differential equations:
3
(a) y 0 + 2ty = 0, y(1) = −
e
1 0 −t2
(b) y + y = e
2t
(12) Sketch a rectangle so that the follwoing IVP has a unique solution there.
y 0 cot(t)y 2 (1 + y)−1 , y(π/2) = 2.
(13) Solve (2t2 + 2y)y 0 + (2ty 2 + 2t) = 0
dy 4t + 3y
(14) Find the general solution of =− .
dt 2t + y
(15) Solve y 0 + (1/t)y = 2 sin t; t > 0.
8 + t3
(16) Consider IVP y 0 = ; y(2) = 1. Find a rectangle on which IVP has a
3y − y 2
unique solution.
(17) Draw direction field.
75