Mathwords logoMathwords

Boundary Value Problem

Boundary Value Problem
BVP

A differential equation or partial differential equation accompanied by conditions for the value of the function but with no conditions for the value of any derivatives.

Note: Boundary value problem is often abbreviated BVP.

 

Differential Equation

y" + y = sin x

Initial Value Problem (IVP)

y" + y = sin x, y(0) = 1, y'(0) = – 2

Boundary Value Problem (BVP)

y" + y = sin x, y(0) = 1, y(1) = – 2

Key Formula

an(x)y(n)+an1(x)y(n1)++a1(x)y+a0(x)y=g(x)a_n(x)\,y^{(n)} + a_{n-1}(x)\,y^{(n-1)} + \cdots + a_1(x)\,y' + a_0(x)\,y = g(x) with y(x0)=α,y(x1)=β\text{with } y(x_0) = \alpha, \quad y(x_1) = \beta
Where:
  • yy = The unknown function of x
  • y(n)y^{(n)} = The nth derivative of y with respect to x
  • a0,a1,,ana_0, a_1, \ldots, a_n = Coefficient functions that may depend on x
  • g(x)g(x) = The forcing function (right-hand side)
  • x0,x1x_0, x_1 = Two distinct points where boundary conditions are imposed
  • α,β\alpha, \beta = Prescribed values of y at the boundary points

Worked Example

Problem: Solve the boundary value problem: y'' + y = 0, with y(0) = 0 and y(π/2) = 1.
Step 1: Find the general solution of the differential equation y'' + y = 0. The characteristic equation is r² + 1 = 0, giving r = ±i.
y=C1cosx+C2sinxy = C_1 \cos x + C_2 \sin x
Step 2: Apply the first boundary condition y(0) = 0. Substituting x = 0 into the general solution gives:
0=C1cos0+C2sin0=C1C1=00 = C_1 \cos 0 + C_2 \sin 0 = C_1 \quad \Rightarrow \quad C_1 = 0
Step 3: Apply the second boundary condition y(π/2) = 1. With C₁ = 0, substitute x = π/2:
1=C2sin ⁣(π2)=C2C2=11 = C_2 \sin\!\left(\frac{\pi}{2}\right) = C_2 \quad \Rightarrow \quad C_2 = 1
Step 4: Write the final solution by substituting the constants back into the general solution.
y=sinxy = \sin x
Answer: The solution is y = sin x.

Another Example

This example uses exponential (real root) solutions instead of trigonometric ones, and the boundary conditions are at x = 0 and x = 1 rather than at multiples of π. It also shows how hyperbolic functions arise naturally in BVPs.

Problem: Solve the boundary value problem: y'' − 4y = 0, with y(0) = 0 and y(1) = 5.
Step 1: Write the characteristic equation r² − 4 = 0 and solve for r.
r24=0r=±2r^2 - 4 = 0 \quad \Rightarrow \quad r = \pm 2
Step 2: The general solution with real distinct roots is:
y=C1e2x+C2e2xy = C_1 e^{2x} + C_2 e^{-2x}
Step 3: Apply y(0) = 0:
0=C1e0+C2e0=C1+C2C2=C10 = C_1 e^{0} + C_2 e^{0} = C_1 + C_2 \quad \Rightarrow \quad C_2 = -C_1
Step 4: Apply y(1) = 5 and substitute C₂ = −C₁:
5=C1e2+(C1)e2=C1(e2e2)C1=5e2e25 = C_1 e^{2} + (-C_1) e^{-2} = C_1(e^{2} - e^{-2}) \quad \Rightarrow \quad C_1 = \frac{5}{e^{2} - e^{-2}}
Step 5: Recognize that e² − e⁻² = 2 sinh 2, so the solution can be written neatly using hyperbolic sine:
y=5sinh(2x)sinh25sinh(2x)3.6269y = \frac{5\,\sinh(2x)}{\sinh 2} \approx \frac{5\,\sinh(2x)}{3.6269}
Answer: The solution is y = 5 sinh(2x) / sinh 2.

Frequently Asked Questions

What is the difference between a boundary value problem and an initial value problem?
An initial value problem (IVP) specifies the function and its derivatives at a single point, such as y(0) = 1 and y'(0) = −2. A boundary value problem (BVP) specifies the function's values at two or more different points, such as y(0) = 1 and y(1) = −2. This distinction affects which solution techniques apply and whether a unique solution is guaranteed.
Can a boundary value problem have no solution or infinitely many solutions?
Yes. Unlike initial value problems, which typically have a unique solution under standard conditions, a BVP can have exactly one solution, no solution, or infinitely many solutions depending on the equation and the boundary conditions. For example, y'' + y = 0 with y(0) = 0 and y(π) = 1 has no solution, while y(0) = 0 and y(π) = 0 has infinitely many solutions of the form y = C sin x.
When do you use boundary value problems?
Boundary value problems arise whenever physical constraints are imposed at different locations rather than at a single starting point. Common examples include the steady-state temperature distribution in a rod (temperature fixed at both ends), the deflection of a beam supported at its endpoints, and the vibration modes of a string fixed at both ends.

Boundary Value Problem (BVP) vs. Initial Value Problem (IVP)

Boundary Value Problem (BVP)Initial Value Problem (IVP)
Conditions given atTwo or more distinct points (e.g., x = a and x = b)A single point (e.g., x = 0)
Type of conditionsValues of the function at different points: y(a) = α, y(b) = βValues of the function and its derivatives at one point: y(0) = α, y'(0) = β
Uniqueness of solutionMay have 0, 1, or infinitely many solutionsTypically has exactly one solution (by existence-uniqueness theorems)
Typical applicationsSteady-state heat conduction, beam deflection, equilibrium problemsMotion from a starting state, population growth, circuits
Typical solution methodsShooting method, finite differences, eigenfunction expansionStep-by-step integration (Euler, Runge-Kutta)

Why It Matters

Boundary value problems appear throughout calculus, differential equations, and physics courses whenever you model systems constrained at two ends—such as a vibrating guitar string fixed at both endpoints or the temperature along a metal bar held at fixed temperatures. Understanding BVPs is also essential for studying partial differential equations, where separation of variables converts a PDE into several BVPs. Many real-world engineering problems (structural analysis, fluid flow, electromagnetic fields) reduce to boundary value problems.

Common Mistakes

Mistake: Confusing a BVP with an IVP by treating conditions at two different points as if they were both given at x = 0.
Correction: In a BVP, the conditions y(a) = α and y(b) = β are at different x-values. You must apply them separately to the general solution to create a system of equations for the unknown constants.
Mistake: Assuming a BVP always has a unique solution, just like a typical IVP.
Correction: BVPs do not always have unique solutions. Before solving, check whether the boundary conditions are compatible with the general solution. If the system of equations for the constants is inconsistent, there is no solution; if the system is underdetermined, there are infinitely many solutions.

Related Terms