Differential Equations (Mathematical Modeling)

From Department of Mathematics at UTSA
Jump to navigation Jump to search

Introduction to Differential Equations

Key points

  • A differential equation is an equation involving a derivative.
  • The order of a differential equation is the order of the highest derivative.
  • Differential equations are used to model situations which involve rates of change.
  • The solution to a differential equation gives a relationship between the variables themselves, not the derivatives.
  • The general solution of a first order differential equation satisfies the differential equations and has a constant of integration in its solution.
  • The particular solution of a differential equation is one in which additional information has been used to calculate the constant of integration.
  • The general solution may be represented by a family of curves and the particular solution is one of that family.
  • To verify that a function is a particular solution, you must check that it satisfies the differential equation and initial conditions.

How does the quantity of drug in the body vary with time? How long does it take a cup of coffee take to cool? After how many days will the moon take the same shape again? These question all have on thing in common. They have a quantity that is continuously changing. We see change in most things in life. Some changes are permanent; like the temperature of coffee. Some have repeating patterns, like the cycle of the moon.

You have already studied a lot of mathematics to describe these changes, but never really put that into real life applications. You will know from previously studies calculus that the rate of change of a quantity is called a derivative. If an equation contains a derivative, it is a differential equation.

The simplest form of a differential equation is to show the rate of change of one variable with respect to another like:

  • 1.,
  • 2.

These are 2 very basic examples of differential equations. You will learn how to solve them in later sections.

A solution to a differential equation gives a relationship between the variables, which doesn't involve a derivative. The solutions to the differential equations above are given by:

  • 1.
  • 2.

(where C and A are constants of integration)

Differential equations begin to get more complicated where higher derivatives are involved (), or if they included more variables.

Modeling

In order to solve any problem successfully, you need to develop a mathematical model that describes the situation adequately. In this module you will learn how to solve problems which can be solved using differential equations.

With some problems you can go straight into the mathematics. This is usually the case where you have already have some models that you can apply to the situation. These usually include; but are not limited to newtons laws of motion, and many kinematics problems (stuff in mechanics 1, basically.)Because of this your solution to a problem will depend on assumptions and simplifications you made; like ignoring air resistance, or assuming constant mass, ect. This can sometimes give significant errors in your solution. Collecting data can help see if your model is off or not.

Some problems will need their own model developed, however. This means you will need to do some experiments to find a correlation between the results you get. This will help with understanding the problem better, and help you formulate a mathematical model.

Examples

Pharmaceutical example

You have been asked to find out how much of an antidepressant is left in the body after a given time of taking the pill. How would you do this? Well the process of removing a drug from the body varies with the drug. The kidney plays the most important rule, doing something called renal clearance. The rate of this can be measured by taking urine samples.

Lets make some assumptions about the problem:

  • Once the pill has been taking, it is instantly absorbed into the body
  • The drug is removed from the bloodstream via renal clearance.
  • The rate of renal clearance is proportional to the quantity of the drug in the body

We can now formulate a model. Let 't' be time in hours, and 'q' be the amount of drug in the body (in mg). this means that:

we replace the proportional sign:

where k is a positive constant of proportionality, and the negative sign is there because the amount of drug is decreasing.

We will show later that the solution to the differential equation is:

, Where A is a constant of integration. Although we have not shown this solution is true, we can check that is is a solution by differentiating it.

, so therefore we have shown that it is a solution

Now we need to find values for A and k,for this we will need some experimental results:

  • In the morning a man takes 40 mg of the antidepressant
  • Every hour, approximately 5% of it is gone

We now let t=0, and q=40

in this case our constant of integration, A, is 40. So therefore:

Now lets find k. We know that every hour the amount of drug decreases by 5% every hour, so when t=1, q=(0.75)*40=38

Dividing each side by 40, and taking logs of each side gives that:

This gives that:

The Differential Equation of Free Motion or SHM

Finally, if we set the equation above equal to zero, we end up with the following:

Since our leading coeffiecient should be equal to 1, we divide by the mass to get:

If we set , we'll have our final form of this equation:

The above equation is known to describe Simple Harmonic Motion or Free Motion.

Initial Conditions

With the free motion equation, there are generally two bits of information one must have to appropriately describe the mass's motion.

  1. The starting position of the mass.
  2. The starting direction and magnitude of motion.

Generally, one isn't present without the other. For simplicity, we will consider all displacement below the equilibrium point as and above as .

For upward motion , and for downward motion .

Solution

Multiplying this equation by gives:

The first and the second addends are exact derivatives, so this equation may be integrated to obtain the following relation:

The first addend of this relation is known as the kinetic energy of the mass and the second — as the potential energy of the spring. The above integral represents the energy conservation law. This is also a first order separable differential equation. It may be rewritten as

The integration of this relation gives


Or, finally rearranging the result, substituting , and solving for we obtain

Exponential Growth and Decay

One of the most common differential equations in science is

.

The solution to this is

.

If k is positive, this is called exponential growth. If k is negative, its exponential decay. Both are used in science, for very different reasons.

Population Growth

Lets say we have a group of animals in the wild. We want to know how many animals there will be in t years. We know how many there are now. We also know the birth rate and death rate. Can we solve this problem?

Of course we can. First, we need to figure out the rate of growth. If the birth rate is B, and the death rate is D, the total rate of change is (B-D). Since this is the rate, we need to multiply it by the current population to get the population growth. The final equation looks like

where P is the population. That looks like the equation for exponential growth, doesn't it? As a matter of fact, change the 'delta' to a differential, and it is. The growth factor is (B-D).

Example

In a certain population of rabbits, the birth rate is 10%. The death rate is 15%. The initial population is 100. How many rabbits are there after 10 years? Will we always have rabbits?

From our solution to the exponential equation:

Unfortunately, we will not always have rabbits. Since the growth rate is negative, they will eventually go extinct. (Note: we will never actually hit 0, but in real life you can't have less than 1 rabbit. If we were measuring a continuous property instead of a discrete one, we would always have something, it would just get very small).

Radioactive Decay

Another situation for exponential growth is radioactive isotopes. If you have a sample of radioactive material, individual atoms will randomly decay or not decay. While you can't know exactly how many atoms decay and when, you do know the average rate of decay. Every λ years, half of the atoms left will decay. This period of time, λ, is called a half life. The activity of the sample (how many decays per second) is called A. Mathematically, this looks like

These problems look just like the problem above. Just like rabbits, we will eventually run out of radioactive atoms as well.

Other Applications

Many fundamental laws of physics and chemistry can be formulated as differential equations. In biology and economics, differential equations are used to model the behavior of complex systems. The mathematical theory of differential equations first developed together with the sciences where the equations had originated and where the results found application. However, diverse problems, sometimes originating in quite distinct scientific fields, may give rise to identical differential equations. Whenever this happens, mathematical theory behind the equations can be viewed as a unifying principle behind diverse phenomena. As an example, consider the propagation of light and sound in the atmosphere, and of waves on the surface of a pond. All of them may be described by the same second-order partial differential equation, the wave equation, which allows us to think of light and sound as forms of waves, much like familiar waves in the water. Conduction of heat, the theory of which was developed by Joseph Fourier, is governed by another second-order partial differential equation, the heat equation. It turns out that many diffusion processes, while seemingly different, are described by the same equation; the Black–Scholes equation in finance is, for instance, related to the heat equation.


Resources

Licensing

Content obtained and/or adapted from: