Professional Documents
Culture Documents
Separation Variables
Separation Variables
Introduction
Separation of variables is a technique commonly used to solve rst-order ordinary dierential
equations. It is so-called because we rearrange the equation to be solved such that all terms
involving the dependent variable appear on one side of the equation, and all terms involving the
independent variable appear on the other. Integration completes the solution. Not all rst-order
equations can be rearranged in this way so this technique is not always appropriate. Further,
it is not always possible to perform the integration even if the variables are separable. In this
Block you will learn how to decide whether the method is appropriate, and how to apply it in
such cases.
understand what is meant by a dierential
equation; (Block 19.1)
Example Use the method of separation of variables to solve the dierential equation
dy 3x2
=
dx y
(Note that this is sometimes written in the form ydy 3x2 dx = 0.)
Solution
The equation already has the form
dy
= f (x)g(y)
dx
where
f (x) = 3x2 and g(y) = 1/y.
Dividing both sides by g(y) we nd
dy
y = 3x2
dx
Integrating both sides with respect to x gives
dy
y dx = 3x2 dx that is y dy = 3x2 dx
dx
Note that the left-hand side is an integral involving just y; the right-hand side is an integral
involving just x. After integrating we nd
1 2
2
y = x3 + c
where c is a constant of integration. You might think that there would be a constant on the left-
hand side too. You are quite right but the two constants can be combined into a single constant
and so we need only write one. We now have a relationship between y and x as required. Often
it is sucient to leave your answer in this form but you may also be required to obtain an
explicit relation for y in terms of x. In this particular case
y 2 = 2x3 + 2c so that y = 2x3 + D where D = 2c
dy y2 y
= 2 + +1
dx x x
6. The equation
di
iR + L =E
dt
where R, L and E are constants arises in electrical circuit theory. This equation can be
solved by separation of variables. Find the solution which satises the condition i(0) = 0.
Answer
Separable(p,q,x,y,x0,y0)
dy
which solves a separable equation of the form = p(x)q(y) with condition y(x0) = y0,
dx
and the related command Separable Gen(p,q,x,y,c) which solves separable rst-order dierential
equations without initial conditions but gives a solution which includes an arbitrary constant c.
For example, to solve
dy
= x2 y 3 y(0) = 5
dx
proceed as follows:- Choose Author:Expression,
Separable(x 2, y 3, x, y, 0, 5)
and select Simplify. DERIVE responds with
1 1 x3
=
50 2 y 2 3
which is an implicit form of solution.
1. Use DERIVE to solve the initial value problem
dy
= 3t2 ey
dt
subject to y(0) = c.
Sketch several solution curves, y(t), for various initial values, c.
2. Use DERIVE to solve the initial value problem
dy y2
=
dt t
subject to y(1) = c.
Sketch several solution curves, y(t), for various initial values of c (say c = 1, 2, 3)
3. Use the Help command to nd out about the more general commands Dsolve1(p, q, x, y, x0, y0)
and Dsolve1 Gen(p, q, x, y, c) used for solving very general rst-order ordinary dierential equa-
tions.