| Differential equations | |||||
|---|---|---|---|---|---|
| Scope | |||||
| Classification | |||||
Types
| |||||
Relation to processes | |||||
| Solution | |||||
Solution methods | |||||
| People | |||||
| Specific equations | |||||
Named equations | |||||
Inmathematics,separation of variables (also known as theFourier method) is any of several methods for solvingordinary andpartial differential equations, in which algebra allows one to rewrite an equation so that each of two variables occurs on a different side of the equation.
A differential equation for the unknown is separable if it can be written in the form
where and are given functions. This is perhaps more transparent when written using as:
So now as long ash(y) ≠ 0, we can rearrange terms to obtain:
where the two variablesx andy have been separated. Notedx (anddy) can be viewed, at a simple level, as just a convenient notation, which provides a handy mnemonic aid for assisting with manipulations. A formal definition ofdx as adifferential (infinitesimal) is somewhat advanced.
Those who dislikeLeibniz's 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
| A1 |
or equivalently,
because of thesubstitution 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 thederivative 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 twoconstants of integration, in equation (A1) as in
because a single constant is equivalent.)
Population growth is often modeled by the "logistic" differential equation
where is the population with respect to time, is the rate of growth, and is thecarrying capacity of the environment.Separation of variables now leads to
which is readily integrated using partial fractions on the left side yielding
where A is the constant of integration. We can find in terms of at t=0. Noting we get
Much like one can speak of a separable first-order ODE, one can speak of a separable second-order, third-order ornth-order ODE. Consider the separable first-order ODE:
The derivative can alternatively be written the following way to underscore that it is an operator working on the unknown function,y:
Thus, when one separates variables for first-order equations, one in fact moves thedx denominator of the operator to the side with thex variable, and thed(y) is left on the side with they variable. The second-derivative operator, by analogy, breaks down as follows:
The third-, fourth- andnth-derivative operators break down in the same way. Thus, much like a first-order separable ODE is reducible to the form
a separable second-order ODE is reducible to the form
and an nth-order separable ODE is reducible to
Consider the simple nonlinear second-order differential equation:This equation is an equation only ofy'' andy', meaning it is reducible to the general form described above and is, therefore, separable. Since it is a second-order separable equation, collect allx variables on one side and ally' variables on the other to get:Now, integrate the right side with respect tox and the left with respect toy':This giveswhich simplifies to:This is now a simple integral problem that gives the final answer:
The method of separation of variables is also used to solve a wide range of linear partial differential equations with boundary and initial conditions, such as theheat equation,wave equation,Laplace equation,Helmholtz equation andbiharmonic equation.
The analytical method of separation of variables for solving partial differential equations has also been generalized into a computational method of decomposition in invariant structures that can be used to solve systems of partial differential equations.[1]
Consider the one-dimensionalheat equation. The equation is
| 1 |
The variableu denotes temperature. The boundary condition is homogeneous, that is
| 2 |
Let us attempt to find anontrivial solution satisfying the boundary conditions but with the following property:u is a product in which the dependence ofu onx,t is separated, that is:
| 3 |
Substitutingu back into equation (1) and using theproduct rule,
| 4 |
whereλ must be constant since the right hand side depends only onx and the left hand side only ont. Thus:
| 5 |
and
| 6 |
−λ here is theeigenvalue for both differential operators, andT(t) andX(x) are correspondingeigenfunctions.
We will now show that solutions forX(x) for values ofλ ≤ 0 cannot occur:
Suppose thatλ < 0. Then there exist real numbersB,C such that
From (2) we get
| 7 |
and thereforeB = 0 =C which impliesu is identically 0.
Suppose thatλ = 0. Then there exist real numbersB,C such that
From (7) we conclude in the same manner as in 1 thatu is identically 0.
Therefore, it must be the case thatλ > 0. Then there exist real numbersA,B,C such that
and
From (7) we getC = 0 and that for some positive integern,
This solves the heat equation in the special case that the dependence ofu has the special form of (3).
In general, the sum of solutions to (1) which satisfy the boundary conditions (2) also satisfies (1) and (3). Hence a complete solution can be given as
whereDn are coefficients determined by initial condition.
Given the initial condition
| 8 |
we can get
This is theFourier sine series expansion off(x) which is amenable toFourier analysis. Multiplying both sides with and integrating over[0,L] results in
This method requires that the eigenfunctionsX, here, areorthogonal andcomplete. In general this is guaranteed bySturm–Liouville theory.
Suppose the equation is nonhomogeneous,
| 8 |
with the boundary condition the same as (2) and initial condition same as (8).
Expandh(x,t),u(x,t) andf(x) into
| 9 |
| 10 |
| 11 |
wherehn(t) andbn can be calculated by integration, whileun(t) is to be determined.
Substitute (9) and (10) back to (8) and considering the orthogonality of sine functions we get
which are a sequence oflinear differential equations that can be readily solved with, for instance,Laplace transform, orIntegrating factor. Finally, we can get
If the boundary condition is nonhomogeneous, then the expansion of (9) and (10) is no longer valid. One has to find a functionv that satisfies the boundary condition only, and subtract it fromu. The functionu-v then satisfies homogeneous boundary condition, and can be solved with the above method.
For some equations involving mixed derivatives, the equation does not separate as easily as the heat equation did in the first example above, but nonetheless separation of variables may still be applied. Consider the two-dimensionalbiharmonic equation
Proceeding in the usual manner, we look for solutions of the form
and we obtain the equation
Writing this equation in the form
Taking the derivative of this expression with respect to gives which means or and likewise, taking derivative with respect to leads to and thus or, hence eitherF(x) orG(y) must be a constant, say −λ. This further implies that either or are constant. Returning to the equation forX andY, we have two cases
and
which can each be solved by considering the separate cases for and noting that.
Inorthogonal curvilinear coordinates, separation of variables can still be used, but in some details different from that in Cartesian coordinates. For instance, regularity or periodic condition may determine the eigenvalues in place of boundary conditions. Seespherical harmonics for example.
For many PDEs, such as the wave equation, Helmholtz equation and Schrödinger equation, the applicability of separation of variables is a result of thespectral theorem. In some cases, separation of variables may not be possible. Separation of variables may be possible in some coordinate systems but not others,[2] and which coordinate systems allow for separation depends on the symmetry properties of the equation.[3] Below is an outline of an argument demonstrating the applicability of the method to certain linear equations, although the precise method may differ in individual cases (for instance in the biharmonic equation above).
Consider an initial boundary value problem for a function on in two variables:
where is a differential operator with respect to and is a differential operator with respect to with boundary data:
where is a known function.
We look for solutions of the form. Dividing the PDE through by gives
The right hand side depends only on and the left hand side only on so both must be equal to a constant, which gives two ordinary differential equations
which we can recognize as eigenvalue problems for the operators for and. If is a compact, self-adjoint operator on the space along with the relevant boundary conditions, then by the Spectral theorem there exists a basis for consisting of eigenfunctions for. Let the spectrum of be and let be an eigenfunction with eigenvalue. Then for any function which at each time is square-integrable with respect to, we can write this function as a linear combination of the. In particular, we know the solution can be written as
For some functions. In the separation of variables, these functions are given by solutions to
Hence, the spectral theorem ensures that the separation of variables will (when it is possible) find all the solutions.
For many differential operators, such as, we can show that they are self-adjoint by integration by parts. While these operators may not be compact, their inverses (when they exist) may be, as in the case of the wave equation, and these inverses have the same eigenfunctions and eigenvalues as the original operator (with the possible exception of zero).[4]
The matrix form of the separation of variables is theKronecker sum.
As an example we consider the 2Ddiscrete Laplacian on aregular grid:
where and are 1D discrete Laplacians in thex- andy-directions, correspondingly, and are the identities of appropriate sizes. See the main articleKronecker sum of discrete Laplacians for details.
Some mathematicalprograms are able to do separation of variables:Xcas[5] among others.