1 Separating the variables in first order ODEs

In this Section we consider differential equations which can be written in the form

d y d x = f ( x ) g ( y )

Note that the right-hand side is a product of a function of x , and a function of y . Examples of such equations are

d y d x = x 2 y 3 , d y d x = y 2 sin x  and  d y d x = y ln x

Not all first order equations can be written in this form. For example, it is not possible to rewrite the equation

d y d x = x 2 + y 3

in the form

d y d x = f ( x ) g ( y )

Task!

Determine which of the following differential equations can be written in the form

d y d x = f ( x ) g ( y )

If possible, rewrite each equation in this form.

  1. d y d x = x 2 y 2 ,
  2. d y d x = 4 x 2 + 2 y 2 ,
  3. y d y d x + 3 x = 7
  1. d y d x = x 2 1 y 2 ,
  2. cannot be written in the stated form,
  3. Reformulating gives d y d x = ( 7 3 x ) × 1 y which is in the required form.

The variables involved in differential equations need not be x and y . Any symbols for variables may be used. Other first order differential equations are

d z d t = t e z d θ d t = θ  and  d v d r = v 1 r 2

Given a differential equation in the form

d y d x = f ( x ) g ( y )

we can divide through by g ( y ) to obtain

1 g ( y ) d y d x = f ( x )

If we now integrate both sides of this equation with respect to x we obtain

1 g ( y ) d y d x d x = f ( x ) d x

that is

1 g ( y ) d y = f ( x ) d x

We have separated the variables because the left-hand side contains only the variable y , and the right-hand side contains only the variable x . We can now try to integrate each side separately. If we can actually perform the required integrations we will obtain a relationship between y and x . Examples of this process are given in the next subsection.

Key Point 1

Method of Separation of Variables

The solution of the equation

d y d x = f ( x ) g ( y )
may be found from separating the variables and integrating:
1 g ( y ) d y = f ( x ) d x