Differential Equations

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

whatsapp: +92 323 509 4443, email: megalecture@gmail.

com

Integration

Section 9: Differential equations

Notes and Examples


These notes contain subsections on
 Rates of change
 Differential equations
 Formulating differential equations
 Solving differential equations by direct integration
 Solving differential equations by separating the variables

Rates of change

m
co
The derivative dy represents the rate of change of y with respect to x. When

e.
dx
time t is used instead of x, then dy represents the rate of change of y. For
dt
ur
example:
 If x is a displacement, then dx is the rate of change of displacement, or
ct

dt
the velocity;
le

dv
 If v is a velocity, then is the rate of change of velocity, or the
dt
ga

acceleration;
 If P represents the number of ants in a colony, then dP is the rate of
me

dt
change of population; if this is positive then the population is
w.

increasing, if negative then it is declining.


 If M represents the mass of a compound during a chemical process,
ww

then dM is the rate of change of mass.


dt

Differential equations
Theory often leads us to formulate mathematical models for the rate of
change of quantities. For example,

 when a cup of hot water cools, the rate of cooling obviously


depends on the temperature;
 when a car accelerates, the acceleration at faster speeds is slower
than at slower speeds – so the rate of change of velocity depends
on the velocity;
 the rate of population growth depends on size of the population.

© MEI, 17/04/07 1/5


www.youtube.com/megalecture Page 1 of 5
whatsapp: +92 323 509 4443, email: [email protected]

In all these cases, we can model the situation by means of a differential


equation. This is simply an equation which includes a derivative. If the
derivative is of the first order, it is called a first order differential equation.

Formulating differential equations

If a is proportional to b, we can write this as a  b, and deduce that a = kb,


where k is a constant, called the constant of proportionality.

Example 1
Formulate a differential equation for the following situations.
(i) The acceleration of a particle is proportional to the square of its velocity.
(ii) The rate of population growth is proportional to the size of the population at
any time.
(iii) The rate of cooling of a glass of water is proportional to the difference
between its temperature and room temperature.

Solution
(i) Let the velocity be v.
dv
The acceleration is the rate of change of velocity, .
dt
dv
 kv 2 .
dt

(ii) Let P be the population size.


dP
The rate of population growth is .
dt
dP
 kP .
dt

(iii) Let T be the temperature of the water, and T0 be room temperature.


dT dT
The rate of change of temperature is , so the rate of cooling is − .
dt dt
dT
This is proportional to T − T0, so   k (T  T0 ) , where k > 0.
dt
Notice the negative
sign! This will be
crucial to the solution.

Solving differential equations by direct integration

You already know how to solve some differential equations, like the ones in
the next example.

© MEI, 17/04/07 2/5


www.youtube.com/megalecture Page 2 of 5
whatsapp: +92 323 509 4443, email: [email protected]

Example 2
Solve the differential equations:
dv
(i)  3t
dt
dy 2
(ii)  , given that when x = 0, y = 1.
dx 1  x

Solution
dv
(i)  3t  v   3t dt
dt
 32 t 2  c
The solution is v  32 t 2  c

dy 2 2
(ii)   y dx .
dx 1  x 1 x

m
 2 ln 1  x  c

co
When x = 0, y = 1  1  2 ln1  c

e.
 c 1
The solution is y  2 ln 1  x  1
ur
ct

A solution like the one in part (i) of Example 2, which involves an arbitrary
constant (c), is called the general solution of the differential equation. In
le

effect, the solution is a family of functions, one for each value of c.


ga

In part (ii) of Example 2, the solution function must pass through the point
x = 0, y = 1, and this enables you to calculate the value of c. This gives a
me

particular solution to the differential equation.


w.

Solving differential equations by separating the variables


ww

Now look at this differential equation:

dv
 3v 2 , and when t = 0, v = 10
dt

On the right of this equation is a function of v, not t. To get v, you need to


integrate with respect to t, not v.

You solve this problem like this:


Integrate both sides
dv 1 dv with respect to t
 3v 2  2  3
dt v dt
1 dv
 2 dt    3dt .
v dt

© MEI, 17/04/07 3/5


www.youtube.com/megalecture Page 3 of 5
whatsapp: +92 323 509 4443, email: [email protected]

1 dv 1
Now v 2
dt is the same as  2 dv or  v 2 dv . Note that you only need to add
dt v a constant of integration to
  v dv    3dt
2 one side of the equation.

 v 1  3t  c .
1
  3t  c
v
When t = 0, v = 10  101  c
1 1 30t  1
  3t  
v 10 10
10
 v .
30t  1

In this technique, you arrange for the ‘v’s on the same side of the equations as
the dv, and the ‘t’s on the same side as dt. This is called separating the
variables. The first few steps can also be written more simply like this:

dv
 3v 2
dt
1
  v2 dv   3dt , and so on…
Here are some more examples.

Example 3
The rate of growth of a population after t months P of ants is proportional to the
number of ants. At time t = 0, there are 500 ants, and after 1 month the population has
risen to 750. Find the population after 3 months.

Solution
dP Remember that the inverse of
 kP , where k is a constant. the natural logarithm function is
dt the exponential function
1
  P dP   kdt
 ln P  kt  c When dealing with exponentials,
 P  ekt  c it is usual to simplify the solution
 ekt  ec by replacing the constant ec by a
new constant A.
 Ae kt

When t = 0, P = 500:
500 = Aek0 = A
 P  500e kt

When t = 1, P = 750:
750  500e k
 ek  1.5

© MEI, 17/04/07 4/5


www.youtube.com/megalecture Page 4 of 5
whatsapp: +92 323 509 4443, email: [email protected]

P  500  e k 
t

 500 1.5t

When t = 3, P  500  1.53  1687.5

Example 4
dy y
Find the general solution of the differential equation  .
dx x(1  x)

Solution
dy y

dx x(1  x)
1 1 The details of finding the partial
  y dy   x(1  x) dx

m
fractions are omitted here.

co
By partial fractions,
1 1 1 

e.
  y dy    x  1  x  dx Replace c with a new constant ln A
to give a simpler expression
 ln y  ln x  ln 1  x  c
ur
 ln x  ln 1  x  ln A
ct

Ax
 ln
1 x
le

You can omit the modulus signs at this


Ax stage – the value of A will deal with this.
 y
ga

1 x
me

You can practice solving first order differential equations with separable
variables using the interactive test Differential equations: first order (all the
w.

questions are of the same type).


ww

© MEI, 17/04/07 5/5


www.youtube.com/megalecture Page 5 of 5

You might also like