We prove the following version generalization of the Gronwall inequality:
Let X be a Banach space and U⊂X an open convex set in X. Let f,g:[a,b]×U→X be continuous functions and let y,z:[a,b]→U satisfy the initial value problems \begin{align*} y'(t)&=f(t,y(t)),\quad y(a)=y_0,\\ z'(t)&=g(t,z(t)),\quad z(a)=z_0. \end{align*} Also assume there is a constant C≥0 so that ∥g(t,x2)−g(t,x1)∥≤C∥x2−x1∥ and a continuous function ϕ:[a,b]→[0,∞) so that ∥f(t,y(t))−g(t,y(t))∥≤ϕ(t). Then for t∈[a,b] $$ \|y(t)-z(t)\|
\le e^{C|t-a|}\|y_0-z_0\|+e^{C|t-a|}\int_a^te^{-C|s-a|}\phi(s)\,ds.
$$