In mathematics, separation of variables is any of several methods for solving ordinary and partial differential equations, in which algebra allows one to re-write an equation so that each of two variables occurs on a different side of the equation.
Suppose a differential equation can be written in the form
which we can write more simply by letting :
As long as h(y) ≠ 0, we can rearrange terms to obtain:
so that the two variables x and y have been separated.
Some who dislike the Leibniz notation may prefer to write this as
but that fails to make it quite as obvious why this is called "separation of variables".
Integrating both sides of the equation with respect to , we have
or equivalently,
because of the substitution rule for integrals.
If one can evaluate the two integrals, one can find a solution to the differential equation. Observe that this process effectively allows us to treat the derivative as a fraction which can be separated. This allows us to solve separable differential equations more conveniently, as demonstrated in the example below.
(Note that we do not need to use two constants of integration, in equation (2) as in
because a single constant is equivalent.)
The ordinary differential equation
may be written as
If we let and , we can write the differential equation in the form of equation (1) above. Thus, the differential equation is separable.
As shown above, we can treat and as separate values, so that both sides of the equation may be multiplied by . Subsequently dividing both sides by , we have
At this point we have separated the variables x and y from each other, since x appears only on the right side of the equation and y only on the left.
Integrating both sides, we get
which, via partial fractions, becomes
and then
where C is the constant of integration. A bit of algebra gives a solution for y:
One may check our solution by taking the derivative with respect to x of the function we found, where B is an arbitrary constant. The result should be equal to our original problem.
Note that since we divided by and we must check to see whether the solutions and solve the differential equation. See also: singular solutions.
Given a partial differential equation of a function
of n variables, it is sometimes useful to guess solution of the form
or
which turns the partial differential equation (PDE) into a set of ODEs. Usually, each independent variable creates a separation constant that cannot be determined only from the equation itself.
Suppose F(x, y, z) and the following PDE:
We shall guess
thus making the equation (1) to
(since ).
Now, since X
were the constants c1, c2, c3 satisfy
Eq. (3) is actually a set of three ODEs. In this case they are trivial and can be solved by simple integration, giving:
where the integration constant c4 is determined by initial conditions.
First we seek solutions of the form
Most solutions are not of that form, but other solutions are sums of (generally infinitely many) solutions of that form.
Substituting,
Divide throughout by X(x)
and then by Y(y)
Now X′′(x)/X(x) is a function of x only, as is (Y′′(y)+λY(y))/Y(y), so there are separation constants so
which splits up into ordinary differential equations
and
which we can solve accordingly. If the equation as posed originally was a boundary value problem, one would use the given boundary values. See that article for an example which uses boundary values.
Ordinary differential equations | Partial differential equations
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Separation of variables".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world