1 Modelling with first-order equations

1.1 Applying Newton’s law of cooling

In Section 19.1 we introduced Newton’s law of cooling. The model equation is

d θ d t = k ( θ θ s ) θ = θ 0 at t = 0. ( 5 )

where θ = θ ( t ) is the temperature of the cooling object at time t , θ s the temperature of the environment (assumed constant) and k is a thermal constant related to the object, θ 0 is the initial temperature of the liquid.

Task!

Solve this initial value problem:

d θ d t = k ( θ θ s ) , θ = θ 0 at    t = 0

Separate the variables to obtain an equation connecting two integrals:

d θ θ θ s = k d t

Now integrate both sides of this equation:

ln ( θ θ s ) = k t + C where C is constant Apply the initial condition and take exponentials to obtain a formula for θ :

ln ( θ 0 θ s ) = C . Hence ln ( θ θ s ) = k t + ln ( θ 0 θ s ) so that ln ( θ θ s ) ln ( θ 0 θ 0 ) = k t

Thus, rearranging and inverting, we find:

ln θ θ s θ 0 θ s = k t θ θ s θ 0 θ s = e k t giving θ = θ s + ( θ 0 θ s ) e k t .

The graph of θ against t for θ = θ s + ( θ 0 θ s ) e k t is shown in Figure 4 below.

Figure 4

No alt text was set. Please request alt text from the person who provided you with this resource.

We see that as time increases ( t ), then the temperature of the object cools down to that of the environment, that is: θ θ s .

We could have solved (5) by the integrating factor method, which you are now asked to do.

Task!

We can write the equation for Newton’s law of cooling (5) as

d θ d t + k θ = k θ s , θ = θ 0 at t = 0 (6)

State the integrating factor for this equation:

e k d t = e k t is the integrating factor.

Multiplying (6) by this factor we find that

e k t d θ d t + k e k t θ = k θ s e k t or, rearranging, d d t ( e k t θ ) = k θ s e k t

Now integrate this equation and apply the initial condition:

Integration produces e k t θ = θ s e k t + C , where C is an arbitrary constant. Then, applying the initial condition: when t = 0 , θ 0 = θ s + C so that C = θ 0 θ s gives the same result as before:

θ = θ s + ( θ 0 θ s ) e k t ,

1.2 Modelling electrical circuits

Another application of first-order differential equations arises in the modelling of electrical circuits.

In Section 19.1 the differential equation for the RL circuit in Figure 5 below was shown to be

L d i d t + R i = E

in which the initial condition is i = 0 at t = 0 .

Figure 5

No alt text was set. Please request alt text from the person who provided you with this resource.

First we write this equation in standard form { d y d x + P ( x ) y = Q ( x ) } and obtain the integrating factor.

Dividing the differential equation through by L gives

d i d t + R L i = E L

which is now in standard form. The integrating factor is e R L d t = e R t L .

Multiplying the equation in standard form by the integrating factor gives

e R t L d i d t + e R t L R L i = E L e R t L

or, rearranging,

d d t ( e R t L i ) = E L e R t L .

Now we integrate both sides and apply the initial condition to obtain the solution.

Integrating the differential equation gives:

e R t L i = E R e R t L + C

where C is a constant so

i = E R + C e R t L

Applying the initial condition i = 0 when t = 0 gives

0 = E R + C

so that C = E R .

Finally, i = E R ( 1 e R t L ) .

Note that as t , i E R so as t increases the effect of the inductor diminishes to zero.

Task!

A spherical pill with volume V and surface area S is swallowed and slowly dissolves in the stomach, releasing an active component. In one model it is assumed that the capsule dissolves in the stomach acids such that the rate of change in volume, d V d t , is directly proportional to the pill’s surface area.

  1. Show that d V d t = k V 2 3 where k is a positive real constant and solve this given that V = V 0 at t = 0 .
  2. Experimental measurements indicate that for a 4 mm pill, half of the volume has dissolved after 3 hours. Find the rate constant k ( m s 1 ).
  3. Estimate the time required for 95% of the pill to dissolve.
  1. First write down the formulae for volume of a sphere ( V ) and surface area of a sphere ( S ) and so express S in terms of V by eliminating r :

    V = 4 3 π r 3 S = 4 π r 2

    From the V equation r = 3 V 4 π 1 3 so S = ( 36 π ) 1 3 V 2 3 = k V 2 3 for constant k .

    Now write down the differential equation modelling the solution:

    d V d t = k V 2 3 (negative to represent a decrease with time)

    Using the condition V = V 0 when t = 0 , solve the differential equation:

    Solving by separation of variables gives

    V = 1 3 ( C k t ) 1 3

    and setting V = V 0 when t = 0 means

    V 0 = 1 3 C 3 so C = 3 V 0 1 3 and the solution is

    V = V 0 1 3 k t 3 3

  2. Impose the condition that half the volume has dissolved after 3 hours to find k :

    V = V 0 1 3 k t 3 3

    and when t = 3 , V = V 0 2 so

    V 0 2 1 3 = V 0 1 3 k and so k = V 0 1 3 ( 1 ( 0.5 ) 1 3 )

  3. First write down the solution to the differential equation inserting the value of k obtained in (b) and then use it to estimate the time to 95% dissolving:

    V = V 0 1 3 V 0 1 3 ( 1 ( 0.5 ) 1 3 ) t 3 3 i.e. V = V 0 1 ( 1 ( 0.5 ) 1 3 ) t 3 3

    When 95% dissolved V = 0.05 V 0 so

    0.05 V 0 = V 0 1 ( 1 ( 0.5 ) 1 3 ) t 3 3 so ( 0.05 ) 1 3 = 1 ( 1 ( 0.5 ) 1 3 ) t 3

    so

    t = 3 1 ( 0.05 ) 1 3 1 ( 0.5 ) 1 3 9.185 9  hr  11 min