Statement

Let u0u\ge0 be continuous on [a,b][a,b], let k0k\ge0 be there, and let A0A\ge0. If

u(t)A+atk(s)u(s)ds,u(t)\le A+\int_a^t k(s)u(s)\,ds,

then Gronwall's inequality gives

u(t)Aexp(atk(s)ds).u(t)\le A\exp\left(\int_a^t k(s)\,ds\right).
Proof

For A>0A>0, let v(t)=A+atkuv(t)=A+\int_a^tku. Then vkvv'\le kv almost everywhere. The derivative of v(t)eatkv(t)e^{-\int_a^tk} is nonpositive, so v(t)Aeatkv(t)\le Ae^{\int_a^tk}. If A=0A=0, apply the same argument with any positive AA and let it decrease to zero.

Source term

If an absolutely continuous uu satisfies uku+gu'\le ku+g almost everywhere, with integrable k,gk,g, an integrating factor gives

u(t)u(a)eatk+atestkg(s)ds.u(t)\le u(a)e^{\int_a^t k}+\int_a^t e^{\int_s^t k}g(s)\,ds.

This version does not require k0k\ge0. The coefficient must be integrable on the interval where the estimate is used.