TExcelTAD
Home › Differential Equations › Existence and Uniqueness

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. y′=2∣y∣y' = 2\sqrt{\lvert y\rvert}, y(0)=0y(0) = 0. The zero function is a solution. So is y=x2y = x^2 for x≥0x \ge 0 (its derivative 2x=2x22x = 2\sqrt{x^2}). In fact, for any a≥0a \ge 0, the function that stays 0 until x=ax = a and then follows (x−a)2(x - a)^2 is a solution. Infinitely many solutions start from the same point.

Blow-up. y′=y2y' = y^2, y(0)=1y(0) = 1. Separating gives y=11−xy = \frac{1}{1 - x}, which goes to infinity as x→1x \to 1. The right-hand side is perfectly smooth, yet the solution exists only on (−∞,1)(-\infty, 1). Existence is local.

python · try it yourself
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 x=1x = 1: it shrinks its step until it gives up.

The Picard-Lindelöf theorem

Theorem. Suppose f(x,y)f(x, y) and ∂f∂y\frac{\partial f}{\partial y} are continuous on a rectangle around (x0,y0)(x_0, y_0). Then the problem y′=f(x,y)y' = f(x, y), y(x0)=y0y(x_0) = y_0 has exactly one solution on some interval (x0−δ,x0+δ)(x_0 - \delta, x_0 + \delta).

  • Continuity of ff alone already gives existence (Peano's theorem).
  • The condition on ∂f/∂y\partial f/\partial y (more generally, a Lipschitz condition ∣f(x,y1)−f(x,y2)∣≤L∣y1−y2∣\lvert f(x, y_1) - f(x, y_2)\rvert \le L\lvert y_1 - y_2\rvert) gives uniqueness.
  • The interval may be small. The theorem says nothing about how long the solution lives.

In the first example, ∂∂y2∣y∣\frac{\partial}{\partial y}2\sqrt{\lvert y\rvert} is infinite at y=0y = 0, which is exactly where uniqueness fails.

Why solution curves never cross

If two solutions of y′=f(x,y)y' = f(x, y) with a nice ff 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 y(x)=y0+∫x0xf(s,y(s)) dsy(x) = y_0 + \int_{x_0}^x f(s, y(s))\,ds and iterates it:

yk+1(x)=y0+∫x0xf(s,yk(s)) ds,y0(x)≡y0.y_{k+1}(x) = y_0 + \int_{x_0}^{x} f(s, y_k(s))\,ds, \qquad y_0(x) \equiv y_0.

For y′=yy' = y, y(0)=1y(0) = 1 each iteration adds the next Taylor term of exe^x:

python · try it yourself
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 = -1 in 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 (x0,y0)(x_0, y_0) does the theorem guarantee a unique solution of y′=yxy' = \frac{y}{x}?

Answer

All points with x0≠0x_0 \ne 0.

Solution

f=y/xf = y/x and fy=1/xf_y = 1/x are continuous wherever x≠0x \ne 0. At x0=0x_0 = 0 the theorem says nothing: in fact every line y=Cxy = Cx passes through (0,0)(0, 0), so uniqueness fails there.

Exercise 2: Blow-up time

Solve y′=y2y' = y^2, y(0)=y0>0y(0) = y_0 > 0. When does the solution blow up?

Answer

At x=1/y0x = 1/y_0.

Solution

−1y=x+C-\frac{1}{y} = x + C with C=−1y0C = -\frac{1}{y_0}, so y=11/y0−xy = \frac{1}{1/y_0 - x}, which is infinite at x=1/y0x = 1/y_0. Larger starting values blow up sooner.

Exercise 3: Picard for y′=2xyy' = 2xy (code)

Compute three Picard iterates for y′=2xyy' = 2xy, y(0)=1y(0) = 1 and compare with the exact solution ex2e^{x^2}.

Answer

y3=1+x2+x42+x66y_3 = 1 + x^2 + \frac{x^4}{2} + \frac{x^6}{6}, the start of the Taylor series of ex2e^{x^2}.

Solution
python · try it yourself
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?

  1. ff is bounded
  2. ∂f/∂y\partial f/\partial y is continuous (a Lipschitz condition in yy)
  3. ff is a polynomial
  4. ff is positive

The solution of y′=y2y' = y^2, y(0)=1y(0) = 1 exists on…

  1. all real xx
  2. (−∞,1)(-\infty, 1)
  3. (0,∞)(0, \infty)
  4. only at x=0x = 0

Why can two different solutions of y′=f(x,y)y' = f(x, y) (with ff, fyf_y continuous) not cross?

  1. They have different slopes
  2. At the crossing point both would solve the same IVP, contradicting uniqueness
  3. Solutions are always straight lines
  4. They can cross