Difference between revisions of "Separation of Variables (1st Order)"

From Department of Mathematics at UTSA
Jump to navigation Jump to search
(Created page with "* [https://tutorial.math.lamar.edu/Classes/DE/Separable.aspx Separation of Variables Notes]. Produced by Paul Dawkins, Lamar University")
 
Line 1: Line 1:
 +
 +
In 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.
 +
 +
[[File:Sept proportional differential equation.png|thumb|Solve proportional first order differential equation by separation of variables.]]
 +
 +
[[File:Sept linear differential equation.png|thumb|Solve linear first order differential equation by separation of variables.]]
 +
 +
== Ordinary differential equations (ODE) ==
 +
 +
Suppose a differential equation can be written in the form
 +
 +
:<math>\frac{d}{dx} f(x) = g(x)h(f(x))</math>
 +
 +
which we can write more simply by letting <math>y = f(x)</math>:
 +
 +
:<math>\frac{dy}{dx}=g(x)h(y).</math>
 +
 +
As long as ''h''(''y'') ≠ 0, we can rearrange terms to obtain:
 +
 +
:<math>{dy \over h(y)} = g(x) \, dx,</math>
 +
 +
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
 +
 +
:<math>\frac{1}{h(y)} \frac{dy}{dx} = g(x),</math>
 +
 +
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 <math>x</math>, we have
 +
 +
:<math>\int \frac{1}{h(y)} \frac{dy}{dx} \, dx = \int g(x) \, dx,  </math> '''(A1)'''
 +
 +
:or equivalently,
 +
 +
:<math>\int \frac{1}{h(y)} \, dy = \int g(x) \, dx </math>
 +
 +
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 <math>\frac{dy}{dx}</math> 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 (A1) as in
 +
:<math>\int \frac{1}{h(y)} \, dy + C_1 = \int g(x) \, dx + C_2,</math>
 +
because a single constant <math>C = C_2 - C_1</math> is equivalent.)
 +
 +
=== Example ===
 +
Population growth is often modeled by the differential equation
 +
 +
: <math>\frac{dP}{dt}=kP\left(1-\frac{P}{K}\right)</math>
 +
 +
where <math>P</math> is the population with respect to time <math>t</math>, <math>k</math> is the rate of growth, and <math>K</math> is the carrying capacity of the environment.
 +
 +
Separation of variables may be used to solve this differential equation.
 +
 +
: <math>
 +
\begin{align}
 +
& \frac{dP}{dt}=kP\left(1-\frac{P}{K}\right) \\[5pt]
 +
& \int\frac{dP}{P\left(1-\frac{P}{K}\right)}=\int k\,dt
 +
\end{align}
 +
</math>
 +
 +
To evaluate the integral on the left side, we simplify the fraction
 +
 +
: <math>\frac{1}{P\left(1-\frac{P}{K}\right)}=\frac{K}{P\left(K-P\right)}</math>
 +
 +
and then, we decompose the fraction into partial fractions
 +
 +
: <math>\frac{K}{P(K-P)}=\frac{1}{P}+\frac{1}{K-P}</math>
 +
 +
Thus we have
 +
 +
: <math>
 +
\begin{align}
 +
& \int\left(\frac{1}{P}+\frac{1}{K-P}\right) dP=\int k\,dt \\[6pt]
 +
& \ln|P|-\ln|K-P|=kt+C \\[6pt]
 +
& \ln|K-P|-\ln|P|=-kt-C \\[6pt]
 +
& \ln\left|\cfrac{K-P}{P}\right|=-kt-C \\[6pt]
 +
& \left|\dfrac{K-P}{P}\right|=e^{-kt-C} \\[6pt]
 +
& \left|\dfrac{K-P}{P}\right|=e^{-C}e^{-kt} \\[6pt]
 +
& \frac{K-P}{P}=\pm e^{-C}e^{-kt}
 +
\end{align}
 +
</math>
 +
Let <math>A=\pm e^{-C}</math>.
 +
:<math>
 +
\begin{align}
 +
& \frac{K-P}{P}=Ae^{-kt} \\[6pt]
 +
& \frac{K}{P}-1=Ae^{-kt} \\[6pt]
 +
& \frac{K}{P}=1+Ae^{-kt} \\[6pt]
 +
& \frac{P}{K}=\frac{1}{1+Ae^{-kt}} \\[6pt]
 +
& P=\frac{K}{1+Ae^{-kt}}
 +
\end{align}
 +
</math>
 +
 +
Therefore, the solution to the logistic equation is
 +
 +
: <math>P(t)=\frac{K}{1+Ae^{-kt}}</math>
 +
 +
To find <math>A</math>, let <math>t=0</math> and <math>P\left(0\right)=P_0</math>. Then we have
 +
 +
: <math>P_0=\frac{K}{1+Ae^0}</math>
 +
 +
Noting that <math>e^0=1</math>, and solving for ''A'' we get
 +
 +
: <math>A=\frac{K-P_0}{P_0}.</math>
 +
 +
=== 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:
 +
:<math>\frac{dy}{dx}=f(y)g(x)</math>
 +
The derivative can alternatively be written the following way to underscore that it is an operator working on the unknown function, ''y'':
 +
:<math>\frac{dy}{dx}=\frac{d}{dx}(y)</math>
 +
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:
 +
:<math>\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) = \frac{d}{dx}\left(\frac{d}{dx}(y)\right)</math>
 +
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
 +
:<math>\frac{dy}{dx}=f(y)g(x)</math>
 +
a separable second-order ODE is reducible to the form
 +
:<math>\frac{d^2y}{dx^2}=f\left(y'\right)g(x)</math>
 +
and an nth-order separable ODE is reducible to
 +
:<math>\frac{d^ny}{dx^n}=f\!\left(y^{(n-1)}\right)g(x)</math>
 +
 +
=== Example ===
 +
Consider the simple nonlinear second-order differential equation:<math display="block">y''=(y')^2.</math>This equation is an equation only of ''y<nowiki>''</nowiki>'' and ''y'<nowiki/>'', 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'<nowiki/>'' variables on the other to get:<math display="block">\frac{d(y')}{(y')^2}=dx.</math>Now, integrate the right side with respect to ''x'' and the left with respect to ''y''':<math display="block">\int \frac{d(y')}{(y')^2}=\int dx.</math>This gives<math display="block">-\frac{1}{y'}=x+C_1,</math>which simplifies to:<math display="block">y'=-\frac{1}{x+C_1}~.</math>This is now a simple integral problem that gives the final answer:<math display="block">y=C_2-\ln|x+C_1|.</math>
 +
 +
== 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, Laplace equation, Helmholtz equation and biharmonic 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.
 +
 +
=== Example: homogeneous case ===
 +
 +
Consider the one-dimensional heat equation. The equation is
 +
 +
:<math>\frac{\partial u}{\partial t} - \alpha\frac{\partial^{2}u}{\partial x^{2}} = 0</math> '''(1)'''
 +
 +
The variable ''u'' denotes temperature. The boundary condition is homogeneous, that is
 +
:<math>u\big|_{x=0}=u\big|_{x=L}=0 </math> '''(2)'''
 +
 +
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:
 +
 +
:<math> u(x,t) = X(x) T(t).</math> '''(3)'''
 +
 +
Substituting ''u'' back into equation '''(1)''' and using the product rule,
 +
 +
:<math>\frac{T'(t)}{\alpha T(t)} = \frac{X''(x)}{X(x)}.</math> '''(4)'''
 +
 +
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:
 +
 +
:<math>T'(t) = - \lambda \alpha T(t),</math> '''(5)'''
 +
 +
and
 +
 +
:<math>X''(x) = - \lambda X(x).</math> '''(6)'''
 +
 +
−''λ'' here is the eigenvalue 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
 +
 +
:<math>X(x) = B e^{\sqrt{-\lambda} \, x} + C e^{-\sqrt{-\lambda} \, x}.</math>
 +
 +
From '''(2)''' we get
 +
 +
:<math>X(0) = 0 = X(L),</math> '''(7)'''
 +
 +
and therefore ''B'' = 0 = ''C'' which implies ''u'' is identically 0.
 +
 +
Suppose that ''λ'' = 0. Then there exist real numbers ''B'', ''C'' such that
 +
 +
:<math>X(x) = Bx + C.</math>
 +
 +
From '''(7)''' 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
 +
:<math>T(t) = A e^{-\lambda \alpha t},</math>
 +
and
 +
:<math>X(x) = B \sin(\sqrt{\lambda} \, x) + C \cos(\sqrt{\lambda} \, x).</math>
 +
 +
From '''(7)''' we get ''C'' = 0 and that for some positive integer ''n'',
 +
 +
:<math>\sqrt{\lambda} = n \frac{\pi}{L}.</math>
 +
 +
This solves the heat equation in the special case that the dependence of ''u'' 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
 +
 +
:<math>u(x,t) = \sum_{n = 1}^{\infty} D_n \sin \frac{n\pi x}{L} \exp\left(-\frac{n^2 \pi^2 \alpha t}{L^2}\right),</math>
 +
 +
where ''D''<sub>''n''</sub> are coefficients determined by initial condition.
 +
 +
Given the initial condition
 +
 +
:<math>u\big|_{t=0}=f(x),</math>
 +
 +
we can get
 +
 +
:<math>f(x) = \sum_{n = 1}^{\infty} D_n \sin \frac{n\pi x}{L}.</math>
 +
 +
This is the sine series expansion of ''f''(''x''). Multiplying both sides with <math display="inline">\sin \frac{n\pi x}{L}</math> and integrating over [0, ''L''] result in
 +
 +
:<math>D_n = \frac{2}{L} \int_0^L f(x) \sin \frac{n\pi x}{L} \, dx.</math>
 +
 +
This method requires that the eigenfunctions ''X'', here <math display="inline">\left\{\sin \frac{n\pi x}{L}\right\}_{n=1}^{\infty}</math>, are orthogonal and complete. In general this is guaranteed by Sturm-Liouville theory.
 +
 +
=== Example: nonhomogeneous case ===
 +
 +
Suppose the equation is nonhomogeneous,
 +
 +
:<math>\frac{\partial u}{\partial t}-\alpha\frac{\partial^{2}u}{\partial x^{2}}=h(x,t)</math> '''(8)'''
 +
 +
with the boundary condition the same as '''(2)'''.
 +
 +
Expand ''h''(''x,t''), ''u''(''x'',''t'') and ''f''(''x'') into
 +
 +
:<math>h(x,t)=\sum_{n=1}^{\infty}h_{n}(t)\sin\frac{n\pi x}{L},</math> '''(9)'''
 +
 +
:<math>u(x,t)=\sum_{n=1}^{\infty}u_{n}(t)\sin\frac{n\pi x}{L},</math> '''(10)'''
 +
 +
: <math>f(x)=\sum_{n=1}^{\infty}b_{n}\sin\frac{n\pi x}{L},</math> '''(11)'''
 +
 +
where ''h''<sub>''n''</sub>(''t'') and ''b''<sub>''n''</sub> can be calculated by integration, while ''u''<sub>''n''</sub>(''t'') is to be determined.
 +
 +
Substitute '''(9)''' and '''(10)''' back to '''(8)''' and considering the orthogonality of sine functions we get
 +
 +
: <math>u'_{n}(t)+\alpha\frac{n^{2}\pi^{2}}{L^{2}}u_{n}(t)=h_{n}(t),</math>
 +
 +
which are a sequence of linear differential equations that can be readily solved with, for instance, Laplace transform, or Integrating factor. Finally, we can get
 +
: <math>u_{n}(t)=e^{-\alpha\frac{n^{2}\pi^{2}}{L^{2}} t} \left (b_{n}+\int_{0}^{t}h_{n}(s)e^{\alpha\frac{n^{2}\pi^{2}}{L^{2}} s} \, ds \right).</math>
 +
 +
If the boundary condition is nonhomogeneous, then the expansion of '''(9)''' and '''(10)''' 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
 +
 +
:<math>\frac{\partial^4 u}{\partial x^4} + 2\frac{\partial^4 u}{\partial x^2\partial y^2} + \frac{\partial^4 u}{\partial y^4} = 0.</math>
 +
 +
Proceeding in the usual manner, we look for solutions of the form
 +
 +
:<math>u(x,y) = X(x)Y(y)</math>
 +
 +
and we obtain the equation
 +
 +
:<math>\frac{X^{(4)}(x)}{X(x)} + 2\frac{X''(x)}{X(x)}\frac{Y''(y)}{Y(y)} + \frac{Y^{(4)}(y)}{Y(y)} = 0.</math>
 +
 +
Writing this equation in the form
 +
 +
:<math>E(x) + F(x)G(y) + H(y) = 0,</math>
 +
 +
we see that the derivative with respect to ''x'' and ''y'' eliminates the first and last terms, so that
 +
 +
:<math>F'(x)G'(y) = 0,</math>
 +
 +
i.e. either ''F''(''x'') or ''G''(''y'') must be a constant, say −λ. This further implies that either <math>-E(x)=F(x)G(y)+H(y)</math> or <math>-H(y)=E(x)+F(x)G(y)</math> are constant. Returning to the equation for ''X'' and ''Y'', we have two cases
 +
 +
:<math>\begin{align}
 +
    X''(x) &= -\lambda_1X(x) \\
 +
    X^{(4)}(x) &= \mu_1X(x) \\
 +
    Y^{(4)}(y) - 2\lambda_1Y''(y) &= -\mu_1Y(y)
 +
\end{align}</math>
 +
 +
and
 +
 +
:<math>\begin{align}
 +
    Y''(y) &= -\lambda_2Y(y) \\
 +
    Y^{(4)}(y) &= \mu_2Y(y) \\
 +
    X^{(4)}(x) - 2\lambda_2X''(x) &= -\mu_2X(x)
 +
\end{align}</math>
 +
 +
which can each be solved by considering the separate cases for <math>\lambda_i<0, \lambda_i=0, \lambda_i>0</math> and noting that <math>\mu_i=\lambda_i^2</math>.
 +
 +
=== 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 some cases, separation of variables may not be possible. Separation of variables may be possible in some coordinate systems but not others, and which coordinate systems allow for separation depends on the symmetry properties of the equation. 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 <math> u(x,t) </math> on <math> D = \{(x,t): x \in [0,l], t \geq 0 \}</math> in two variables:
 +
 +
:<math> (Tu)(x,t) = (Su)(x,t) </math>
 +
 +
where <math>T</math> is a differential operator with respect to <math>x</math> and <math>S</math> is a differential operator with respect to <math>t</math> with boundary data:
 +
 +
:<math>(Tu)(0,t) = (Tu)(a) = 0</math> for <math> t \geq 0</math>
 +
:<math>(Su)(x,0)=h(x) </math> for <math> 0 \leq x \leq a</math>
 +
 +
where <math>h</math> is a known function.
 +
 +
We look for solutions of the form <math>u(x,t) = f(x) g(t)</math>. Dividing the PDE through by <math>f(x)g(t)</math> gives
 +
 +
:<math> \frac{Tf}{f} = \frac{Sg}{g} </math>
 +
 +
The right hand side depends only on <math>x</math> and the left hand side only on <math> t</math> so both must be equal to a constant <math> K </math>, which gives two ordinary differential equations
 +
 +
:<math>Tf = Kf, Sg = Kg</math>
 +
 +
which we can recognize as eigenvalue problems for the operators for <math>T</math> and <math>S</math>. If <math>T</math> is a compact, self-adjoint operator on the space <math>L^2[0,l]</math> along with the relevant boundary conditions, then by the Spectral theorem there exists a basis for <math>L^2[0,l]</math> consisting of eigenfunctions for <math>T</math>. Let the spectrum of <math>T</math> be <math>E</math> and let <math>f_{\lambda}</math> be an eigenfunction with eigenvalue <math>\lambda \in E</math>. Then for any function which at each time <math>t</math> is square-integrable with respect to <math>x</math>, we can write this function as a linear combination of the <math>f_{\lambda}</math>. In particular, we know the solution <math>u</math> can be written as
 +
 +
:<math>u(x,t) = \sum_{\lambda \in E} c_{\lambda}(t)f_{\lambda}(x)</math>
 +
 +
For some functions <math>c_{\lambda}(t)</math>. In the separation of variables, these functions are given by solutions to <math> Sg = Kg </math>
 +
 +
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 <math>\frac{d^2}{dx^2}</math>, 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).<ref name="Benson2007">David Benson (2007) ''Music: A Mathematical Offering'', Cambridge University Press, Appendix W</ref>
 +
 +
== 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:
 +
 +
:<math>L = \mathbf{D_{xx}}\oplus\mathbf{D_{yy}}=\mathbf{D_{xx}}\otimes\mathbf{I}+\mathbf{I}\otimes\mathbf{D_{yy}}, \,</math>
 +
 +
where <math>\mathbf{D_{xx}} </math> and <math>\mathbf{D_{yy}} </math> are 1D discrete Laplacians in the ''x''- and ''y''-directions, correspondingly, and <math>\mathbf{I} </math> are the identities of appropriate sizes. See the main article Kronecker sum of discrete Laplacians for details.
 +
 +
== Software ==
 +
Some mathematical programs are able to do separation of variables: Xcas among others.
 +
 +
==Resources==
 
* [https://tutorial.math.lamar.edu/Classes/DE/Separable.aspx Separation of Variables Notes]. Produced by Paul Dawkins, Lamar University
 
* [https://tutorial.math.lamar.edu/Classes/DE/Separable.aspx Separation of Variables Notes]. Produced by Paul Dawkins, Lamar University
 +
 +
==References==
 +
*Polyanin, Andrei D. (2001-11-28). Handbook of Linear Partial Differential Equations for Engineers and Scientists. Boca Raton, FL: Chapman & Hall/CRC. ISBN 1-58488-299-9.
 +
*Myint-U, Tyn; Debnath, Lokenath (2007). Linear Partial Differential Equations for Scientists and Engineers. Boston, MA: Birkhäuser Boston. doi:10.1007/978-0-8176-4560-1. ISBN 978-0-8176-4393-5.
 +
*Teschl, Gerald (2012). Ordinary Differential Equations and Dynamical Systems. Graduate Studies in Mathematics. 140. Providence, RI: American Mathematical Society. ISBN 978-0-8218-8328-0.

Revision as of 14:30, 15 October 2021

In 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.

Solve proportional first order differential equation by separation of variables.
Solve linear first order differential equation by separation of variables.

Ordinary differential equations (ODE)

Suppose a differential equation can be written in the form

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{d}{dx} f(x) = g(x)h(f(x))}

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. 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

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 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 (A1) as in

because a single constant is equivalent.)

Example

Population growth is often modeled by the differential equation

where is the population with respect to time , is the rate of growth, and is the carrying capacity of the environment.

Separation of variables may be used to solve this differential equation.

To evaluate the integral on the left side, we simplify the fraction

and then, we decompose the fraction into partial fractions

Thus we have

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} & \int\left(\frac{1}{P}+\frac{1}{K-P}\right) dP=\int k\,dt \\[6pt] & \ln|P|-\ln|K-P|=kt+C \\[6pt] & \ln|K-P|-\ln|P|=-kt-C \\[6pt] & \ln\left|\cfrac{K-P}{P}\right|=-kt-C \\[6pt] & \left|\dfrac{K-P}{P}\right|=e^{-kt-C} \\[6pt] & \left|\dfrac{K-P}{P}\right|=e^{-C}e^{-kt} \\[6pt] & \frac{K-P}{P}=\pm e^{-C}e^{-kt} \end{align} }

Let Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A=\pm e^{-C}} .

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} & \frac{K-P}{P}=Ae^{-kt} \\[6pt] & \frac{K}{P}-1=Ae^{-kt} \\[6pt] & \frac{K}{P}=1+Ae^{-kt} \\[6pt] & \frac{P}{K}=\frac{1}{1+Ae^{-kt}} \\[6pt] & P=\frac{K}{1+Ae^{-kt}} \end{align} }

Therefore, the solution to the logistic equation is

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(t)=\frac{K}{1+Ae^{-kt}}}

To find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A} , let Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle t=0} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P\left(0\right)=P_0} . Then we have

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P_0=\frac{K}{1+Ae^0}}

Noting that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle e^0=1} , and solving for A we get

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A=\frac{K-P_0}{P_0}.}

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 nth-order ODE. Consider the separable first-order ODE:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{dy}{dx}=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:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{dy}{dx}=\frac{d}{dx}(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:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) = \frac{d}{dx}\left(\frac{d}{dx}(y)\right)}

The third-, fourth- and nth-derivative operators break down in the same way. Thus, much like a first-order separable ODE is reducible to the form

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{dy}{dx}=f(y)g(x)}

a separable second-order ODE is reducible to the form

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{d^2y}{dx^2}=f\left(y'\right)g(x)}

and an nth-order separable ODE is reducible to

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{d^ny}{dx^n}=f\!\left(y^{(n-1)}\right)g(x)}

Example

Consider the simple nonlinear second-order differential equation:Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 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:Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{d(y')}{(y')^2}=dx.} Now, integrate the right side with respect to x and the left with respect to y':Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int \frac{d(y')}{(y')^2}=\int dx.} This givesFailed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle -\frac{1}{y'}=x+C_1,} which simplifies to:Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y'=-\frac{1}{x+C_1}~.} This is now a simple integral problem that gives the final answer:Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 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, Laplace equation, Helmholtz equation and biharmonic 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.

Example: homogeneous case

Consider the one-dimensional heat equation. The equation is

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{\partial u}{\partial t} - \alpha\frac{\partial^{2}u}{\partial x^{2}} = 0} (1)

The variable u denotes temperature. The boundary condition is homogeneous, that is

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u\big|_{x=0}=u\big|_{x=L}=0 } (2)

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:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u(x,t) = X(x) T(t).} (3)

Substituting u back into equation (1) and using the product rule,

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{T'(t)}{\alpha T(t)} = \frac{X''(x)}{X(x)}.} (4)

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:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle T'(t) = - \lambda \alpha T(t),} (5)

and

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X''(x) = - \lambda X(x).} (6)

λ here is the eigenvalue 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

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X(x) = B e^{\sqrt{-\lambda} \, x} + C e^{-\sqrt{-\lambda} \, x}.}

From (2) we get

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X(0) = 0 = X(L),} (7)

and therefore B = 0 = C which implies u is identically 0.

Suppose that λ = 0. Then there exist real numbers B, C such that

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X(x) = Bx + C.}

From (7) 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

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle T(t) = A e^{-\lambda \alpha t},}

and

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X(x) = B \sin(\sqrt{\lambda} \, x) + C \cos(\sqrt{\lambda} \, x).}

From (7) we get C = 0 and that for some positive integer n,

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sqrt{\lambda} = n \frac{\pi}{L}.}

This solves the heat equation in the special case that the dependence of u 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

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u(x,t) = \sum_{n = 1}^{\infty} D_n \sin \frac{n\pi x}{L} \exp\left(-\frac{n^2 \pi^2 \alpha t}{L^2}\right),}

where Dn are coefficients determined by initial condition.

Given the initial condition

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u\big|_{t=0}=f(x),}

we can get

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x) = \sum_{n = 1}^{\infty} D_n \sin \frac{n\pi x}{L}.}

This is the sine series expansion of f(x). Multiplying both sides with Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\textstyle \sin \frac{n\pi x}{L}} and integrating over [0, L] result in

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle D_n = \frac{2}{L} \int_0^L f(x) \sin \frac{n\pi x}{L} \, dx.}

This method requires that the eigenfunctions X, here Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\textstyle \left\{\sin \frac{n\pi x}{L}\right\}_{n=1}^{\infty}} , are orthogonal and complete. In general this is guaranteed by Sturm-Liouville theory.

Example: nonhomogeneous case

Suppose the equation is nonhomogeneous,

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{\partial u}{\partial t}-\alpha\frac{\partial^{2}u}{\partial x^{2}}=h(x,t)} (8)

with the boundary condition the same as (2).

Expand h(x,t), u(x,t) and f(x) into

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle h(x,t)=\sum_{n=1}^{\infty}h_{n}(t)\sin\frac{n\pi x}{L},} (9)
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u(x,t)=\sum_{n=1}^{\infty}u_{n}(t)\sin\frac{n\pi x}{L},} (10)
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)=\sum_{n=1}^{\infty}b_{n}\sin\frac{n\pi x}{L},} (11)

where hn(t) and bn can be calculated by integration, while un(t) is to be determined.

Substitute (9) and (10) back to (8) and considering the orthogonality of sine functions we get

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u'_{n}(t)+\alpha\frac{n^{2}\pi^{2}}{L^{2}}u_{n}(t)=h_{n}(t),}

which are a sequence of linear differential equations that can be readily solved with, for instance, Laplace transform, or Integrating factor. Finally, we can get

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_{n}(t)=e^{-\alpha\frac{n^{2}\pi^{2}}{L^{2}} t} \left (b_{n}+\int_{0}^{t}h_{n}(s)e^{\alpha\frac{n^{2}\pi^{2}}{L^{2}} s} \, ds \right).}

If the boundary condition is nonhomogeneous, then the expansion of (9) and (10) 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

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{\partial^4 u}{\partial x^4} + 2\frac{\partial^4 u}{\partial x^2\partial y^2} + \frac{\partial^4 u}{\partial y^4} = 0.}

Proceeding in the usual manner, we look for solutions of the form

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u(x,y) = X(x)Y(y)}

and we obtain the equation

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{X^{(4)}(x)}{X(x)} + 2\frac{X''(x)}{X(x)}\frac{Y''(y)}{Y(y)} + \frac{Y^{(4)}(y)}{Y(y)} = 0.}

Writing this equation in the form

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle E(x) + F(x)G(y) + H(y) = 0,}

we see that the derivative with respect to x and y eliminates the first and last terms, so that

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle F'(x)G'(y) = 0,}

i.e. either F(x) or G(y) must be a constant, say −λ. This further implies that either Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle -E(x)=F(x)G(y)+H(y)} or Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle -H(y)=E(x)+F(x)G(y)} are constant. Returning to the equation for X and Y, we have two cases

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} X''(x) &= -\lambda_1X(x) \\ X^{(4)}(x) &= \mu_1X(x) \\ Y^{(4)}(y) - 2\lambda_1Y''(y) &= -\mu_1Y(y) \end{align}}

and

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} Y''(y) &= -\lambda_2Y(y) \\ Y^{(4)}(y) &= \mu_2Y(y) \\ X^{(4)}(x) - 2\lambda_2X''(x) &= -\mu_2X(x) \end{align}}

which can each be solved by considering the separate cases for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda_i<0, \lambda_i=0, \lambda_i>0} and noting that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \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 some cases, separation of variables may not be possible. Separation of variables may be possible in some coordinate systems but not others, and which coordinate systems allow for separation depends on the symmetry properties of the equation. 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 Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u(x,t) } on Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle D = \{(x,t): x \in [0,l], t \geq 0 \}} in two variables:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (Tu)(x,t) = (Su)(x,t) }

where is a differential operator with respect to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S} is a differential operator with respect to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle t} with boundary data:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (Tu)(0,t) = (Tu)(a) = 0} for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle t \geq 0}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (Su)(x,0)=h(x) } for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 0 \leq x \leq a}

where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle h} is a known function.

We look for solutions of the form Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u(x,t) = f(x) g(t)} . Dividing the PDE through by Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)g(t)} gives

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{Tf}{f} = \frac{Sg}{g} }

The right hand side depends only on Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} and the left hand side only on Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle t} so both must be equal to a constant Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle K } , which gives two ordinary differential equations

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Tf = Kf, Sg = Kg}

which we can recognize as eigenvalue problems for the operators for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle T} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S} . If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle T} is a compact, self-adjoint operator on the space Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L^2[0,l]} along with the relevant boundary conditions, then by the Spectral theorem there exists a basis for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L^2[0,l]} consisting of eigenfunctions for . Let the spectrum of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle T} be Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle E} and let Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f_{\lambda}} be an eigenfunction with eigenvalue Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda \in E} . Then for any function which at each time Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle t} is square-integrable with respect to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} , we can write this function as a linear combination of the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f_{\lambda}} . In particular, we know the solution Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u} can be written as

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u(x,t) = \sum_{\lambda \in E} c_{\lambda}(t)f_{\lambda}(x)}

For some functions Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle c_{\lambda}(t)} . In the separation of variables, these functions are given by solutions to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 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 Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{d^2}{dx^2}} , 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).[1]

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:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L = \mathbf{D_{xx}}\oplus\mathbf{D_{yy}}=\mathbf{D_{xx}}\otimes\mathbf{I}+\mathbf{I}\otimes\mathbf{D_{yy}}, \,}

where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mathbf{D_{xx}} } and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mathbf{D_{yy}} } are 1D discrete Laplacians in the x- and y-directions, correspondingly, and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mathbf{I} } are the identities of appropriate sizes. See the main article Kronecker sum of discrete Laplacians for details.

Software

Some mathematical programs are able to do separation of variables: Xcas among others.

Resources

References

  • Polyanin, Andrei D. (2001-11-28). Handbook of Linear Partial Differential Equations for Engineers and Scientists. Boca Raton, FL: Chapman & Hall/CRC. ISBN 1-58488-299-9.
  • Myint-U, Tyn; Debnath, Lokenath (2007). Linear Partial Differential Equations for Scientists and Engineers. Boston, MA: Birkhäuser Boston. doi:10.1007/978-0-8176-4560-1. ISBN 978-0-8176-4393-5.
  • Teschl, Gerald (2012). Ordinary Differential Equations and Dynamical Systems. Graduate Studies in Mathematics. 140. Providence, RI: American Mathematical Society. ISBN 978-0-8218-8328-0.
  • David Benson (2007) Music: A Mathematical Offering, Cambridge University Press, Appendix W