Existence and Uniqueness
Before trusting a formula or a numerical solver, ask two questions: does the initial value problem have a solution, and is it the only one? For most equations in practice the answer is yes to both, but the exceptions are instructive, and the theorem that settles them also explains why solution curves never cross.
Two warning examples
Non-uniqueness. , . The zero function is a solution. So is for (its derivative ). In fact, for any , the function that stays 0 until and then follows is a solution. Infinitely many solutions start from the same point.
Blow-up. , . Separating gives , which goes to infinity as . The right-hand side is perfectly smooth, yet the solution exists only on . Existence is local.
from scipy.integrate import solve_ivp
sol = solve_ivp(lambda x, y: y**2, (0, 2), [1.0], rtol=1e-8, atol=1e-10)
print("status:", sol.status, "-", sol.message)
print(f"solver stopped at x = {sol.t[-1]:.6f} with y = {sol.y[0][-1]:.3e}")status: -1 - Required step size is less than spacing between numbers.
solver stopped at x = 1.000000 with y = 3.014e+13
The solver cannot pass the singularity at : it shrinks its step until it gives up.
The Picard-Lindelöf theorem
Theorem. Suppose and are continuous on a rectangle around . Then the problem , has exactly one solution on some interval .
- Continuity of alone already gives existence (Peano's theorem).
- The condition on (more generally, a Lipschitz condition ) gives uniqueness.
- The interval may be small. The theorem says nothing about how long the solution lives.
In the first example, is infinite at , which is exactly where uniqueness fails.
Why solution curves never cross
If two solutions of with a nice met at a point, both would solve the same initial value problem from that point, contradicting uniqueness. So distinct solutions never touch. This is what makes phase lines and phase portraits readable.
Picard iteration: the proof is an algorithm
The proof rewrites the problem as an integral equation and iterates it:
For , each iteration adds the next Taylor term of :
import sympy as sp
x, s = sp.symbols("x s")
yk = sp.Integer(1)
for k in range(1, 5):
yk = 1 + sp.integrate(yk.subs(x, s), (s, 0, x))
print(f"y_{k} =", yk)y_1 = x + 1
y_2 = x**2/2 + x + 1
y_3 = x**3/6 + x**2/2 + x + 1
y_4 = x**4/24 + x**3/6 + x**2/2 + x + 1
The Lipschitz condition makes this iteration a contraction, so it converges to a unique fixed point: the solution.
In software
- Solvers report failure (
status = -1in SciPy) at singularities; a "step size too small" message often means the true solution blows up there, not that the solver is broken. - Physics simulations rely on uniqueness for determinism: the same initial state and inputs replay the same game. Networked games with lockstep simulation depend on it (and on identical floating-point behaviour).
Exercises
Exercise 1: Does the theorem apply?
For which initial points does the theorem guarantee a unique solution of ?
Answer
All points with .
Solution
and are continuous wherever . At the theorem says nothing: in fact every line passes through , so uniqueness fails there.
Exercise 2: Blow-up time
Solve , . When does the solution blow up?
Answer
At .
Solution
with , so , which is infinite at . Larger starting values blow up sooner.
Exercise 3: Picard for (code)
Compute three Picard iterates for , and compare with the exact solution .
Answer
, the start of the Taylor series of .
Solution
import sympy as sp
x, s = sp.symbols("x s")
yk = sp.Integer(1)
for k in range(3):
yk = 1 + sp.integrate(2 * s * yk.subs(x, s), (s, 0, x))
print(yk, "|", sp.series(sp.exp(x**2), x, 0, 8))x**6/6 + x**4/2 + x**2 + 1 | 1 + x**2 + x**4/2 + x**6/6 + O(x**8)
Test yourself
Which condition gives uniqueness in the Picard-Lindelöf theorem?
- is bounded
- is continuous (a Lipschitz condition in )
- is a polynomial
- is positive
The solution of , exists on…
- all real
- only at
Why can two different solutions of (with , continuous) not cross?
- They have different slopes
- At the crossing point both would solve the same IVP, contradicting uniqueness
- Solutions are always straight lines
- They can cross