The Gronwall lemma is a well known and very useful statement which is used in many situations, in particular in the theory of differential equations. I have seen it so many times and even the proof is very easy to understand. But at the end of the day it is seems to me a very technical 'thing', I never have been able to develop some intuition for it.
Neither the statement seems very intuitive nor the proof of it, so that it becomes impossible for me to remember it after some time.
Can anyone 'explain' (whatever this means) to me the intuition behind the statement or does anyone has some picture in mind which helps to grasp the idea of Gronwall's lemma? I have in mind the integral form of this lemma.
My own (not always entirely successful...) attempt to remember the lemma and its proof is the following:
(This function $y$ is, so to speak, pushing its rate of growth to the maximum, within the bounds imposed by the inequality. Any other function $u$, that doesn't use all the freedom that it has for growing, will end up smaller than $y$.)
So let's first look at the case with equality. For example (to take the specific variant of the lemma that you mentioned), suppose $y(t)$ satisfies the integral equation $$ y(t) = a(t) + \int_0^t b(s) \, y(s) \, ds . \tag{$*$} $$ We can solve this by rewriting it as an ODE (with initial condition) for the integral $I(t)=\int_0^t b(s) \, y(s) \, ds$ that appears on the right-hand side: $$ I'(t) = b(t) \, y(t) = [\text{according to ($*$)}] = b(t) \, \bigl( a(t) + I(t) \bigr) ,\qquad I(0)=\int_0^0 b(s) \, y(s) \, ds=0 . $$ In other words: $$I'(t) - b(t) \, I(t) = a(t) \, b(t) ,\qquad I(0)=0 . $$ Multiply by the integrating factor $e^{-B(t)}$, where $B(t)=\int_0^t b(s) \, ds$ is an antiderivative of $b$. This gives $$ \frac{d}{dt}\Bigl( I(t) \, e^{-B(t)} \Bigr) = a(t) \, b(t) \, e^{-B(t)} ,\qquad I(0)=0 . $$ Integrate this from $0$ to $t$, to get $$ I(t) \, e^{-B(t)} - \underbrace{I(0)}_{=0} \, e^{-B(0)} = \int_0^t a(s) \, b(s) \, e^{-B(s)} \, ds , $$ that is, $$ I(t) = \int_0^t a(s) \, b(s) \, e^{B(t)-B(s)} \, ds . $$ Now we have found the solution $y(t) = a(t) + I(t)$ to the integral equation ($*$): $$ y(t) = a(t) + \int_0^t a(s) \, b(s) \, e^{B(t)-B(s)} \, ds . \tag{${*}{*}$} $$
Next, the inequality. Suppose $$ u(t) \le a(t) + \int_0^t b(s) \, u(s) \, ds . \tag{${*}{*}{*}$} $$ Let $J(t) = \int_0^t b(s) \, u(s) \, ds$ be the integral appearing on the right-hand side. It satisfies $J'(t) = b(t) \, u(t)$. By assumption we have $u \le a+J$, so provided that the additional condition $b\ge 0$ is satisfied we get $bu \le b(a+J)$, so that $$ J'(t) \le b(t) \, \bigl( a(t) + J(t) \bigr) . $$ Now (assuming also $t \ge 0$) we can go through exactly the same steps as above, but with $\le$ instead of $=$, and then we of course end up with the same result, except that we get $\le$ instead of $=\,$: $$ u(t) \le a(t) + \int_0^t a(s) \, b(s) \, e^{B(t)-B(s)} \, ds . \tag{${*}{*}{*}{*}$} $$ In other words, $u(t) \le y(t)$ for $t \ge 0$, which is what we wanted to prove.