A14 · Lesson 35 · Gronwall's inequality
How fast solutions can separate, and why that proves uniqueness and bounds numerical error
Picard–Lindelöf (lesson 34) says a solution exists and is unique. Engineers also need to know how much the solution changes when the starting value is a little off, when the model has a small error, or when a numerical method commits a small error at every step. Gronwall's inequality answers all three with one estimate: errors can grow no faster than , where L is the Lipschitz constant of the right-hand side. For stable systems a sharper version shows errors shrinking instead.
- The curves start a distance d apart and both obey a linear ODE . Their gap is exactly .
- With k > 0 the gap grows exponentially, and Gronwall's bound with L = k is sharp. With k < 0 the gap shrinks.
- The readout gives the time for the gap to grow a thousandfold, , when k > 0: in chaotic systems this "predictability horizon" is why forecasts fail beyond a few multiples of .
Predict
Two solutions of start 0.01 apart. What's the most they can differ at t = 3?
At most . The right-hand side has Lipschitz constant 1 in y (since ), so by Gronwall the gap grows at most like . The actual gap is usually much smaller; the bound is the worst case over all solutions.
Name it
The inequality
If u is continuous and nonnegative with for constants a, b ≥ 0, then . In differential form: implies , since .
Continuous dependence and uniqueness
If , two solutions satisfy
With equal starts the gap stays 0: that's uniqueness. With different starts, the solution depends continuously on its initial value, though the constant can be enormous on long intervals.
Model errors
If z instead solves with , then
Numerical error
Euler's method commits a local error of about per step, which acts like a model error . So its global error over [0, T] is at most : first order in h, with a constant set by Gronwall.
Stable systems
If instead with μ > 0 (a contracting, one-sided condition), gaps shrink: , and bounded model errors give bounded deviations, at most . That's why stable circuits forgive small errors.
Worked example
Bound the gap at t = 3 between two solutions of that start 0.01 apart.
Show the solution
- Lipschitz constant. so L = 1.
- Apply Gronwall.
- How sharp it is. The bound holds for every pair of solutions and every t, but it can be pessimistic: where along the solutions, the gap actually shrinks. Gronwall uses only the worst case of the Lipschitz constant, which is what makes it universal.
Answer the gap at t = 3 is at most 0.201.
Worked example
Bound the global error of Euler's method with h = 0.01 on over [0, 1], given there.
Show the solution
- The constants. L = 1 and M = 3.
- The plain bound.
- Why it's pessimistic. The actual error is far smaller, because the system contracts (the −y term pulls solutions together), and the plain Gronwall bound can't see that.
- The one-sided bound. With the one-sided version (μ = 1), each local error is damped instead of amplified, and the bound becomes
Answer the plain Gronwall bound is 0.026, and the one-sided version tightens it to 0.0095.
Worked example
A circuit obeys , and the input has an unmodeled error of at most 0.1. How far can the response stray from the model's?
Show the solution
- The deviation's equation. The system contracts with μ = 2. Starting from the same state, the deviation e satisfies
- Bound it. which is 0.0499 at t = 3 and never exceeds 0.05.
- Compare plain Gronwall. With L = 2 it would allow , about 20 at t = 3.
- Which to use. For stable systems, use the contracting version: it gives bounds that stay bounded.
Answer the response never strays more than 0.05 from the model's (0.0499 at t = 3).
Check
Two solutions of an ODE with Lipschitz constant 0.5 start 0.001 apart. What's the largest possible gap at t = 5?
Check
A model's right-hand side is off by at most 0.01, and its Lipschitz constant is 1. Starting from the exact state, how far can its solution drift by t = 2?
Check
Bound Euler's global error with h = 0.01 over [0, 3], with Lipschitz constant 2 and 2.
Check
A system contracts with rate μ = 1. Two solutions start 0.1 apart. What bound holds on their gap at t = 3?
Check
An error grows like with L = 1. How long until it's 1000 times larger?
Check
A stable circuit obeys , and u is off by at most 0.1.
(a)
Starting from the right state, how far can v stray by t = 5?
(b)
What's the most it can ever stray?
Check
What does Gronwall's inequality give when two solutions of a Lipschitz ODE start at the same point?
Check
Solve the comparison equations behind Gronwall's inequality.
Step 1
If with , what is w(t)?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
If with w(0) = 0, what is w(t)?
Check
Solve , y(0) = 0, to t = 1 by Euler's method with h = 0.01. Set err to its error against the exact , and bound to Gronwall's with L = 1, M = 3.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does a Lipschitz condition make solutions separate at most exponentially?
The gap between two solutions changes at a rate equal to the difference of the right-hand sides, and a Lipschitz constant L says that difference is at most L times the gap. So the gap's growth rate is at most proportional to its current size, which is exactly the condition for exponential growth: the gap can at most double in each time interval of length . Any growth beyond that would need the right-hand side to change faster than L allows. Gronwall's inequality turns this rate comparison into an inequality between the gap and times its starting value.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.