Practice Questions 1
Practice Questions 1
1.
+ 2xy = 0
by separation of variables.
Solution dy y
= 2xd x
dy y
= 2
xd x
ln |y| = x2 + C1 = CeN ,
y = e+ eN
+1
x
by separation of variables.
Solution dy y
+1
1
x
dx
dy
+1 x y + 1 = e+ x
dx
ln |y + 1| = ln |x| + C1
y
= Cx 1 ,
(1 + x4 )d y + x(1 + 4y2 )d x = 0,
(1) = 0.
dy
1 + 4y2
xd x
1 + x4
dy
1 + 4y 2
xd x
1 + x4
(1)
where the integrations can be done as (ref. to the table of integrals if necessary)
dy
xd x
1 1 tan (2y) 2
(2)
1 + x4
dx
1 2
dv
1 + v2
(3)
Substituting (2) and (3) back into (1) gives tan1 (2y) + tan1 (x2 ) = 2C. 1
= .
p 8
p . 4
dy dt
+ t y = y,
(1) = 3.
Solution
= (1 t )dt .
Then
dy y
(1 t )dt
t
ln |y| = t
|y| = e+ eJ
y
+ C1
J
= e+ eJ = CeJ ,
J
= 3e .
J
= 3eJ
5.
Solution
N (x, y) M (x, y) = 3y 2 = y x
and the DE is exact. We want to construct F (x, y) such that
F x y
(4) (5)
M x y dx
( , )=
( , )
+ g(y) =
(x3 + y3 )d x + g(y) =
+ xy3 + g(y).
(6)
F = 3xy2 + g (y). y
Equating (7) with (5) gives 3xy2 + g (y) = 3xy2 g(y) = 0. (You can also choose g(y) = C1 , but this C1 will be absorbed by a new constant.) Substituting this back into (6) gives
F x y
(7)
( , )=
+ xy3 .
+ xy3 = C ,
C x
3 )!
6.
Solution
F x y
(8) (9)
( , )=
M x y dx
( , )
+ g(y) =
(10)
F = x3 + xeO + g (y). y
Equating (11) with (9) gives
x
(11)
( ) = y2 .
( , ) = x3 y + xeO y2 .
+ xeO y2 = C .
7.
3y 2 x 2
5 y
dy dx
2y4
= 0,
(1) = 1.
Solution.
3y2 x2
5 y
)
dy
2y4
dx
=0
and let M (x, t ) = 3O ON and N (x, y) = 2N" . It is easy to check that the DE is exact. By the # O standard approach, construct
F x y
M x y dy
( , )=
( , )
+ h(x) =
3y 2 x 2
y
dy
+ h(x) =
2 3 x + 4 + h(x). 2y 2 4y
2y
+ h (x) = 4
2y4 h(x) = 0.
2 3 x + 4 =C 2y2 4y
3 2
1 = C, 4
= .
5 4
8.
2 x 5 3 + 4 = . 2 2y 4y 4
y x
dx
1
x
1
y
)
dy
= 0.
M (x, y)
dy
2 x
N (x, y)
dx
F x y
( , )=
M x y dx
( , )
+ g(y) =
y x
+ g(y).
( ) = ln |y| .
+ ln |y| = C .
9.
+ 2xy = x3
and state the largest interval on which the general solution is dened, i.e. the solution as a function of x is well-dened.
Solution.
This is a linear rst-order DE (with p(x) = 2x in its standard form). The integrating factor is given by m (x) = e F(N)@N = eN
dy e dx
or which gives
(
ye
= x 3 eN ,
3
ye
N =
x e
dx
N e
1 2 N dx = x e 2
xe
dx
1 2 N 1 N x e e + C. 2 2 1 2
Therefore
1 2 N 1 N y = x e e +C 2 2
)
e
= (x2 1) + CeN .
+ y cot x = 2cos x
or
which gives
y
sin x =
sin x
+ (xy + 2y 2eN )d x = 0, ( )
(1) = 0.
+ 1+
2
x
2
x
m (x) = e
Multiplying this to the DE gives
dy dx
(1+ N )@N
= eN+2 ln|N| = x2 eN .
x e
N + y (x2 + 2x) eN = 2x
or
yx
N) = e
2xd x = x2 + C.
C x
= (1 +
)eN .
= (1
1
x
)eN .
12.
{ + y = f (x) :=
1, 0 x 3, 0, x > 3,
(0) = 0.
Solution.
We can rst solve the IVP on [0, 3). The DE is separable and can be written as
dy
1y
= d x.
= 1 CeN .
By the initial condition 0 = 1 C C = 1. The solution to the IVP (valid on [0, 3)) is given by
y
= 1 eN .
(3) = lim (1 eN ) = 1 e3 , N3
which, together with the DE for x > 3, denes another IVP on [3, ). The DE now becomes
dy dx
= y,
which is still a separable one and can be solved by integration. The general solution is given by
y
= CeN .
Applying the initial condition gives 1 e3 = Ce3 3 C = e 1. Therefore the solution to the IVP on [3, ) is given by
y
= (e3 1)eN .
Combining this with the previous solution, we nd the continuous solution for the original IVP as { 1 eN , 0 x 3, y = 3 1)eN , x > 3. (e
13.
Solution.
( y )2
x
.
x
(12)
= v+x
dv dx
(13)
+x
dv dx
= v2 v =
dx x
or
v
dv
2 + 2v
1 1 1 d v = ln |x| + C1 2 v v+2 1 (ln |v| ln |v + 2|) = ln |x| + C1 2 ln |v| ln |v + 2| = 2ln |x| + 2C1 v 1 = 2 e2+ v+2 x
v v
2 v + 2v
dx x
+2
C x
+ 2x
C x
and
y
=
x
2 C
2Cx
14.
y =
2 + y2
=
y x
1+
( y )2
x
(14)
= v+x
dv dx
(15)
+x
dv dx
= v+
1 + v2
,
or
dv
dx
dv
dx
+ +
1+
( y )2
x
= Cx
2 + y2
= Cx2
dy
dx
+ y = 1,
(0) = 4.
.
Hint: Daniel Bernoulli (February 8, 1700 - March 17, 1782) was a Dutch-born mathematician who spent much of his life in Basel, Switzerland where he died
Solution.
+ p(x)y = f (x)yH ,
!
dy du du dx
2 ! du u 3 dx
Wikipedia,
http://en.wikipedia.org/wiki/Daniel_Bernoulli.
10
( ) 2 du u ! + u! = u! , 3 dx
du
2 du u ! + y = y 3 dx
3 3 u = . dx 2 2 This linear rst-order DE (also separable) can be solved easily and the solution is
+
u
! = 1 Ce N . ! = 1 Ce N .
Substituting u = y gives
y
= 1 + 7e
dy dx
!N
16.
Solution.
gives
= 1+
dy dx
= 1 + sin(x + y) = 1 + sin u.
1 + sin u where the integration in the LHS can be computed as du sin ud u du 1 sin u du = = 2 1 + sin u 1 + sin u 1 sin u 1 sin u 1 sin2 u du sin ud u d [cos u] = = sec2 ud u + 2u 2u cos cos cos2 u = tan u sec u, which gives tan u sec u = x + C. Substituting u = x + y back into the previous equation gives tan(x + y) sec(x + y) = x + C as the general solution. 11
dx
= x + C,