1.5 Linear First-Order Equations

We turn now to another important method for solving first-order differential equations that rests upon the idea of “integrating both sides.” In Section 1.4 we saw that the first step in solving a separable differential equation is to multiply and/or divide both sides of the equation by whatever is required in order to separate the variables. For instance, to solve the equation

dydx=2xy(y>0),
(1)

we divide both sides by y (and, so to speak, multiply by the differential dx) to get

dyy=2x dx.

Integrating both sides then gives the general solution ln y=x2+C.

There is another way to approach the differential equation in (1), however, which—while leading to the same general solution—opens the door not only to the solution method discussed in this section, but to other methods of solving differential equations as well. What is common to all these methods is the idea that if a given equation is difficult to solve, then perhaps multiplying both sides of the equation by a suitably chosen function of x and/or y may result in an equivalent equation that can be solved more easily. Thus, in Eq. (1), rather than divide both sides by y, we could instead multiply both sides by the factor 1/y. (Of course algebraically these two are the same, but we are highlighting the fact that often the crucial first step in solving a differential equation is to multiply both of its sides by the “right” function.) Applying this to Eq. (1) (while leaving dx in place) gives

1y.dydx=2x.
(2)

The significance of Eq. (2) is that, unlike Eq. (1), both sides are recognizable as a derivative. By the chain rule, the left-hand side of Eq. (2) can be written as

1y·dydx=Dx(ln y),

and of course the right hand side of Eq. (2) is Dx(x2). Thus each side of Eq. (2) can be viewed as a derivative with respect to x:

Dx(ln y)=Dx(x2).

Integrating both sides with respect to x gives the same general solution ln y=x2+C that we found before.

We were able to solve the differential equation in Eq. (1), then, by first multiplying both of its sides by a factor—known as an integrating factor—chosen so that both sides of the resulting equation could be recognized as a derivative. Solving the equation then becomes simply a matter of integrating both sides. More generally, an integrating factor for a differential equation is a function ρ(x,y) such that multiplication of each side of the differential equation by ρ(x,y) yields an equation in which each side is recognizable as a derivative. In some cases integrating factors involve both of the variables x and y; however, our second solution of Eq. (1) was based on the integrating factor ρ(y)=1/y, which depends only on y. Our goal in this section is to show how integrating factors can be used to solve a broad and important category of first-order differential equations.

A linear first-order equation is a differential equation of the form

dydx+P(x)y=Q(x).
(3)

We assume that the coefficient functions P(x) and Q(x) are continuous on some interval on the x-axis. (Can you see that the differential equation in Eq. (1), in addition to being separable, is also linear? Is every separable equation also linear?) Assuming that the necessary antiderivatives can be found, the general linear equation in (3) can always be solved by multiplying by the integrating factor

ρ(x)=eP(x)dx.
(4)

The result is

eP(x)dxdydx+P(x)eP(x)dxy=Q(x)eP(x)dx.
(5)

Because

Dx[P(x)dx] =P(x),

the left-hand side is the derivative of the product y(x)·eP(x)dx, so Eq. (5) is equivalent to

Dx[y(x).eP(x)dx] =Q(x)eP(x)dx.

Integration of both sides of this equation gives

y(x)eP(x)dx=(Q(x)eP(x)dx) dx+C.

Finally, solving for y, we obtain the general solution of the linear first-order equation in (3):

y(x)=eP(x)dx=[(Q(x)eP(x)dx) dx+C.]
(6)

This formula should not be memorized. In a specific problem it generally is simpler to use the method by which we developed the formula. That is, in order to solve an equation that can be written in the form in Eq. (3) with the coefficient functions P(x) and Q(x) displayed explicitly, you should attempt to carry out the following steps.

METHOD: SOLUTION OF LINEAR FIRST-ORDER EQUATIONS

  1. Begin by calculating the integrating factor ρ(x)=eP(x)dx.

  2. Then multiply both sides of the differential equation by ρ(x).

  3. Next, recognize the left-hand side of the resulting equation as the derivative of a product:

    Dx [ρ(x)y(x)]=ρ(x)Q(x).
  4. Finally, integrate this equation,

    ρ(x)y(x)=ρ(x) Q(x) dx+C,

    then solve for y to obtain the general solution of the original differential equation.

Remark 1

Given an initial condition y(x0)=y0, you can (as usual) substitute x=x0 and y=y0 into the general solution and solve for the value of C yielding the particular solution that satisfies this initial condition.

Remark 2

You need not supply explicitly a constant of integration when you find the integrating factor ρ(x). For if we replace

P(x)dxwithP(x)dx+K

in Eq. (4), the result is

ρ(x)=eK+P(x)dx=eKeP(x)dx.

But the constant factor eK does not affect materially the result of multiplying both sides of the differential equation in (3) by ρ(x), so we might as well take K=0. You may therefore choose for P(x)dx any convenient antiderivative of P(x), without bothering to add a constant of integration.

Example 1

Solve the initial value problem

dydxy=118ex/3,y(0)= 1.

Solution

Here we have P(x)1 and Q(x)=118ex/3, so the integrating factor is

ρ(x)=e(1)dx=ex.

Multiplication of both sides of the given equation by ex yields

exdydxexy=118e4x/3,
(7)

which we recognize as

ddx(exy)=118e4x/3.

Hence integration with respect to x gives

exy=118e4x/3dx=3332e4x/3+C,

and multiplication by ex gives the general solution

y(x)=Cex3332ex/3.
(8)

Substitution of x=0 and y=1 now gives C=132, so the desired particular solution is

y(x)=132ex3332ex/3=132(ex33ex/3).

Remark

Figure 1.5.1 shows a slope field and typical solution curves for Eq. (7), including the one passing through the point (0,1). Note that some solutions grow rapidly in the positive direction as x increases, while others grow rapidly in the negative direction. The behavior of a given solution curve is determined by its initial condition y(0)=y0. The two types of behavior are separated by the particular solution y(x)=3332ex/3 for which C=0 in Eq. (8), so y0=3332 for the solution curve that is dashed in Fig. 1.5.1. If y0>3332, then C>0 in Eq. (8), so the term ex eventually dominates the behavior of y(x), and hence y(x)+ as x+. But if y0<3332, then C<0, so both terms in y(x) are negative and therefore y(x) as x+. Thus the initial condition y0=3332 is critical in the sense that solutions that start above 3332 on the y-axis grow in the positive direction, while solutions that start lower than 3332 grow in the negative direction as x+. The interpretation of a mathematical model often hinges on finding such a critical condition that separates one kind of behavior of a solution from a different kind of behavior.

FIGURE 1.5.1.

Slope field and solution curves for y=y+118ex/3.

Example 2

Find a general solution of

(x2+1)dydx+3xy=6x.
(9)

Solution

After division of both sides of the equation by x2+1, we recognize the result

dydx+3xx2+1 y =6xx2+1

as a first-order linear equation with P(x)=3x/(x2+1) and Q(x)=6x/(x2+1). Multiplication by

ρ(x)=exp (3xx2+1dx)=exp(32ln(x2+1))=(x2+1)3/2

yields

(x2+1)3/2dydx+3x(x2+1)1/2y=6x(x2+1)1/2,

and thus

Dx[(x2+1)3/2y]=6x(x2+1)1/2.

Integration then yields

(x2+1)3/2y=6x(x2+1)1/2dx=2(x2+1)3/2+C.

Multiplication of both sides by (x2+1)3/2 gives the general solution

y(x)=2+C(x2+1)3/2.
(10)

Remark

Figure 1.5.2 shows a slope field and typical solution curves for Eq. (9). Note that, as x+, all other solution curves approach the constant solution curve y(x)2 that corresponds to C=0 in Eq. (10). This constant solution can be described as an equilibrium solution of the differential equation, because y(0)=2 implies that y(x)=2 for all x (and thus the value of the solution remains forever where it starts). More generally, the word “equilibrium” connotes “unchanging,” so by an equilibrium solution of a differential equation is meant a constant solution y(x)c, for which it follows that y(x)0. Note that substitution of y=0 in the differential equation (9) yields 3xy=6x, so it follows that y=2 if x0. Hence we see that y(x)2 is the only equilibrium solution of this differential equation, as seems visually obvious in Fig. 1.5.2.

FIGURE 1.5.2.

Slope field and solution curves for the differential equation in Eq. (9).

A Closer Look at the Method

The preceding derivation of the solution in Eq. (6) of the linear first-order equation y+Py=Q bears closer examination. Suppose that the coefficient functions P(x) and Q(x) are continuous on the (possibly unbounded) open interval I. Then the antiderivatives

P(x)dx and(Q(x)eP(x)dx) dx

exist on I. Our derivation of Eq. (6) shows that if y=y(x) is a solution of Eq. (3) on I, then y(x) is given by the formula in Eq. (6) for some choice of the constant C. Conversely, you may verify by direct substitution (Problem 31) that the function y(x) given in Eq. (6) satisfies Eq. (3). Finally, given a point x0 of I and any number y0, there is—as previously noted—a unique value of C such that y(x0)=y0. Consequently, we have proved the following existence-uniqueness theorem.

Remark 1

Theorem 1 gives a solution on the entire interval I for a linear differential equation, in contrast with Theorem 1 of Section 1.3, which guarantees only a solution on a possibly smaller interval.

Remark 2

Theorem 1 tells us that every solution of Eq. (3) is included in the general solution given in Eq. (6). Thus a linear first-order differential equation has no singular solutions.

Remark 3

The appropriate value of the constant C in Eq. (6)—as needed to solve the initial value problem in Eq. (11)—can be selected “automatically” by writing

ρ(x)=exp(x0xP(t)dt),y(x)=1ρ(x)[y0+x0xρ(t)Q(t)dt].
(12)

The indicated limits x0 and x effect a choice of indefinite integrals in Eq. (6) that guarantees in advance that ρ(x0)=1 and that y(x0)=y0 (as you can verify directly by substituting x=x0 in Eq. (12)).

Example 3

Solve the initial value problem

x2dydx+xy=sin x,y(1)=y0.
(13)

Solution

Division by x2 gives the linear first-order equation

dydx + 1x y = sin xx2

with P(x)=1/x and Q(x)=(sin x)/x2. With x0=1 the integrating factor in (12) is

ρ(x)=exp(1x1tdt)=exp(ln x)=x,

so the desired particular solution is given by

y(x)=1x[y0+1xsin tt dt].
(14)

In accord with Theorem 1, this solution is defined on the whole positive x-axis.

Comment

In general, an integral such as the one in Eq. (14) would (for given x) need to be approximated numerically—using Simpson’s rule, for instance—to find the value y(x) of the solution at x. In this case, however, we have the sine integral function

Si(x)=0xsin tt dt,

which appears with sufficient frequency in applications that its values have been tabulated. A good set of tables of special functions is Abramowitz and Stegun, Handbook of Mathematical Functions (New York: Dover, 1965). Then the particular solution in Eq. (14) reduces to

y(x)=1x[y0+0xsin tt dt01sin tt dt]=1x[y0+Si(x)Si(1)].
(15)

The sine integral function is available in most scientific computing systems and can be used to plot typical solution curves defined by Eq. (15). Figure 1.5.3 shows a selection of solution curves with initial values y(1)=y0 ranging from y0=3 to y0=3. It appears that on each solution curve, y(x)0 as x+, and this is in fact true because the sine integral function is bounded.

FIGURE 1.5.3.

Typical solution curves defined by Eq. (15).

In the sequel we will see that it is the exception—rather than the rule—when a solution of a differential equation can be expressed in terms of elementary functions. We will study various devices for obtaining good approximations to the values of the nonelementary functions we encounter. In Chapter 2 we will discuss numerical integration of differential equations in some detail.

Mixture Problems

As a first application of linear first-order equations, we consider a tank containing a solution—a mixture of solute and solvent—such as salt dissolved in water. There is both inflow and outflow, and we want to compute the amount x(t) of solute in the tank at time t, given the amount x(0)=x0 at time t=0. Suppose that solution with a concentration of ci grams of solute per liter of solution flows into the tank at the constant rate of ri liters per second, and that the solution in the tank—kept thoroughly mixed by stirring—flows out at the constant rate of r0 liters per second.

To set up a differential equation for x(t), we estimate the change Δx in x during the brief time interval [t,t+Δt]. The amount of solute that flows into the tank during Δt seconds is riciΔt grams. To check this, note how the cancellation of dimensions checks our computations:

(riliterssecond)(cigramsliter) (Δt seconds)

yields a quantity measured in grams.

FIGURE 1.5.4.

The single-tank mixture problem.

The amount of solute that flows out of the tank during the same time interval depends on the concentration c0(t) of solute in the solution at time t. But as noted in Fig. 1.5.4, c0(t)=x(t)/V(t), where V(t) denotes the volume (not constant unless ri=r0) of solution in the tank at time t. Then

Δx={grams input}{grams output}rici Δtr0c0Δt.

We now divide by Δt:

ΔxΔtricir0c0.

Finally, we take the limit as Δt0; if all the functions involved are continuous and x(t) is differentiable, then the error in this approximation also approaches zero, and we obtain the differential equation

dxdtricir0c0,
(16)

in which ri, ci, and r0 are constants, but c0 denotes the variable concentration

c0(t)=x(t)V(t)
(17)

of solute in the tank at time t. Thus the amount x(t) of solute in the tank satisfies the differential equation

dxdt=ricir0Vx.
(18)

If V0=V(0), then V(t)=V0+(rir0)t, so Eq. (18) is a linear first-order differential equation for the amount x(t) of solute in the tank at time t.

Important

Equation (18) need not be committed to memory. It is the process we used to obtain that equation—examination of the behavior of the system over a short time interval [t,t+Δt]—that you should strive to understand, because it is a very useful tool for obtaining all sorts of differential equations.

Remark

It was convenient for us to use g/L mass/volume units in deriving Eq. (18). But any other consistent system of units can be used to measure amounts of solute and volumes of solution. In the following example we measure both in cubic kilometers.

Example 4

Mixture problem Assume that Lake Erie has a volume of 480 km3 and that its rate of inflow (from Lake Huron) and outflow (to Lake Ontario) are both 350 km3 per year. Suppose that at the time t=0 (years), the pollutant concentration of Lake Erie—caused by past industrial pollution that has now been ordered to cease—is five times that of Lake Huron. If the outflow henceforth is perfectly mixed lake water, how long will it take to reduce the pollution concentration in Lake Erie to twice that of Lake Huron?

Solution

Here we have

V=480 (km3),ri=r0=r=350 (km3/yr),ci=c (the pollutant concentration of Lake Huron), andx0=x(0)=5cV,

and the question is this: When is x(t)=2cV? With this notation, Eq. (18) is the separable equation

dxdt=rcrVx,
(19)

which we rewrite in the linear first-order form

dxdt+px=q
(20)

with constant coefficients p=r/V, q=rc, and integrating factor ρ=ept. You can either solve this equation directly or apply the formula in (12). The latter gives

x(t)=ept[x0+0tqeptdt]=ept[x0+qp(ept1)]=ert/V[5cV+rcr/V(ert/V1)];x(t)=cV+4cVert/V.
(21)

To find when x(t)=2cV, we therefore need only solve the equation

cV+4cVert/V=2cVfort=Vrln 4=480350ln 41.901 (years).

Example 5

Mixture problem A 120-gallon (gal) tank initially contains 90 lb of salt dissolved in 90 gal of water. Brine containing 2 lb/gal of salt flows into the tank at the rate of 4 gal/min, and the well-stirred mixture flows out of the tank at the rate of 3 gal/min. How much salt does the tank contain when it is full?

Solution

The interesting feature of this example is that, due to the differing rates of inflow and outflow, the volume of brine in the tank increases steadily with V(t)=90+t gallons. The change Δx in the amount x of salt in the tank from time t to time t+Δt (minutes) is given by

Δ x (4) (2)Δt  3(x90+t)Δt,

so our differential equation is

dxdt+390+tx=8.

An integrating factor is

ρ(x)=exp(390+tdt)=e3 ln(90+t)=(90+t)3,

which gives

Dt[(90+t)3x]=8(90+t)3;(90+t)3x=2(90+t)4+C.

Substitution of x(0)=90 gives C=(90)4, so the amount of salt in the tank at time t is

x(t)=2(90+t)904(90+t)3.

The tank is full after 30 min, and when t=30, we have

x(30)=2(90+30)9041203202(lb)

of salt in the tank.

1.5 Problems

Find general solutions of the differential equations in Problems 1 through 25. If an initial condition is given, find the corresponding particular solution. Throughout, primes denote derivatives with respect to x.

  1. y+y=2, y(0)=0

     

  2. y2y=3e2x, y(0)=0

     

  3. y+3y=2xe3x

     

  4. y2xy=ex2

     

  5. xy+2y=3x, y(1)=5

     

  6. xy+5y=7x2, y(2)=5

     

  7. 2xy+y=10x

     

  8. 3xy+y=12x

     

  9. xyy=x,y(1)=7

     

  10. 2xy3y=9x3

     

  11. xy+y=3xy, y(1)=0

     

  12. xy+3y=2x5, y(2)=1

     

  13. y+y=ex, y(0)=1

     

  14. xy3y=x3, y(1)=10

     

  15. y+2xy=x, y(0)=2

     

  16. y=(1y) cos x, y(π)=2

     

  17. (1+x)y+y=cos x, y(0)=1

     

  18. xy=2y+x3 cos x

     

  19. y+ycotx=cos x

     

  20. y=1+x+y+xy, y(0)=0

     

  21. xy=3y+x4 cos x, y(2π)=0

     

  22. y=2xy+3x2exp(x2), y(0)=5

     

  23. xy+(2x3)y=4x4

     

  24. (x2+4)y+3xy=x, y(0)=1

     

  25. (x2+1)dydx+3x3y=6xexp(32x2),y(0)=1

Solve the differential equations in Problems 26 through 28 by regarding y as the independent variable rather than x.

  1. (14xy2)dydx=y3

     

  2. (x+yey)dydx=1

     

  3. (1+2xy)dydx=1+y2

     

  4. Express the general solution of dy/dx=1+2xy in terms of the error function

    erf(x)=2π 0xet2dt.
  5. Express the solution of the initial value problem

    2xdydx=y+2x cos x,y(1) = 0

    as an integral as in Example 3 of this section.

Problems 31 and 32 illustrate—for the special case of first-order linear equations-techniques that will be important when we study higher—order linear equations in Chapter 3.

  1. (a) Show that

    yc(x)=CeP(x) dx

    is a general solution of dy/dx+P(x)y=0. (b) Show that

    yp(x)=eP(x) dx[(Q(x)eP(x) dx)dx]

    is a particular solution of dy/dx+P(x)y=Q(x). (c) Suppose that yc(x) is any general solution of dy/dx+P(x)y=0 and that yp(x) is any particular solution of dy/dx+P(x)y=Q(x). Show that y(x)=yc(x)+yp(x) is a general solution of dy/dx+P(x)y=Q(x).

  2. (a) Find constants A and B such that yp(x)=A sin x+B cos x is a solution of dy/dx+y=2 sin x. (b) Use the result of part (a) and the method of Problem 31 to find the general solution of dy/dx+y=2 sin x. (c) Solve the initial value problem dy/dx+y=2 sin x, y(0)=1.

Mixture Problems

Problems 33 through 37 illustrate the application of linear first-order differential equations to mixture problems.

  1. A tank contains 1000 liters (L) of a solution consisting of 100 kg of salt dissolved in water. Pure water is pumped into the tank at the rate of 5 L/s, and the mixture—kept uniform by stirring—is pumped out at the same rate. How long will it be until only 10 kg of salt remains in the tank?

  2. Consider a reservoir with a volume of 8 billion cubic feet (ft3) and an initial pollutant concentration of 0.25%. There is a daily inflow of 500 million ft3 of water with a pollutant concentration of 0.05% and an equal daily outflow of the well-mixed water in the reservoir. How long will it take to reduce the pollutant concentration in the reservoir to 0.10%?

  3. Rework Example 4 for the case of Lake Ontario, which empties into the St. Lawrence River and receives inflow from Lake Erie (via the Niagara River). The only differences are that this lake has a volume of 1640 km3 and an inflow-outflow rate of 410 km3/ year.

  4. A tank initially contains 60 gal of pure water. Brine containing 1 lb of salt per gallon enters the tank at 2 gal/min, and the (perfectly mixed) solution leaves the tank at 3 gal/min; thus the tank is empty after exactly 1 h. (a) Find the amount of salt in the tank after t minutes. (b) What is the maximum amount of salt ever in the tank?

  5. A 400-gal tank initially contains 100 gal of brine containing 50 lb of salt. Brine containing 1 lb of salt per gallon enters the tank at the rate of 5 gal/s, and the well-mixed brine in the tank flows out at the rate of 3 gal/s. How much salt will the tank contain when it is full of brine?

  6. Two tanks Consider the cascade of two tanks shown in Fig. 1.5.5, with V1=100 (gal) and V2=200 (gal) the volumes of brine in the two tanks. Each tank also initially contains 50 lb of salt. The three flow rates indicated in the figure are each 5 gal/min, with pure water flowing into tank 1. (a) Find the amount x(t) of salt in tank 1 at time t.(b) Suppose that y(t) is the amount of salt in tank 2 at time t. Show first that

    dydt=5x1005y200,

    and then solve for y(t), using the function x(t) found in part (a).(c) Finally, find the maximum amount of salt ever in tank 2.

    FIGURE 1.5.5.

    A cascade of two tanks.

  7. Two tanks Suppose that in the cascade shown in Fig. 1.5.5, tank 1 initially contains 100 gal of pure ethanol and tank 2 initially contains 100 gal of pure water. Pure water flows into tank 1 at 10 gal/min, and the other two flow rates are also 10 gal/min.(a) Find the amounts x(t) and y(t) of ethanol in the two tanks at time t0. (b) Find the maximum amount of ethanol ever in tank 2.

  8. Multiple tanks A multiple cascade is shown in Fig. 1.5.6. At time t=0, tank 0 contains 1 gal of ethanol and 1 gal of water; all the remaining tanks contain 2 gal of pure water each. Pure water is pumped into tank 0 at 1 gal/min, and the varying mixture in each tank is pumped into the one below it at the same rate. Assume, as usual, that the mixtures are kept perfectly uniform by stirring. Let xn(t) denote the amount of ethanol in tank n at time t.

    FIGURE 1.5.6.

    A multiple cascade.

    (a) Show that x0(t)=et/2. (b) Show by induction on n that

    xn(t)=tnet/2n!2nfor n0.

    (c) Show that the maximum value of xn(t) for n>0 is Mn=xn(2n)=nnen/n!. (d) Conclude from Stirling’s approximation n!nnen2πn that Mn(2πn)1/2.

  9. Retirement savings A 30-year-old woman accepts an engineering position with a starting salary of $30,000 per year. Her salary S(t) increases exponentially, with S(t)=30et/20 thousand dollars after t years. Meanwhile, 12% of her salary is deposited continuously in a retirement account, which accumulates interest at a continuous annual rate of 6%.(a) Estimate ΔA in terms of Δt to derive the differential equation satisfied by the amount A(t) in her retirement account after t years.(b) Compute A(40), the amount available for her retirement at age 70.

  10. Falling hailstone Suppose that a falling hailstone with density δ=1 starts from rest with negligible radius r=0. Thereafter its radius is r=kt (k is a constant) as it grows by accretion during its fall. Use Newton#x2019;s second law—according to which the net force F acting on a possibly variable mass m equals the time rate of change dp/dt of its momentum p=mv—to set up and solve the initial value problem

    ddt(mv)=mg,v(0)=0, 

    where m is the variable mass of the hailstone, v=dy/dt is its velocity, and the positive y-axis points downward. Then show that dv/dt=g/4. Thus the hailstone falls as though it were under one-fourth the influence of gravity.

  11. Figure 1.5.7 shows a slope field and typical solution curves for the equation y=xy. (a) Show that every solution curve approaches the straight line y=x1 as x+. (b) For each of the five values y1=3.998, 3.999, 4.000, 4.001, and 4.002, determine the initial value y0 (accurate to four decimal places) such that y(5)=y1 for the solution satisfying the initial condition y(5)=y0.

    FIGURE 1.5.7.

    Slope field and solution curves for y=xy.

  12. Figure 1.5.8 shows a slope field and typical solution curves for the equation y=x+y. (a) Show that every solution curve approaches the straight line y=x1 as x. (b) For each of the five values y1=10, 5, 0, 5, and 10, determine the initial value y0 (accurate to five decimal places) such that y(5)=y1 for the solution satisfying the initial condition y(5)=y0.

    FIGURE 1.5.8.

    Slope field and solution curves for y=x+y.

Polluted Reservoir

Problems 45 and 46 deal with a shallow reservoir that has a one-square-kilometer water surface and an average water depth of 2 meters. Initially it is filled with fresh water, but at time t=0 water contaminated with a liquid pollutant begins flowing into the reservoir at the rate of 200 thousand cubic meters per month. The well-mixed water in the reservoir flows out at the same rate. Your first task is to find the amount x(t) of pollutant (in millions of liters) in the reservoir after t months.

  1. The incoming water has a pollutant concentration of c(t)=10 liters per cubic meter (L/m3). Verify that the graph of x(t) resembles the steadily rising curve in Fig. 1.5.9, which approaches asymptotically the graph of the equilibrium solution x(t)20 that corresponds to the reservoir’s long-term pollutant content. How long does it take the pollutant concentration in the reservoir to reach 10 L/m3?

  2. The incoming water has pollutant concentration c(t)=10(1+cos t) L/m3 that varies between 0 and 20, with an average concentration of 10 L/m3 and a period of oscillation of slightly over 614 months. Does it seem predictable that the lake’s pollutant content should ultimately oscillate periodically about an average level of 20 million liters? Verify that the graph of x(t) does, indeed, resemble the oscillatory curve shown in Fig. 1.5.9. How long does it take the pollutant concentration in the reservoir to reach 10 L/m3?

    FIGURE 1.5.9.

    Graphs of solutions in Problems 45 and 46.

1.5 Application Indoor Temperature Oscillations

For an interesting applied problem that involves the solution of a linear differential equation, consider indoor temperature oscillations that are driven by outdoor temperature oscillations of the form

A(t)=a0+a1cosωt+b1sinωt.
(1)

If ω=π/12, then these oscillations have a period of 24 hours (so that the cycle of outdoor temperatures repeats itself daily) and Eq. (1) provides a realistic model for the temperature outside a house on a day when no change in the overall day-to-day weather pattern is occurring. For instance, for a typical July day in Athens, Georgia with a minimum temperature of 70°F when t=4 (4 a.m.) and a maximum of 90°F when t=16 (4 p.m.), we would take

A(t)=80 10 cos ωt(t 4)=805 cos ωt5 3 sin ωt.
(2)

We derived Eq. (2) by using the identity cos(αβ)=cos αcos β+sin αsin β to get a0=80, a1=5, and b1=53 in Eq. (1).

If we write Newton’s law of cooling (Eq. (3) of Section 1.1) for the corresponding indoor temperature u(t) at time t, but with the outside temperature A(t) given by Eq. (1) instead of a constant ambient temperature A, we get the linear first-order differential equation

dudt=k(uA(t));

that is,

dudt+ku=k(a0+a1cosωt+b1sinωt)
(3)

with coefficient functions P(t)k and Q(t)=kA(t). Typical values of the proportionality constant k range from 0.2 to 0.5 (although k might be greater than 0.5 for a poorly insulated building with open windows, or less than 0.2 for a well-insulated building with tightly sealed windows).

Scenario: Suppose that our air conditioner fails at time t0=0 one midnight, and we cannot afford to have it repaired until payday at the end of the month. We therefore want to investigate the resulting indoor temperatures that we must endure for the next several days.

Begin your investigation by solving Eq. (3) with the initial condition u(0)=u0 (the indoor temperature at the time of the failure of the air conditioner). You may want to use the integral formulas in 49 and 50 of the endpapers, or possibly a computer algebra system. You should get the solution

u(t)=a0+c0ekt+c1cosωt+d1sinωt,
(4)

where

c0=u0a0k2a1kωb1k2+ω2,c1=k2a1kωb1k2+ω2,d1=kωa1+k2b1k2+ω2

with ω=π/12.

With a0=80, a1=5, b1=53 (as in Eq. (2)), ω=π/12, and k=0.2 (for instance), this solution reduces (approximately) to

u(t)=80+et/5(u082.3351)+(2.3351)cosπt12(5.6036)sinπt12.
(5)

Observe first that the “damped” exponential term in Eq. (5) approaches zero as t+, leaving the long-term “steady periodic” solution

usp(t)=80+(2.3351)cosπt12(5.6036)sinπt12.
(6)

Consequently, the long-term indoor temperatures oscillate every 24 hours around the same average temperature 80°F as the average outdoor temperature.

Figure 1.5.10 shows a number of solution curves corresponding to possible initial temperatures u0 ranging from 65°F to 95°F. Observe that—whatever the initial temperature—the indoor temperature “settles down” within about 18 hours to a periodic daily oscillation. But the amplitude of temperature variation is less indoors than outdoors. Indeed, using the trigonometric identity mentioned earlier, Eq. (6) can be rewritten (verify this!) as

FIGURE 1.5.10.

Solution curves given by Eq. (5) with u0=65,68,71,,92,95.

u(t)=80(6.0707) cos(πt121.9656)=80(6.0707) cosπ2(t7.5082).
(7)

Do you see that this implies that the indoor temperature varies between a minimum of about 74°F and a maximum of about 86°F?

Finally, comparison of Eqs. (2) and (7) indicates that the indoor temperature lags behind the outdoor temperature by about 7.508243.5 hours, as illustrated in Fig. 1.5.11. Thus the temperature inside the house continues to rise until about 7:30 p.m. each evening, so the hottest part of the day inside is early evening rather than late afternoon (as outside).

FIGURE 1.5.11.

Comparison of indoor and outdoor temperature oscillations.

For a personal problem to investigate, carry out a similar analysis using average July daily maximum/minimum figures for your own locale and a value of k appropriate to your own home. You might also consider a winter day instead of a summer day. (What is the winter-summer difference for the indoor temperature problem?) You may wish to explore the use of available technology both to solve the differential equation and to graph its solution for the indoor temperature in comparison with the outdoor temperature.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.190.38