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
we divide both sides by y (and, so to speak, multiply by the differential dx) to get
Integrating both sides then gives the general solution .
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
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
and of course the right hand side of Eq. (2) is . Thus each side of Eq. (2) can be viewed as a derivative with respect to x:
Integrating both sides with respect to x gives the same general solution 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 such that multiplication of each side of the differential equation by 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 , 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
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
The result is
Because
the left-hand side is the derivative of the product , so Eq. (5) is equivalent to
Integration of both sides of this equation gives
Finally, solving for y, we obtain the general solution of the linear first-order equation in (3):
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
Begin by calculating the integrating factor .
Then multiply both sides of the differential equation by .
Next, recognize the left-hand side of the resulting equation as the derivative of a product:
Finally, integrate this equation,
then solve for y to obtain the general solution of the original differential equation.
Given an initial condition , you can (as usual) substitute and into the general solution and solve for the value of C yielding the particular solution that satisfies this initial condition.
You need not supply explicitly a constant of integration when you find the integrating factor . For if we replace
in Eq. (4), the result is
But the constant factor does not affect materially the result of multiplying both sides of the differential equation in (3) by , so we might as well take . You may therefore choose for any convenient antiderivative of P(x), without bothering to add a constant of integration.
Solve the initial value problem
Here we have and , so the integrating factor is
Multiplication of both sides of the given equation by yields
which we recognize as
Hence integration with respect to x gives
and multiplication by gives the general solution
Substitution of and now gives so the desired particular solution is
Figure 1.5.1 shows a slope field and typical solution curves for Eq. (7), including the one passing through the point . 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 . The two types of behavior are separated by the particular solution for which in Eq. (8), so for the solution curve that is dashed in Fig. 1.5.1. If , then in Eq. (8), so the term eventually dominates the behavior of y(x), and hence as . But if , then , so both terms in y(x) are negative and therefore as . Thus the initial condition is critical in the sense that solutions that start above on the y-axis grow in the positive direction, while solutions that start lower than grow in the negative direction as . 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.
Find a general solution of
After division of both sides of the equation by , we recognize the result
as a first-order linear equation with and . Multiplication by
yields
and thus
Integration then yields
Multiplication of both sides by gives the general solution
Figure 1.5.2 shows a slope field and typical solution curves for Eq. (9). Note that, as , all other solution curves approach the constant solution curve that corresponds to in Eq. (10). This constant solution can be described as an equilibrium solution of the differential equation, because implies that 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 , for which it follows that . Note that substitution of in the differential equation (9) yields , so it follows that if . Hence we see that is the only equilibrium solution of this differential equation, as seems visually obvious in Fig. 1.5.2.
The preceding derivation of the solution in Eq. (6) of the linear first-order equation 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
exist on I. Our derivation of Eq. (6) shows that if 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 of I and any number , there is—as previously noted—a unique value of C such that . Consequently, we have proved the following existence-uniqueness theorem.
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.
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.
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
The indicated limits and x effect a choice of indefinite integrals in Eq. (6) that guarantees in advance that and that (as you can verify directly by substituting in Eq. (12)).
Solve the initial value problem
Division by gives the linear first-order equation
with and . With the integrating factor in (12) is
so the desired particular solution is given by
In accord with Theorem 1, this solution is defined on the whole positive x-axis.
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
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
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 ranging from to . It appears that on each solution curve, as , and this is in fact true because the sine integral function is bounded.
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.
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 at time . Suppose that solution with a concentration of grams of solute per liter of solution flows into the tank at the constant rate of liters per second, and that the solution in the tank—kept thoroughly mixed by stirring—flows out at the constant rate of liters per second.
To set up a differential equation for x(t), we estimate the change in x during the brief time interval . The amount of solute that flows into the tank during seconds is grams. To check this, note how the cancellation of dimensions checks our computations:
yields a quantity measured in grams.
The amount of solute that flows out of the tank during the same time interval depends on the concentration of solute in the solution at time t. But as noted in Fig. 1.5.4, , where V(t) denotes the volume (not constant unless ) of solution in the tank at time t. Then
We now divide by :
Finally, we take the limit as ; 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
in which , and are constants, but denotes the variable concentration
of solute in the tank at time t. Thus the amount x(t) of solute in the tank satisfies the differential equation
If , then , so Eq. (18) is a linear first-order differential equation for the amount x(t) of solute in the tank at time t.
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 —that you should strive to understand, because it is a very useful tool for obtaining all sorts of differential equations.
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.
Mixture problem Assume that Lake Erie has a volume of and that its rate of inflow (from Lake Huron) and outflow (to Lake Ontario) are both per year. Suppose that at the time (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?
Here we have
and the question is this: When is ? With this notation, Eq. (18) is the separable equation
which we rewrite in the linear first-order form
with constant coefficients , and integrating factor . You can either solve this equation directly or apply the formula in (12). The latter gives
To find when , we therefore need only solve the equation
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?
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 gallons. The change in the amount x of salt in the tank from time t to time (minutes) is given by
so our differential equation is
An integrating factor is
which gives
Substitution of gives , so the amount of salt in the tank at time t is
The tank is full after 30 min, and when , we have
of salt in the tank.
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.
,
,
,
,
,
,
,
,
,
,
Solve the differential equations in Problems 26 through 28 by regarding y as the independent variable rather than x.
Express the general solution of in terms of the error function
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.
(a) Show that
is a general solution of . (b) Show that
is a particular solution of . (c) Suppose that is any general solution of and that is any particular solution of . Show that is a general solution of .
(a) Find constants A and B such that is a solution of . (b) Use the result of part (a) and the method of Problem 31 to find the general solution of . (c) Solve the initial value problem .
Problems 33 through 37 illustrate the application of linear first-order differential equations to mixture problems.
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?
Consider a reservoir with a volume of 8 billion cubic feet () and an initial pollutant concentration of 0.25%. There is a daily inflow of 500 million 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%?
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 and an inflow-outflow rate of year.
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?
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?
Two tanks Consider the cascade of two tanks shown in Fig. 1.5.5, with and 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
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.
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 (b) Find the maximum amount of ethanol ever in tank 2.
Multiple tanks A multiple cascade is shown in Fig. 1.5.6. At time , 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 denote the amount of ethanol in tank n at time t.
(a) Show that . (b) Show by induction on n that
(c) Show that the maximum value of for is . (d) Conclude from Stirling’s approximation that .
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 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 in terms of to derive the differential equation satisfied by the amount A(t) in her retirement account after t years.(b) Compute , the amount available for her retirement at age 70.
Falling hailstone Suppose that a falling hailstone with density starts from rest with negligible radius . Thereafter its radius is (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 of its momentum —to set up and solve the initial value problem
where m is the variable mass of the hailstone, is its velocity, and the positive y-axis points downward. Then show that . Thus the hailstone falls as though it were under one-fourth the influence of gravity.
Figure 1.5.7 shows a slope field and typical solution curves for the equation . (a) Show that every solution curve approaches the straight line as . (b) For each of the five values , and 4.002, determine the initial value (accurate to four decimal places) such that for the solution satisfying the initial condition .
Figure 1.5.8 shows a slope field and typical solution curves for the equation . (a) Show that every solution curve approaches the straight line as . (b) For each of the five values , and 10, determine the initial value (accurate to five decimal places) such that for the solution satisfying the initial condition .
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 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.
The incoming water has a pollutant concentration of liters per cubic meter (). 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 that corresponds to the reservoir’s long-term pollutant content. How long does it take the pollutant concentration in the reservoir to reach ?
The incoming water has pollutant concentration that varies between 0 and 20, with an average concentration of and a period of oscillation of slightly over 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 ?
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
If , 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 when (4 a.m.) and a maximum of when (4 p.m.), we would take
We derived Eq. (2) by using the identity to get , and 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
that is,
with coefficient functions and . 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 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 (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
where
with .
With (as in Eq. (2)), , and (for instance), this solution reduces (approximately) to
Observe first that the “damped” exponential term in Eq. (5) approaches zero as , leaving the long-term “steady periodic” solution
Consequently, the long-term indoor temperatures oscillate every 24 hours around the same average temperature as the average outdoor temperature.
Figure 1.5.10 shows a number of solution curves corresponding to possible initial temperatures ranging from to . 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
Do you see that this implies that the indoor temperature varies between a minimum of about and a maximum of about ?
Finally, comparison of Eqs. (2) and (7) indicates that the indoor temperature lags behind the outdoor temperature by about 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).
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.
13.58.190.38