Professional Documents
Culture Documents
20d Homework Assignment 1 Ucsd Mathematics
20d Homework Assignment 1 Ucsd Mathematics
MATH 20D
Homework Assignment 1
October 7, 2013
(3) y 0 + y 2 sin x = 0
(4) y 0 = (3x2 − 1)/(3 + 2y)
(6) xy 0 = (1 − y 2 )1/2
All of the equations in this set are separable, so our goal should be to get the terms involving y on the
left side and the terms involving x on the right side. I will rewrite y 0 as dy/dx for these problems.
(1) We separate and then integrate:
dy
= x2 /y
dx
=⇒ ydy = x2 dx [separating variables]
y2 x3
=⇒ = + C [integrating]
2 3r
2x3
=⇒ y = ± + C [solving for y]
3
1
(4) We separate and then integrate:
dy
= (3x2 − 1)/(3 + 2y)
dx
=⇒ (3 + 2y)dy = (3x2 − 1)dx [separating variables]
=⇒ 3y + y 2 = x3 − x + C [integrating]
=⇒ (y + 3/2)2 = x3 − x + C [completing the square]
p
=⇒ y = ± x3 − x + C − 3/2 [solving for y]
dy
x = (1 − y 2 )1/2
dx
dx
=⇒ (1 − y 2 )−1/2 dy = [separating variables]
x
=⇒ sin−1 (y) = ln |x| + C [integrating]
=⇒ y = sin(ln |x| + C) [solving for y]
2
2.2 #9a, 17a, 19a Find the solution of the given initial value problem in explicit form.
(9a) y 0 = (1 − 2x)y 2 , y(0) = −1/6
(17a) y 0 = (3x2 − ex )/(2y − 5), y(0) = 1
First, we should clarify what it means to find an explicit solution - an explicit solution is a solution of
the form y = f (x) (as opposed to something like y 2 + y = x3 + 1). Once again, for each problem, I will write
y 0 as dy/dx for ease of separation.
3
(19a) We separate and then integrate:
Next, we plug in our initial condition (which says that when x = π/2, we have y = π/3):
1 1
sin(3(π/3)) =cos(2(π/2)) + C
3 2
1 1
=⇒ sin(π) = cos(π) + C
3 2
1
=⇒ 0 = − + C
2
1
=⇒ C =
2
4
2.2 #30(abcde) Consider the equation
dy y − 4x
= . (1)
dx x−y
dy (y/x) − 4
= ; (2)
dx 1 − (y/x)
(c) Replace y and dy/dx in Equation (??) by the expressions from part (b) that involve v and dv/dx.
Show that the resulting differential equation is
dv v−4
v+x = ,
dx 1−v
or
dv v2 − 4
x = (3)
dx 1−v
. Observe that Equation (??) is separable
(d) Solve Equation (??), obtaining v implicitly in terms of x.
(e) Find the solution of Equation (??) by replacing v by y/x in the solution in part (d).
First, I think it’s worth clarifying what homogeneous means in this context. We are using the definition
given on pages 49-50, namely ”If the right side of the equation dy/dx = f (x, y) can be expressed as a function
of the ratio y/x only, then the equation is said to be homogeneous.” Now let’s work through the problem:
(a) In order to rewrite an equation, we want to modify it in such a way that the content remains unchanged.
In this case, we achieve this by multiplying the right side of the equation by 1 in a special way.
dy y − 4x
=
dx x−y
dy 1/x y − 4x
= [multiplying by 1]
dx 1/x x − y
dy (y/x) − 4
= [simplifying]
dx 1 − (y/x)
Thus, since the right side of the equation is expressed solely in terms of ”y/x”, we conclude that the
equation is homogeneous.
(b) Define v = y/x. If we solve for y, we get y = xv. Differentiating with respect to x, we use the product
rule to get
dv
dy/dx = v + x .
dx
5
dv
(c) Next, we plug substitute y/x = v and dy/dx = v + x dx :
dv v−4
v+x =
dx 1−v
dv v−4
=⇒ x = − v [rearranging]
dx 1−v
dv v − 4 v − v2
=⇒ x = − [getting a common denominator]
dx 1−v 1−v
dv v2 − 4
=⇒ x = [combining terms]
dx 1−v
dv(1 − v) dx
2
= , (4)
v −4 x
which means that this equation is separable.
(d) Now we solve Equation (??) using the separated version, Equation (??). In order to integrate the left
side of Equation (??), we will need to use partial fractional decomposition. We need to find A and B
such that
1−v A B A(v + 2) + B(v − 2) (A + B)v + (2A − 2B)
2
= + = 2
= .
v −4 v−2 v+2 v −4 v2 − 4
Thus, comparing the terms with v we see that −1 = A + B, and comparing the constant terms, we see
that 1 = 2A − 2B. The first equation tells us that A = −1 − B. Pluggin this into the second equation
we get
2(−1 − B) − 2B = −4B − 2 = 1,
which we can solve to get B = −3/4. Substitution this back into our first equation, we get −1 = A−3/4,
which we can solve to get A = −1/4. Thus, we can rewrite Equation (??) as
−1/4 −3/4 dx
+ dv =
v−2 v+2 x
−1 3
=⇒ ln |v − 2| − ln |v + 2| = ln |x| + C [integrating]
4 4
6
following steps. If not, feel free to stop the problem here.
−1 y − 2x 3 y + 2x
=⇒ ln − ln = ln |x| + C [common denominator]
4 x 4 x
y − 2x −1/4 y + 2x −3/4
=⇒ ln + ln = ln |x| + C [properties of logs]
x x
y−2x −1/4 −3/4
=⇒ eln| x | |
+ln y+2x
x | = eln |x|+C [exponentiating]
−1/4 −3/4
=⇒ eln| x | eln| x |
y−2x y+2x
= eln |x| eC [properties of exponents]
−1/4 −3/4
y − 2x y + 2x
=⇒ = C|x| [simplifying, renaming C]
x x
−1/4 −3/4
−1/4 1 −3/4 1
=⇒ |y − 2x| |y + 2x| = C|x| [factoring out]
|x| |x|
=⇒ |y − 2x|−1/4 |y + 2x|−3/4 |x| = C|x| [regrouping]
=⇒ |y − 2x|−1/4 |y + 2x|−3/4 = C [dividing by |x|]
=⇒ |y − 2x||y + 2x|3 = C [raising both sides to the −4 power, renaming C]
2.2 #32b The method outlined in Problem 30 can be used for any homogeneous equation. That is, the
substitution y = xv(x) transforms a homogeneous equation into a separable equation. The latter equation
can be solved by direct integration, and the replacing v by y/x gives the solution to the original equation.
Solve the differential equation
dy x2 + 3y 2
= .
dx 2xy
(a) In order to express the right side in terms of (y/x), we need to multiply the right side by 1 in a particular
way, specifically:
x2 + 3y 2 1/x2
dy
= [multiplying by 1]
dx 2xy 1/x2
1 + 3y 2 /x2
=
2y/x
1 + 3(y/x)2
=
2(y/x)
7
(c) Now we replace (y/x) and dy/dx and rearrange to make it separable:
dy 1 + 3(y/x)2
=
dx 2(y/x)
dv 1 + 3v 2
=⇒ v + x =
dx 2v
dv 1 + 3v 2
=⇒ x = − v [subtracting]
dx 2v
2
dv 1 + 3v 2v 2
=⇒ x = − [common denominator]
dx 2v 2v
dv 1 + v2
=⇒ x = [combining terms]
dx 2v
2v dx
=⇒ dv = [rearranging]
1 + v2 x
2v dx
dv =
1 + v2 x
2
=⇒ ln(1 + v ) = ln |x| + C [integrating]
2
=⇒ eln(1+v )
= eln |x|+C [exponentiating]
2
=⇒ eln(1+v )
= eln |x| eC [properties of exponents]
=⇒ 1 + v 2 = C|x| [simplifying, renaming C]
1 + v 2 = C|x|
=⇒ 1 + (y/x)2 = C|x|
y2
=⇒ 1 + = C|x|
x2
x2 + y 2
=⇒ = C|x|
x2
=⇒ x + y = C|x|x2
2 2
2.3 #13 (abridged) The half-life of carbon-14 is approximately 5730 years. If Q(t) is the amount of
carbon-14 at time t and Q0 is the original amount, then the ratio Q(t)/Q0 ca be determined, as long as
this quantity is not too small.
(a) Assuming that Q satisfies the differential equation Q0 = −rQ, determine the decay constant r for
carbon-14.
8
(a) Let’s solve the differential equation first and see if we can answer the question. In other words, we’ll be
doing part (b) first.
dQ/dt = −rQ
=⇒ dQ/Q = −rdt [rearranging]
=⇒ ln |Q| = −rt + C [integrating]
=⇒ Q = e−rt+C [exponentiating]
=⇒ Q = Ce−rt [renaming C]
Next, we use the initial condition, namely Q(0) = Q0 . Plugging into our equation, we get
Q(0) = Ce−r(0) = C = Q0 ,
which tells us that C = Q0 . Thus, the solution to the differential equation is
Q = Q0 e−rt .
Now let’s use the half-life given in the problem statement. It tells us that after 5730 years, the remaining
amount will be half of the original amount. Written as an equation, this tells us that Q(5730) = Q0 /2.
Let’s use this to find r. We get
Q(5730) = Q0 e−r(5730) = Q0 /2
=⇒ e−r(5730) = 1/2 [dividing by Q0 ]
=⇒ −r(5730) = ln(1/2) [taking ln]
=⇒ r = − ln(1/2)/5730
= ln(2)/5730
≈ 0.00012097
(b) Looking back at part (a), we see that we basically already found this. We take our equation and plug
in the value of r that we just found.
Q = Q0 e−.00012097t
(c) If the current amount is 20% of the original, then we can write this in equation form as
Q(t) = Q0 e−.00012097t = .2Q0
=⇒ e−.00012097t = .2 [dividing by Q0 ]
=⇒ −.00012097t = ln(.2) [taking the ln of both sides]
=⇒ t = − ln(.2)/.00012097 [solving]
≈ 13304 years [simplifying]
2.3 #15 Suppose that a certain population satisfies the initial value problem
where the growth rate r(t) is given by r(t) = (1 + sin t)/5 and k represents the rate of predation.
(a) Suppose that k = 1/5. Plot y versus t for several values of y0 between 1/2 and 1.
(b) Estimate the critical initial population yc below which the population will become extinct.
(c) Choose other values of k and find the corresponding yc for each one.
(d) Use the data you have found in parts (b) and (c) to plot yc versus k.
9
To complete this problem, we must use differential equation graphing software of some variety. By trial
and error, we can find the answers by studying the graphs.
(a) [Use software to find this step - too long to show here.]
(b) By studying the graphs from step (a), we can find that yc ≈ 5/6.
(c) If we choose different values of k, we find that yc ≈ 25k/6.
(d) A graph of yc versus k would look like the following:
2.3 #17a (abridged) Heat transfer from a body to its surroundings is described by the differential
equation
du
= −α(u4 − T 4 ),
dt
where u(t) is the absolute temperature oft he body at time t, T is the absolute temperature of the surround-
ings, and α is a constant depending on the physical parameters of the body. However, if u is much larger
thatn T , then solutions of the above equation are well approximated by soutions of the simpler equation
du
= −αu4 .
dt
Suppose that a body with initial temperature 2000 K is surrounded by a medium with temperature 300 K
and that α = 2.0 × 10−12 K −3 /s.
Determine the temperature of the body at any time by solving the second equation.
Putting the above conditions into equation form, we get u(0) = 2000, T = 300, and α = 2.0×10−12 K −3 /s.
As it turns out, we don’t even need the information about T , so we plug in α and solve:
du
= −2.0 × 10−12 u4
dt
=⇒ u−4 du = −2.0 × 10−12 dt [separating]
−u−3
=⇒ = −2.0 × 10−12 t + C [integrating]
3
=⇒ u−3 = 6.0 × 10−12 t + C [multiplying and renaming C]
=⇒ u = (6.0 × 10−12 t + C)−1/3 [solving]
10
which we can solve to get C = 2000−3 . Thus, plugging back into our solution, we get
[Believe it or not, this is equivalent to the answer given in the back of the book.]
2.3 #18a Consider an insulated box (a building, perhaps) with internal temperature u(t). According to
Newton’s law of cooling, u satisfies the differential equation
du
= −k[u − T (t)],
dt
where T (t) is the ambient (external) temperature. Suppose that T (t) varies sinusoidally; for example,
assume that T (t) = T0 + T1 cos(ωt). Solve the differential equation and express u(t) in terms of t, k, T0 , T1 ,
and ω. Observe that part of your solution approaches zero as t becomes large; this is called the transient
part. The remainder of the solution is called the steady state; denote it by S(t).
du
= −k[u − (T0 + T1 cos(ωt))] [substituting for T (t)]
dt
du
=⇒ = −ku + kT0 + kT1 cos(ωt) [distributing]
dt
du
=⇒ + ku = kT0 + kT1 cos(ωt) [rearranging]
dt
du
=⇒ ekt + ku = ekt (kT0 + kT1 cos(ωt)) [integrating factor with p(t) = k]
dt
=⇒ (ekt u)0 = kT0 ekt + kT1 ekt cos(ωt) [rewriting each side]
wekt sin(ωt) + kekt cos(ωt)
=⇒ ekt u = T0 ekt + + C [using the integration below]
ω2 + k2
(w sin(ωt) + k cos(ωt))
=⇒ u = T0 + kT1 + Ce−kt [dividing]
ω2 + k2
Now we justify the integration step above using two steps of integration by parts. In integration by parts,
we have two functions u and v and use the formula
Z Z
udv = uv − vdu.
11
Warning: this one gets ugly.
Z Z
e cos(ωt)dt = ekt cos(ωt)dt [simplifying a bit]
kt
1
[choose u = ekt , dv = cos(ωt)dt =⇒ du = kekt , v = sin(ωt)]
Z Zω
kt 1 kt k
e cos(ωt)dt = e sin(ωt) − ekt sin(ωt)dt
ω ω
−1
[choose u = ekt , dv = sin(ωt) =⇒ du = kekt , v = cos(ωt)]
Z ω Z
kt 1 kt k 1 kt k kt
e cos(ωt)dt = e sin(ωt) − − e cos(ωt) + e cos(ωt)dt
ω ω w ω
k2
Z Z
1 k
ekt cos(ωt)dt = ekt sin(ωt) + 2 ekt cos(ωt) − 2 ekt cos(ωt)dt
ω ω ω
k2
Z
1 k
1+ 2 ekt cos(ωt)dt = ekt sin(ωt) + 2 ekt cos(ωt)
ω ω ω
ω2 + k2
Z
1 k
2
ekt cos(ωt)dt = ekt sin(ωt) + 2 ekt cos(ωt)
ω ω ω
Z kt kt
ωe sin(ωt) + ke cos(ωt)
ekt cos(ωt)dt = 2 2
k +ω
2.4 #1 For each problem, determine (without solving the problem) an interval in which the solution of
the given initial value problem is certain to exist.
Let’s start with an overview of how to apply Theorem 2.4.1. Here are the steps we can follow:
(iv) Mark the t value for which the initial condition is defined as a star on the number line.
(v) Theorem 2.4.1 is guaranteed to hold on the biggest interval that contains the star and no dashes.
In other words, this interval we found is the largest interval in which the solution to the differential
equation is certan to exist. Moreover, the solution is unique.
Now, let’s enumerate the things which cause a function f not to be continuous in this course:
(d) f is discontinuous any place where it takes sin−1 or cos−1 of a number x with x < −1 or x > 1.
Let’s apply this process to our problems.
12
(1) (i) We rearrange as follows:
ln t 2t
Thus, p(t) = t−3 and g(t) = t−3 .
(ii) We see that p(t) is discontinuous at t <= 0 (because of ln t) and t = 3 (because of the denominator,
t − 3).
(iii) We see that g(t) is discontinuous at t = 3 (because of the denominator, t − 3).
(iv) We see that the initial condition (y(1) = 2) is defined at t = 1. We mark this on the number line
with a star. The completed number line appears below.
(v) We can see that the biggest interval containing the star and no dashes is (0, 3) (which can also be
expressed as {t : 0 < t < 3} - in words, the set of values of t such that 0 < t < 3).
(5) (i) We rearrange as follows:
(4 − t2 )y 0 + 2ty = 3t2
2t 3t2
=⇒ y 0 + y =
4 − t2 4 − t2
2t 3t2
Thus, p(t) = 4−t2 and g(t) = 4−t2 .
(ii) We see that p(t) discontinuous at t = 2 and t = −2 (because of the denominator, 4 − t2 ).
(iii) We see that g(t) is discontinuous at t = 2 and t = −2 (because of the denominator, 4 − t2 ).
(iv) We see that the initial condition (y(1) = −3) is defined at t = 1. We mark this on the number
line with a star. The completed number line appears below.
(v) We can see that the biggest interval containing the star and no dashes is (−2, 2) (which can also
be expressed as {t : −2 < t < 2} - in words, the set of values of t such that −2 < t < 2).
2.4 #14,15 In each problem, solve the given initial value problem and determine how the interval in
which the solution exists depends on the initial value y0 .
(14) y 0 = 2ty 2 , y(0) = y0
(15) y 0 + y 3 = 0, y(0) = y0
13
(14) We’ll start with solving the differential equation.
dy
= 2ty 2
dt
dy
=⇒ 2 = 2tdt [separating]
y
−1
=⇒ = t2 + C [integrating]
y
1
=⇒ y = [dividing, renaming C]
C − t2
p p
Thus, the solution exists on the interval (− 1/y0 , 1/y0 ).
(ii) y0 = 0: In this case, the solution we found above is not even defined, so it’s clearly not correct.
But we can confirm that the solution y = 0 satisfies the differential equation and the initial
condition. Thus, our solution is y = 0, and it exists everywhere (aka on the interval (−∞, ∞)).
(iii) y0 < 0: In this case, the denominator is never equal to 0, so the solution exists everywhere (aka
on the interval (−∞, ∞).).
(15) We’ll start with solving the differential equation.
dy
+ y3 =0
dt
dy
=⇒ = −y 3 [rearranging]
dt
−dy
=⇒ = dt [separating]
y3
1
=⇒ = t + C [integrating]
2y 2
r
1
=⇒ y = ± [solving, renaming C]
2t + C
14
Now we use our initial condition:
s r
1 1
y(0) = ± =± = y0 .
2(0) + C C
15
2.4 #27 Sometimes it is possible solve a nonlinear equqation by making a change of the dependent
variable that converts it into a linear equation. The most important such equation has the form
y 0 + p(t)y = q(t)y n ,
dy
+ p(t)y = q(t)y
dt
dy
=⇒ = q(t)y − p(t)y [subtracting]
dt
dy
=⇒ = y(q(t) − p(t)) [factoring]
dt
dy
=⇒ = (q(t) − p(t))dt [separating]
y
Z
=⇒ ln |y| = (q(t) − p(t))dt + C [integrating]
R
(q(t)−p(t))dt+C
=⇒ y = e [exponentiating]
v0
(b) Suppose n 6= 0, 1 and note that if v = y 1−n then v 0 = (1 − n)y −n y 0 , and in particular, y −n y 0 = 1−n . We
can find
y 0 + p(t)y = q(t)y n
=⇒ y 0 y −n + p(t)y 1−n = q(t) [dividing by y n ]
v0
=⇒ + p(t)v = q(t) [substituting in terms of v]
1−n
=⇒ v 0 + (1 − n)p(t)v = (1 − n)q(t) [multiplying by (1 − n)]
2.4 #28 Solve the given Bernoulli equation using the substitution mentioned in Problem 27(b).
t2 y 0 + 2ty − y 3 = 0, t > 0.
16
Let’s first rearrange this equation to match the form of the equation from problem 27.
t2 y 0 + 2ty − y 3 = 0
=⇒ t2 y 0 + 2ty = y 3
2 1
=⇒ y 0 + y = 2 y 3 [dividing by t2 ]
t t
Now let’s use the transformation from problem 27 (taking n = 3 - so v = y 1−n = y −2 ) and solve:
2 1
y0 + y = 2 y3
t t
2 1
=⇒ v 0 + (1 − 3) v = (1 − 3) 2 [using the transformation]
t t
−4 −2
=⇒ v 0 + v = 2 [simplifying]
t t
−4 0 −4 −4 −2 R −4
=⇒ t v + v =t [integrating factor µ = e (−4/t)dt
= e−4 ln t = eln(t ) = t−4 ]
t t2
=⇒ (t−4 v)0 = −2t−6
2
=⇒ t−4 v = t−5 + C [integrating]
5
2
=⇒ v = + Ct4 [solving]
5t
2.5 #3 This problem involves an equation of the form dy/dt = f (y). In each problem sketch the graph
of f (y) versus y, determine the critical (equilibrium) points, and classify each one as asymptotically stable
or unstable. Draw the phase line, and sketch several graphs of solutions in the ty-plane.
Next, we identify the critical/equilibrium points, which are the values of y for which dy/dy = 0. These
values are y = 0, 1, 2. Now we create a phase line. We mark each critical point on the line and then add
17
a plus sign for each segment of the graph that is positive, as well as a minus sign for each segment of the
graph that is negative. Last, for each plus sign, we draw an arrow to the right, and for each minus sign, we
draw an arrow to the left.
We identify that y = 0 is unstable, y = 1 is stable, and y = 2 is unstable. Below we sketch a graph of several
solutions.
2.5 #12,13 These problems involve equations of the form dy/dt = f (y). In each problem sketch the
graph of f (y) versus y, determine the critical (equilibrium) points, and classify each one asymptotically
stable, unstable, or semistable (see Problem 7). Draw the phase line, and sketch several graphs of solutions
in the ty-plane
(12) dy/dt = y 2 (4 − y 2 ), −∞ < y0 < ∞
18
We see that y = −2 is unstable, y = 0 is semistable, and y = 2 is stable.
19
2.5 #16 Another equation that has been used to model population growth is the Gompertz equation
dy/dt = ry ln(K/y),
(a) Sketch the graph of f (y) versus y, find the critical points, and determine whether each is asymptotically
stable or unstable.
(b) For 0 ≤ y ≤ K, determine where the graph of y versus t is concave up and where it is concave down.
(c) For each y in 0 < y ≤ K, show that dy/dt as given by the Gompertz equation is never less than dy/dt
as given by the logistic equation.
2.5 #22 Suppose that a given population can be divided into two parts: those who have a given disease
and can infect others, and those who do not have it but are susceptible. Let x be the proportion of
susceptible individuals and y the proportion of infectious individuals; then x + y = 1. Assume that the
disease spreads by contact between sick and well members of the population and that the rate of spread
dy/dt is porportional to the number of such contacts. Further, assume that members of both groups move
about freely among each other, so the number of contacts is proportional to the product of x and y. Since
x = 1 − y, we obtain the initial value problem
where α is a positive proportionality factor, and y0 is the initial proportion of infectious individuals.
(a) Find the equilibrium points for the differential equation and determine whether each is asymptotically
stable, semistable, or unstable.
(b) Solve the initial value problem and verify that the conclusions you reached in part (a) are correct.
Show taht y(t) → 1 as t → ∞, which means that ultimately the disease spreads through the entire
population.
2.5 #23 Some diseases (such as typhoid fever) are spread largely by carriers, individuals who can transmit
the disease but who exhibit no overt symptoms. Let x and y denote the proportions of susceptibles
and carriers, resepectively, in the population. Suppose that carriers are identified and removed from the
population at a rate β, so
dy/dt = −βy. (5)
Suppose also that the disease spreads at a rate proportional to the product of x and y; thus
(a) Determine y at any time t by solving Equation (??) subject to the initial condition y(0) = y0 .
(b) Use the result of part (a) to find x at any time t by solving Equation (??) subject to the initial condition
x(0) = x0 .
(c) Find the proportion of the population that excapes the epidemic by finding the limiting value of x as
t → ∞.
20