Workbook first+Order+Equations Solutions
Workbook first+Order+Equations Solutions
5y′′′ + 4xy = x 2
Solution:
The equation 5y′′′ + 4xy = x 2 contains a third derivative, so it’s a third order
equation. We can see that the equation is linear, because the equation
does not contain functions of y other than y itself and its derivatives.
y′′ − x = 3y
Solution:
We can rewrite the equation as y′′ − 3y = x, which allows us to see that the
equation is linear and non-homogeneous.
x 3 + 3x sin x = y′
1











Differential Equations Workbook
d 4y
x 4 − x ln x = 0
dx
y′′ − 3y′ + xy 2 = x
Solution:
The equation
d 4y
x 4 − x ln x = 0
dx
y′ − 3y = 0
(sin x)y′ = 0
ln x − 3y′′ = y
2












Differential Equations Workbook
Solution:
5. Identify the order and linearity of each differential equation, then say
whether or not each linear equation is homogeneous.
5y′ − y′′′ − ln y = x
y′′ = 4y 2
y′ = xy
Solution:
3























Differential Equations Workbook
e x y′′′ = e y x
Solution:
4








Differential Equations Workbook
LINEAR EQUATIONS
y′ − y sin x = 0
Solution:
μ(x) = e ∫ −sin x dx
μ(x) = e cos x
( dx )
cos x dy
e − y sin x = 0
dy
e cos x − ye cos x sin x = 0
dx
Reverse the product rule for derivatives to rewrite the left side,
d
(ye cos x) = 0
dx
5

Differential Equations Workbook
d
∫ dx ∫
(ye cos x) = 0 d x
ye cos x = C
y = Ce −cos x
y′ cos x + y sin x = 1
Solution:
y′ cos x + y sin x = 1
y′ + y tan x = sec x
μ(x) = e ∫ tan x dx
μ(x) = e −ln(cos x)
1
μ(x) =
cos x
6



Differential Equations Workbook
1
(y′ + y tan x = sec x)
cos x
1 tan x sec x
y′ + y =
cos x cos x cos x
Reverse the product rule for derivatives to rewrite the left side,
d x ( cos x ) cos2 x
d 1 1
y =
∫ d x ( cos x ) ∫ cos2 x
d 1 1
y = dx
1
y = tan x + C
cos x
y = cos x(tan x + C)
y = sin x + C cos x
xy′ + y = e x
Solution:
7



Differential Equations Workbook
1 ex
y′ + y =
x x
μ(x) = e ln x
μ(x) = x
( x)
1 ex
x y′ + y =
x
xy′ + y = e x
Reverse the product rule for derivatives to rewrite the left side,
d
(xy) = e x
dx
xy = e x + C
ex + C
y=
x
xy′ = x 3 − 3x 3y
8




Differential Equations Workbook
Solution:
xy′ + 3x 3y = x 3
y′ + 3x 2y = x 2
3
μ(x) = e x
Reverse the product rule for derivatives to rewrite the left side,
d x3 3
(e y) = x 2e x
dx
d x3
∫ dx ∫
3
(e y) = x 2e x d x
u
e
∫ 3
3
ex y = du
9




Differential Equations Workbook
3 1 u
ex y = e +C
3
3 1 x3
ex y = e +C
3
1 3
y= + Ce −x
3
xy′ − 3y = x 2 − x + 1
Solution:
xy′ − 3y = x 2 − x + 1
3 1
y′ − y =x−1+
x x
∫ − 3x dx
μ(x) = e
μ(x) = e −3 ln x
μ(x) = x −3
10



Differential Equations Workbook
( x)
−3 3 1
x y′ − y = x − 1 +
x
x −3y′ − 3x −4y = x −2 − x −3 + x −4
Reverse the product rule for derivatives to rewrite the left side,
d −3
(x y) = x −2 − x −3 + x −4
dx
d −3
∫ dx ∫
(x y) = x −2 − x −3 + x −4 d x
1 −2 1 −3
x −3y = − x −1 + x − x +C
2 3
1 1 1
x −3y = − + 2 − 3 +C
x 2x 3x
1 1
y = Cx 3 − x 2 + x−
2 3
xy′ − y = x
Solution:
11



Differential Equations Workbook
y 1
y′ − =
x x
μ(x) = e −ln x
1
μ(x) = −
x
x( x)
1 y 1
− y′ − =
x
1 y 1
− y′ + 2 = −
x x x x
Reverse the product rule for derivatives to rewrite the left side,
dx ( x )
d y 1
− =−
x x
∫ dx ( x ) ∫ x x
d y 1
− = − dx
12



Differential Equations Workbook
y 2
− = +C
x x
y 2
=− +C
x x
y = − 2 x + Cx
13
Differential Equations Workbook
Solution:
y′ − 2xy = 5x
μ(x) = e ∫ −2x dx
2
μ(x) = e −x
( dx )
2 dy
e −x − 2xy = 5x
2 dy 2 2
e −x − 2xye −x = 5xe −x
dx
Reverse the product rule for derivatives to rewrite the left side,
d −x 2 2
(e y) = 5xe −x
dx
14


Differential Equations Workbook
d −x 2
∫ dx ∫
2
(e y) = 5xe −x d x
5
∫ 2
2
e −x y = − e u du
2 5
e −x y = − e u + C
2
−x 2 5 −x 2
e y =− e +C
2
5 2
y = − + Ce x
2
Once we have this general solution, we recognize from the initial condition
y(0) = 0 that x = 0 and y = 0, so we’ll plug these values into the general
solution to solve for C.
5 2
0=− + Ce (0)
2
5
0=− +C
2
5
C=
2
5 5 x2
y=− + e
2 2
15
Differential Equations Workbook
dy
x + 2y = 6x 2
dx
Solution:
dy
x + 2y = 6x 2
dx
dy 2
+ y = 6x
dx x
μ(x) = e 2 ln x
μ(x) = x 2
( dx x )
dy 2
2
x + y = 6x
dy
x2 + 2xy = 6x 3
dx
16
Differential Equations Workbook
Reverse the product rule for derivatives to rewrite the left side,
d 2
(x y) = 6x 3
dx
then integrate.
d 2
∫ dx ∫
(x y) = 6x 3 d x
2 3 4
x y = x +C
2
3 2
y= x + Cx −2
2
Once we have this general solution, we recognize from the initial condition
y(1) = − 3 that x = 1 and y = − 3, so we’ll plug these values into the general
solution to solve for C.
3 2
−3 = (1) + C(1)−2
2
3
−3 = +C
2
9
C=−
2
3 2 9 −2
y= x − x
2 2
17
Differential Equations Workbook
y′ − y = 2 sin(3x)
Solution:
μ(x) = e ∫ −1 dx
μ(x) = e −x
( dx )
−x dy
e − y = 2 sin(3x)
dy
e −x − ye −x = 2 sin(3x)e −x
dx
Reverse the product rule for derivatives to rewrite the left side,
d −x
(e y) = 2 sin(3x)e −x
dx
d −x
∫ dx ∫
(e y) = 2 sin(3x)e −x d x
1
e −x y = − e −x(sin(3x) + 3 cos(3x)) + C
5
18

Differential Equations Workbook
1
y = − (sin(3x) + 3 cos(3x)) + Ce x
5
Once we have this general solution, we recognize from the initial condition
y(0) = 1 that x = 0 and y = 1, so we’ll plug these values into the general
solution to solve for C.
1
1 = − (sin(3(0)) + 3 cos(3(0))) + Ce 0
5
3
1=− +C
5
8
C=
5
1 8 x
y = − (sin(3x) + 3 cos(3x)) + e
5 5
ky
y′ − =0
x
Solution:
19

Differential Equations Workbook
k
μ(x) = e ∫ − x dx
μ(x) = e −k ln x
μ(x) = x −k
( dx )
dy k y
x −k − =0
x
dy k y −k
x −k − x =0
dx x
Reverse the product rule for derivatives to rewrite the left side,
d −k
(x y) = 0
dx
then integrate.
d −k
∫ dx ∫
(x y) = 0 d x
x −k y = C
y = Cx k
Once we have this general solution, we recognize from the initial condition
y(1) = 1 that x = 1 and y = 1 and from the initial condition y(3) = 3 that x = 3
and y = 3, so we’ll plug these values into the general solution,
1 = C(1)k
20
Differential Equations Workbook
3 = C(3)k
C=1
3 = 1(3)k
k=1
y = 1x 1
y=x
dy
− 6y = 2
dx
Solution:
μ(x) = e ∫ −6 dx
μ(x) = e −6x
21
Differential Equations Workbook
( dx )
−6x dy
e − 6y = 2
−6x dy
e − 6ye −6x = 2e −6x
dx
Reverse the product rule for derivatives to rewrite the left side,
d −6x
(e y) = 2e −6x
dx
then integrate.
d −6x
∫ dx ∫
(e y) = 2e −6x d x
1
e −6x y = − e −6x + C
3
1
y=− + Ce 6x
3
Once we have this general solution, we recognize from the initial condition
y(ln 2) = 1 that x = ln 2 and y = 1, so we’ll plug these values into the general
solution to solve for C.
1
1=− + Ce 6 ln 2
3
1
1=− + 26C
3
1
C=
48
22
Differential Equations Workbook
1 1
y=− + e 6x
3 48
Solution:
x k+1
μ(x) = e k+1
( dx )
x k+1 dy
e k+1 + xky = 0
x k+1 dy k+1
k xk + 1
e k+1 + x ye =0
dx
Reverse the product rule for derivatives to rewrite the left side,
d x k+1
(e k + 1 y) = 0
dx
then integrate.
23

Differential Equations Workbook
d x k+1
∫ dx ∫
(e k + 1 y) = 0 d x
x k+1
e k+1 y=C
k+1
− xk + 1
y = Ce
Once we have this general solution, we recognize from the initial condition
y(0) = 1 that x = 0 and y = 1, and from the initial condition y(1) = e −5 that
x = 1 and y = e −5, so we’ll plug these values into the general solution,
k+1
− 0k + 1
1 = Ce
k+1
−5 − 1k + 1
e = Ce
C=1
1
e −5 = e − k + 1
5(k + 1) = 1
1
k+1=
5
4
k=−
5
24
Differential Equations Workbook
SEPARABLE EQUATIONS
dy 3x 2
=
dx y
Solution:
3x 2
dy = dx
y
y dy = 3x 2 d x
Integrate both sides, adding the constant of integration C to the right side.
∫ ∫
y dy = 3x 2 d x
1 2
y = x3 + C
2
y 2 = 2(x 3 + C)
y=± 2(x 3 + C)
25
Differential Equations Workbook
dy x+2
=
dx 2y
Solution:
x+2
dy = dx
2y
2y dy = (x + 2) d x
Integrate both sides, adding the constant of integration C to the right side.
∫ ∫
2y dy = x + 2 d x
2 1 2
y = x + 2x + C
2
1 2
y=± x + 2x + C
2
26
Differential Equations Workbook
dy 4x 3 − 1
=
d x x(y 2 − 1)
Solution:
4x 3 − 1
dy = dx
x(y 2 − 1)
2 4x 3 − 1
(y − 1) dy = dx
x
( x x)
3
4x 1
(y 2 − 1) dy = − dx
( )
1
(y 2 − 1) dy = 4x 2 − dx
x
Integrate both sides, adding the constant of integration C to the right side.
1
∫ ∫
y 2 − 1 dy = 4x 2 − d x
x
1 3 4
y − y = x 3 − ln | x | + C
3 3
y 3 − 3y = 4x 3 − 3 ln | x | + 3C
y 3 − 3y = 4x 3 − 3 ln | x | + C
27
Differential Equations Workbook
We can’t solve this equation explicitly for y, so we’ll leave this as the
implicitly-defined general solution.
dy x2 x3 − 3
=
dx y2
Solution:
x2 x3 − 3
dy = dx
y 2
y 2 dy = x 2 x 3 − 3 d x
( 3 )
du
∫ ∫
y 2 dy = u
1 3 2 3
y = u2 + C
3 9
Back-substitute for u = x 3 − 3.
28
Differential Equations Workbook
1 3 2 3 3
y = (x − 3) 2 + C
3 9
Solve for y to get the explicit the solution to the separable differential
equation.
2 3 3
y3 = (x − 3) 2 + C
3
1
(3 )
2 3 3
3
y= (x − 3) 2 + C
y′ + sin(x − y) = sin(x + y)
Solution:
y′ = sin(x + y) − sin(x − y)
y′ = 2 cos x sin y
dy = 2 cos x sin y d x
1
dy = 2 cos x d x
sin y
Integrate both sides, adding the constant of integration C to the right side.
29



Differential Equations Workbook
1
∫ sin y ∫
dy = 2 cos x d x
y
ln tan = 2 sin x + C
2
(xy 2 + x) + (x 2y − y)y′ = 0
Solution:
(xy 2 + x) + (x 2y − y)y′ = 0
(x 2y − y)y′ = − (xy 2 + x)
(x 2y − y) dy = − (xy 2 + x) d x
(x 2 − 1)y dy = − (y 2 + 1)x d x
y x
dy = − dx
y +1
2 x −1
2
Integrate both sides, using substitutions on both sides, and adding the
constant of integration C to the right side.
y x
∫ y2 + 1 ∫ x2 − 1
dy = − dx
30



Differential Equations Workbook
1 1
ln | y 2 + 1 | = − ln | x 2 − 1 | + C
2 2
Once we have this general solution, we recognize from the initial condition
y(0) = − 1 that x = 0 and y = − 1, so we’ll plug these values into the general
solution,
1 1
ln(2) = − ln(1) + C
2 2
1
ln(2) = C
2
1 1 1
ln(y 2 + 1) = − ln | x 2 − 1 | + ln(2)
2 2 2
ln(y 2 + 1) = − ln | x 2 − 1 | + ln(2)
2
ln(y 2 + 1) = ln
| x2 − 1 |
2
y2 + 1 =
| x2 − 1 |
2
y2 = −1
|x − 1|
2
2
y=± −1
|x − 1|
2
31
Differential Equations Workbook
SUBSTITUTIONS
y′ = sin(x + y)
Solution:
u′ − 1 = sin u
du
= sin u + 1
dx
du = (sin u + 1) d x
1
du = d x
sin u + 1
1
∫ sin u + 1 ∫
du = d x
32








Differential Equations Workbook
2
u =x+C
cot 2
+1
2 u
= cot + 1
x+C 2
2 u
− 1 = cot
x+C 2
( 2 )
2 x+y
− 1 = cot
x+C
y′ = (x + y − 5)2
Solution:
u′ − 1 = (u − 5)2
33








Differential Equations Workbook
du
= (u − 5)2 + 1
dx
du = ((u − 5)2 + 1) d x
1
du = d x
(u − 5)2 + 1
1
∫ (u − 5)2 + 1 ∫
du = d x
−tan−1(5 − u) = x + C
tan−1(5 − u) = − x + C
5 − u = tan(−x + C)
u = 5 − tan(−x + C)
x + y = 5 − tan(−x + C)
y = 5 − tan(−x + C) − x
y′ = e 5y−x
34

Differential Equations Workbook
Solution:
u′ + 1
= eu
5
u′ + 1 = 5e u
u′ = 5e u − 1
du
= 5e u − 1
dx
du = (5e u − 1) d x
1
du = d x
5e − 1
u
1
∫ 5e u − 1 ∫
du = d x
e −u
∫ 5 − e −u ∫
du = d x
35









Differential Equations Workbook
ln(5 − e −u) = x + C
−u
e ln(5−e )
= e x+C
5 − e −u = Ce x
e −u = 5 − Ce x
−u = ln(5 − Ce x)
u = − ln(5 − Ce x)
5y − x = − ln(5 − Ce x)
5y = x − ln(5 − Ce x)
1
y= (x − ln(5 − Ce x))
5
Once we have this general solution, we recognize from the initial condition
y(0) = 0 that x = 0 and y = 0, so we’ll plug these values into the general
solution to find C,
1
0= (0 − ln(5 − Ce 0))
5
0 = ln(5 − C)
−1
e 0 = e ln(5−C)
1
1=
5−C
36
Differential Equations Workbook
5−C =1
C=4
1
y= (x − ln(5 − 4e x))
5
1
y′ =
6x − 3y
Solution:
1 1
2 − u′ =
3 u
1 1
2− = u′
u 3
6u − 3
= u′
u
37










Differential Equations Workbook
du 6u − 3
=
dx u
( u )
6u − 3
du = dx
u
du = d x
6u − 3
u
∫ 6u − 3 ∫
du = d x
1 u
∫ ∫
du = d x
3 2u − 1
( ) ∫
1 1
∫ ∫
du + du = d x
6 2u − 1
1
(ln(2u − 1) + u) = x + C
6
ln(2u − 1) + u = 6x + C
ln(12x − 6y − 1) + 6x − 3y = 6x + C
ln(12x − 6y − 1) − 3y = C
38
Differential Equations Workbook
y′ + (9x + y − 1)2 = 0
Solution:
u′ − 9 + (u − 1)2 = 0
u′ = 9 − (u − 1)2
du
= 9 − (u − 1)2
dx
du = (9 − (u − 1)2) d x
1
du = d x
9 − (u − 1) 2
1
∫ 9 − (u − 1)2 ∫
du = d x
du
∫ 9 − (u 2 − 2u + 1) ∫
= dx
du
∫ 9 − u 2 + 2u − 1 ∫
= dx
39









Differential Equations Workbook
du
∫ 8 + 2u − u 2 ∫
= dx
du
∫ u − 2u − 8 ∫
− 2 = dx
du
∫ (u + 2)(u − 4) ∫
− = dx
1 1 1
6 u+2 u−4 ∫
∫
− = dx
1
(ln(u + 2) − ln(u − 4)) = x + C
6
(u − 4)
u+2
ln = 6x + C
u+2
= Ce 6x
u−4
u + 2 = (u − 4)Ce 6x
u + 2 = uCe 6x − 4Ce 6x
u − uCe 6x = − 2 − 4Ce 6x
−2 − 4Ce 6x
u=
1 − Ce 6x
40
Differential Equations Workbook
−2 − 4Ce 6x
9x + y =
1 − Ce 6x
−2 − 4Ce 6x
y= − 9x
1 − Ce 6x
Once we have this general solution, we recognize from the initial condition
y(0) = 8 that x = 0 and y = 8, so we’ll plug these values into the general
solution to find C.
−2 − 4Ce 6(0)
8= − 9(0)
1 − Ce 6(0)
−2 − 4C
8=
1−C
8(1 − C) = − 2 − 4C
8 − 8C = − 2 − 4C
4C = 10
5
C=
2
−2 − 4 52 e 6x
y= 5 6x
− 9x
1− 2
e
41
Differential Equations Workbook
−2 − 10e 6x
y= 5 6x
− 9x
1− 2
e
−4 − 20e 6x
y= − 9x
2 − 5e 6x
20e 6x + 4
y= − 9x
5e 6x − 2
y′ + 2x + 2y − 2xy = x 2 + y 2
Solution:
y′ + 2x + 2y − 2xy = x 2 + y 2
y′ + 2(x + y) = x 2 + 2xy + y 2
y′ + 2(x + y) = (x + y)2
u′ − 1 + 2u = u 2
42











Differential Equations Workbook
u′ = u 2 − 2u + 1
u′ = (u − 1)2
du
= (u − 1)2
dx
du = (u − 1)2 d x
1
du = d x
(u − 1)2
1
∫ (u − 1)2 ∫
du = d x
1
=x+C
1−u
1
=1−u
x+C
1
u =1−
x+C
1
x+y =1−
x+C
43


Differential Equations Workbook
1
y =1− −x
x+C
Once we have this general solution, we recognize from the initial condition
y(0) = 2 that x = 0 and y = 2, so we’ll plug these values into the general
solution to find C.
1
2=1− −0
0+C
1
2=1−
C
1
1=−
C
C =−1
1
y =1− −x
x−1
44
Differential Equations Workbook
BERNOULLI EQUATIONS
(y 4 + x 4y) d x − 3x 5 dy = 0
Solution:
4 4 5 dy
y + x y = 3x
dx
dy y 4 + x 4y
=
dx 3x 5
dy y4 x 4y
= 5+ 5
d x 3x 3x
dy x 4y y4
− 5 = 5
d x 3x 3x
dy x4 1 4
− y = 5y
d x 3x 5 3x
1 1 4
y′ − y = 5 y
3x 3x
Divide through by y n = y 4.
45

Differential Equations Workbook
y′ y y4
− =
y 4 3xy 4 3x 5y 4
1 −3 1
y′y −4 − y = 5
3x 3x
v′ = − 3y −4 y′
−4 1
y y′ = − v′
3
1 1 1
− v′ − v = 5
3 3x 3x
1 1
v′ + v=− 5
x x
To find the solution to the linear equation, we’ll find the integrating factor,
1
I(x) = e ∫ x dx
I(x) = e ln x
I(x) = x
1 1
xv′ + xv = − 5 x
x x
46










Differential Equations Workbook
1
xv′ + v = −
x4
Reverse the product rule for derivatives to rewrite the left side,
d 1
(vx) = − 4
dx x
d 1
∫ dx ∫ x
(vx) = − 4 d x
1
vx = 3 + C
3x
Solve for v.
1 C
v= +
3x 4 x
−3 1 + 3x 3C
y =
3x 4
1 1 + 3x 3C
=
y3 3x 4
3 3x 4
y =
1 + 3x 3C
47

Differential Equations Workbook
3x 4
y= 3
1 + 3x 3C
Solution:
3y 5
y′ − = y3
x
5
Divide through by y n = y 3 .
5
y′ 3y y 3
5
− 5
= 5
y3 xy 3 y3
5 3 −2
y′y − 3 − y 3 =1
x
2
Our substitution is v = y − 3 , so we’ll differentiate to get
2 −5
v′ = − y 3 y′
3
5
and then solve this for y − 3 y′.
48







Differential Equations Workbook
5 3
y − 3 y′ = − v′
2
3 3
− v′ − v = 1
2 x
2 2
v′ + v = −
x 3
To find the solution to the linear equation, we’ll find the integrating factor,
2
I(x) = e ∫ x dx
I(x) = e 2 ln x
2
I(x) = e ln x
I(x) = x 2
2 2
2 2 2
v′(x ) + v(x ) = − (x )
x 3
2 2 2
x v′ + 2xv = − x
3
Reverse the product rule for derivatives to rewrite the left side,
d 2 2 2
(x v) = − x
dx 3
49






Differential Equations Workbook
d 2 2
∫ dx ∫ 3
(x v) d x = − x 2 d x
2 2 3
x v =− x +C
9
Solve for v.
2 1
v = − x + 2C
9 x
2
Use v = y − 3 to back-substitute for v,
2 2 1
y− 3 = − x + 2C
9 x
1 2 1
=− x + 2C
2
y3 9 x
2 1
y =
3
− 29 x + 1
C
x2
1
y=
( 9 x2 )
3
2 1
− x+ C
1
y=
( x2 C − x)
3
1 2
9
50
Differential Equations Workbook
1
y=
( 9x2 9x 2 )
3
9C 2x 3
−
1
y= 3
( 9x2 )
9C − 2x 3 2
1
y= 3
(9C − 2x 3) 2
3
(9x 2) 2
1
y= 3
(9C − 2x 3) 2
27x 3
27x 3
y= 3
(C − 2x 3) 2
y′ = y 2 sin x + y cot x
Solution:
y′ − y cot x = y 2 sin x
51


Differential Equations Workbook
Divide through by y n = y 2.
y′ y cot x y 2 sin x
− =
y2 y2 y2
v′ = − y −2 y′
y −2 y′ = − v′
To find the solution to the linear equation, we’ll find the integrating factor,
I(x) = e ∫ cot x dx
I(x) = e ln sin x
I(x) = sin x
52











Differential Equations Workbook
Reverse the product rule for derivatives to rewrite the left side,
d
(v sin x) = − sin2 x
dx
d
∫ dx ∫
(v sin x) = − sin2 x d x
1 1
v sin x = − x + sin x cos x + C
2 2
Solve for v.
1 1
v=− x csc x + cos x + C csc x
2 2
1 1
y −1 = − x csc x + cos x + C csc x
2 2
1 1 1
= − x csc x + cos x + C csc x
y 2 2
1
y=
− 12 x csc x + 1
2
cos x + C csc x
53
Differential Equations Workbook
y
y′ − + y=0
x
Solution:
1 1 1
y′y − 2 − y2 = − 1
x
1
Our substitution is v = y 2 , so we’ll differentiate to get
1 −1
v′ = y 2 y′
2
1
and then solve this for y − 2 y′.
1
y − 2 y′ = 2v′
1
2v′ − v = − 1
x
54










Differential Equations Workbook
Multiplying through by 1/2 puts the equation into standard form of a linear
differential equation.
1 1
v′ − v = −
2x 2
To find the solution to the linear equation, we’ll find the integrating factor,
1
∫ − 2x dx
I(x) = e
1
I(x) = e − 2 ln x
1
I(x) = 1
x2
1 1 1 1 1
v′ − 1 v=−
1
x2 x2 2x 2 x 12
1 1 1
1
v′ − 3
v=− 1
x2 2x 2 2x 2
Reverse the product rule for derivatives to rewrite the left side,
d x ( x 12 )
d 1 1
v =− 1
2x 2
∫ d x ( x 12 ) ∫ 2x 12
d 1 1
v = − dx
55



Differential Equations Workbook
1 1
1
v = − x2 + C
x2
Solve for v.
1
v = − x + Cx 2
1
Use v = y 2 to back-substitute for v,
1 1
y 2 = − x + Cx 2
Once we have this general solution, we recognize from the initial condition
y(1) = 0 that x = 1 and y = 0, so we’ll plug these values into the general
solution to solve for C.
1
0 = (C(1) 2 − 1)2
0 = (C − 1)2
0=C−1
C=1
56
Differential Equations Workbook
2 y2
y′ + y = 2
x x
Solution:
y′ 2y y2
+ =
y 2 xy 2 x 2y 2
−2 2 −1 1
y′y + y = 2
x x
v′ = − y −2 y′
y −2 y′ = − v′
2 −1 1
y′y −2 + y = 2
x x
2 1
−v′ + v= 2
x x
2 1
v′ − v=− 2
x x
To find the solution to the linear equation, we’ll find the integrating factor,
57











Differential Equations Workbook
2
I(x) = e ∫ − x dx
I(x) = e −2 ln x
−2
I(x) = e ln x
1
I(x) =
x2
1 2 1 1 1
v′ − v = −
x2 x x2 x2 x2
1 2 1
v′ − v = −
x2 x3 x4
Reverse the product rule for derivatives to rewrite the left side,
d x ( x2 )
d 1 1
v = −
x4
∫ d x ( x2 ) ∫ x4
d 1 1
v = − dx
1 1
v = +C
x 2 3x 3
Solve for v.
1
v= + Cx 2
3x
58


Differential Equations Workbook
1
y −1 = + Cx 2
3x
1 1
= + Cx 2
y 3x
1
y= 1
3x
+ Cx 2
Once we have this general solution, we recognize from the initial condition
y(1) = 1 that x = 1 and y = 1, so we’ll plug these values into the general
solution to solve for C.
1
1= 1
3(1)
+ C(1)2
1
1= 1
3
+C
1
1= +C
3
2
C=
3
1
y= 1
3x
+ 23 x 2
59
Differential Equations Workbook
3y′ + 2y = xy 5
Solution:
2 1 5
y′ + y = xy
3 3
Divide through by y n = y 5.
y′ 2y xy 5
+ 5 = 5
y 5 3y 3y
−5 2 −4 x
y′y + y =
3 3
v′ = − 4y −5 y′
1
y −5 y′ = − v′
4
60









Differential Equations Workbook
1 2 x
− v′ + v =
4 3 3
8 4x
v′ − v=−
3 3
To find the solution to the linear equation, we’ll find the integrating factor,
8
I(x) = e ∫ − 3 dx
8
I(x) = e − 3 x
8 4x
v′ − v=−
3 3
8 8 8 4x 8
e − 3 x v′ − e − 3 x v = − e − 3 x
3 3
Reverse the product rule for derivatives to rewrite the left side,
d 8 4 8
(ve − 3 x) = − xe − 3 x
dx 3
d 4
∫ dx ∫ 3
8 8
(ve − 3 x) = − xe − 3 x d x
− 83 x 1 −8 x
ve = e 3 (8x + 3) + C
16
Solve for v.
61




Differential Equations Workbook
1 8
v= (8x + 3) + Ce 3 x
16
1 8
y −4 = (8x + 3) + Ce 3 x
16
1 1 8
= (8x + 3) + Ce 3x
y 4 16
1
y4 = 1 8
16
(8x + 3) + Ce 3 x
1
y=
1 8
4
16
(8x + 3) + Ce 3 x
Once we have this general solution, we recognize from the initial condition
y(0) = 2 that x = 0 and y = 2, so we’ll plug these values into the general
solution to find C.
1
2=
1 8
4
16
(8(0) + 3) + Ce 3 (0)
1
2=
3
4
16
+C
1
16 = 3
16
+C
62
Differential Equations Workbook
3 1
+C =
16 16
1
C=−
8
1
y=
1
+ 3) − 18 e 3 x
8
4
16
(8x
63
Differential Equations Workbook
HOMOGENEOUS EQUATIONS
x 2yy′ = x 3 + xy 2
Solution:
x 2y x3 xy 2
y′ = 2 + 2
x 2y x y x y
x y
y′ = +
y x
1
v + xv′ = v +
v
1
xv′ =
v
dv 1
x =
dx v
64







Differential Equations Workbook
1
v dv = dx
x
1
∫ ∫x
v dv = dx
v2
= ln x + C
2
v 2 = 2 ln x + C
v=± 2 ln x + C
Back-substitute for v.
y
=± 2 ln x + C
x
y = ± x 2 ln x + C
Solution:
65



Differential Equations Workbook
2xy + y 2
y′ = 2
x + xy
We’ll multiply through the numerator and denominator on the right side by
1/x 2.
1
2
2xy + y x2
y′ = ⋅
x + xy
2 1
x2
1 2 1
2xy + y
x2 x2
y′ =
x 2 12 + xy 12
x x
y y2
2x +
x2
y′ = y
1+ x
2v + v 2
v + xv′ =
1+v
2v + v 2
xv′ = −v
1+v
2v + v 2 − v − v 2
xv′ =
1+v



66







Differential Equations Workbook
v
xv′ =
1+v
dv v
x =
dx 1 + v
1+v 1
dv = d x
v x
1+v 1
∫ v ∫x
dv = dx
ln v + v = ln x + C
e ln v+v = e ln x+C
ve v = Cx
Back-substitute for v.
y y
e x = Cx
x
y
ye = Cx 2
x
3. Rewrite the homogeneous equation in terms of y/x, but don’t solve the
separable equation.
yy′ − x = x2 + y2
67


Differential Equations Workbook
Solution:
yy′ = x2 + y2 + x
x2 + y2 + x
y′ =
y
Break the fraction in two, then bring the entire first fraction under the root.
x2 + y2 x
y′ = +
y y
x2 + y2 x
y′ = +
y2 y
Split the fraction under the root in two, simplify, then rewrite the fractions
to put them in terms of y/x.
x2 x
y′ = +1+
y2 y
1 1
y′ = +1 + y
(x)
y 2
x
y 2
2 − x2
xyy′ = x e + y2
Solution:
y 2
2 − x2
xyy′ x e y2
= +
xy xy xy
x − y22 y
y′ = e x +
y x
1 −v 2
v + xv′ = e + v
v
1 −v 2
xv′ = e
v
dv 1 2
x = e −v
dx v
2 1
ve v dv = dx
x
69







Differential Equations Workbook
1
∫ ∫x
2
ve v dv = dx
1 v2
e = ln x + C
2
2
e v = 2 ln x + C
v 2 = ln | 2 ln x + C |
v=± ln | 2 ln x + C |
Back-substitute for v.
y
=± ln | 2 ln x + C |
x
y = ± x ln | 2 ln x + C |
x 2y′ = 3xy + 2y 2
Solution:
x 2y′ 3xy 2y 2
= 2 + 2
x2 x x
70


Differential Equations Workbook
3y 2y 2
y′ = + 2
x x
v + xv′ = 3v + 2v 2
xv′ = 2v + 2v 2
dv
x = 2v + 2v 2
dx
1 1
dv = dx
2v + 2v 2 x
1 1
∫ 2v + 2v 2 ∫x
dv = dx
1
(ln v − ln(v + 1)) = ln x + C
2
ln v − ln(v + 1) = 2 ln x + C
v
ln = 2 ln x + C
v+1
v
ln = ln x 2 + C
v+1
v
= Cx 2
v+1
71





Differential Equations Workbook
v = Cx 2v + Cx 2
v(1 − Cx 2) = Cx 2
Cx 2
v=
1 − Cx 2
Back-substitute for v.
y Cx 2
=
x 1 − Cx 2
Cx 3
y=
1 − Cx 2
Once we have this general solution, we recognize from the initial condition
y(1) = 1 that x = 1 and y = 1, so we’ll plug these values into the general
solution to solve for C.
C
1=
1−C
1−C =C
1
C=
2
x3
y=
2 − x2
72
Differential Equations Workbook
xy′ + y ln x − y = y ln y
Solution:
xy′ = y ln y − y ln x + y
y y y
y′ = ln y − ln x +
x x x
y y y
y′ = ln +
x x x
v + xv′ = v ln v + v
xv′ = v ln v
dv
x = v ln v
dx
1 1
dv = d x
v ln v x
73








Differential Equations Workbook
1 1
∫ v ln v ∫x
dv = dx
ln(ln v) = ln x + C
ln v = Cx
v = Ce x
Back-substitute for v.
y
= Ce x
x
y = Cxe x
Once we have this general solution, we recognize from the initial condition
y(1) = 1 that x = 1 and y = 1, so we’ll plug these values into the general
solution to solve for C.
1 = Ce
1
C=
e
1 x
y= xe
e
y = xe x−1
74
Differential Equations Workbook
EXACT EQUATIONS
dy
2xy + (x 2 − y 2) =0
dx
Solution:
∂M ∂N
=
∂y ∂x
∂ ∂
(2xy) = (x 2 − y 2)
∂y ∂x
2x = 2x
The functions M(x, y) and N(x, y) are equally easy to integrate, so we’ll just
use M(x, y), and then Ψ can be given by
∫
Ψ = M(x, y) d x + h(y)
∫
Ψ = 2xy d x + h(y)
Ψ = x 2y + h(y)
75
Differential Equations Workbook
Ψy = x 2 + h′(y)
x 2 − y 2 = x 2 + h′(y)
−y 2 = h′(y)
To find h(y), we’ll integrate both sides of this equation with respect to y.
∫ ∫
− y 2 dy = h′(y) dy
y3
− + k1 = h(y) + k2
3
y3
h(y) = − + k1 − k2
3
y3
h(y) = k −
3
Plugging this value for h(y) into the equation for Ψ gives
Ψ = x 2y + h(y)
y32
Ψ=x y+k−
3
2 y3
c1 = x y + k −
3
76





Differential Equations Workbook
2y3
c1 − k = x y −
3
2 y3
c =x y−
3
(6y + xe −y) dy − e −y d x = 0
Solution:
∂M ∂N
=
∂y ∂x
∂ ∂
(−e −y) = (6y + xe −y)
∂y ∂x
e −y = e −y
The functions M(x, y) and N(x, y) are equally easy to integrate, so we’ll just
use M(x, y), and then Ψ can be given by
∫
Ψ = M(x, y) d x + h(y)
∫
Ψ = − e −y d x + h(y)
77
Differential Equations Workbook
Ψ = − xe −y + h(y)
Ψy = xe −y + h′(y)
6y + xe −y = xe −y + h′(y)
6y = h′(y)
To find h(y), we’ll integrate both sides of this equation with respect to y.
∫ ∫
6y dy = h′(y) dy
3y 2 + k1 = h(y) + k2
h(y) = 3y 2 + k1 − k2
h(y) = 3y 2 + k
Plugging this value for h(y) into the equation for Ψ gives
Ψ = − xe −y + h(y)
Ψ = − xe −y + 3y 2 + k
c1 = − xe −y + 3y 2 + k
78





Differential Equations Workbook
c1 − k = − xe −y + 3y 2
c = − xe −y + 3y 2
(5 sin y − x 3) d x + a x cos y dy = 0
Solution:
Since the equation is exact, we can use our partial derivatives test to find
the value of a.
∂M ∂N
=
∂y ∂x
∂ ∂
(5 sin y − x 3) = (a x cos y)
∂y ∂x
5 cos y = a cos y
79
Differential Equations Workbook
(2 )
x2
(x sin y − 2x) d x + cos y − 2y dy = 0
Solution:
∂M ∂N
=
∂y ∂x
∂x ( 2 )
∂ ∂ x2
(x sin y − 2x) = cos y − 2y
∂y
x cos y = x cos y
The functions M(x, y) and N(x, y) are equally easy to integrate, so we’ll just
use M(x, y), and then Ψ can be given by
∫
Ψ = M(x, y) d x + h(y)
∫
Ψ = (x sin y − 2x) d x + h(y)
x2
Ψ= sin y − x 2 + h(y)
2
x2
Ψy = cos y + h′(y)
2
80

Differential Equations Workbook
x2 x2
cos y − 2y = cos y + h′(y)
2 2
−2y = h′(y)
To find h(y), we’ll integrate both sides of this equation with respect to y.
∫ ∫
− 2y dy = h′(y) dy
−y 2 + k1 = h(y) + k2
h(y) = − y 2 + k1 − k2
h(y) = − y 2 + k
Plugging this value for h(y) into the equation for Ψ gives
x2
Ψ= sin y − x 2 + h(y)
2
x2
Ψ= sin y − x 2 − y 2 + k
2
x2
c1 = sin y − x 2 − y 2 + k
2
x2
c1 − k = sin y − x 2 − y 2
2
81




Differential Equations Workbook
x2
c= sin y − x 2 − y 2
2
( y )
a2x
(2 cos x + 4 ln y) d x + + e y dy = 0
Solution:
Since the equation is exact, we can use our partial derivatives test to find
the value of a.
∂M ∂N
=
∂y ∂x
∂x ( y )
∂ ∂ a2x
(2 cos x + 4 ln y) = + ey
∂y
4 a2
=
y y
a2 = 4
a =±2
82
Differential Equations Workbook
The partial derivatives are equal when a = ± 2, which means the equation is
exact when a = ± 2.
(x cos y + e y) dy + (e x + sin y) d x = 0
Solution:
∂M ∂N
=
∂y ∂x
∂ x ∂
(e + sin y) = (x cos y + e y)
∂y ∂x
cos y = cos y
The functions M(x, y) and N(x, y) are equally easy to integrate, so we’ll just
use M(x, y), and then Ψ can be given by
∫
Ψ = M(x, y) d x + h(y)
∫
Ψ = (e x + sin y) d x + h(y)
Ψ = e x + x sin y + h(y)
83
Differential Equations Workbook
Ψy = x cos y + h′(y)
e y = h′(y)
To find h(y), we’ll integrate both sides of this equation with respect to y.
∫ ∫
e y dy = h′(y) dy
e y + k1 = h(y) + k2
h(y) = e y + k1 − k2
h(y) = e y + k
Plugging this value for h(y) into the equation for Ψ gives
Ψ = e x + x sin y + h(y)
Ψ = e x + x sin y + e y + k
c1 = e x + x sin y + e y + k
c1 − k = e x + x sin y + e y
84





Differential Equations Workbook
c = e x + x sin y + e y
85
Differential Equations Workbook
86