MATH 218 Fall 2009 Assignment 1 Solutions: Part I: Problems From Problem Set 1 in The Course Notes
MATH 218 Fall 2009 Assignment 1 Solutions: Part I: Problems From Problem Set 1 in The Course Notes
Assignment 1 Solutions
y = x + k e−x ,
y 0 = 1 − k e−x .
y 0 = 1 − y + x,
• Since y 0 < 0 when y > x + 1, solutions above the line y = x + 1 are decreasing. Similarly,
solutions below the line y = x + 1 are increasing.
• Since y 00 = k e−x , solutions are concave up when k > 0 and concave down when k < 0.
1
y
y = x, k = 0
k>0 k increasing
k<0
y =x+1
y 0 = −2xy + 2x3 .
So, write
³ 2 ´0 Z
x2 0 x2 3 x2 x 3 x2 x2 2
e y + 2x e y = 2x e =⇒ e y = 2x e =⇒ e y = 2x3 ex dx.
Then,
Z
−x2 2
y=e 2x3 ex dx. (1)
To evaluate the integral in (1), use the substitution u = x2 (which has du = 2xdx) to obtain
Z Z
3 x2
2x e dx = u eu du. (2)
Using integration by parts on the new integral in (2) with p = u and dq = eu du (which has
dp = du and q = eu ) gives
Z Z Z
3 x2 u u 2 ¡ ¢
2x e dx = u e du = u e − eu du = u eu − eu + C = ex x2 − 1 + C,
1
Note that exp(x) is another way of writing ex .
2
y
y = x2 C>0 y = x2 − 1, C = 0
C<0 C increasing
2
y = x2 − 1 + C e−x .
(b) A sketch of the general solution is given in Figure 2. To help us make the sketch, we can make
the following observations.
• Since y 0 = 0 when y = x2 or when x = 0, the curve y = x2 and the line x = 0 are horizontal
isoclines.
• Since y 0 > 0 when x < 0 and y > x2 , solutions are increasing in this region. Similarly,
solutions are increasing when x > 0 and y < x2 , solutions are decreasing when x < 0 and
y < x2 , and solutions are decreasing when x > 0 and y > x2 .
dy
= 1 − y2.
dx
3
(a) Observe that y = 1 and y = −1 are constant solutions. Assume that y 6= 1 and y 6= −1. Then,
we can write
Z Z
1
dy = 1 dx.
(1 − y) (1 + y)
Using partial fractions,
Z µ ¶ Z
1 1
+ dy = 2 dx.
1−y 1+y
Integrating and simplifying, we obtain
¯ ¯
¯1 + y ¯
¯
ln ¯ ¯ + C1 = 2x,
1 − y¯
where C1 ∈ R is arbitrary. Taking the exponential of both sides and removing the absolute
values, µ ¶
1+y
C = e2x ,
1−y
where C ∈ R\ {0} is arbitrary (note that C = ±eC1 ). Solving for y,
1 − C e−2x
y= .
1 + C e−2x
1 − C e−2x
y= for C ∈ R and y = −1.
1 + C e−2x
To help us sketch the general solution, first recall that the hyperbolic tangent and cotangent
functions are given by
It follows that
¡ ¢ ¡ ¢
1 − e−2a e−2x 1 + e−2a e−2x
tanh(x + a) = and coth(x + a) = .
1 + (e−2a ) e−2x 1 − (e−2a ) e−2x
Comparing this with the general solution, we see that for |y| < 1 the solutions are horizontally-
translated hyperbolic tangents and for |y| > 1 the solutions are horizontally-translated hyper-
bolic cotangents. Note that there are other ways we could have sketched the general solution.
4
y
y=1
y = −1
Figure 3: Graph of the general solution in Question 2(ix). The dashed lines are vertical asymptotes.
5
Question 4(iv) [4 marks]
d
where 0 = dx . The differential equation is separable and thus
Z Z
−y
e dy = e−x dx =⇒ −e−y + C = −e−x =⇒ e−y = e−x + C.
Set x = 0 and y = ln(2) to see that C = − 12 . Thus, the solution of the initial value problem is
¡ ¢
y = −ln e−x − 21 .
Since the argument of the natural logarithm must be strictly positive, the solution is valid for
x < ln(2) .
Question 10 [4 marks]
dv gR2
v =− 2 , v(R) = vinit ,
dr r
where r is the distance from the centre of the planet, R is the radius of the planet, vinit > 0 is the
initial velocity, and g is the acceleration due to gravity.
2gR2
v 2 = vinit
2
− 2gR + . (3)
r
(b) The escape velocity is the smallest initial velocity vesc such that v(r) > 0 for all r > 0. To find
this velocity, let vinit = vesc , r → ∞, and v(r) → 0 in (3) to obtain
p
vesc = 2gR.
6
Part II: Additional Problems
Question 1 [4 marks]
dy
+ ex y = 2 ex , y(0) = 3.
dx
An integrating factor is µZ ¶
µ(x) = exp e dx = exp(ex ) .
x
d
(exp(ex ) y(x)) = 2 ex exp(ex ) .
dx
Set x = 0 and y = 3 (the initial condition) to obtain C = e. The solution is thus given by
y = exp(1 − ex ) + 2.
Question 2 [4 marks]
y 00 + y 0 = 1,
d
where 0 = dx . If we let u = y 0 then the differential equation becomes