Examples of differential equations

From Wikipedia, the free encyclopedia

Contents

[edit] A separable first order linear ordinary differential equation

A separable linear ordinary differential equation of the first order has the general form:

\frac{dy}{dt} + f(t) y = 0,

where f(t) is some known function. We may solve this by separation of variables (moving the y terms to one side and the t terms to the other side),

\frac{dy}{y} = -f(t)\, dt.

Integrating, we find

\ln y = -F(t) + C\,

where

F(t) = \int f(t)\,dt

is the antiderivative of f(t) and C is a constant. Then, by exponentiation, we obtain

y = A e^{-F(t)},\,

with A an arbitrary constant. (We can easily confirm that this is a solution by plugging it into the original differential equation.)

Some elaboration is needed since f(t) is not in fact a constant, indeed it might not even be integrable. Arguably, one must also assume something about the domains of the functions involved before the equation is fully defined. Are we talking complex functions, or just real, for example? The usual textbook approach is to discuss forming the equations well before considering how to solve them.

[edit] Non-separable first order linear ordinary differential equations

Some first order linear ODEs (ordinary differential equations) are not separable like in the above example. In order to solve non-separable first order linear ODEs one must use what is known as an integrating factor. This technique will be shown below.

Consider first order linear ODEs of the general form:

\frac{dy}{dx} + p(x)y = q(x)

The method for solving this equation relies on a special "integrating factor", μ:

\mu = e^{\int_{}^{} p(x)\, dx}  \quad \Rightarrow  \quad {\frac{d{\mu}}{dx}} = p(x)\mu \, = \mu{p(x)}

Multiply both sides of the differential equation by μ to get:

\mu{\frac{dy}{dx}} + \mu{p(x)y}  = \mu{q(x)}

Because of the special μ we picked, this simplifies to:

\mu{\frac{dy}{dx}} + y{\frac{d{\mu}}{dx}} = \mu{q(x)}

Using the product rule we get:

\frac{d}{dx}{(\mu{y})} = \mu{q(x)}

Integrating both sides we get:

\mu{y} = \left(\int\mu q(x)\, dx\right) + C

Finally, to solve for y we divide both sides by μ:

y = \frac{\left(\int\mu q(x)\, dx\right) + C}{\mu}

(Since μ is a function of x, we cannot simplify any more.)

[edit] A simple mathematical model

Suppose a mass is attached to a spring, which exerts an attractive force on the mass proportional to the extension/compression of the spring and ignore any other forces (gravity, friction etc). We shall write the extension of the spring at a time t as x(t). Now, using Newton's second law we can write (using convenient units)

\frac{d^2x}{dt^2} = - x

If we look for solutions that have the form Cekt, where C is a constant, we discover the relationship k2 + 1 = 0, and thus k must be one of the complex numbers i or i. Thus, using Euler's theorem we can say that the solution must be of the form:

x(t) = Acost + Bsint

To fix the unknown constants A and B, we need initial conditions, i.e. to specify the state of the system at a given time (usually taken to be t = 0).

For example, if we suppose at t = 0 the extension is a unit distance (x = 1), and the particle is not moving (dx / dt = 0). We have

x(0) = Acos0 + Bsin0 = A = 1,

and so A = 1.

x'(0) = − Asin0 + Bcos0 = B = 0,

and so B = 0.

Therefore x(t) = cost. This is an example of simple harmonic motion.

[edit] Improving our model

The above model of an oscillating mass on a spring is plausible but not really realistic. For a start, we have invented a perpetual motion machine which violates the second law of thermodynamics. Therefore, consider adding some friction for realism. Now, experimental scientists will tell us that friction will tend to decelerate the mass and have magnitude proportional to its velocity (i.e. dx / dt). Our new differential equation, expressing the balancing of the acceleration and the forces, is

\frac{d^2x}{dt^2} = - c \frac{dx}{dt} - x

where c is our coefficient of friction, and c > 0. Again looking for solutions of the form Aekt, we find that

k2 + ck + 1 = 0.

This is a quadratic equation which we can solve. If c < 2 we have complex roots a \pm i b, and the solution (with the above boundary conditions) will look like this:

x(t) = e^{at} \left(\cos bt - \frac{a}{b} \sin bt \right)

(We can show that a < 0)

This is a damped oscillator, and the plot of displacement against time would look something like this:

image:damped.png

which does resemble how we'd expect a vibrating spring to behave as friction removed the energy from the system.

[edit] See also

[edit] Bibliography

  • A. D. Polyanin and V. F. Zaitsev, Handbook of Exact Solutions for Ordinary Differential Equations, 2nd Edition, Chapman & Hall/CRC Press, Boca Raton, 2003; ISBN 1-58488-297-2.

[edit] External links

In other languages