Boundary value problem
A boundary-value problem is a math problem about change, called a differential equation, that has extra rules attached. These rules are called boundary conditions. A solution to a boundary-value problem is a solution to the differential equation that also follows those boundary conditions.
Boundary-value problems appear in many areas of physics, because almost every physical differential equation has them. Problems about the wave equation, such as finding normal modes, are often written as boundary-value problems. One large and important group of them is the Sturm–Liouville problems. For these problems, when the equations are linear, the work involves eigenfunctions of a differential operator.
To be useful in real applications, a boundary-value problem should be well posed. This means that for any given input there is exactly one solution, and that solution changes smoothly when the input changes. Much of the work in partial differential equations is spent proving that the boundary-value problems used in science and engineering are well posed.
One of the earliest boundary-value problems to be studied is the Dirichlet problem. It asks for the harmonic functions, which are the solutions to Laplace's equation. Its solution was given by Dirichlet's principle.
Explanation
Boundary value problems are similar to initial value problems. A boundary value problem has conditions set at the edges, or "boundaries," of the variable. An initial value problem has all of its conditions set at one starting value. That is why it is called the "initial" value. A boundary value is a data value that matches the smallest or largest value allowed for a system or part.
For example, if time goes from 0 to 1, a boundary value problem sets values at both t = 0 and t = 1. An initial value problem sets a value and how fast it changes at t = 0. Finding the temperature along an iron bar, with one end kept at absolute zero and the other end at the freezing point of water, is also a boundary value problem. In one simple example, the conditions y(0) = 0 and y(π/2) = 2 lead to exactly one answer, y(x) = 2sin(x).
Types of boundary value problems
There are three main kinds of conditions: Dirichlet, Neumann, and Cauchy or Robin. There are also mixed conditions and boundary at infinity.
A type 1 condition, Dirichlet boundary condition, sets the value of the function itself. For example, if one end of an iron rod is held at absolute zero, we know the value at that point. A type 2 condition, Neumann boundary condition, sets the value of the normal derivative of the function. For example, if there is a heater at one end of an iron rod, energy is added at a steady rate, but we do not know the exact temperature. A type 3 condition is the Robin condition. If the boundary is a curve or surface that gives a value to both the normal derivative and the variable itself, it is a Cauchy boundary condition. A type 0 boundary condition has no physical boundary.
Boundary value problems are also sorted by the type of differential operator they use. For an elliptic operator, we talk about elliptic boundary value problems. For a hyperbolic operator, we talk about hyperbolic boundary value problems. These groups are further split into linear and different nonlinear types.
Applications
See also: Laplace's equation § Boundary conditions
In electrostatics, a common problem is to find a function that describes the electric potential of a region. If the region has no charge, the potential must solve Laplace's equation. Such a solution is called a harmonic function. The boundary conditions in this case are the Interface conditions for electromagnetic fields.
If there is no current density in the region, a magnetic scalar potential can also be defined using a similar method.

Quiz time!
4 questions about Boundary value problem
What are the extra rules attached to a boundary-value problem called?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Boundary value problem, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.