HW Chapter1 Sol
HW Chapter1 Sol
1
y(0) = 0.25, we have c = 3 and hence the particular solution is y = 1+3e −x .
′
(c) By differentiating both sides, 2yy −8x = 0 and it infers that y −4x = c (y > 0)
2 2
2. The half-life of a radioactive substance is the time in which half of the given
amount disappears. What is the half-life of radium 88 Ra226 (in years)?
(Hint : y ′ = ky, k = −1.4 · 10−11 sec−1 for radium 88 Ra226 .)
Sol. Let y(t) be the amount of substance at any time t. By the physical law, the
time rate of change y ′ (t) is proportional to y(t), that is,
y ′ = ky.
Thus y(t) = y0 ekt . The half-life of a radioactive substance is
1 ln 2
y0 ekt = y0 =⇒ t = − .
2 k
The half-life of radium 88 R
226
is ln 2
1.4×10−11 sec ≈ 1570year.
(d)
dy 1 (x + 2)2
− = (x + 2)dx, = + c∗
y2 y 2
2
The general solution is y = x2 +4x+c .
v ′ −1
(e) Set v = x + 2y. Note that y ′ = 2 . Then
v′ − 1 v + 5 v+7 1 4/3
= , dv = dx, [ + ]dv = dx.
2 v+7 3v + 17 3 3v + 17
By integration, we have
1 4
v + ln |3v + 17| = x + c∗ .
3 9
Substituting v = x + 2y, we obtain the general solution
3x − 3y − 2 ln |3x + 6y + 17| = c.
(f) xy ′ = y(y+2)
2 ⇒ y(y+2)
2
dy = dxx ⇒ ( y − y+2 )dy =
1 1 dx
x,
ln |y| − ln |y + 2| = ln |x| + c∗ ⇒ y+2
y
= cx ∴ y= 2cx
1−cx .
(c) Reducing the ODE to y ′ = xy + 4x4 cos2 ( xy ) and setting u = y/x, i.e., y = ux,
From the condition y(2) = 0, we have c = −16 and y = x tan−1 (x4 − 16).
(d) Reducing the ODE,
y2 1 y 2 x2
ye dy = (x − 1)dx ⇒ e = − x + c.
2 2
2
From the condition y(0) = 1, we have c = e/2 and ey = x2 − 2x + e.
3. A tank contains 400 gal of brine in which 100 lb of salt is dissolved.Fresh water
runs into the tank at a rate of 2 gal/min. The mixture, kept practically uniform by
stirring, runs out at the same rate. How much salt will there be in the tank at the
end of 1 hour?
Sol. Let y(t) be the amount of the salt in the tank after t minutes. Then
y y
y ′ = inflow/min − outflow/min = 0 − 2 × =− , y(0) = 100.
400 200
The general solution is
y = ce− 200 t .
1
y = 100e− 200 t .
1
ex cos y + c = 0.
x2 − y 2 = cx.
(c) Set P = 2x tan y and Q = sec2 y. Since Py = 2x sec2 y ̸= Qx = 0 the ODE is not
2
exact. Note that R = Q1 (Py − Qx ) = 2xsecsec2 y y = 2x.
The integrating factor is ∫ 2
F (x) = e Rdx = ex .
2
Multiplying F (x) = ex , we get the exact ODE
2 2
2xex tan ydx + ex sec2 ydy = 0.
∂y
Hence we have g(y) = c and the general solution
2
ex tan y = c.
y
+ sin 2x + cos 2y = c.
x
(e) Set M = ey − yex and N = xey − ex . My = ey − ex = Nx . The ODE is exact.
Hence ∃u(x,
∫ y) such that ux = M, uy = N .
u = M dx = xey − yex + k(y), uy = xey − ex + k ′ (y) = N , k ′ (y) =
0 ⇒ k(y) = c∗ , u(x, y) = xey − yex + c∗ , ∴ xey − yex = c.
2 2 2
(f) Set P = 2xyex , Q = ex . Py = 2xex = Qx . The ODE is exact.
∫
2 2
u= 2xyex dx = yex + g(y)
∂u
= ex + g ′ (y) = ex
2 2
∂y
Hence we have g(y) = c and the general solution
2
yex + c = 0.
Py = 4 ̸= Qx = −3,
x4
4x3 y −3 dx − 3x4 y −4 dy = du = 0, where u = .
y3
The general solution is x4 = cy 3 .
From the initial condition y(1) = 2, we have c = −1 and the particular solution
y = x4 − x−4 .
(d) For the given linear ODE,
3 5
y ′ + y = 3 sinh 10x
x x
the general solution is
∫
−
∫ 3 [ ∫ 3 5 ] 1[ 1 ]
y=e x dx c+ e x dx sinh 10x dx = c + cosh 10x .
x3 x3 2
(e) Set u = y 1−2 = y −1 . Then the ODE reduces to the linear ODE
u′ = −y −2 y ′ = −y −2 (y 2 − y) = −1 + y −1 = u − 1, u′ − u = −1.
The solution of u is
∫
∫
− −1dx
[ ∫
−1dx
] [ ]
u=e c+ e (−1) dx = ex c + e−x = cex + 1.
Hence
1
y= .
1 + cex
Computational Science & Engineering (CSE) T. Jeong
Homework 5
u′ + sin x u = sin x.
2. If in a population y(t) the death rate is proportional to the population, and the
birth rate is proportional to the chance encounters of meeting mates for reproduc-
tion, what will the model be? Solve the model.
Sol.
y ′ = birth rate − death rate = k1 (ay)(b(y) − k2 y = −Ay + By 2
for some constants k1 , k2 , a, b.
Set u = y 1−2 = y −1 .
u′ = −y −2 y ′ = −y −2 (−Ay + By 2 ) = Ay −1 − B = Au − B, u′ − Au = −B.
∫
Then u = eAt ( e−At (−B)dt + c) = ceAt + B A and the general solution is
1
y= B
.
ceAt + A
3. A model for the speed of contagious diseases is obtained by assuming that the rate
of spread is proportional to the number of contacts between infected and noninfected
person, who are assumed to move freely among each other. Set up the model. Find
the equilibrium solutions and indicate their stability or instability. Solve the ODE.
Find the limit of the proportion of infected persons as t → ∞ and explain what it
means.
Sol. Let y(t) be a rate of infected person at time t.
Modeling:
y ′ = ky(1 − y), k > 0 or y ′ = ky − ky 2
Set u = y 1−2 = y −1 . The ODE reduces to
we have
c∗
ln(1 + u ) = − ln |x| + c̃, 1 + u = ,
2 2
x
Computational Science & Engineering (CSE) T. Jeong
Homework 7
x2 + ỹ 2 = c∗ x.
2. Find the conditions under which the orthogonal trajectories of families of ellipses
x2 /a2 + y 2 /b2 = c are again conic sections. Illustrate your result graphically. What
happens if a → 0? If b → 0?
Sol. The slope of the curves x2 /a2 + y 2 /b2 = c is
2x 2y ′ b2 x
+ 2 = 0, y =− 2 .
a2 b ay
The orthogonal trajectories are obtained from
′ a2 ỹ dỹ dx
ỹ = 2 , 2
=− 2 .
bx a ỹ bx
By integration, we have b2 ln |ỹ| = −a2 ln |x| + c̃, and the orthogonal trajectories are
2
/b2
ỹ = cxa .
3. The lines of electric force of two opposite charges of the same strength at (−1, 0)
and (1, 0) are the circles through (−1, 0) and (1, 0). Show that these circles are given
by x2 + (y − c)2 = 1 + c2 . Show that the equipotential lines(orthogonal trajectories
of those circles) are the circles given by (x + c∗ )2 + ỹ 2 = c∗ 2 − 1.
Sol. The circle is expressed as (x−A)2 +(y −B)2 = C 2 . Since (−1, 0) and (1, 0) lie on
the circle, (−1−A)2 +B 2 = C 2 , (1−A)2 +B 2 = C 2 holds. Thus A = 0, B 2 +1 = C 2 .
Set B = c, then these circles are given by
x2 + (y − c)2 = 1 + c2 , x2 + y 2 − 2cy = 1.
By differentiation, we have
′ ′ x 2xy
′ x2 + y 2 − 1
2x + 2yy − 2cy = 0, y = = 2 (c = ).
c−y x − y2 − 1 2y
The orthogonal trajectories is obtained from
′ x2 − ỹ 2 − 1
ỹ = − , (x2 − ỹ 2 − 1)dx + 2xỹdỹ = 0.
2xỹ
Computational Science & Engineering (CSE) T. Jeong
Homework 9
Let P = x2 − ỹ 2 − 1, Q = 2xỹ. Since Pỹ = −2ỹ ̸= Qx = 2ỹ the ODE is not exact.
The integrating factor F (x) is
1 2 ∫ 1
R(x) = [Pỹ − Qx ] = − , F (x) = e R(x)dx
= .
Q x x2
1
Multiplying x2 in the both side,
ỹ 2 1 2ỹ
(1 − − )dx + dỹ = 0,
x2 x2 x
and the solution is
ỹ 2 1
x+ + = −2c∗ , x2 + ỹ 2 + 1 = −2c∗ x.
x x
Therefore the equipotential lines are the circles given by
(x + c∗ )2 + ỹ 2 = c∗ 2 − 1.
has no solution, precisely one solution, and more than one solution.
Sol. The ODE is written
dy 2x − 4 1 1
= 2 dx = ( + )dx.
y x − 4x x x−4
By integration, ln |y| = ln |x| + ln |x − 4| + c∗ , y = cx(x − 4).
Thus the IVP
has more than one solution(infinitely many solutions). Otherwise the IVP
Sol. Set y0 = 0. ∫ ∫x
x 2
y1 = y0 + x0 f (t, y0 )dt = 0 + 0 tdt = x2 .
∫x ∫x 2 2 3
y2 = y0 + x0 f (t, y1 )dt = 0 + 0 (t + t2 )dt = x2 + x6 .
∫x ∫x 2 3 2 3 4
y3 = y0 + x0 f (t, y2 )dt = 0 + 0 (t + t2 + t6 )dt = x2 + x6 + x24
······
Note: y ′ = x + y, y = −x − 1 + cex , y(0) = 0, c = 1 ∴ y = −x − 1 + ex .