{
  "id": "dirichlet-boundary-condition",
  "title": "Dirichlet Boundary Condition",
  "lang": "en",
  "source_lang": "en",
  "summary": "A Dirichlet boundary condition prescribes the value of an unknown function on the boundary of the region where a differential equation is solved.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Boundary condition of the first kind",
    "First-type boundary condition",
    "Prescribed-value boundary condition"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/dirichlet-boundary-condition/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/dirichlet-boundary-condition/",
      "json": "https://aiwiki.page/zh/dirichlet-boundary-condition.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A Dirichlet boundary condition specifies the value of an unknown function on all or part of the boundary of the region in which a differential equation is posed. For a function \\(u\\) defined on a domain \\(\\Omega\\), its standard form is\n\n\\[u=g\\quad\\text{on }\\partial\\Omega,\\]\n\nwhere \\(\\partial\\Omega\\) denotes the boundary and \\(g\\) is prescribed boundary data. Together with the governing equation, this condition helps define a boundary value problem. Examples include fixing the temperature at the surface of a body, the electric potential on a conductor, or the displacement at a supported end of a string."
    },
    {
      "heading": "Definition and terminology",
      "text": "Let \\(\\Omega\\subset\\mathbb{R}^n\\) be an open domain and let \\(\\Gamma_D\\) be a specified portion of its boundary. A Dirichlet condition is written\n\n\\[u|_{\\Gamma_D}=g.\\]\n\nFor a classical solution continuous up to the boundary, this means that \\(u(x)=g(x)\\) at each point \\(x\\in\\Gamma_D\\). For less regular solutions, boundary values require a generalized interpretation.\n\nThe condition is homogeneous when \\(g=0\\), and nonhomogeneous when the prescribed data are not identically zero. Here “homogeneous” describes the boundary data, not necessarily the differential equation: an equation with a nonzero forcing term can still have homogeneous Dirichlet conditions.\n\nDirichlet data may be scalar or vector-valued. In elasticity, for example, prescribing all components of a displacement vector is a vector-valued Dirichlet condition. Prescribing only selected components gives a partial constraint that must be considered alongside the other boundary conditions.\n\nFor a time-dependent problem, the boundary data may also depend on time:\n\n\\[u(x,t)=g(x,t),\\qquad x\\in\\Gamma_D.\\]\n\nThis is distinct from an initial condition, which specifies the state at an initial time throughout the spatial domain."
    },
    {
      "heading": "Comparison with other boundary conditions",
      "text": "Dirichlet conditions prescribe the unknown itself. Other common boundary conditions prescribe a derivative or a combination of values and derivatives.\n\nA Neumann boundary condition typically specifies a normal derivative:\n\n\\[\\frac{\\partial u}{\\partial n}=h, \\qquad \\frac{\\partial u}{\\partial n}=\\nabla u\\cdot n,\\]\n\nwhere \\(n\\) is the outward unit normal. In diffusion and conductivity problems, the physically relevant quantity is often a weighted normal derivative or flux rather than the unweighted derivative.\n\nA Robin boundary condition combines the value and normal derivative:\n\n\\[\\alpha u+\\beta\\frac{\\partial u}{\\partial n}=r.\\]\n\nFor example, heat exchange with an ambient environment is often represented by a Robin condition rather than by a prescribed surface temperature.\n\nA mixed boundary value problem applies different types of conditions on different boundary portions. A rod might have its temperature fixed at one end and its heat flux prescribed at the other.\n\nThese distinctions depend on the mathematical model. Prescribing the value of a variable does not automatically prescribe its associated flux. In particular, homogeneous Dirichlet data do not generally represent insulation: zero temperature and zero heat flux are different conditions."
    },
    {
      "heading": "Standard examples",
      "text": "Poisson and Laplace equations\n\nA standard Dirichlet problem for Poisson’s equation is\n\n\\[\\begin{cases} -\\Delta u=f & \\text{in }\\Omega,\\\\ u=g & \\text{on }\\partial\\Omega, \\end{cases}\\]\n\nwhere \\(\\Delta\\) is the Laplace operator. When \\(f=0\\), the governing equation is Laplace’s equation, and the solution is a harmonic function.\n\nOn the interval \\((0,L)\\), the problem\n\n\\[-u''=0,\\qquad u(0)=a,\\qquad u(L)=b\\]\n\nhas the solution\n\n\\[u(x)=a+\\frac{b-a}{L}x.\\]\n\nThe prescribed endpoint values determine the two constants in the general solution.\n\nHeat equation\n\nFor the heat equation,\n\n\\[\\frac{\\partial u}{\\partial t}=\\kappa\\Delta u,\\]\n\na Dirichlet condition specifies the boundary temperature. Initial data are also needed:\n\n\\[u(x,0)=u_0(x).\\]\n\nIf a solution is required to be continuous up to the boundary at the initial time, the data must satisfy the compatibility condition\n\n\\[u_0|_{\\partial\\Omega}=g(\\cdot,0).\\]\n\nStronger regularity requirements can impose further compatibility conditions.\n\nWave equation\n\nFor the wave equation describing transverse motion of a string, fixed endpoints are modeled by\n\n\\[u(0,t)=u(L,t)=0.\\]\n\nHere \\(u\\) is displacement, so the condition fixes position rather than temperature or force. Because the equation is second order in time, both initial displacement and initial velocity must ordinarily be prescribed."
    },
    {
      "heading": "Weak formulation and boundary traces",
      "text": "Classical boundary values may not exist for functions used in a weak formulation. A function in the Sobolev space \\(H^1(\\Omega)\\), for example, is represented by an equivalence class of functions that agree almost everywhere in the interior. Arbitrarily choosing values on the boundary does not define its boundary behavior.\n\nFor a bounded Lipschitz domain, the trace operator provides a continuous notion of boundary restriction:\n\n\\[\\operatorname{Tr}:H^1(\\Omega)\\longrightarrow H^{1/2}(\\partial\\Omega).\\]\n\nThe Dirichlet condition is then interpreted as\n\n\\[\\operatorname{Tr}u=g.\\]\n\nThe space \\(H_0^1(\\Omega)\\), defined as the closure of smooth compactly supported functions in the \\(H^1\\) norm, consists precisely of the \\(H^1\\) functions with zero trace under these domain assumptions.\n\nFor Poisson’s equation with homogeneous Dirichlet data, the weak problem is to find \\(u\\in H_0^1(\\Omega)\\) such that\n\n\\[\\int_\\Omega \\nabla u\\cdot\\nabla v\\,dx = \\int_\\Omega fv\\,dx \\qquad\\text{for every }v\\in H_0^1(\\Omega),\\]\n\nassuming, for example, \\(f\\in L^2(\\Omega)\\).\n\nThis identity follows formally from integration by parts. The boundary term vanishes because the test functions have zero trace, not because the normal derivative of \\(u\\) vanishes.\n\nFor nonhomogeneous data, one may choose a lifting \\(G\\in H^1(\\Omega)\\) satisfying \\(\\operatorname{Tr}G=g\\), and write\n\n\\[u=w+G,\\qquad w\\in H_0^1(\\Omega).\\]\n\nThe resulting problem for \\(w\\) has homogeneous boundary data and a modified right-hand side. Thus, admissible boundary data depend on the solution space: not every boundary function is the trace of an \\(H^1\\) function."
    },
    {
      "heading": "Existence, uniqueness, and regularity",
      "text": "For Poisson’s equation on a bounded Lipschitz domain, suitable forcing and trace data yield a unique weak solution. A central ingredient is the Poincaré inequality, which controls the size of a zero-trace function by the size of its gradient. This makes the associated energy form coercive and permits the use of the Lax–Milgram theorem.\n\nFor classical harmonic functions continuous on the closure of a bounded domain, the maximum principle gives uniqueness: the difference between two solutions with identical boundary values is harmonic and vanishes on the boundary, so it must vanish throughout the domain.\n\nExistence of a weak solution does not guarantee smoothness up to the boundary. Regularity depends on the differential operator, forcing, boundary data, and geometry. Corners, nonsmooth coefficients, or discontinuous data may produce singular behavior. On sufficiently irregular domains, even continuous boundary data need not be attained at every boundary point by a classical harmonic extension.\n\nDirichlet conditions also do not guarantee solvability for every equation. Consider\n\n\\[-\\Delta u-\\lambda u=f,\\qquad u|_{\\partial\\Omega}=0.\\]\n\nIf \\(\\lambda\\) is a Dirichlet eigenvalue of \\(-\\Delta\\), uniqueness can fail, and existence requires compatibility with the corresponding eigenspace. This connects boundary value problems with eigenvalue theory."
    },
    {
      "heading": "Variational interpretation",
      "text": "For Poisson’s equation, the solution minimizes the functional\n\n\\[E[v]=\\frac12\\int_\\Omega|\\nabla v|^2\\,dx-\\int_\\Omega fv\\,dx\\]\n\nover functions with the prescribed boundary trace, under standard assumptions ensuring existence.\n\nThis is an example of the calculus of variations. The admissible functions already satisfy the Dirichlet condition, so admissible variations have zero trace. In this setting, Dirichlet conditions are called essential boundary conditions because they constrain the trial space.\n\nNeumann conditions, by contrast, can arise from boundary terms in the variational calculation and are therefore called natural boundary conditions. This terminology depends on the formulation; it is not an absolute classification independent of the chosen variables and variational principle."
    },
    {
      "heading": "Numerical treatment",
      "text": "In the finite difference method, prescribed boundary values are commonly inserted directly into the grid equations. Their contributions are transferred to the right-hand side when solving for interior unknowns.\n\nIn the finite element method, Dirichlet data are often imposed strongly by fixing boundary degrees of freedom. If the assembled system is partitioned into free and prescribed unknowns,\n\n\\[\\begin{pmatrix} A_{II}&A_{IB}\\\\ A_{BI}&A_{BB} \\end{pmatrix} \\begin{pmatrix} u_I\\\\g_B \\end{pmatrix} = \\begin{pmatrix} b_I\\\\b_B \\end{pmatrix},\\]\n\nthe free unknowns satisfy\n\n\\[A_{II}u_I=b_I-A_{IB}g_B.\\]\n\nOnly the free equations determine the unconstrained solution; the remaining rows can be used to recover reaction quantities.\n\nDirichlet conditions can also be enforced weakly through penalty methods, Lagrange multipliers, or Nitsche’s method. These approaches are useful when approximation spaces do not easily incorporate boundary data or when meshes do not conform to the boundary. Their stability and accuracy depend on the formulation. For example, increasing a penalty parameter can reduce boundary mismatch while worsening the conditioning of the discrete system."
    },
    {
      "heading": "Historical background and scope",
      "text": "The condition is named after the nineteenth-century mathematician Peter Gustav Lejeune Dirichlet. Its terminology is closely associated with the classical problem of finding a harmonic function from prescribed boundary values and with the energy-minimization approach known as the Dirichlet principle. The justification of that principle became an important issue in the development of variational methods and modern analysis.\n\nDirichlet conditions remain fundamental in mathematical physics and engineering, but they must match the governing equation. For many second-order elliptic equations, prescribing one scalar value at each boundary point is appropriate. Higher-order equations generally require additional boundary information. For transport equations, data are typically prescribed on the inflow boundary rather than on the entire boundary. Imposing both a value and an independent normal derivative on the same boundary portion can overdetermine a problem unless the data satisfy special compatibility requirements."
    }
  ],
  "links": [
    "mathematical-function",
    "differential-equation",
    "boundary-value-problem",
    "neumann-boundary-condition",
    "poisson-equation",
    "laplace-operator",
    "laplace-equation",
    "harmonic-function",
    "heat-equation",
    "wave-equation",
    "weak-solution",
    "sobolev-space",
    "integration-by-parts",
    "gradient",
    "maximum-principle",
    "eigenvalues-and-eigenvectors",
    "calculus-of-variations",
    "finite-difference-method",
    "finite-element-method",
    "condition-number"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}