Statement

Let u≥0u\ge0 be continuous on [a,b][a,b], let k≥0k\ge0 be there, and let A≥0A\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 v′≤kvv'\le kv almost everywhere. The derivative of v(t)e−∫atkv(t)e^{-\int_a^tk} is nonpositive, so v(t)≤Ae∫atkv(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 u′≤ku+gu'\le ku+g almost everywhere, with integrable k,gk,g, an integrating factor gives

u(t)≤u(a)e∫atk+∫ate∫stkg(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 k≥0k\ge0. The coefficient must be integrable on the interval where the estimate is used.