Differential equations 2
YouTube lecture recording from October 2020
The following YouTube video was recorded for the 2020 iteration of the course. The material is still very similar:
From Words to Maths
How do we form differential equations from words?
Example 1: a growing leaf
Let us try to form a differential equation based on the following information:
The length cm of a leaf during the period of its growth is proportional to the amount of water it contains. During this period the leaf retains a similar shape: that is, the ratio of its length to its width remains constant. The leaf absorbs water from its plant at a rate proportional to and it loses water by evaporation at a rate proportional to the area of the leaf at the time when its length is cm.
Assume the length of the leaf is cm at time days after it was first observed.
Let the rate the leaf receives water be where is a positive constant.
Area of leaf at time days is proportional to since it maintains its shape, so the leaf is losing water at a rate of where is another positive constant.
The rate of growth is given by , which is the rate of change of its length.
When and are both equal to , the solution looks like:
Example 2: solid tumour growth
An avascular tumour tends to grow in a spherical shape, depending on environmental restrictions.
Assuming that the growth rate of the tumour depends only on the availability of oxygen and nutrients, which enter the tumour solely by diffusing through its surface, derive a model for the change in tumour volume over time.
Denote the volume of the tumour at time by , and its radius by .
Since the tumour is a sphere, its volume is proportional to and its surface area to , so the surface area is proportional to .
The rate at which the tumour acquires nutrients, and hence the rate at which the volume increases, is thus proportional to .
This gives us the equation:
>
Solve by separation of variables:
>
where is a constant of integration, the value of which will depend upon the initial conditions.
When and , the solution looks like:
Second Order Differential Equations
Let us try to solve the following equation:
We will use the substitution . This implies that .
Substituting into the original equation, to eliminate , gives
This is a separable equation:
where is an arbitrary constant.
We can then replace using the original substitution to obtain a first order differential equation:
This equation can be solved with a standard integral:
Determining the values of and can be done in several different ways, depending on the kind of information we have.
For example, if we know the following:
At and .
We substitute the first condition into to obtain .
Then substitute and the second condition into the eventual solution to find .
Alternatively, if we instead know that:
and .
This time both conditions can be substituted into the solution:
>
More integration tricks
Let us return to, and solve, our leaf example:
This is a separable differential equation:
We can split apart the integral on the RHS using partial fractions in SymPy using sp.apart
.
We want :
import sympy as sp y, k1, k2 = sp.symbols('y k_1 k_2') sp.apart(1 / (y*(k1 - k2*y)),y)
So and .
We can get from initial conditions. Try doing the algebraic manipulation of this to make the subject of the equation:
where is a constant.
Introductory problems
Introductory problems 1
Find the general solutions of the following differential equations:
Check your answers by differentiating them.
Main problems
Main problems 1
A circular patch of oil on the surface of some water has a radius metres at time minutes. When minutes, m and when minutes, m.
Predict the value of when m, using a simple model in which the rate of increase of is taken to be constant. Find for this model.
In a more refined model, the rate of increase of is taken to be proportional to . Express this statement as a differential equation, and find the general solution. Find for this model.
Compare the two models used in 1. and 2., by sketching on the same figure or plotting using Python. Comment on the differences seen during different time intervals.
Main problems 2
A nuclear installation local to Oxford 'lost' 17g of Cobalt-60 between two inspections 6 months apart. A spokesperson told a newspaper reporter that the loss was due to 'natural radioactive decay' during that period.
If this explanation was correct, what mass of Cobalt was stored on the site? (The half life of Co = years.)
Main problems 3
By making a substitution , solve the equation
Hint: you will need to use partial fractions for part of this question, to break up
Main problems 4
Suppose a cell contains a chemical (the solute) dissolved in it at a concentration of , and the concentration of the same substance outside the cell is a constant . By Fick's law, if and are unequal, solute moves across the cell wall at a rate proportional to the difference between and , towards the region of lower concentration.
Write down a differential equation which is satisfied by .
Solve this differential equation with the initial condition .
Sketch the solutions for and .
Blood glucose concentration is 5.1 mM and the concentration inside the cell is at 0.1 mM. If glucose utilisation within the cell is totally inhibited, it takes 1 min for the intracellular concentration to reach 2.6 mM. How long would it take for the concentration to reach 5.0 mM?
Calculate the amount of glucose (moles) entering the cell to bring the concentration from 0.1 mM to 5 mM assuming the cell is spherical with a diameter of m.
Extension problems
Extension problems 1
Consider a simple model of the production and degradation of a protein, shown by the reaction chain
where and are mass action coefficients.
Form and solve a differential equation describing the change in protein concentration.
What concentration is reached after 'sufficient' time has elapsed?