Two-Point Boundary-Value Problems

A second-order linear ODE carries a two-parameter family of solutions, so pinning down one particular solution means supplying exactly two pieces of data. Where you put that data changes everything. An initial-value problem reads the function and its slope at a single point and marches forward; the Picard–Lindelöf theorem then hands you one and only one solution, every time. A two-point boundary-value problem instead nails one condition at the left end x=ax=a and another at the right end x=bx=b. That small relocation of the data destroys the clean existence-and-uniqueness story and replaces it with a genuine solvability theory — the same theory that governs resonance, quantisation, and the special functions of physics. The reason is structural, not technical. Writing the general solution as u=c1u1+c2u2u=c_1u_1+c_2u_2, the two boundary conditions become two linear equations for the constants (c1,c2)(c_1,c_2). A 2×22\times2 determinant, built from the fundamental solutions evaluated at the endpoints, decides the fate of that little system: nonzero and there is exactly one solution for any forcing; zero and the operator is singular, so the problem has either no solution or an infinite family. The vanishing determinant is precisely the appearance of a nontrivial homogeneous solution — an eigenfunction slipping through the boundary conditions. The natural language is operator theory. We write Lu=fLu=f with the boundary conditions folded into the domain of LL. Invertibility is stored in a Green's function, the continuous analogue of a matrix inverse; non-invertibility is stored in the Fredholm alternative. A clamped beam, a heated rod, a particle in a box, the radial Schrödinger equation — each is a two-point BVP whose two endpoints carry the physics and whose solvability theory says when equilibria exist and when resonances appear.

Key takeaways
  • A two-point boundary-value problem is an ODE on [a,b][a,b] with conditions imposed at BOTH endpoints, in contrast to an initial-value problem where all data sit at one point.
  • Unlike an IVP, which is always uniquely solvable, a linear BVP may have a unique solution, no solution, or infinitely many — a trichotomy decided entirely by the homogeneous problem Lu=0Lu=0.
  • The controlling object is a 2×22\times2 solvability determinant of the boundary functionals; it is nonzero exactly when Lu=0Lu=0 has only the trivial solution, and then LL is invertible.
  • When LL is invertible its inverse is a Green's function G(x,ξ)G(x,\xi), the response to a unit point source, and the solution is the superposition u(x)=∫abG(x,ξ)f(ξ) dξu(x)=\int_a^b G(x,\xi)f(\xi)\,\mathrm{d}\xi.
  • When Lu=0Lu=0 has nontrivial solutions the Fredholm alternative takes over: Lu=fLu=f is solvable only if ff is orthogonal to every homogeneous solution, and then the solution is non-unique.
  • Special parameter values that make the homogeneous problem non-trivial turn the BVP into an eigenvalue problem — the gateway to Sturm–Liouville theory and quantisation.
  • Key idea: a linear two-point BVP Lu=fLu=f is uniquely solvable for every ff precisely when the homogeneous problem Lu=0Lu=0 has only the trivial solution; otherwise the Fredholm orthogonality condition decides between no solution and infinitely many, and the Green's function exists exactly in the unique-solution case.
The core insight

A linear two-point boundary-value problem Lu=fLu=f is uniquely solvable for every forcing ff precisely when the homogeneous problem Lu=0Lu=0 has only the trivial solution; otherwise the Fredholm orthogonality condition decides between no solution and an infinite family, and the Green's function exists exactly in the unique-solution case.

Where this lives today

The two-point boundary-value problem is quietly everywhere a steady state or a confined mode is computed. In computational engineering, finite-element and finite-difference solvers for beams, membranes, and heat conduction reduce a BVP to a large but structurally identical linear system that carries the Fredholm alternative with it: a singular stiffness matrix flags a rigid-body mode or a buckling load exactly as the continuous determinant flags an eigenfunction. In quantum chemistry and photonics the same spectral problem sets molecular energy levels and the guided modes of an optical fibre, computed by shooting or relaxation with care taken over solvability at each trial eigenvalue. In control theory and orbital mechanics, two-point BVPs are the boundary conditions of Pontryagin's minimum principle — an optimal trajectory is fixed at both its initial and final states, and two-point solvers (multiple shooting, collocation) are the workhorses of spacecraft trajectory optimisation. The frontier keeps returning here too: adaptive meshes for singularly perturbed BVPs, spectral collocation for eigenvalue problems on unbounded domains, and the boundary conditions that select the radial Schrödinger and Sturm–Liouville solutions underlying every table of special functions.

The physical picture

Picture the two constants c1,c2c_1,c_2 in the general solution as two dials on a control box. An initial-value problem sets both dials by reading the height and the slope of the curve at one place — two numbers, two dials, always possible and always unique. A boundary-value problem is stingier: it demands the curve pass through a peg at each end and says nothing about slope. Usually two dials can still hit two pegs. But if the family of curves happens to pivot about a fixed point — if every candidate is forced through the same node — then some peg heights are unreachable (no solution) while one privileged configuration lets the whole family swing free (infinitely many). That pivoting is exactly a vanishing solvability determinant.

Figure
Left an initial-value problem fixes value and slope at one end and marches out to a single unique curve. Right a boundary-value problem pins a peg at each end and only one launch slope (solid) threads both pegs while the others (dashed) overshoot or fall short — the geometric heart of the shooting method
Two data at one point (unique) versus a peg at each end (maybe none, maybe many) Initial-value problem Boundary-value problem x = a u(a), u′(a) fixed → one curve x = a x = b target peg u(b) u(a) fixed

Once the determinant is nonzero the operator has a genuine inverse, and that inverse has a name: the Green's function. It is the shape the system takes when you poke it with a unit point source at one location ξ\xi, built to satisfy the boundary conditions automatically. Know the response to a single poke at every ξ\xi and linear superposition delivers the response to any distributed load ff — the integral ∫G(x,ξ)f(ξ) dξ\int G(x,\xi)f(\xi)\,\mathrm{d}\xi. For the prototypical Dirichlet problem −u′′=f-u''=f on the unit interval this response is a simple tent, and its peak height is a number you can read straight off the geometry.

Figure
The Green's function G(x, ξ) for −u″ = f on the unit interval with u(0) = u(1) = 0 is a tent peaked at the source point ξ. For a source at ξ = 0.3 the peak height is G = ξ(1 − ξ) = 0.21, and the response to any load is the superposition u(x) = ∫ G(x, ξ) f(ξ) dξ over 0 to 1
Green's function tent for −u″ = δ(x − ξ): peak G(ξ, ξ) = ξ(1 − ξ) = 0.21 at ξ = 0.3 0.1 0.2 G = 0.21 ξ = 0.3 0 1 position x on the interval G(x, ξ) slope +(1 − ξ) left, −ξ right: unit kink

The eigenvalue connection is the same fact seen sideways. The operator LL fails to be invertible exactly when zero behaves like an eigenvalue — when a nontrivial homogeneous solution manages to satisfy both boundary conditions at once. That is resonance wearing a mathematician's coat: drive an undamped oscillator at one of its natural frequencies and the steady-state amplitude is undefined unless the forcing happens to be orthogonal to the resonant mode. The boundary-value problem, the Green's function, and the eigenvalue problem are three views of a single question: is LL invertible on the space its boundary conditions carve out?

The core equations

The starting object is the most general regular linear second-order ODE on a finite interval. Two continuous coefficient functions and one forcing term define it; the interval's two endpoints are where the boundary data will live. Everything downstream is a statement about this equation together with conditions at aa and bb.

u′′+p(x) u′+q(x) u=f(x),x∈[a,b](1)u'' + p(x)\,u' + q(x)\,u = f(x),\qquad x\in[a,b] \qquad (1)

where: u(x)u(x) — the unknown function on the interval; p,qp,q — continuous coefficient functions; ff — the inhomogeneous forcing (source) term; [a,b][a,b] — the finite interval whose two endpoints carry the boundary data. Reading it: a driven linear system whose free response spans a two-dimensional solution space. The boundary data most common in physics are separated: one linear relation among uu and u′u' at each end. Tuning the coefficients selects Dirichlet, Neumann, or genuinely mixed (Robin) conditions, and setting the right-hand sides to zero gives the homogeneous conditions that define LL's domain.

α1u(a)+α2u′(a)=γa,β1u(b)+β2u′(b)=γb(2)\alpha_1 u(a) + \alpha_2 u'(a) = \gamma_a,\qquad \beta_1 u(b) + \beta_2 u'(b) = \gamma_b \qquad (2)

where: αi,βi\alpha_i,\beta_i — constants selecting Dirichlet (α2=0\alpha_2=0), Neumann (α1=0\alpha_1=0), or mixed conditions; γa,γb\gamma_a,\gamma_b — prescribed boundary values; the homogeneous conditions take γa=γb=0\gamma_a=\gamma_b=0. Reading it: each endpoint contributes exactly one scalar constraint on the two-parameter family. Now impose those two constraints on the general solution u=up+c1u1+c2u2u=u_p+c_1u_1+c_2u_2. The result is a 2×22\times2 linear system for (c1,c2)(c_1,c_2) whose coefficient matrix is the array of boundary functionals applied to the fundamental solutions. Its determinant is the single number that decides solvability.

u=up+c1u1+c2u2,∣Ba[u1]Ba[u2]Bb[u1]Bb[u2]∣≠0(3)u = u_p + c_1 u_1 + c_2 u_2,\qquad \begin{vmatrix} B_a[u_1] & B_a[u_2] \\ B_b[u_1] & B_b[u_2] \end{vmatrix} \neq 0 \qquad (3)

where: upu_p — any particular solution of the forced equation (1); u1,u2u_1,u_2 — a fundamental set of solutions of the homogeneous equation; Ba,BbB_a,B_b — the boundary functionals at aa and bb; c1,c2c_1,c_2 — the constants the boundary conditions fix. Reading it: nonzero determinant means the boundary map from (c1,c2)(c_1,c_2) to boundary data is invertible. Recast in operator language, the whole trichotomy collapses to one crisp equivalence. Writing LL for the differential operator with the homogeneous boundary conditions built into its domain, unique solvability for every ff is equivalent to the homogeneous problem having only the trivial solution.

Lu=f,(Lu=0⇒u≡0)  ⟺  ∃! u for every f(4)L u = f,\quad \big(Lu=0\Rightarrow u\equiv0\big) \;\Longleftrightarrow\; \exists!\,u\ \text{for every } f \qquad (4)

where: LL — the differential operator with boundary conditions folded into its domain; ∃!\exists! — there exists a unique solution. Reading it: the operator is invertible iff its kernel is trivial, exactly as for a square matrix. In the invertible case the inverse is an integral operator with kernel G(x,ξ)G(x,\xi). For a self-adjoint (Sturm–Liouville) operator GG has a compact closed form built from two homogeneous solutions, each adapted to one end, divided by their Wronskian and the leading coefficient.

G(x,ξ)=1p0(ξ) W(ξ)×{ua(x) ub(ξ),a≤x≤ξua(ξ) ub(x),ξ≤x≤b(5)G(x,\xi) = \frac{1}{p_0(\xi)\,W(\xi)}\times \begin{cases} u_a(x)\,u_b(\xi), & a\le x\le \xi \\[2pt] u_a(\xi)\,u_b(x), & \xi\le x\le b \end{cases} \qquad (5)

where: uau_a — homogeneous solution satisfying the left boundary condition; ubu_b — homogeneous solution satisfying the right boundary condition; W(ξ)=uaub′−ua′ubW(\xi)=u_a u_b' - u_a' u_b — their Wronskian; p0(x)p_0(x) — leading coefficient in self-adjoint form (p0u′)′+…(p_0u')'+\dots, equal to 11 for the plain u′′u'' form. Reading it: GG is symmetric, G(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x), the hallmark of a self-adjoint operator. With GG in hand the solution of the inhomogeneous problem is a single superposition integral: sum the responses to point sources of strength f(ξ)f(\xi) across the interval. This is the continuous analogue of multiplying a load vector by an inverse matrix.

u(x)=∫abG(x,ξ) f(ξ) dξ(6)u(x) = \int_a^b G(x,\xi)\, f(\xi)\, \mathrm{d}\xi \qquad (6)

where: G(x,ξ)G(x,\xi) — the response at xx to a unit point source at ξ\xi; f(ξ)f(\xi) — the distributed source. Reading it: linearity plus the point-source basis δ(x−ξ)\delta(x-\xi) gives every solution by integration. When the determinant vanishes, invertibility fails and a parameter enters. The homogeneous problem acquires nontrivial solutions only at special values λ\lambda — the eigenvalues — with the nontrivial solutions as eigenfunctions against a positive weight ww.

Lu=λ w(x) u,Ba[u]=Bb[u]=0(7)L u = \lambda\, w(x)\, u,\qquad B_a[u]=B_b[u]=0 \qquad (7)

where: λ\lambda — eigenvalue: the special parameter values admitting nontrivial uu; w(x)w(x) — positive weight function; uu — the eigenfunction. Reading it: the singular BVP is a spectral problem, the seed of Sturm–Liouville theory. At such a resonance the inhomogeneous problem is solvable only if the forcing is orthogonal to every homogeneous solution — the Fredholm condition, an L2L^2 inner-product statement.

⟨uhom, f⟩=∫abuhom(x) f(x) dx=0(8)\langle u_{\text{hom}},\, f\rangle = \int_a^b u_{\text{hom}}(x)\,f(x)\,\mathrm{d}x = 0 \qquad (8)

where: uhomu_{\text{hom}} — the nontrivial homogeneous solution (kernel element) of the self-adjoint operator; ⟨ , ⟩\langle\,,\,\rangle — the L2L^2 inner product on [a,b][a,b]. Reading it: forcing must have no overlap with the resonant mode, or no steady solution exists.

Derivation AWhy the solvability determinant decides everything

The goal of this derivation is to show, from nothing more than linear algebra, that the entire trichotomy of two-point boundary-value problems — unique solution, no solution, or infinitely many — is controlled by a single 2×22\times2 determinant, and to make explicit that this determinant vanishes exactly when the homogeneous problem admits a nontrivial solution. We start from the general solution, impose the two boundary conditions, read off the coefficient matrix, and apply Cramer's rule, so that the abstract statement of equation (4) becomes a concrete criterion you can compute from any fundamental pair.

Step 1. Take a fundamental pair u1,u2u_1,u_2 of the homogeneous equation, so the general solution of Lu=fLu=f is u=up+c1u1+c2u2u=u_p+c_1u_1+c_2u_2 with upu_p any particular solution. Apply the two boundary functionals: Ba[u]=Ba[up]+c1Ba[u1]+c2Ba[u2]B_a[u]=B_a[u_p]+c_1B_a[u_1]+c_2B_a[u_2] and similarly at bb. Why: the boundary conditions act linearly, so they turn the two unknown constants into two linear equations, exactly the structure a determinant governs.

Step 2. Collect the constants into the system M c=dM\,\mathbf{c}=\mathbf{d}, where M=(Ba[u1]Ba[u2]Bb[u1]Bb[u2])M=\begin{pmatrix}B_a[u_1]&B_a[u_2]\\B_b[u_1]&B_b[u_2]\end{pmatrix} and d\mathbf{d} carries the prescribed boundary values minus the particular-solution contributions. The matrix MM depends only on the operator and its boundary conditions, never on the forcing. Why: separating the data d\mathbf{d} from the operator matrix MM is what lets one matrix answer the solvability question for every possible forcing at once.

Step 3. By Cramer's rule the system Mc=dM\mathbf{c}=\mathbf{d} has a unique solution for every d\mathbf{d} if and only if det⁡M≠0\det M\neq0. In that case LL is invertible and the unique uu exists for any ff and any boundary data — the regular case. Why: this is the finite-dimensional shadow of operator invertibility; the differential operator inherits the algebra of its boundary map.

Step 4. If det⁡M=0\det M=0 the homogeneous system Mc=0M\mathbf{c}=\mathbf{0} has a nontrivial c\mathbf{c}, i.e. some combination c1u1+c2u2≠0c_1u_1+c_2u_2\neq0 satisfies both homogeneous boundary conditions: a nontrivial kernel element. Then Mc=dM\mathbf{c}=\mathbf{d} is solvable only for d\mathbf{d} in the range of MM (the Fredholm condition), and when solvable the solution is non-unique because any multiple of the kernel element may be added. Why: singular MM is precisely the eigenvalue situation, and the range condition on d\mathbf{d} is the discrete form of the orthogonality requirement ⟨uhom,f⟩=0\langle u_{\text{hom}},f\rangle=0.

Go deeper · Derivation B · 2 minConstructing the Green's function for the Dirichlet Laplacian on the unit interval
Derivation BConstructing the Green's function for the Dirichlet Laplacian on the unit interval

The goal here is to build, explicitly and from first principles, the Green's function of the prototypical operator L=−d2/dx2L=-\mathrm{d}^2/\mathrm{d}x^2 on [0,1][0,1] with u(0)=u(1)=0u(0)=u(1)=0, and then to verify that the resulting integral operator genuinely inverts LL. We solve the defining equation −Gxx=δ(x−ξ)-G_{xx}=\delta(x-\xi) piecewise away from the source, glue the pieces with the correct continuity and jump conditions, and confirm the answer both reproduces the tent of the figure and returns ff when the operator is applied. This is the concrete machine behind equation (6).

Step 1. Away from x=ξx=\xi the source is absent, so −Gxx=0-G_{xx}=0 and GG is piecewise linear. Choose the piece on the left to satisfy the left condition, ua(x)=xu_a(x)=x with ua(0)=0u_a(0)=0, and the piece on the right to satisfy the right condition, ub(x)=1−xu_b(x)=1-x with ub(1)=0u_b(1)=0. Write G=A xG=A\,x for x<ξx<\xi and G=B (1−x)G=B\,(1-x) for x>ξx>\xi. Why: each homogeneous piece is forced to obey the boundary condition on its own side, so that whatever we do at the source, the endpoint conditions are already met.

Step 2. Demand continuity of GG at the source, A ξ=B (1−ξ)A\,\xi=B\,(1-\xi). A Green's function may kink at ξ\xi but must not jump, because a finite jump would make GxxG_{xx} contain a derivative of a delta, stronger than the source allows. Why: matching the two linear pieces in value is the first of the two conditions that pin the constants A,BA,B.

Step 3. Integrate the defining equation across an infinitesimal window around ξ\xi: ∫ξ−ξ+(−Gxx) dx=1\int_{\xi^-}^{\xi^+}(-G_{xx})\,\mathrm{d}x=1 gives a unit downward jump in the slope, Gx(ξ+)−Gx(ξ−)=−1G_x(\xi^+)-G_x(\xi^-)=-1, that is −B−A=−1-B-A=-1, so A+B=1A+B=1. Why: the delta source deposits exactly one unit of slope discontinuity, and the sign follows from the minus in −Gxx-G_{xx}; this is the second condition.

Step 4. Solve the pair Aξ=B(1−ξ)A\xi=B(1-\xi) and A+B=1A+B=1 to get A=1−ξA=1-\xi and B=ξB=\xi, giving G(x,ξ)=x(1−ξ)G(x,\xi)=x(1-\xi) for x≤ξx\le\xi and ξ(1−x)\xi(1-x) for x≥ξx\ge\xi — the symmetric tent, G(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x). At ξ=0.3\xi=0.3 the peak is G=0.3×0.7=0.21G=0.3\times0.7=0.21, exactly the figure. Why: the symmetry is the fingerprint of a self-adjoint operator, and the closed form matches equation (5) with p0=−1p_0=-1 (the operator here is −u′′-u'', i.e. (p0u′)′(p_0u')' with p0=−1p_0=-1) and W=−1W=-1, so the prefactor 1/(p0W)=+11/(p_0W)=+1.

Step 5. Verify by substitution: u(x)=∫01G f dξ=(1−x) ⁣∫0xξf dξ+x ⁣∫x1(1−ξ)f dξu(x)=\int_0^1 G\,f\,\mathrm{d}\xi=(1-x)\!\int_0^x\xi f\,\mathrm{d}\xi+x\!\int_x^1(1-\xi)f\,\mathrm{d}\xi. Differentiating twice with the Leibniz rule, the boundary terms cancel and −u′′=f-u''=f; and u(0)=u(1)=0u(0)=u(1)=0 by inspection of the prefactors. Why: this closes the loop — the object built from continuity and a unit jump really is the inverse of LL, so equation (6) holds.

Go deeper · Derivation C · 2 minThe Fredholm alternative made concrete at a resonance
Derivation CThe Fredholm alternative made concrete at a resonance

The purpose of this derivation is to exhibit a single ODE that flips between no solution and infinitely many depending only on the forcing, and to show that the deciding quantity is the orthogonality integral of equation (8). We take u′′+u=fu''+u=f on [0,π][0,\pi] with u(0)=u(π)=0u(0)=u(\pi)=0, identify its nontrivial homogeneous solution, and use self-adjointness to extract a necessary condition on ff that separates the solvable forcings from the unsolvable ones. This is the analytic face of a singular determinant.

Step 1. Solve the homogeneous problem u′′+u=0u''+u=0 with the boundary conditions. The general solution is c1cos⁡x+c2sin⁡xc_1\cos x+c_2\sin x; u(0)=0u(0)=0 kills the cosine, and u(π)=c2sin⁡π=0u(\pi)=c_2\sin\pi=0 holds for every c2c_2. So uhom=sin⁡xu_{\text{hom}}=\sin x is a nontrivial kernel element and we sit exactly at the eigenvalue λ=1\lambda=1. Why: a nontrivial homogeneous solution is the signal that the solvability determinant vanishes, so the regular theory cannot apply and the alternative must.

Step 2. Take the inner product of the equation with the kernel: ∫0π(u′′+u)sin⁡x dx=∫0πfsin⁡x dx\int_0^\pi(u''+u)\sin x\,\mathrm{d}x=\int_0^\pi f\sin x\,\mathrm{d}x. Integrate the left side by parts twice; the boundary terms vanish because both uu and sin⁡x\sin x are zero at 00 and π\pi, and (sin⁡x)′′=−sin⁡x(\sin x)''=-\sin x, so the left side becomes ∫0πu(−sin⁡x+sin⁡x) dx=0\int_0^\pi u(-\sin x+\sin x)\,\mathrm{d}x=0. Why: self-adjointness moves the operator off uu and onto the kernel, where it annihilates it, collapsing the entire left side regardless of uu.

Step 3. What survives is the necessary condition ∫0πf(x)sin⁡x dx=0\int_0^\pi f(x)\sin x\,\mathrm{d}x=0: the forcing must be orthogonal to the resonant mode. If it is, a particular solution exists and the full family is up+csin⁡xu_p+c\sin x — infinitely many. If it is not, no solution exists at all. Why: this is equation (8) in the flesh, and it is symmetric with Step 4 of the determinant derivation — a zero determinant plus a range condition on the data.

Step 4. Test two forcings. For f=cos⁡xf=\cos x: ∫0πcos⁡xsin⁡x dx=12∫0πsin⁡2x dx=0\int_0^\pi\cos x\sin x\,\mathrm{d}x=\tfrac12\int_0^\pi\sin 2x\,\mathrm{d}x=0, so solutions exist, infinitely many. For f=sin⁡xf=\sin x: ∫0πsin⁡2x dx=π/2≠0\int_0^\pi\sin^2x\,\mathrm{d}x=\pi/2\neq0, so no solution exists. The identical ODE gives opposite verdicts purely on the overlap of ff with sin⁡x\sin x. Why: this is the whole content of the Fredholm alternative — solvability is not a property of the operator alone but of the operator paired with the direction of the forcing.

Limiting cases

The character of a linear BVP Lu=fLu=f with homogeneous boundary conditions falls into three mutually exclusive cases, decided entirely by the homogeneous problem Lu=0Lu=0. The table is the Fredholm alternative sorted by outcome.

CaseResultMeaning
Regular / invertibleLu=0⇒u≡0Lu=0\Rightarrow u\equiv0Only the trivial homogeneous solution. Then Lu=fLu=f has a unique solution for EVERY ff, given by the Green's function. The generic case, analogous to a nonsingular matrix.
Resonant, unsolvableLu=0Lu=0 has u≠0u\neq0,  ⟨u,f⟩≠0\ \langle u,f\rangle\neq0A nontrivial eigenfunction exists and the forcing overlaps it. The Fredholm alternative forbids any solution — the BVP is inconsistent.
Resonant, degenerateLu=0Lu=0 has u≠0u\neq0,  ⟨u,f⟩=0\ \langle u,f\rangle=0An eigenfunction exists but ff is orthogonal to it. Solutions exist but form an infinite family up+c uhomu_p+c\,u_{\text{hom}} parametrised by cc.
Fourth-order / higherfour (or more) endpoint conditionsThe same trichotomy with a larger boundary matrix; a clamped beam EI u′′′′=wEI\,u''''=w is regular, while axial load turns it into a buckling eigenvalue problem.

Worked examples

1 · Deflection of a uniformly loaded string (fully worked)

A string is stretched between x=0x=0 and x=1x=1 and carries a uniform transverse load, so its small displacement obeys −u′′=1-u''=1 with u(0)=u(1)=0u(0)=u(1)=0. Find u(x)u(x) using the Green's function, and locate and evaluate the maximum sag.

Step 1. The operator is L=−d2/dx2L=-\mathrm{d}^2/\mathrm{d}x^2 with Dirichlet conditions, whose Green's function we built above: G(x,ξ)=x(1−ξ)G(x,\xi)=x(1-\xi) for x≤ξx\le\xi and ξ(1−x)\xi(1-x) for x≥ξx\ge\xi. Since the homogeneous problem −u′′=0-u''=0 with u(0)=u(1)=0u(0)=u(1)=0 has only u≡0u\equiv0, the operator is invertible and a unique solution exists.

Step 2. Apply equation (6) with f=1f=1: u(x)=∫01G(x,ξ) dξ=(1−x) ⁣∫0xξ dξ+x ⁣∫x1(1−ξ) dξu(x)=\int_0^1 G(x,\xi)\,\mathrm{d}\xi=(1-x)\!\int_0^x\xi\,\mathrm{d}\xi+x\!\int_x^1(1-\xi)\,\mathrm{d}\xi. The two integrals are (1−x)x22(1-x)\tfrac{x^2}{2} and x(1−x)22x\tfrac{(1-x)^2}{2}, which sum to x(1−x)2[x+(1−x)]\tfrac{x(1-x)}{2}\big[x+(1-x)\big].

Step 3. The bracket collapses to 11, giving the clean result u(x)=12x(1−x)u(x)=\tfrac12 x(1-x). Check it directly: u′′=−1u''=-1, so −u′′=1=f-u''=1=f ✓, and u(0)=u(1)=0u(0)=u(1)=0 ✓.

Step 4. The maximum sits where u′=12(1−2x)=0u'=\tfrac12(1-2x)=0, i.e. x=1/2x=1/2, by symmetry. Its value is u(1/2)=12⋅12⋅12=0.125u(1/2)=\tfrac12\cdot\tfrac12\cdot\tfrac12=\mathbf{0.125}. The string sags into a parabola u=12x(1−x)u=\tfrac12x(1-x) with maximum deflection 1/8=0.1251/8=0.125 at the midpoint.

2 · A Fredholm verdict: when does u′′+u=fu''+u=f on [0,π][0,\pi] solve?

Decide the solvability of u′′+u=fu''+u=f with u(0)=u(π)=0u(0)=u(\pi)=0 for (a) f(x)=xf(x)=x and (b) f(x)=cos⁡xf(x)=\cos x, and count the solutions in each case.

Step 1. The homogeneous problem has the nontrivial solution uhom=sin⁡xu_{\text{hom}}=\sin x (we are at λ=1\lambda=1), so the regular theory does not apply and the deciding quantity is the overlap integral ∫0πf(x)sin⁡x dx\int_0^\pi f(x)\sin x\,\mathrm{d}x.

Step 2. For f=xf=x: integrate by parts, ∫0πxsin⁡x dx=[sin⁡x−xcos⁡x]0π=(0−πcos⁡π)−(0)=π≈3.14\int_0^\pi x\sin x\,\mathrm{d}x=\big[\sin x-x\cos x\big]_0^\pi=(0-\pi\cos\pi)-(0)= \pi\approx3.14. This is nonzero, so no solution exists — the constant-slope load is not orthogonal to the resonant mode.

Step 3. For f=cos⁡xf=\cos x: ∫0πcos⁡xsin⁡x dx=12∫0πsin⁡2x dx=14[1−cos⁡2π]=0\int_0^\pi\cos x\sin x\,\mathrm{d}x=\tfrac12\int_0^\pi\sin 2x\,\mathrm{d}x=\tfrac14\big[1-\cos2\pi\big]=0. The orthogonality holds, so solutions exist.

Step 4. Because sin⁡x\sin x lies in the kernel, whenever a particular solution exists the general solution is up+csin⁡xu_p+c\sin x for arbitrary cc. So f=xf=x gives no solution while f=cos⁡xf=\cos x gives infinitely many — the same ODE, opposite verdicts, decided purely by orthogonality to sin⁡x\sin x.

3 · The particle in a box as a BVP turned eigenvalue problem

An electron is confined to a one-dimensional box of width L=1 nmL=1\ \mathrm{nm} with ψ(0)=ψ(L)=0\psi(0)=\psi(L)=0. Find the ground-state energy from the boundary-value spectrum.

Step 1. The stationary Schrödinger equation −ℏ22mψ′′=Eψ-\tfrac{\hbar^2}{2m}\psi''=E\psi with the two Dirichlet conditions is the homogeneous BVP of equation (7). A nontrivial ψ\psi exists only when the solvability determinant vanishes, which happens at En=n2π2ℏ22mL2E_n=\dfrac{n^2\pi^2\hbar^2}{2mL^2} with ψn=2/L sin⁡(nπx/L)\psi_n=\sqrt{2/L}\,\sin(n\pi x/L), n=1,2,…n=1,2,\dots

Step 2. Insert n=1n=1, ℏ=1.055×10−34 J s\hbar=1.055\times10^{-34}\ \mathrm{J\,s}, m=9.11×10−31 kgm=9.11\times10^{-31}\ \mathrm{kg}, L=10−9 mL=10^{-9}\ \mathrm{m}. The numerator is π2ℏ2=9.870×(1.113×10−68)=1.098×10−67\pi^2\hbar^2=9.870\times(1.113\times10^{-68})=1.098\times10^{-67}; the denominator is 2mL2=1.822×10−482mL^2=1.822\times10^{-48}.

Step 3. Divide: E1=1.098×10−67/1.822×10−48=6.02×10−20 JE_1=1.098\times10^{-67}/1.822\times10^{-48}=6.02\times10^{-20}\ \mathrm{J}, and dividing by 1.602×10−19 J/eV1.602\times10^{-19}\ \mathrm{J/eV} gives E1=0.376 eVE_1=\mathbf{0.376\ eV}. The first excited level is E2=4E1=1.50 eVE_2=4E_1=1.50\ \mathrm{eV}. The discreteness of the box spectrum is nothing but the solvability determinant vanishing only at special energies — the bridge from BVPs to quantisation.

Physics of the portrait

The two-point boundary-value problem is where elementary ODE technique meets the spectral theory that runs modern physics, and the hinge is a single dichotomy first proved not for differential equations at all but for integral equations — by a Swedish actuary-turned-mathematician whose name the alternative now carries.

Origins · 1 minErik Ivar Fredholm and how this was discovered
EI
Erik Ivar Fredholm
1866–1927 · Swedish analyst whose alternative decides when a boundary-value problem is solvable

Erik Ivar Fredholm was a Stockholm mathematician who spent much of his career as an actuary for the state insurance board while holding a chair at Stockholm University, and who is remembered for a single, decisive contribution: the theory of the integral equations that now bear his name. In a short note of 1900 and a full paper in Acta Mathematica in 1903, Fredholm studied equations of the form φ(x)−λ∫K(x,ξ)φ(ξ) dξ=f(x)\varphi(x)-\lambda\int K(x,\xi)\varphi(\xi)\,\mathrm{d}\xi=f(x) and proved that they obey an exact analogue of the linear-algebra fact for Mc=dM\mathbf{c}=\mathbf{d}: either the homogeneous equation has only the trivial solution and the inhomogeneous one is uniquely solvable for every ff, or the homogeneous equation has finitely many independent solutions and the inhomogeneous one is solvable exactly when ff is orthogonal to the corresponding solutions of the transposed equation. This is the Fredholm alternative, and because a regular two-point boundary-value problem can be inverted into an integral equation whose kernel is precisely the Green's function, the alternative is the reason a BVP has a clean unique-solution case and a sharp resonant obstruction. Fredholm's work turned Green's century-old function into a rigorous inverse operator and handed David Hilbert the starting point for his 1904 theory of integral equations — the direct ancestor of Hilbert space and the spectral theorem. It is a rare case of an entire branch of functional analysis growing from one man's careful reading of a determinant expanded to infinitely many dimensions.

History
1828
— Green introduces the function that inverts a differential operator with boundary data
1837
— Sturm and Liouville launch the theory of boundary-value eigenvalue problems
1894
— Poincaré presses the method of successive approximations onto boundary-value problems for the Laplacian
1900
— Fredholm circulates his solvability alternative for integral equations
1903
— Fredholm's Acta Mathematica paper founds the theory of integral equations
1904
— Hilbert recasts the alternative as spectral theory, seeding Hilbert space

Going further

Texts. Stone & Goldbart, Mathematics for Physics, ch. 1–3 (calculus of variations, ODEs, Green functions) · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., ch. 7–8 (ODEs and Sturm–Liouville theory) · Hassani, Mathematical Physics, ch. 20–22 (Green's functions and ODEs) · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., ch. 15–17 · Byron & Fuller, Mathematics of Classical and Quantum Physics, ch. 6 (Green's functions) · Courant & Hilbert, Methods of Mathematical Physics, vol. I, ch. V–VI · Coddington & Levinson, Theory of Ordinary Differential Equations, ch. 7 (boundary-value problems). Key anchor results collected here for reference: the 2×22\times2 solvability determinant criterion follows from Cramer's rule; the Green's function for −u′′-u'' with Dirichlet conditions on [0,1][0,1] is G(x,ξ)=x<(1−x>)G(x,\xi)=x_<(1-x_>) with x<=min⁡(x,ξ)x_<=\min(x,\xi) and x>=max⁡(x,ξ)x_>=\max(x,\xi); the uniform-load deflection is u=12x(1−x)u=\tfrac12x(1-x) with maximum 1/8=0.1251/8=0.125; the Fredholm integrals evaluate to ∫0πxsin⁡x dx=π\int_0^\pi x\sin x\,\mathrm{d}x=\pi, ∫0πcos⁡xsin⁡x dx=0\int_0^\pi\cos x\sin x\,\mathrm{d}x=0, and ∫0πsin⁡2x dx=π/2\int_0^\pi\sin^2x\,\mathrm{d}x=\pi/2; and the ground-state particle-in-a-box energy is E1=π2ℏ2/2mL2=0.376 eVE_1=\pi^2\hbar^2/2mL^2=0.376\ \mathrm{eV} for L=1 nmL=1\ \mathrm{nm}.

Prerequisites. Linear Second-Order ODEs · The Wronskian and Linear Independence · Existence and Uniqueness Theorems for ODEs · Variation of Parameters. Leads to. Sturm–Liouville Theory · The Method of Frobenius · Ordinary and Singular Points.

Ask the tutor: ask me to walk through the solvability determinant, build a Green's function for your own boundary conditions, or show exactly when your forcing tips a resonant BVP from no solution to infinitely many.

What exactly is the difference between a boundary-value problem and an initial-value problem?

Both supply the two pieces of data a second-order ODE needs, but they place them differently. An initial-value problem gives the value and the slope at a single point and lets you integrate forward; the Picard–Lindelöf theorem guarantees exactly one solution. A boundary-value problem gives one condition at each of two separate points and says nothing about slope. That relocation is decisive: the two constants of the general solution now satisfy a 2×22\times2 system whose coefficient matrix can be singular, so the BVP may have a unique solution, no solution, or infinitely many. Existence and uniqueness become properties of the boundary conditions, not of the equation.

Can you state the Fredholm alternative in one sentence?

Either the homogeneous problem Lu=0Lu=0 (with the homogeneous boundary conditions) has only the trivial solution, in which case Lu=fLu=f has a unique solution for every ff; or Lu=0Lu=0 has nontrivial solutions uhomu_{\text{hom}}, in which case Lu=fLu=f is solvable only when ff is orthogonal to every such uhomu_{\text{hom}}, and then the solution is not unique. The first branch is the regular, invertible case that owns a Green's function; the second is the resonant case, and the orthogonality integral ⟨uhom,f⟩=0\langle u_{\text{hom}},f\rangle=0 is what separates "no solution" from "infinitely many."

Why does the Green's function have a kink but no jump at the source point?

Because the source is a delta function, not the derivative of one. Integrating LxG=δ(x−ξ)L_xG=\delta(x-\xi) once across the source produces a finite jump in the first derivative — a kink — of size 1/p0(ξ)1/p_0(\xi) (equal to 11 for the plain −u′′-u'' operator). Integrating a second time would smear that jump into a continuous function, so GG itself stays continuous. If GG jumped, then GxG_x would contain a delta and GxxG_{xx} a derivative of a delta, a source more singular than the one we posed. So continuity plus a unit slope-jump are exactly the two matching conditions, and together with the two boundary conditions they determine GG uniquely.

How is the shooting method related to all of this?

Shooting turns a BVP back into a family of IVPs: fix the left boundary condition, guess the missing left-end slope, integrate forward, and see how far the right-end value misses its target. Because the ODE is linear the miss is an affine function of the guessed slope, so one or two shots plus interpolation lands the target — unless the coefficient of the slope in that affine relation is zero, which is exactly the vanishing of the solvability determinant. At that point every guess misses by the same amount (no solution) or every guess lands (infinitely many). Shooting is therefore not a way around the Fredholm alternative; it is the alternative computed numerically.

Why do boundary-value problems produce discrete spectra while initial-value problems do not?

An eigenvalue problem is a homogeneous BVP with a free parameter: Lu=λwuLu=\lambda w u with homogeneous boundary conditions. For most λ\lambda the only solution satisfying both endpoints is u≡0u\equiv0; a nontrivial eigenfunction squeezes through only at the special λ\lambda where the solvability determinant vanishes. Those special values are typically isolated, so the spectrum is discrete. An initial-value problem has no such obstruction — you can march a solution from any starting data for any λ\lambda — which is why quantisation is a boundary-value phenomenon. The particle in a box is the cleanest example: only En=n2π2ℏ2/2mL2E_n=n^2\pi^2\hbar^2/2mL^2 let sin⁡(2mE x/ℏ)\sin(\sqrt{2mE}\,x/\hbar) vanish at both walls.

Does self-adjointness matter, or is it just tidiness?

It matters in two concrete ways. First, self-adjointness makes the Green's function symmetric, G(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x), which halves the work of constructing it and encodes reciprocity — the response at xx to a source at ξ\xi equals the response at ξ\xi to a source at xx. Second, it makes the Fredholm orthogonality condition clean: the forcing must be orthogonal to the same kernel functions that solve the homogeneous problem, rather than to solutions of a separate adjoint problem. For non-self-adjoint operators the alternative still holds, but you must test ff against the adjoint kernel. Most physical BVPs are cast in Sturm–Liouville (self-adjoint) form precisely to enjoy these simplifications and the real, orthogonal eigenfunctions that come with them.

Before this

Where this leads