You are on page 1of 5

HE Mathematics

Differential equations
Section 1: Introduction to 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

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


dx
time t is used instead of x, then dy represents the rate of change of y. For
dt
example:
• If x is a displacement, then dx is the rate of change of displacement, or
dt
the velocity;
• If v is a velocity, then dv is the rate of change of velocity, or the
dt
acceleration;
• If P represents the number of ants in a colony, then dP is the rate of
dt
change of population; if this is positive then the population is
increasing, if negative then it is declining.
• If M represents the mass of a compound during a chemical process,
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.

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.

1 of 5 Maths for UGs 01/05/20 © MEI


integralmaths.org
HE Mathematics

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.

Example 2
Solve the differential equations:
dv
(i) = 3t
dt

2 of 5 Maths for UGs 01/05/20 © MEI


integralmaths.org
HE Mathematics

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
= 2ln 1 + x + c
When x = 0, y = 1  1 = 2ln1 + c
 c =1
The solution is y = 2ln 1 + x + 1

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
effect, the solution is a family of functions, one for each value of c.

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
particular solution to the differential equation.

Solving differential equations by separating the variables


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
1 dv 1
Now  2 dt is the same as  2 dv or  v−2dv . Note that you only need to
v dt v add a constant of integration
  v dv = − 3dt
−2 to one side of the equation.

 −v−1 = −3t + c .

3 of 5 Maths for UGs 01/05/20 © MEI


integralmaths.org
HE Mathematics

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
dt is 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.
= Aekt

When t = 0, P = 500:
500 = Aek0 = A
 P = 500ekt

When t = 1, P = 750:
750 = 500ek
 ek = 1.5
P = 500 ( ek )
t

= 500 1.5t

4 of 5 Maths for UGs 01/05/20 © MEI


integralmaths.org
HE Mathematics

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 fractions are omitted here.

By partial fractions,
1 1 1 
  y dy =   x − 1 + x  dx Replace c with a new constant ln
 ln y = ln x − ln 1 + x + c A to give a simpler expression

= ln x − ln 1 + x + ln A
Ax
= ln
1+ x You can omit the modulus signs at this
Ax stage – the value of A will deal with
 y= this.
1+ x

5 of 5 Maths for UGs 01/05/20 © MEI


integralmaths.org

You might also like