Math 340 ยท University of San Francisco

Assignment 2

Due Thursday, September 10

Work these on your own paper. Show enough of the reasoning that a reader could follow it without you in the room.

1Finding solutions

Solve each initial-value problem by separating variables or undoing the product rule. You choose which approach to use!

For each solution, state its domain: the largest interval containing the initial time on which it solves the differential equation. (It may be all of โ„! Or the solution may blow up at a finite time.)

(a)

๐‘ฆโ€ฒ +2๐‘ฆ =๐‘’๐‘ก, ๐‘ฆ(0) =1.

Solution

To make ๐‘š๐‘ฆโ€ฒ +2๐‘š๐‘ฆ equal (๐‘š๐‘ฆ)โ€ฒ, we need ๐‘šโ€ฒ =2๐‘š. Choose ๐‘š =๐‘’2๐‘ก and multiply:

๐‘’2๐‘ก๐‘ฆโ€ฒ+2๐‘’2๐‘ก๐‘ฆ=๐‘’3๐‘กโŸน(๐‘’2๐‘ก๐‘ฆ)โ€ฒ=๐‘’3๐‘ก.

Integrating gives ๐‘’2๐‘ก๐‘ฆ =13๐‘’3๐‘ก +๐ถ, so ๐‘ฆ =13๐‘’๐‘ก +๐ถ๐‘’โˆ’2๐‘ก. The initial condition says 1 =13 +๐ถ, and therefore

๐‘ฆ=13๐‘’๐‘ก+23๐‘’โˆ’2๐‘ก.

This solves the equation on ( โˆ’โˆž,โˆž).

(b)

๐‘ฆโ€ฒ =2๐‘ก(1 +๐‘ฆ2), ๐‘ฆ(0) =0.

Solution

Since 1 +๐‘ฆ2 is always positive, we may separate:

๐‘‘๐‘ฆ1+๐‘ฆ2=2๐‘ก๐‘‘๐‘กโŸนarctanโก๐‘ฆ=๐‘ก2+๐ถ.

The initial condition gives ๐ถ =0, so ๐‘ฆ =tanโก(๐‘ก2). Starting from ๐‘ก =0, the first poles occur where ๐‘ก2 =๐œ‹/2. The domain is

(โˆ’โˆš๐œ‹2,ย โˆš๐œ‹2).

Although the formula is defined again beyond these poles, those other pieces cannot extend the solution through its initial point.

(c)

๐‘ก๐‘ฆโ€ฒ +2๐‘ฆ =๐‘ก2, ๐‘ฆ(1) =0.

Solution

On an interval containing 1 with ๐‘ก >0, divide by ๐‘ก to obtain ๐‘ฆโ€ฒ +(2/๐‘ก)๐‘ฆ =๐‘ก. Since (๐‘ก2)โ€ฒ/๐‘ก2 =2/๐‘ก, multiplying by ๐‘ก2 creates a product derivative:

๐‘ก2๐‘ฆโ€ฒ+2๐‘ก๐‘ฆ=๐‘ก3โŸน(๐‘ก2๐‘ฆ)โ€ฒ=๐‘ก3.

Thus ๐‘ก2๐‘ฆ =๐‘ก4/4 +๐ถ. Since ๐‘ฆ(1) =0, we have ๐ถ = โˆ’1/4, giving

๐‘ฆ=๐‘ก24โˆ’14๐‘ก2.

The solution diverges as ๐‘ก โ†’0+, so its domain is (0,โˆž). The original equation is written without division by ๐‘ก, but this particular solution still cannot be continued through 0.

(d)

๐‘ฆโ€ฒ =๐‘’๐‘ก(1 โˆ’๐‘ฆ), ๐‘ฆ(0) =2.

Solution

The constant solution ๐‘ฆ =1 does not meet our initial condition. For the solution we want, separating variables gives

๐‘‘๐‘ฆ1โˆ’๐‘ฆ=๐‘’๐‘ก๐‘‘๐‘กโŸนโˆ’lnโก|1โˆ’๐‘ฆ|=๐‘’๐‘ก+๐ถ.

Exponentiating and allowing a signed constant gives 1 โˆ’๐‘ฆ =๐ด๐‘’โˆ’๐‘’๐‘ก. At ๐‘ก =0, โˆ’1 =๐ด๐‘’โˆ’1, so ๐ด = โˆ’๐‘’ and

๐‘ฆ=1+๐‘’1โˆ’๐‘’๐‘ก.

Its domain is ( โˆ’โˆž,โˆž).

(e)

๐‘ฆโ€ฒ +2๐‘ก๐‘ฆ =2๐‘ก3, ๐‘ฆ(0) =1.

Solution

We want ๐‘šโ€ฒ =2๐‘ก๐‘š, so choose ๐‘š =๐‘’๐‘ก2. Multiplying gives

(๐‘’๐‘ก2๐‘ฆ)โ€ฒ=2๐‘ก3๐‘’๐‘ก2.

To integrate the right side, set ๐‘ฃ =๐‘ก2, so ๐‘‘๐‘ฃ =2๐‘ก ๐‘‘๐‘ก and 2๐‘ก3 ๐‘‘๐‘ก =๐‘ฃ ๐‘‘๐‘ฃ. Integration by parts then gives

โˆซ2๐‘ก3๐‘’๐‘ก2๐‘‘๐‘ก=โˆซ๐‘ฃ๐‘’๐‘ฃ๐‘‘๐‘ฃ=๐‘ฃ๐‘’๐‘ฃโˆ’๐‘’๐‘ฃ+๐ถ=(๐‘ก2โˆ’1)๐‘’๐‘ก2+๐ถ.

Therefore ๐‘ฆ =๐‘ก2 โˆ’1 +๐ถ๐‘’โˆ’๐‘ก2. The initial condition gives ๐ถ =2, so

๐‘ฆ=๐‘ก2โˆ’1+2๐‘’โˆ’๐‘ก2,

with domain ( โˆ’โˆž,โˆž).

(f)

๐‘ฆโ€ฒ =๐‘ก๐‘’โˆ’๐‘ฆ, ๐‘ฆ(0) =0.

Solution

Multiplying by ๐‘’๐‘ฆ separates the variables:

๐‘’๐‘ฆ๐‘‘๐‘ฆ=๐‘ก๐‘‘๐‘กโŸน๐‘’๐‘ฆ=๐‘ก22+๐ถ.

The initial condition gives ๐ถ =1, hence

๐‘ฆ=lnโก(1+๐‘ก22).

The logarithm's argument is positive for every real ๐‘ก, so the domain is ( โˆ’โˆž,โˆž).

2Find the combination

Consider

๐‘ฆโ€ฒ=๐‘ก2+2๐‘ก๐‘ฆ+๐‘ฆ2โˆ’3๐‘กโˆ’3๐‘ฆ+1.

Neither separating variables nor undoing the product rule seems to apply as written. But a combination of algebra and calculus will let us succeed.

(a)

Group the terms on the right-hand side to reveal the repeated combination ๐‘ก +๐‘ฆ. Set ๐‘ข =๐‘ก +๐‘ฆ, and derive a differential equation for ๐‘ข involving only ๐‘ข and its derivative. What can we now do that we could not do before?

Solution

The first three terms are (๐‘ก +๐‘ฆ)2, and the next two are โˆ’3(๐‘ก +๐‘ฆ). Thus the original equation says ๐‘ฆโ€ฒ =๐‘ข2 โˆ’3๐‘ข +1. Since ๐‘ข =๐‘ก +๐‘ฆ, we have ๐‘ขโ€ฒ =1 +๐‘ฆโ€ฒ, so

๐‘ขโ€ฒ=1+(๐‘ข2โˆ’3๐‘ข+1)=๐‘ข2โˆ’3๐‘ข+2=(๐‘ขโˆ’1)(๐‘ขโˆ’2).

The equation for ๐‘ข has no explicit dependence on ๐‘ก, and its right side is a product of factors in ๐‘ข. We can now separate variables.

(b)

Solve the original equation with initial condition ๐‘ฆ(0) =0 by first solving for ๐‘ข and then returning to ๐‘ฆ. State the domain of your solution.

Solution

The initial condition becomes ๐‘ข(0) =0. The constant solutions ๐‘ข =1 and ๐‘ข =2 do not meet this condition, so we separate the other solutions:

๐‘‘๐‘ข(๐‘ขโˆ’1)(๐‘ขโˆ’2)=๐‘‘๐‘ก.

Partial fractions give

1(๐‘ขโˆ’1)(๐‘ขโˆ’2)=1๐‘ขโˆ’2โˆ’1๐‘ขโˆ’1,

and integrating yields

lnโกโˆฃ๐‘ขโˆ’2๐‘ขโˆ’1โˆฃ=๐‘ก+๐ถ.

Exponentiating and absorbing the sign into a constant,

๐‘ขโˆ’2๐‘ขโˆ’1=๐ด๐‘’๐‘ก.

At ๐‘ก =0, ๐‘ข =0, so ๐ด =2. Solving for ๐‘ข gives

๐‘ข(1โˆ’2๐‘’๐‘ก)=2โˆ’2๐‘’๐‘กโŸน๐‘ข=2โˆ’2๐‘’๐‘ก1โˆ’2๐‘’๐‘ก.

Returning to ๐‘ฆ =๐‘ข โˆ’๐‘ก, we obtain

๐‘ฆ=2โˆ’2๐‘’๐‘ก1โˆ’2๐‘’๐‘กโˆ’๐‘ก.

The denominator vanishes at ๐‘ก = โˆ’lnโก2, where the numerator is 1. The solution tends to โˆ’โˆž as ๐‘ก โ†’ โˆ’lnโก2 from the right, so it cannot extend through that time. Its domain is ( โˆ’lnโก2,โˆž).

(c)

Find the constant solutions of the ๐‘ข-equation. Translate each into a solution of the original equation, and verify both by substitution.

Solution

Division by (๐‘ข โˆ’1)(๐‘ข โˆ’2) excludes ๐‘ข =1 and ๐‘ข =2. Since ๐‘ฆ =๐‘ข โˆ’๐‘ก, these give

๐‘ฆ=1โˆ’๐‘กand๐‘ฆ=2โˆ’๐‘ก.

Both have derivative โˆ’1. Substituting ๐‘ฆ =1 โˆ’๐‘ก into the original right-hand side gives

(๐‘ก+๐‘ฆ)2โˆ’3(๐‘ก+๐‘ฆ)+1=1โˆ’3+1=โˆ’1,

and substituting ๐‘ฆ =2 โˆ’๐‘ก gives 4 โˆ’6 +1 = โˆ’1. Both solve the original equation for every real ๐‘ก, although neither satisfies ๐‘ฆ(0) =0.