a0,a1,…,an = Coefficient functions that may depend on x
g(x) = The forcing function (right-hand side)
x0,x1 = Two distinct points where boundary conditions are imposed
α,β = 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+C2sinx
Step 2: Apply the first boundary condition y(0) = 0. Substituting x = 0 into the general solution gives:
0=C1cos0+C2sin0=C1⇒C1=0
Step 3: Apply the second boundary condition y(π/2) = 1. With C₁ = 0, substitute x = π/2:
1=C2sin(2π)=C2⇒C2=1
Step 4: Write the final solution by substituting the constants back into the general solution.
y=sinx
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.
r2−4=0⇒r=±2
Step 2: The general solution with real distinct roots is:
y=C1e2x+C2e−2x
Step 3: Apply y(0) = 0:
0=C1e0+C2e0=C1+C2⇒C2=−C1
Step 4: Apply y(1) = 5 and substitute C₂ = −C₁:
5=C1e2+(−C1)e−2=C1(e2−e−2)⇒C1=e2−e−25
Step 5: Recognize that e² − e⁻² = 2 sinh 2, so the solution can be written neatly using hyperbolic sine:
y=sinh25sinh(2x)≈3.62695sinh(2x)
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 at
Two or more distinct points (e.g., x = a and x = b)
A single point (e.g., x = 0)
Type of conditions
Values 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 solution
May have 0, 1, or infinitely many solutions
Typically has exactly one solution (by existence-uniqueness theorems)
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.