{
  "id": "separation-of-variables",
  "title": "Separation of Variables",
  "lang": "en",
  "source_lang": "en",
  "summary": "Separation of variables solves certain differential equations by isolating variables or expressing a multivariable solution as a product of single-variable functions.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Method of separation of variables",
    "Variable separation"
  ],
  "generated_at": "2026-11-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/separation-of-variables/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/separation-of-variables/",
      "json": "https://aiwiki.page/zh/separation-of-variables.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Separation of variables is a method for solving certain differential equations by reducing relationships involving several variables to equations involving one variable at a time. For a first-order ordinary differential equation, it usually means rearranging the equation so that each side contains only one variable and then integrating. For a partial differential equation, it usually means seeking solutions that are products of functions of individual variables, thereby reducing the original equation to ordinary differential equations. These two uses share a principle but differ in their assumptions and in how complete solutions are constructed."
    },
    {
      "heading": "First-order ordinary differential equations",
      "text": "A first-order ordinary differential equation is separable if it can be written as\n\n\\[\\frac{dy}{dx}=f(x)g(y).\\]\n\nOn an interval where \\(g(y)\\neq 0\\), this gives the separated form\n\n\\[\\frac{1}{g(y)}\\,dy=f(x)\\,dx.\\]\n\nTaking an antiderivative on each side produces\n\n\\[\\int \\frac{1}{g(y)}\\,dy=\\int f(x)\\,dx+C,\\]\n\nwhere \\(C\\) is an arbitrary constant. This relation may define \\(y\\) implicitly; an explicit expression \\(y=y(x)\\) is not always available or necessary.\n\nThe manipulation of differentials is justified by the chain rule. If \\(H'(y)=1/g(y)\\) and \\(F'(x)=f(x)\\), then any differentiable solution avoiding zeros of \\(g\\) satisfies\n\n\\[\\frac{d}{dx}H(y(x)) =\\frac{y'(x)}{g(y(x))} =f(x),\\]\n\nso \\(H(y(x))=F(x)+C\\).\n\nFor an initial condition \\(y(x_0)=y_0\\), with \\(g\\) nonzero in a neighborhood of \\(y_0\\), the result can instead be written as\n\n\\[\\int_{y_0}^{y(x)}\\frac{ds}{g(s)} = \\int_{x_0}^{x}f(t)\\,dt.\\]\n\nThis form incorporates the initial condition directly.\n\nExample: exponential growth and decay\n\nConsider\n\n\\[y'=ky,\\]\n\nwhere \\(k\\) is constant. For \\(y\\neq 0\\),\n\n\\[\\frac{dy}{y}=k\\,dx, \\qquad \\ln|y|=kx+C.\\]\n\nUsing the exponential function gives\n\n\\[y(x)=Ae^{kx}.\\]\n\nThe formula also includes the solution \\(y\\equiv 0\\) when \\(A=0\\). Positive \\(k\\) describes exponential growth in magnitude, while negative \\(k\\) describes exponential decay as \\(x\\) increases.\n\nEquilibrium solutions and domains\n\nDividing by \\(g(y)\\) can discard solutions. Every constant \\(c\\) satisfying \\(g(c)=0\\) gives an equilibrium solution\n\n\\[y(x)\\equiv c,\\]\n\nwhich must be checked separately.\n\nFor example,\n\n\\[y'=y(1-y)\\]\n\nhas equilibria \\(y=0\\) and \\(y=1\\). Away from these values, separation gives\n\n\\[\\ln\\left|\\frac{y}{1-y}\\right|=x+C,\\]\n\nand hence the nonconstant solutions\n\n\\[y(x)=\\frac{1}{1+Ae^{-x}}, \\qquad A\\neq 0,\\]\n\non intervals where the denominator does not vanish. The same formula with \\(A=0\\) recovers \\(y=1\\), but not \\(y=0\\).\n\nThe domain matters: an algebraic expression obtained by integration need not define a solution on the entire real line. Singularities, restrictions introduced by logarithms, and the original equation's domain must all be respected.\n\nSeparation also does not establish uniqueness. Under suitable local Lipschitz conditions in the dependent variable, initial-value solutions are locally unique. Without such conditions, a solution may remain at an equilibrium for a time and then depart from it; division by \\(g(y)\\) alone does not describe the entire solution."
    },
    {
      "heading": "Partial differential equations",
      "text": "For a partial differential equation in two independent variables, separation usually begins with a product assumption, or ansatz:\n\n\\[u(x,t)=X(x)T(t).\\]\n\nSubstitution may produce an equality of the form\n\n\\[A(x)=B(t).\\]\n\nIf this equality holds throughout a product domain in which \\(x\\) and \\(t\\) vary independently, both sides must equal a constant, called a separation constant. This gives ordinary differential equations for \\(X\\) and \\(T\\).\n\nThe product assumption identifies separated solutions; it does not imply that every solution is a single product. For linear homogeneous equations, general solutions satisfying prescribed data are often constructed from sums or infinite series of separated solutions. This step uses linearity, together with appropriate completeness and convergence results.\n\nExample: the heat equation on an interval\n\nConsider the one-dimensional heat equation\n\n\\[u_t=\\kappa u_{xx}, \\qquad 0<x<L,\\quad t>0,\\]\n\nwhere \\(\\kappa>0\\), with homogeneous endpoint conditions\n\n\\[u(0,t)=u(L,t)=0.\\]\n\nSubstituting \\(u=XT\\) gives\n\n\\[XT'=\\kappa X''T.\\]\n\nWhere division is valid,\n\n\\[\\frac{T'}{\\kappa T} = \\frac{X''}{X} =-\\lambda.\\]\n\nThe separated equations are therefore\n\n\\[X''+\\lambda X=0, \\qquad T'+\\kappa\\lambda T=0.\\]\n\nThe original, undivided equations remain valid at zeros of the factors; the quotients are an intermediate device rather than a requirement that eigenfunctions never vanish.\n\nThe endpoint conditions require\n\n\\[X(0)=X(L)=0.\\]\n\nNonzero spatial solutions exist only for\n\n\\[\\lambda_n=\\left(\\frac{n\\pi}{L}\\right)^2, \\qquad n=1,2,\\ldots,\\]\n\nwith\n\n\\[X_n(x)=\\sin\\left(\\frac{n\\pi x}{L}\\right), \\qquad T_n(t)=e^{-\\kappa(n\\pi/L)^2t}.\\]\n\nThus a single separated mode is\n\n\\[u_n(x,t) = \\sin\\left(\\frac{n\\pi x}{L}\\right) e^{-\\kappa(n\\pi/L)^2t}.\\]\n\nFor suitable initial data \\(u(x,0)=f(x)\\), a solution is\n\n\\[u(x,t)= \\sum_{n=1}^{\\infty} b_n \\sin\\left(\\frac{n\\pi x}{L}\\right) e^{-\\kappa(n\\pi/L)^2t},\\]\n\nwhere the Fourier sine coefficients are\n\n\\[b_n=\\frac{2}{L} \\int_0^L f(x)\\sin\\left(\\frac{n\\pi x}{L}\\right)\\,dx.\\]\n\nThe precise interpretation depends on the regularity of \\(f\\). For square-integrable data, the solution approaches the initial data in the square-integrable norm as \\(t\\) decreases to zero. Stronger pointwise or classical conclusions require additional assumptions. Higher spatial frequencies decay faster because their decay rates are proportional to \\(n^2\\)."
    },
    {
      "heading": "Boundary conditions and eigenfunction expansions",
      "text": "In partial differential equations, separation is closely connected to a boundary-value problem. Boundary conditions determine which separation constants and separated factors are admissible.\n\nIn the heat example, the spatial equation is an eigenvalue equation for the operator \\(-d^2/dx^2\\). Its allowed constants are eigenvalues, and the corresponding functions are eigenfunctions.\n\nA common general framework is a Sturm–Liouville problem:\n\n\\[-\\frac{d}{dx}\\left(p(x)\\frac{dX}{dx}\\right) +q(x)X = \\lambda w(x)X.\\]\n\nFor regular problems with suitable real coefficients, positive \\(p\\) and \\(w\\), and self-adjoint boundary conditions, the eigenvalues are real, and eigenfunctions for distinct eigenvalues are orthogonal under the weighted inner product\n\n\\[\\langle X_m,X_n\\rangle_w = \\int_a^b X_m(x)X_n(x)w(x)\\,dx.\\]\n\nAppropriate eigenfunctions form a complete system in the associated weighted Hilbert space. Completeness explains why sums of product solutions can represent data that are not themselves separable.\n\nBoundary conditions also affect qualitative behavior. Insulated rather than fixed-temperature endpoints in the heat equation permit a spatially constant, zero-eigenvalue mode, which does not decay. On unbounded domains, continuous spectral parameters and integral representations, such as the Fourier transform, may replace discrete sums."
    },
    {
      "heading": "Coordinates and applications",
      "text": "Separability depends on both the equation and the coordinate system. An equation that separates in Cartesian coordinates may also separate in other coordinates, but yield different ordinary differential equations and different families of functions.\n\nFor Laplace's equation in plane polar coordinates,\n\n\\[u_{rr}+\\frac{1}{r}u_r+\\frac{1}{r^2}u_{\\theta\\theta}=0,\\]\n\nthe substitution \\(u(r,\\theta)=R(r)\\Theta(\\theta)\\) gives\n\n\\[\\frac{r^2R''+rR'}{R} = -\\frac{\\Theta''}{\\Theta} =\\lambda.\\]\n\nIf the solution must be single-valued around a full circle, angular periodicity restricts the permitted constants. Circular and annular boundaries can then be handled naturally. Other equations in polar or cylindrical coordinates lead to Bessel functions; spherical coordinates commonly lead to spherical harmonics.\n\nMajor applications include:\n\n- Diffusion and heat conduction: separated modes describe spatial patterns with different decay rates.\n- Vibrations and acoustics: separation of the wave equation yields normal modes and their frequencies.\n- Potential theory: Laplace's equation describes idealized electrostatic and steady-state temperature fields.\n- Quantum mechanics: separable forms of the Schrödinger equation reduce certain time-dependent and spatial problems to eigenvalue equations.\n- Numerical computation: eigenfunction expansions provide spectral approximations and test solutions for computational methods."
    },
    {
      "heading": "Historical development",
      "text": "Variable separation belongs to the early development of differential equations and calculus. Product solutions became particularly important in eighteenth-century studies of vibrating strings and related boundary-value problems.\n\nJoseph Fourier made separated modes and trigonometric expansions central to heat conduction, notably in his 1822 work Théorie analytique de la chaleur. Subsequent developments in Sturm–Liouville theory, spectral theory, and functional analysis supplied more systematic foundations for eigenfunction expansions and their convergence."
    },
    {
      "heading": "Limitations and distinctions",
      "text": "Not every differential equation is separable. An ordinary differential equation \\(y'=F(x,y)\\) may not admit a factorization \\(F(x,y)=f(x)g(y)\\). A substitution can sometimes make it separable, but the existence of an effective substitution is not guaranteed.\n\nFor partial differential equations, variable coefficients, mixed derivatives, nonlinear terms, or irregular boundaries may prevent useful separation. A differential operator can separate while the boundary geometry does not, making the resulting modes unsuitable for the prescribed problem.\n\nSuperposition is especially important: sums of solutions solve a linear homogeneous equation, but generally do not solve a nonlinear equation. Finding several separated solutions of a nonlinear equation therefore does not automatically produce a general solution.\n\nNonhomogeneous equations and boundary conditions also need additional treatment. A common procedure is to subtract a function satisfying the nonhomogeneous boundary data and then expand the remaining unknown in eigenfunctions, producing forced equations for the mode coefficients.\n\nFinally, separation is distinct from statistical independence and from the topological notion of a separable space. Here, “separable” describes the structure of an equation or a solution representation, not independence of random variables or the existence of a countable dense subset."
    }
  ],
  "links": [
    "differential-equation",
    "ordinary-differential-equation",
    "antiderivative",
    "chain-rule",
    "exponential-function",
    "lipschitz-continuity",
    "partial-differential-equation",
    "heat-equation",
    "fourier-series",
    "boundary-value-problem",
    "eigenvalues-and-eigenvectors",
    "sturm-liouville-theory",
    "inner-product",
    "hilbert-space",
    "fourier-transform",
    "cartesian-coordinate-system",
    "laplace-equation",
    "polar-coordinates",
    "wave-equation",
    "schrodinger-equation",
    "joseph-fourier",
    "statistical-independence"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}