HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, separation of variables (also known as the Fourier method) is any of several methods for solving ordinary and partial 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.


Ordinary differential equations (ODE)

Suppose a differential equation can be written in the form :\frac f(x) = g(x)h(f(x)) which we can write more simply by letting y = f(x): :\frac=g(x)h(y). As long as ''h''(''y'') ≠ 0, we can rearrange terms to obtain: : = g(x) \, dx, so that the two variables ''x'' and ''y'' have been separated. ''dx'' (and ''dy'') 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 of ''dx'' as a differential (infinitesimal) is somewhat advanced.


Alternative notation

Those who dislike Leibniz's notation may prefer to write this as :\frac \frac = g(x), 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 x, we have or equivalently, :\int \frac \, dy = \int g(x) \, dx 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 In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. ...
\frac 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 () as in :\int \frac \, dy + C_1 = \int g(x) \, dx + C_2, because a single constant C = C_2 - C_1 is equivalent.)


Example

Population growth is often modeled by the differential equation : \frac=kP\left(1-\frac\right) where P is the population with respect to time t, k is the rate of growth, and K is the carrying capacity of the environment. Separation of variables may be used to solve this differential equation. : \begin & \frac=kP\left(1-\frac\right) \\ pt& \int\frac=\int k\,dt \end To evaluate the integral on the left side, we simplify the fraction : \frac=\frac and then, we decompose the fraction into partial fractions : \frac=\frac+\frac Thus we have : \begin & \int\left(\frac+\frac\right) dP=\int k\,dt \\ pt& \ln, P, -\ln, K-P, =kt+C \\ pt& \ln, K-P, -\ln, P, =-kt-C \\ pt& \ln\left, \cfrac\=-kt-C \\ pt& \left, \dfrac\=e^ \\ pt& \left, \dfrac\=e^e^ \\ pt& \frac=\pm e^e^ \end Let A=\pm e^. : \begin & \frac=Ae^ \\ pt& \frac-1=Ae^ \\ pt& \frac=1+Ae^ \\ pt& \frac=\frac \\ pt& P=\frac \end Therefore, the solution to the logistic equation is : P(t)=\frac To find A, let t=0 and P\left(0\right)=P_0. Then we have : P_0=\frac Noting that e^0=1, and solving for ''A'' we get : A=\frac.


Generalization of separable ODEs to the nth order

Much like one can speak of a separable first-order ODE, one can speak of a separable second-order, third-order or ''n''th-order ODE. Consider the separable first-order ODE: :\frac=f(y)g(x) The derivative can alternatively be written the following way to underscore that it is an operator working on the unknown function, ''y'': :\frac=\frac(y) Thus, when one separates variables for first-order equations, one in fact moves the ''dx'' denominator of the operator to the side with the ''x'' variable, and the ''d''(''y'') is left on the side with the ''y'' variable. The second-derivative operator, by analogy, breaks down as follows: :\frac = \frac\left(\frac\right) = \frac\left(\frac(y)\right) The third-, fourth- and ''n''th-derivative operators break down in the same way. Thus, much like a first-order separable ODE is reducible to the form :\frac=f(y)g(x) a separable second-order ODE is reducible to the form :\frac=f\left(y'\right)g(x) and an nth-order separable ODE is reducible to :\frac=f\!\left(y^\right)g(x)


Example

Consider the simple nonlinear second-order differential equation:y''=(y')^2.This equation is an equation only of ''y'''' and ''y''', meaning it is reducible to the general form described above and is, therefore, separable. Since it is a second-order separable equation, collect all ''x'' variables on one side and all ''y''' variables on the other to get:\frac=dx.Now, integrate the right side with respect to ''x'' and the left with respect to ''y:\int \frac=\int dx.This gives-\frac=x+C_1,which simplifies to:y'=-\frac~.This is now a simple integral problem that gives the final answer:y=C_2-\ln, x+C_1, .


Partial differential equations

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 the heat equation,
wave equation The (two-way) wave equation is a second-order linear partial differential equation for the description of waves or standing wave fields — as they occur in classical physics — such as mechanical waves (e.g. water waves, sound waves and ...
,
Laplace equation In mathematics and physics, Laplace's equation is a second-order partial differential equation named after Pierre-Simon Laplace, who first studied its properties. This is often written as \nabla^2\! f = 0 or \Delta f = 0, where \Delta = \n ...
, Helmholtz equation and
biharmonic equation In mathematics, the biharmonic equation is a fourth-order partial differential equation which arises in areas of continuum mechanics, including linear elasticity theory and the solution of Stokes flows. Specifically, it is used in the modeling of ...
. 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.


Example: homogeneous case

Consider the one-dimensional heat equation. The equation is The variable ''u'' denotes temperature. The boundary condition is homogeneous, that is Let us attempt to find a solution which is not identically zero satisfying the boundary conditions but with the following property: ''u'' is a product in which the dependence of ''u'' on ''x'', ''t'' is separated, that is: Substituting ''u'' back into equation and using the product rule, Since the right hand side depends only on ''x'' and the left hand side only on ''t'', both sides are equal to some constant value −''λ''. Thus: and −''λ'' here is the
eigenvalue In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denote ...
for both differential operators, and ''T''(''t'') and ''X''(''x'') are corresponding eigenfunctions. We will now show that solutions for ''X''(''x'') for values of ''λ'' ≤ 0 cannot occur: Suppose that ''λ'' < 0. Then there exist real numbers ''B'', ''C'' such that :X(x) = B e^ + C e^. From we get and therefore ''B'' = 0 = ''C'' which implies ''u'' is identically 0. Suppose that ''λ'' = 0. Then there exist real numbers ''B'', ''C'' such that :X(x) = Bx + C. From we conclude in the same manner as in 1 that ''u'' is identically 0. Therefore, it must be the case that ''λ'' > 0. Then there exist real numbers ''A'', ''B'', ''C'' such that :T(t) = A e^, and :X(x) = B \sin(\sqrt \, x) + C \cos(\sqrt \, x). From we get ''C'' = 0 and that for some positive integer ''n'', :\sqrt = n \frac. This solves the heat equation in the special case that the dependence of ''u'' has the special form of . In general, the sum of solutions to which satisfy the boundary conditions also satisfies and . Hence a complete solution can be given as :u(x,t) = \sum_^ D_n \sin \frac \exp\left(-\frac\right), where ''D''''n'' are coefficients determined by initial condition. Given the initial condition :u\big, _=f(x), we can get :f(x) = \sum_^ D_n \sin \frac. This is the sine series expansion of ''f''(''x''). Multiplying both sides with \sin \frac and integrating over results in :D_n = \frac \int_0^L f(x) \sin \frac \, dx. This method requires that the eigenfunctions ''X'', here \left\_^, are orthogonal and
complete Complete may refer to: Logic * Completeness (logic) * Completeness of a theory, the property of a theory that every formula in the theory's language or its negation is provable Mathematics * The completeness of the real numbers, which implies t ...
. In general this is guaranteed by Sturm–Liouville theory.


Example: nonhomogeneous case

Suppose the equation is nonhomogeneous, with the boundary condition the same as . Expand ''h''(''x,t''), ''u''(''x'',''t'') and ''f''(''x'') into where ''h''''n''(''t'') and ''b''''n'' can be calculated by integration, while ''u''''n''(''t'') is to be determined. Substitute and back to and considering the orthogonality of sine functions we get : u'_(t)+\alpha\fracu_(t)=h_(t), which are a sequence of
linear differential equations In mathematics, a linear differential equation is a differential equation that is defined by a linear polynomial in the unknown function and its derivatives, that is an equation of the form :a_0(x)y + a_1(x)y' + a_2(x)y'' \cdots + a_n(x)y^ = ...
that can be readily solved with, for instance, Laplace transform, or Integrating factor. Finally, we can get : u_(t)=e^ \left (b_+\int_^h_(s)e^ \, ds \right). If the boundary condition is nonhomogeneous, then the expansion of and is no longer valid. One has to find a function ''v'' that satisfies the boundary condition only, and subtract it from ''u''. The function ''u-v'' then satisfies homogeneous boundary condition, and can be solved with the above method.


Example: mixed derivatives

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-dimensional
biharmonic equation In mathematics, the biharmonic equation is a fourth-order partial differential equation which arises in areas of continuum mechanics, including linear elasticity theory and the solution of Stokes flows. Specifically, it is used in the modeling of ...
:\frac + 2\frac + \frac = 0. Proceeding in the usual manner, we look for solutions of the form :u(x,y) = X(x)Y(y) and we obtain the equation :\frac + 2\frac\frac + \frac = 0. Writing this equation in the form :E(x) + F(x)G(y) + H(y) = 0, Taking the derivative of this expression with respect to x gives E'(x)+F'(x)G(y)=0 which means G(y)=const. and likewise, taking derivative with respect to y leads to F(x)G'(y)+H'(y)=0 and thus F(x)=const. , hence either ''F''(''x'') or ''G''(''y'') must be a constant, say −λ. This further implies that either -E(x)=F(x)G(y)+H(y) or -H(y)=E(x)+F(x)G(y) are constant. Returning to the equation for ''X'' and ''Y'', we have two cases :\begin X''(x) &= -\lambda_1X(x) \\ X^(x) &= \mu_1X(x) \\ Y^(y) - 2\lambda_1Y''(y) &= -\mu_1Y(y) \end and :\begin Y''(y) &= -\lambda_2Y(y) \\ Y^(y) &= \mu_2Y(y) \\ X^(x) - 2\lambda_2X''(x) &= -\mu_2X(x) \end which can each be solved by considering the separate cases for \lambda_i<0, \lambda_i=0, \lambda_i>0 and noting that \mu_i=\lambda_i^2.


Curvilinear coordinates

In orthogonal 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. See spherical harmonics for example.


Applicability


Partial differential equations

For many PDEs, such as the wave equation, Helmholtz equation and Schrodinger equation, the applicability of separation of variables is a result of the
spectral theorem In mathematics, particularly linear algebra and functional analysis, a spectral theorem is a result about when a linear operator or matrix can be diagonalized (that is, represented as a diagonal matrix in some basis). This is extremely useful be ...
. In some cases, separation of variables may not be possible. Separation of variables may be possible in some coordinate systems but not others,''John Renze, Eric W. Weisstein'', Separation of variables and which coordinate systems allow for separation depends on the symmetry properties of the equation.Willard Miller(1984) ''Symmetry and Separation of Variables'', Cambridge University Press 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 u(x,t) on D = \ in two variables: : (Tu)(x,t) = (Su)(x,t) where T is a differential operator with respect to x and S is a differential operator with respect to t with boundary data: :(Tu)(0,t) = (Tu)(l,t) = 0 for t \geq 0 :(Su)(x,0)=h(x) for 0 \leq x \leq l where h is a known function. We look for solutions of the form u(x,t) = f(x) g(t). Dividing the PDE through by f(x)g(t) gives : \frac = \frac The right hand side depends only on x and the left hand side only on t so both must be equal to a constant K , which gives two ordinary differential equations :Tf = Kf, Sg = Kg which we can recognize as eigenvalue problems for the operators for T and S. If T is a compact, self-adjoint operator on the space L^2 ,l/math> along with the relevant boundary conditions, then by the Spectral theorem there exists a basis for L^2 ,l/math> consisting of eigenfunctions for T. Let the spectrum of T be E and let f_ be an eigenfunction with eigenvalue \lambda \in E. Then for any function which at each time t is square-integrable with respect to x, we can write this function as a linear combination of the f_. In particular, we know the solution u can be written as :u(x,t) = \sum_ c_(t)f_(x) For some functions c_(t). In the separation of variables, these functions are given by solutions to Sg = Kg 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 \frac, 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).David Benson (2007) ''Music: A Mathematical Offering'', Cambridge University Press, Appendix W


Matrices

The matrix form of the separation of variables is the Kronecker sum. As an example we consider the 2D discrete Laplacian on a regular grid: :L = \mathbf\oplus\mathbf=\mathbf\otimes\mathbf+\mathbf\otimes\mathbf, \, where \mathbf and \mathbf are 1D discrete Laplacians in the ''x''- and ''y''-directions, correspondingly, and \mathbf are the identities of appropriate sizes. See the main article Kronecker sum of discrete Laplacians for details.


Software

Some mathematical
programs Program, programme, programmer, or programming may refer to: Business and management * Program management, the process of managing several related projects * Time management * Program, a part of planning Arts and entertainment Audio * Progra ...
are able to do separation of variables:
Xcas Xcas is a user interface to Giac, which is an open source computer algebra system (CAS) for Windows, macOS and Linux among many other platforms. Xcas is written in C++. Giac can be used directly inside software written in C++. Xcas has a com ...
among others.


See also

* Inseparable differential equation


Notes


References

* * *


External links

* * {{mathworld2 , urlname=SeparationofVariables , title=Separation of variables, urlname2=DifferentialEquation, title2=Differential Equation, author=John Renze,
Eric W. Weisstein Eric Wolfgang Weisstein (born March 18, 1969) is an American mathematician and encyclopedist who created and maintains the encyclopedias ''MathWorld'' and ''ScienceWorld''. In addition, he is the author of the '' CRC Concise Encyclopedia of M ...

Methods of Generalized and Functional Separation of Variables
at EqWorld: The World of Mathematical Equations
Examples
of separating variables to solve PDEs
"A Short Justification of Separation of Variables"
Ordinary differential equations Partial differential equations