Differential Equations (Mathematical Modeling)

From Department of Mathematics at UTSA
Revision as of 11:47, 15 October 2021 by Lila (talk | contribs)
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


Resources