Docsity

1.7 Mixing Problems, Study notes of Differential Equations

Toggle sidebar
bg1
“main”
2007/2/16
page 57
i
i
i
i
i
i
i
i
1.7 Modeling Problems Using First-Order Linear Differential Equations 57
For Problems 33–38, use a differential equation solver to de-
termine the solution to each of the initial-value problems and
sketch the corresponding solution curve.
33. The initial-value problem in Problem 15.
34. The initial-value problem in Problem 16.
35. The initial-value problem in Problem 17.
36. The initial-value problem in Problem 18.
37. The initial-value problem in Problem 19.
38. The initial-value problem in Problem 20.
1.7 Modeling Problems Using First-Order Linear Differential Equations
There are many examples of applied problems whose mathematical formulation leads
to a first-order linear differential equation. In this section we analyze two in detail.
Mixing Problems
Statement of the Problem: Consider the situation depicted in Figure 1.7.1. A tank initially
contains V0liters of a solution in which is dissolved A0grams of a certain chemical. A
solution containing c1grams/liter of the same chemical flows into the tank at a constant
rate of r1liters/minute, and the mixture flows out at a constant rate of r2liters/minute. We
assume that the mixture is kept uniform by stirring. Then at any time tthe concentration
of chemical in the tank, c2(t), is the same throughout the tank and is given by
c2=A(t)
V(t),(1.7.1)
where V(t)denotes the volume of solution in the tank at time tand A(t ) denotes the
amount of chemical in the tank at time t.
Solution of concentration c1 grams/liter
flows in at a rate of r1 liters/minute
A(t) amount of chemical in the tank at time t
V(t) volume of solution in the tank at time t
c2(t) A(t)/V(t) concentration of chemical in the tank at time
t
Solution of concentration
c2 grams/liter flows out at
a rate of r2 liters/minute
Figure 1.7.1: A mixing problem.
Mathematical Formulation: The two functions in the problem are V(t) and A(t).In
order to determine how they change with time, we first consider their change during a
short time interval, t minutes. In time t,r1t liters of solution flow into the tank,
whereas r2t liters flow out. Thus during the time interval t,thechange in the volume
of solution in the tank is
V =r1t −r2t =(r1−r2)t. (1.7.2)
Since the concentration of chemical in the inflow is c1grams/liter (assumed constant),
it follows that in the time interval t the amount of chemical that flows into the tank is
c1r1t. Similarly, the amount of chemical that flows out in this same time interval is
approximately6c2r2t. Thus, the total change in the amount of chemical in the tank
6This is only an approximation, since c2is not constant over the time interval t. The approximation will
become more accurate as t →0.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download 1.7 Mixing Problems and more Study notes Differential Equations in PDF only on Docsity!

page 57

 

1.7 Modeling Problems Using First-Order Linear Differential Equations 57

For Problems 33–38, use a differential equation solver to de- termine the solution to each of the initial-value problems and sketch the corresponding solution curve.

33.  The initial-value problem in Problem 15. 34.  The initial-value problem in Problem 16. 35.  The initial-value problem in Problem 17. 36.  The initial-value problem in Problem 18. 37.  The initial-value problem in Problem 19. 38.  The initial-value problem in Problem 20.

1.7 Modeling Problems Using First-Order Linear Differential Equations

There are many examples of applied problems whose mathematical formulation leads to a first-order linear differential equation. In this section we analyze two in detail.

Mixing Problems

Statement of the Problem: Consider the situation depicted in Figure 1.7.1. A tank initially contains V 0 liters of a solution in which is dissolved A 0 grams of a certain chemical. A solution containing c 1 grams/liter of the same chemical flows into the tank at a constant rate of r 1 liters/minute, and the mixture flows out at a constant rate of r 2 liters/minute. We assume that the mixture is kept uniform by stirring. Then at any time t the concentration of chemical in the tank, c 2 (t), is the same throughout the tank and is given by

c 2 =

A(t) V (t)

where V (t) denotes the volume of solution in the tank at time t and A(t) denotes the amount of chemical in the tank at time t.

Solution of concentration c 1 grams/liter flows in at a rate of r 1 liters/minute

A ( t )  amount of chemical in the tank at time t V ( t )  volume of solution in the tank at time t c 2 (t)  A ( t )/ V ( t )  concentration of chemical in the tank at time t

Solution of concentration c 2 grams/liter flows out at a rate of r 2 liters/minute

Figure 1.7.1: A mixing problem. Mathematical Formulation: The two functions in the problem are V (t) and A(t). In order to determine how they change with time, we first consider their change during a short time interval, t minutes. In time t, r 1 t liters of solution flow into the tank, whereas r 2 t liters flow out. Thus during the time interval t, the change in the volume of solution in the tank is

V = r 1 t − r 2 t = (r 1 − r 2 ) t. (1.7.2)

Since the concentration of chemical in the inflow is c 1 grams/liter (assumed constant), it follows that in the time interval t the amount of chemical that flows into the tank is c 1 r 1 t. Similarly, the amount of chemical that flows out in this same time interval is approximately 6 c 2 r 2 t. Thus, the total change in the amount of chemical in the tank (^6) This is only an approximation, since c 2 is not constant over the time interval t. The approximation will become more accurate as t → 0.

page 58

 

58 CHAPTER 1 First-Order Differential Equations

during the time interval t, denoted by A, is approximately

A ≈ c 1 r 1 t − c 2 r 2 t = (c 1 r 1 − c 2 r 2 ) t. (1.7.3)

Dividing Equations (1.7.2) and (1.7.3) by t yields

V t

= r 1 − r 2 and

A

t

≈ c 1 r 1 − c 2 r 2 ,

respectively. These equations describe the rates of change of V and A over the short, but finite, time interval t. In order to determine the instantaneous rates of change of V and A, we take the limit as t → 0 to obtain dV dt

= r 1 − r 2 (1.7.4)

and dA dt

= c 1 r 1 −

A

V

r 2 , (1.7.5)

where we have substituted for c 2 from Equation (1.7.1). Since r 1 and r 2 are constants, we can integrate Equation (1.7.4) directly, obtaining

V (t) = (r 1 − r 2 )t + V 0 ,

where V 0 is an integration constant. Substituting for V into Equation (1.7.5) and rear- ranging terms yields the linear equation for A(t) :

dA dt

r 2 (r 1 − r 2 )t + V 0

A = c 1 r 1. (1.7.6)

This differential equation can be solved, subject to the initial condition A( 0 ) = A 0 , to determine the behavior of A(t).

Remark The reader need not memorize Equation (1.7.6), since it is better to derive it for each specific example.

Example 1.7.1 A tank contains 8 L (liters) of water in which is dissolved 32 g (grams) of chemical. A solution containing 2 g/L of the chemical flows into the tank at a rate of 4 L/min, and the well-stirred mixture flows out at a rate of 2 L/min.

1. Determine the amount of chemical in the tank after 20 minutes. 2. What is the concentration of chemical in the tank at that time?

Solution: We are given

r 1 = 4 L/min, r 2 = 2 L/min, c 1 = 2 g/L, V ( 0 ) = 8 L, and A( 0 ) = 32 g.

For parts 1 and 2, we must find A( 20 ) and A( 20 )/V ( 20 ), respectively. Now,

V = r 1 t − r 2 t

implies that

dV dt

page 60

 

60 CHAPTER 1 First-Order Differential Equations

Electric Circuits

An important application of differential equations arises from the analysis of simple electric circuits. The most basic electric circuit is obtained by connecting the ends of a wire to the terminals of a battery or generator. This causes a flow of charge, q(t), measured in coulombs (C), through the wire, thereby producing a current, i(t), measured in amperes (A), defined to be the rate of change of charge. Thus,

i(t) =

dq dt

In practice a circuit will contain several components that oppose the flow of charge. As current passes through these components, work has to be done, and the loss of energy is described by the resulting voltage drop across each component. For the circuits that we will consider, the behavior of the current in the circuit is governed by Kirchoff’s second law, which can be stated as follows. Kirchoff’s Second Law: The sum of the voltage drops around a closed circuit is zero. In order to apply this law we need to know the relationship between the current passing through each component in the circuit and the resulting voltage drop. The com- ponents of interest to us are resistors, capacitors, and inductors. We briefly describe each of these next.

1. Resistors : A resistor is a component that, owing to its constituency, directly resists the flow of charge through it. According to Ohm’s law , the voltage drop, VR , between the ends of a resistor is directly proportional to the current that is passing through it. This is expressed mathematically as

VR = iR (1.7.10)

where the constant of proportionality, R, is called the resistance of the resistor. The units of resistance are ohms ( ).

2. Capacitors : A capacitor can be thought of as a component that stores charge and thereby opposes the passage of current. If q(t) denotes the charge on the capacitor at time t, then the drop in voltage, VC , as current passes through it is directly proportional to q(t). It is usual to express this law in the form

VC =

C

q, (1.7.11)

where the constant C is called the capacitance of the capacitor. The units of capacitance are farads (F).

3. Inductors : The third component that is of interest to us is an inductor. This can be considered as a component that opposes any change in the current flowing through it. The drop in voltage as current passes through an inductor is directly proportional to the rate at which the current is changing. We write this as

VL = L

di dt

where the constant L is called the inductance of the inductor, measured in units of henrys (H).

4. EMF : The final component in our circuits will be a source of voltage that produces an electromotive force (EMF), driving the charge through the circuit. As current passes through the voltage source, there is a voltage gain, which we denote by E(t) volts (that is, a voltage drop of −E(t) volts).

page 61

 

1.7 Modeling Problems Using First-Order Linear Differential Equations 61

Resistance, R Switch

Capacitance, C

Inductance, L

E ( t )

i ( t )

Figure 1.7.2: A simple RLC circuit.

A circuit containing all of these components is shown in Figure 1.7.2. Such a circuit is called an RLC circuit. According to Kirchoff’s second law, the sum of the voltage drops at any instant must be zero. Applying this to the RLC circuit in Figure 1.7.2, we obtain

VR + VC + VL − E(t) = 0. (1.7.13)

Substituting into Equation (1.7.13) from (1.7.10)–(1.7.12) and rearranging yields the basic differential equation for an RLC circuit—namely,

L

di dt

  • Ri +

q C

= E(t). (1.7.14)

Three cases are important in applications, two of which are governed by first-order linear differential equations.

Case 1: An RL CIRCUIT. In the case when no capacitor is present, we have what is referred to as an RL circuit. The differential equation (1.7.14) then reduces to

di dt

R

L

i =

L

E(t). (1.7.15)

This is a first-order linear differential equation for the current in the circuit at any time t.

Case 2: An RC CIRCUIT. Now consider the case when no inductor is present in the circuit. Setting L = 0 in Equation (1.7.14) yields

i +

RC

q =

E

R

In this equation we have two unknowns, q(t) and i(t). Substituting from (1.7.9) for i(t) = dq/dt, we obtain the following differential equation for q(t):

dq dt

RC

q =

E

R

In this case, the first-order linear differential equation (1.7.16) can be solved for the charge q(t) on the plates of the capacitor. The current in the circuit can then be obtained from

i(t) =

dq dt by differentiation.

Case 3: An RLC CIRCUIT. In the general case, we must consider all three compo- nents to be present in the circuit. Substituting from Equation (1.7.9) into Equation (1.7.14)

page 63

 

1.7 Modeling Problems Using First-Order Linear Differential Equations 63

so that

i(t) =

E 0

L(a^2 + ω^2 )

(a cos ωt + ω sin ωt − ae−at^ ). (1.7.18)

This solution can be written in the form

i(t) = i (^) S (t) + iT (t), where

iS (t) =

E 0

L(a^2 + ω^2 )

(a cos ωt + ω sin ωt), iT (t) = −

aE 0 L(a^2 + ω^2 )

e−at^.

The term iT (t) decays exponentially with time and is referred to as the transient part of the solution. As t → ∞, the solution (1.7.18) approaches the steady-state solution , iS (t). The steady-state solution can be written in a more illuminating form as follows. If we construct the right-angled triangle (see Figure 1.7.3) with sides a and ω, then the hypotenuse of the triangle is

a^2 + ω^2. Consequently, there exists a unique angle φ in ( 0 , π/ 2 ), such that

( a

2 ^ v

(^2) )1/^

f a

v

Figure 1.7.3: Defining the phase angle for an RL circuit.

cos φ =

a √ a^2 + ω^2

, sin φ =

ω √ a^2 + ω^2

Equivalently,

a =

a^2 + ω^2 cos φ, ω =

a^2 + ω^2 sin φ.

Substituting for a and ω into the expression for iS yields

iS (t) =

E 0

L

a^2 + ω^2

(cos ωt cos φ + sin ωt sin φ),

which can be written, using an appropriate trigonometric identity, as

iS (t) =

E 0

L

a^2 + ω^2

cos(ωt − φ).

This is referred to as the phase-amplitude form of the solution. Comparing this with the original driving term, E 0 cos ωt, we see that the system has responded with a steady- state solution having the same periodic behavior, but with a phase shift of φ radians. Furthermore the amplitude of the response is

A =

E 0

L

a^2 + ω^2

E 0

R^2 + ω^2 L^2

iS ( t ), E ( t )

t

iS ( t )  A cos (v t — f)

E ( t )  E 0 cos v t

Figure 1.7.4: The response of an RL circuit to the driving term E(t) = E 0 cos ωt.

page 64

 

64 CHAPTER 1 First-Order Differential Equations

i (^) S ( t )

i ( t )  iS ( t )  i (^) T ( t )

i ( t ), iS ( t )

t

Figure 1.7.5: The transient part of the solution for an RL circuit dies out as t increases.

where we have substituted for a = R/L. This is illustrated in Figure 1.7.4. The general picture that we have, therefore, is that the transient part of the solution affects i(t) for a short period of time, after which the current settles into a steady-state. In the case when the driving EMF has the form E(t) = E 0 cos ωt, the steady-state is a phase shift of this driving EMF with an amplitude given in Equation (1.7.19). This general behavior is illustrated in Figure 1.7.5.  Our next example illustrates the procedure for solving the differential equation (1.7.16) governing the behavior of an RC circuit.

Example 1.7.3 Consider the RC circuit in which R = 0. 5 , C = 0 .1 F, and E 0 = 20 V. Given that the capacitor has zero initial charge, determine the current in the circuit after 0.25 seconds. Solution: In this case we first solve Equation (1.7.16) for q(t) and then determine the current in the circuit by differentiating the result. Substituting for R, C and E into Equation (1.7.16) yields

dq dt

  • 20 q = 40 ,

which has general solution

q(t) = 2 + ce−^20 t^ ,

where c is an integration constant. Imposing the initial condition q( 0 ) = 0 yields c = −2, so that

q(t) = 2 ( 1 − e−^20 t^ ).

Differentiating this expression for q gives the current in the circuit

i(t) =

dq dt

= 40 e−^20 t^.

Consequently,

i( 0. 25 ) = 40 e−^5 ≈ 0 .27 A. 

page 66

 

66 CHAPTER 1 First-Order Differential Equations

5. A tank initially contains 10 L of a salt solution. Water flows into the tank at a rate of 3 L/min, and the well- stirred mixture flows out at a rate of 2 L/min. After 5 min, the concentration of salt in the tank is 0.2 g/L. Find: (a) The amount of salt in the tank initially. (b) The volume of solution in the tank when the con- centration of salt is 0.1 g/L. 6. A tank initially contains 20 L of water. A solution containing 1 g/L of chemical flows into the tank at a rate of 3 L/min, and the mixture flows out at a rate of 2 L/min. (a) Set up and solve the initial-value problem for A(t), the amount of chemical in the tank at time t. (b) When does the concentration of chemical in the tank reach 0.5 g/L? 7. A tank initially contains w liters of a solution in which is dissolved A 0 grams of chemical. A solution contain- ing k g/L of this chemical flows into the tank at a rate of r L/min, and the mixture flows out at the same rate. (a) Show that the amount of chemical, A(t), in the tank at time t is A(t) = e−(rt)/w[kw(e (rt)/w^ − 1 ) + A 0 ]. (b) Show that as t → ∞, the concentration of chem- ical in the tank approaches k g/L. Is this result reasonable? Explain. 8. Consider the double mixing problem depicted in Fig- ure 1.7.6.

r 1 , c 1

r 3 , c 3

r 2 , c 2

A (^1) A 2

Figure 1.7.6: Double mixing problem

(a) Show that the following are differential equations for A 1 (t) and A 2 (t): dA 1 dt

r 2 (r 1 − r 2 )t + V 1

A 1 = c 1 r 1 ,

dA 2 dt

r 3 (r 2 − r 3 )t + V 2

A 2 =

r 2 A 1 (r 1 − r 2 )t + V 1

where V 1 and V 2 are constants. (b) Let r 1 = 6 L/min, r 2 = 4 L/min, r 3 = 3 L/min, and c 1 = 0.5 g/L. If the first tank initially holds 40 L of water in which 4 grams of chemical is dissolved, whereas the second tank initially con- tains 20 g of chemical dissolved in 20 L of water, determine the amount of chemical in the second tank after 10 min.

9. Consider the RL circuit in which R = 4 , L = 0. 1 H, and E(t) = 20 V. If no current is flowing initially, determine the current in the circuit for t ≥ 0. 10. Consider the RC circuit which has R = 5 , C = 501 F, and E(t) = 100 V. If the capacitor is uncharged initially, determine the current in the circuit for t ≥ 0. 11. An RL circuit has EMF E(t) = 10 sin 4t V. If R = 2 , L = 23 H, and there is no current flowing initially, determine the current for t ≥ 0. 12. Consider the RC circuit with R = 2 , C = 18 F, and E(t) = 10 cos 3t V. If q( 0 ) = 1 C, determine the current in the circuit for t ≥ 0. 13. Consider the general RC circuit with E(t) = 0. Sup- pose that q( 0 ) = 5 C. Determine the charge on the capacitor for t > 0. What happens as t → ∞? Is this reasonable? Explain. 14. Determine the current in an RC circuit if the capac- itor has zero charge initially and the driving EMF is E = E 0 , where E 0 is a constant. Make a sketch show- ing the change in the charge q(t) on the capacitor with time and show that q(t) approaches a constant value as t → ∞. What happens to the current in the circuit as t → ∞? 15. Determine the current flowing in an RL circuit if the applied EMF is E(t) = E 0 sin ωt, where E 0 and ω are constants. Identify the transient part of the solution and the steady-state solution. 16. Determine the current flowing in an RL circuit if the applied EMF is constant and the initial current is zero. 17. Determine the current flowing in an RC circuit if the capacitor is initially uncharged and the driving EMF is given by E(t) = E 0 e−at^ , where E 0 and a are constants.

page 67

 

1.8 Change of Variables 67

18. Consider the special case of the RLC circuit in which the resistance is negligible and the driving EMF is zero. The differential equation governing the charge on the capacitor in this case is

d^2 q dt^2

LC

q = 0.

If the capacitor has an initial charge of q 0 coulombs,

and no current is flowing initially, determine the charge on the capacitor for t > 0, and the corresponding current in the circuit. [ Hint: Let u = dq/dt and use the chain rule to show that this implies du/dt = u(du/dq).]

19. Repeat the previous problem for the case in which the driving EMF is E(t) = E 0 , a constant.

1.8 Change of Variables

So far we have introduced techniques for solving separable and first-order linear dif- ferential equations. Clearly, most first-order differential equations are not of these two types. In this section, we consider two further types of differential equations that can be solved by using a change of variables to reduce them to one of the types we know how to solve. The key point to grasp, however, is not the specific changes of variables that we discuss, but the general idea of changing variables in a differential equation. Further examples are considered in the exercises. We first require a preliminary definition.

DEFINITION 1.8.

A function f (x, y) is said to be homogeneous of degree zero^7 if

f (tx, ty) = f (x, y)

for all positive values of t for which (tx, ty) is in the domain of f.

Remark Equivalently, we can say that f is homogeneous of degree zero if it is invariant under a rescaling of the variables x and y. The simplest nonconstant functions that are homogeneous of degree zero are f (x, y) = y/x, and f (x, y) = x/y.

Example 1.8.2 If f (x, y) =

x^2 − y^2 2 xy + y^2

, then

f (tx, ty) =

t^2 (x^2 − y^2 ) t^2 ( 2 xy + y^2 )

= f (x, y),

so that f is homogeneous of degree zero.  In the previous example, if we factor an x^2 term from the numerator and denominator, then the function f can be written in the form

f (x, y) =

x^2 [ 1 − (y/x)^2 ] x^2 [ 2 (y/x) + (y/x)^2 ]

That is,

f (x, y) =

1 − (y/x)^2 2 (y/x) + (y/x)^2

7 More generally, f (x, y) is said to be homogeneous of degree m if f (tx, ty) = t m^ f (x, y).