In one of my homework problems, I have an IVP $$ y'=e^{t-y}, \hspace{5mm}where\hspace{3mm}0≤t≤1,\hspace{3mm}y(0)=1 $$ And I need to show that $$ f(t,y)=e^{t-y} $$
satisfies a Lipshitz condition.
To do this, I used the method shown in class. Same as the one used here: Prove Lipschitz condition
$$ |\dfrac{∂f(t,y)}{∂y}|=e^{t-y} $$
And
$$ \lim_{y \to -∞}e^{t-y}=∞ $$
So since the function isn't bounded from above, I concluded that the function doesn't satisfy a Lipschitz condition.
But I found a solution online that got a contradictory result. That solution substituted the unique solution to the IVP in for y:
$$ y(t)=ln(e^t+e-1) $$ $$ ⇒e^{t-y}=e^{t-ln(e^t+e-1)}=|\dfrac{e^t}{e^t+e-1}| $$ $$ max|\dfrac{e^t}{e^t+e-t}| = |\dfrac{e^1}{e^1+e-1}|≈0.6127 $$ $$ ⇒ L ≈0.6127 $$
So the second method shows that the Lipschitz condition is met. I'm pretty sure that the first method is correct, but I'm not sure. Could I get some clarification?
Thanks