Docsity

Sample Test 1 with Solution - Differential Equations | MATH 301, Exams of Differential Equations

Toggle sidebar
bg1
MATH 301: DIFFERENTIAL EQUATIONS
SAMPLE TEST 1 SOLUTIONS
1. [20 points] (a) Note that
y0= 3c1e3x+c2e3x+ 3c2xe3x
y00 = 9c1e3x+ 3c2e3x+ 3c2e3x+ 9c2xe3x:
Insert these into the given DE and note that the terms on the right hand side cancel out to
verify the solution:
9c1e3x+ 3c2e3x+ 3c2e3x+ 9c2xe3x6(3c1e3x+c2e3x+ 3c2xe3x) + 9(c1e3x+c2xe3x)?
= 0
9c1e3x+ 6c2e3x18c1e3x6c2e3x+ 9c1e3x+ 9c2xe3x18c2xe3x+ 9c2xe3x= 0 X
(b) Using the given inital values we have
2 = y(0) = c1, and 0 = y0(0) = 3c1+c2:
From the …rst equality we get c1= 2 so using the second equation 6 + c2= 0 or c2=6:The
(unique) solution is
y= 2e3x6xe3x= 2e3x(1 3x):
2. [20 points] (a) We solve y34y= 0 =)y(y2)(y+ 2) = 0 to …nd 3 c.p. at y= 0;2:
(b) The phase portrait will have up-arrows where y > 2and where 2< y < 0because the
derivative y0>0in those intervals. Similarly, there are down-arrows where y < 2and where
0< y < 2since y0<0:Thus the c.p. y= 0 is asymptotically stable and both of the c.p. at y=2
are unstable. These details should be sketched by hand.
(c) Using the information from the phase portrait, we draw typical or sample solution curves
in 4 regions of the xy-plane. In regions where y > 2and where 2< y < 0the curves must
be increasing and approach the values y= 0;2in an asymptotic fashion (in praticular, without
crossing). Similarly, in regions where y < 2and where 0< y < 2the curves must be decreasing.
These details should be sketched by hand.
3. [12 points] Separate variables and integrate as follows
Zy+ 1
ydy =Z3x2dx =)Z1 + 1
ydy =x3+c=)y+ ln jyj=x3+c:
Next use the given initial value to calculate cas
1 + ln j1j= 13+c=)c= 0:
1
pf3

Partial preview of the text

Download Sample Test 1 with Solution - Differential Equations | MATH 301 and more Exams Differential Equations in PDF only on Docsity!

MATH 301: DIFFERENTIAL EQUATIONS

SAMPLE TEST 1 SOLUTIONS

  1. [20 points] (a) Note that

y^0 = 3c 1 e^3 x^ + c 2 e^3 x^ + 3c 2 xe^3 x y^00 = 9c 1 e^3 x^ + 3c 2 e^3 x^ + 3c 2 e^3 x^ + 9c 2 xe^3 x:

Insert these into the given DE and note that the terms on the right hand side cancel out to verify the solution:

9 c 1 e^3 x^ + 3c 2 e^3 x^ + 3c 2 e^3 x^ + 9c 2 xe^3 x^ 6(3c 1 e^3 x^ + c 2 e^3 x^ + 3c 2 xe^3 x) + 9(c 1 e^3 x^ + c 2 xe^3 x) = 0? 9 c 1 e^3 x^ + 6c 2 e^3 x^ 18 c 1 e^3 x^ 6 c 2 e^3 x^ + 9c 1 e^3 x^ + 9c 2 xe^3 x^ 18 c 2 xe^3 x^ + 9c 2 xe^3 x^ = 0 X

(b) Using the given inital values we have

2 = y(0) = c 1 , and 0 = y^0 (0) = 3c 1 + c 2 :

From the Örst equality we get c 1 = 2 so using the second equation 6 + c 2 = 0 or c 2 = 6 : The (unique) solution is y = 2e^3 x^ 6 xe^3 x^ = 2e^3 x(1 3 x):

  1. [20 points] (a) We solve y^3 4 y = 0 =) y(y 2)(y + 2) = 0 to Önd 3 c.p. at y = 0;  2 : (b) The phase portrait will have up-arrows where y > 2 and where 2 < y < 0 because the derivative y^0 > 0 in those intervals. Similarly, there are down-arrows where y < 2 and where 0 < y < 2 since y^0 < 0 : Thus the c.p. y = 0 is asymptotically stable and both of the c.p. at y =  2 are unstable. These details should be sketched by hand. (c) Using the information from the phase portrait, we draw typical or sample solution curves in 4 regions of the xy-plane. In regions where y > 2 and where 2 < y < 0 the curves must be increasing and approach the values y = 0;  2 in an asymptotic fashion (in praticular, without crossing). Similarly, in regions where y < 2 and where 0 < y < 2 the curves must be decreasing. These details should be sketched by hand.

  2. [12 points] Separate variables and integrate as follows Z ^ y + 1 y

dy =

Z

3 x^2 dx =)

Z 

y

dy = x^3 + c =) y + ln jyj = x^3 + c:

Next use the given initial value to calculate c as

1 + ln j 1 j = 1^3 + c =) c = 0:

  1. [16 points] (a) The DE is Örst order and linear because the coe¢ cient functions a 1 = x and a 0 = x + 1 as well as the function on the other side g(x) = ex^ sin(2x) are all independent of the function y: The deÖnition in Section 1.1 is satisÖed. (b) Assuming that x 6 = 0 we divide the DE by x to get the standard form

y^0 + x^ + 1 x

y = e

x (^) sin(2x) x

Next compute the integrating factor to Önd (x) = e

R (^) x+ x dx^ = e

R (1+^1 x )dx^ = ex+ln^ jxj^ = exx

Note that we were able to remove the absolute value because the condition x 6 = 0 above requires that x > 0 or x < 0. Since we want to eventually use the initial value at x =  we take x > 0 and remove the absolute value. Now we Önd the solution of the DE as

y = 1 xex

c +

Z

xex^ e

x (^) sin(2x) x

dx

= c xex^

xex

Z

sin(2x)dx = c xex^

cos(2x) 2 xex^

= c^0 ^ cos(2x) 2 xex

where c 0 = 2c: Finally, we can Önd c 0 using the given inital value

0 = y() =

c 0 cos(2) 2 e^ =)^ c^0 = cos(2) = 1: Thus the (unique) solution of the IVP is

y =^1 ^ cos(2x) 2 xex and the largest interval of deÖnition is x > 0 or (0; 1 ):

  1. [20 points] (a) This DE is both separable and linear. Solving as linear gives an explicit solution directly as follows

dy dx

ye^2 x^ = 0 =) (x) = e

R (^) e 2 xdx = ee^2 x=^2 =)

y =

ee^2 x=^2

 Z

ee^2 x=^2  0 dx + c

= cee^2 x=^2 :

We may also solve by separation of variables Z 1 y

dy =

Z

e^2 xdx =) ln jyj =^1 2

e^2 x^ + c =) y = c 0 ee^2 x=^2 ; c 0 = ec:

(b) The DE is linear (not separable and not exact). Solving as linear gives dy dx ^ y^ =^ e

2 x (^) =) (x) = e^ R^ 1 dx (^) = ex (^) =)

y =

ex

 Z

exe^2 xdx + c

= ex(ex^ + c) = e^2 x^ + cex: