]> Simple Differential Equations

Math Animated™
Mathematical Introduction for Physics and Engineering
by Samuel Dagan (Copyright © 2007-2020)

Chapter 2: Integration; Section 1: Indefinite Integrals; page 4

Home | Table of Contents | A-Z Index | Help

Previous topic: page 3 Special Methods

Next topic: section 2 Definite Integrals, page 1 Fundamentals


Simple Differential Equations

Introduction

A differential equation is a mathematical representation of a relation between an independent variable, a function and some of its derivatives with respect to the independent variable. The most general implicit form of a differential equation is:

F( x,y, dy dx , d 2 y d x 2 , d 3 y d x 3 ,.... )=0 (2.1.4.1)

The highest order of a derivative presented in (2.1.4.1) defines the order of the differential equation. By definition the lowest possible order of a differential equation is one (order zero would be just a functional relation). On the other hand the presence of the independent variable and/or the function, is not a necessity of a differential equation.

A solution of a differential equation consists of obtaining the functional relation without the participation of any derivative. For example the solution of a differential equation of the first order consists of two stages:

  1. Express the equation in a way that instead of the derivative, an indefinite integral will appear.
  2. Perform the integration
It is clear that a differential equation poses, in addition to the integration, a new challenge. The solution of a differential equation of higher order is even harder.

Let's return to the differential equation of the first order. The second stage (integration) brings an undefined constant, additive to the integral. As a rule the solution of a differential equation of order n yields n undefined constants.

What is the use of differential equations? Their importance in science and engineering is unlimited. The most general laws in nature can be expressed as differential equations and their solution explains the behaviour of the particular measurable quantities. As an example let's take the familiar second law of Newton in one dimension:

d 2 s d t 2 = F m (2.1.4.2)

where

In the case when  F  is a funtion of  s, t, and the first and second derivatives, (2.1.4.2) represents a differential equation of the second order. In such a case its solution should give the position  s  and the first derivative  v (velocity) as functions of the time. The reasoning is the following: in principle the first integration should yield a differential equation of the first order including one constant of integration. The second integration should represent a functional relation between  s  and  t  with two constants of integration, representing  s  as function of  t . As a consequence the first integration represents the first dervative  v  as a function of  t .

We have the choice to define the two constants resulting from the integrations. It is common to use the initial conditions, corresponding to  t = 0 , of the position and of the velocity:

s 0 =s( t=0 )and v 0 =v( t=0 ) (2.1.4.3)

as given values in order to define the constants.

We will study here only a few elementary cases of differential equations and the way to solve them.

Derivative as function of the independent variable:   d n y d x n = f n ( x )

The differential equation

d n y d x n = f n ( x ) (2.1.4.4)

where   f n ( x )    is a known function can be directly integrated, in order to obtain a differential equation of the order  n−1  of the same form. That way one can reduce the order by steps and obtain the solution:

d n y d x n = f n ( x ) d n1 y d x n1 = f n ( x )dx = f n1 ( x ) ........... dy dx = f 2 ( x )dx = f 1 ( x ) y= f 1 ( x )dx } (2.1.4.5)

We'll use the simple example of throwing up vertically (positive direction) a mass-point  m  with an initial velocity of  vo  under the gravitational force  F = −mg from a starting height of  so =0 . According to (2.1.4.2) and (2.1.4.5) we obtain

a= d 2 s d t 2 =g v= ds dt = gdt =gt+ C 1 s= ( gt+ C 1 )dt= g t 2 2 + C 1 t+ C 2 } (2.1.4.6)

where a denotes acceleration. After applying the initial conditions (2.1.4.3) one obtains:

v=gt+ v o s= g t 2 2 + v o t } (2.1.4.7)

We already know how to present graphically these relations. But since this case deals with the motion of a physical object, we can translate the solution obtained from the differential equation to an actual motion by using animation. For sake of simplicity we'll round-off the gravitational acceleration to  g = 10m/sec² , and in order to be able to observe the motion in real time, we'll use initial velocities of more than  10m/sec . This is presented in Fig. Vertical motion.

Another example of solving the second law of Newton was obtained on page 1 exercise 4:

ma=m d 2 x d t 2 =Csin( ωt ) v= dx dt = Ccos( ωt ) mω + C 1 x= Csin( ωt ) m ω 2 + C 1 t+ C 2 } (2.1.4.8)

where  m, C, ω  are known constants and  C1C2  are two constants of the integration.

By using the initial values xo and vo, one obtains

C 1 = v 0 + C mω and C 2 = x 0 (2.1.4.9)

which means that in order to obtain a simple harmonic motion in form of oscillations around a fixed point, which is a very common motion in nature, one has to choose in this case, one very particular initial velocity:

v 0 = C mω    

As a matter of fact, a harmonic motion in nature occurs when applying another force, which will be shown later on this page.

Seperation of variables:   dy dx = f y ( y ) f x ( x )

The first order differential equation

dy dx = f y ( y ) f x ( x ) (2.1.4.10)

is solvable by separation of the variables:

dy f y ( y ) = f x ( x )dx dy f y ( y ) = f x ( x )dx } (2.1.4.11)

The following simple example deals with radioactive decay. It is a special case of (2.1.4.10) since the function of the independent variable  fx  is a constant. The independent variable is the time  t  and the dependent variable is the number of radioactive atoms  N  that have not decayed so far. The physical assumption is that each atom has the same probability to decay in a random way. That way the decay rate is proportional to  N . This is expressed by the differential equation

dN dt = N τ (2.1.4.12)

where the negative sign expresses the decrease of the number of atoms.  τ  has dimensions of time, and is a known positive constant factor related to the probability of the decay. For smaller  τ  the probability is greater and the decay rate is more intense.

According to (2.1.4.11) the solution is

dN N = dt τ lnN= t τ +C { N=exp( t τ +C )= =expCexp( t τ )= = N 0 exp( t τ )=N } (2.1.4.13)

where the constant  expC  was replaced by  N0 , the initial number of atoms.

Non-explicit independent variable (x):   F 1 ( y, dy dx ,...., d n y d x n )=0

Any differential equation of order  n  that does not include explicitly the independent variable  x

F 1 ( y, dy dx ,...., d n y d x n )=0 (2.1.4.14)

can be reduced to a differential equation of order  n−1 .

This is achieved by using  y  as the independent variable, by converting the first derivative as a function of  y

dy dx =p( y ) (2.1.4.15)

and by doing the appropriate changes on the higher order derivatives:

d 2 y d x 2 = dp dx = dp dy dy dx =p dp dy (2.1.4.16)

and so on. This way one obtains a new differential equation

F 1 ( y,p, dp dy ,...., d n1 p d y n1 )=0 (2.1.4.17)

of lower order. This does not solve the original differential equation, unless the new equation is solvable.

For example we'll solve the motion in one dimension of a mass point  m  attached to a linear spring with  t (time) as an independent variable, and  s (position along a straight axis) as the function. The force applied by the spring is  −ks , where  k  is a given positive constant and the negative sign means that the force tends to restore the position toward the origin. According to the second law of Newton, the differential equation of the motion is

d 2 s d t 2 = ω 2 s ω 2 = k m } (2.1.4.18)

and it does not include  t  explicitly. After applying the procedure of (2.1.4.15-17) we get

v= ds dt =v( s ) d 2 s d t 2 =v dv ds v dv ds = ω 2 s } (2.1.4.19)

which is solvable by the separation of the variables

vdv= ω 2 sds v 2 + ω 2 s 2 = C 1 2 } (2.1.4.20)

The solution (2.1.4.20) is only the first integration, and the constant of integration is written as a square since obviously it is a positive number. We need a second integration in order to solve  s  as a function of  t , which is obtained by substituting back   v= ds dt   in this solution:

ds dt =± C 1 2 ω 2 s 2 ds C 1 2 ω 2 s 2 =± dt substitutionu= ωs C 1 du 1 u 2 =±ω dt asin( ωs C 1 )=±ωt+ C 2 s= C 1 ω sin( ±ωt+ C 2 ) } (2.1.4.21)

At this stage it looks like we have obtained two possible solutions. Actually after applying the initial conditions we'll obtain the same expression independently of the sign of the product  ωt . The reason for this is that by adjusting  C2 , we can switch from one sign to another e.g.

sin( ωt+π )=sin( ωt+0 )    

By the same token (adjusting  C2), the choice of asin or acos is irrelevant. In the integration we did not take in account the ambiguity of the sign when we obtained  asin  at (2.1.4.21). This is also irrelevant because the value of  C1  was not assigned yet (ω  is customarily defined as positive).

We can now write the solution in its most general form

s= C 1 ω sin( ωt+ C 2 ) v= C 1 cos( ωt+ C 2 ) } (2.1.4.22)

which is called the simple harnonic motion. From (2.1.4.22) one can express the constants of integration by the initial conditions  s0  and  v0 :

C 1 2 = s 0 2 ω 2 + v 0 2 sin C 2 = s 0 ω C 1 cos C 2 = v 0 C 1 } (2.1.4.23)

Assume that the sign of  C1  is chosen as positive, then as we already know, both signs of sin and cos define uniquely the quadrant where the angle C2  is located, and therefore  C2  can be uniquely evaluated. If the sign of  C1  was chosen as negative, the angle  C2  would be shifted by  π  in order to compensate for the sign of  C1 , and the solution (2.1.4.22) would remain unaffected.

The special case of  v0 = 0 (initiating the motion from rest) yields:

s= s 0 cos( ωt ) v=ω s 0 sin( ωt ) } (2.1.4.24)

and is animated in Fig. Simple harmonic motion.

Non-explicit dependent variable (y):   F 2 ( x, dy dx ,...., d n y d x n )=0

Any differential equation of order  n  that does not explicitly include the dependent variable  y

F 2 ( x, dy dx ,...., d n y d x n )=0 (2.1.4.25)

can be reduced to a differential equation of order  n−1.

This is achieved by using the first derivative as the dependent variable

dy dx =p( x ) (2.1.4.26)

yielding the differential equation

F 2 ( x,p, dp dx ,...., d n1 p d x n1 )=0 (2.1.4.27)

For example we'll solve the straight line motion of a mass point  m  under the influence of a resisting (frictional) force proportional to the velocity:  F = −μv , where  μ  is a positive constant and the negative sign shows that the force is in the opposite direction of the velocity. It is obvious that the motion cannot be started without an initial velocity  v0 . We'll use  s  as the coordinate along the axis of the motion and  t  as the time.

The differential equation of the motion is

d 2 s d t 2 = μ m ds dt (2.1.4.28)

This equation does not include explicitly either the independent nor the dependent variables. We'll use the method that does not include the dependent variable x, since it is simpler. According to (2.2.4.26-27)

v( x )= ds dt dv dt = μ m v dv v = μ m dt ln| v |= μ m t+ C 1 } (2.1.4.29)

After calculating  C1 , one obtains

ln| v |= μ m t+ln| v 0 | | v |=| v 0 |exp( μ m t ) } (2.1.4.30)

but  v  cannot change its sign (it should pass through zero and therefore violates the equation), thus we have

v= v 0 exp( μ m t ) ds = v 0 exp( μ m t )dt s= m v 0 μ exp( μ m t )+ C 2 } (2.1.4.31)

By using the initial position  s(t=0) = s0 , one finally obtains the solution

s= s 0 + m v 0 μ [ 1exp( μ m t ) ] (2.1.4.32)

which means that the point converges asymptotically to the position   s= s 0 + m v 0 μ  .

Exercises

Exercise 1. For the following differential equation d 4 y d x 4 =cosx

  1. Obtain the general solution  y = y(x) !
  2. Find the solution that for x=0 the following relations are satisfied: d 3 y d x 3 = d 2 y d x 2 = dy dx =y=0

  3. Is x=0 a point of minimum, maximum or inflection in this case?

Exercise 2. Solve the differential equation d 2 y d x 2 =ky dy dx satisfying the following conditions for x=0 : { dy dx =a y=0 where a and k are positive constants.

Exercise 3. The one dimensional (x axis) equation of motion of a point mass m under the influence of a resisting force is F=β v 2 with β>0. Take the velocity in the positive direction v= dx dt >0 and the initial conditions: { x 0 =0 v 0 >0 Solve the motion in two ways:

  1. By the method where the independent variable (t) is not contained explicitly.
  2. By the method where the dependent variable (x) is not contained explicitly.

Exercise 4. Prove that Newton's differential equation of motion in one dimension (x) m d 2 x d t 2 =F( x ) where m is mass, t is time and the force F is a function of the x coordinate only, is solvable by the methods studied on this page, assuming that all the functions are integrable and their inverses exist.


Previous topic: page 3 Special Methods

Next topic: section 2 Definite Integrals, page 1 Fundamentals

Home | Table of Contents | A-Z Index | Help