If $f(x)$ is a differentiable function such that $f(x)+f'(x)\leq 1$ for all $x$ and $f(0)=0$ .then largest possible value of $f(1)$ is
solution i tried $e^xf(x)+f'(x)e^x\leq e^x$ $\displaystyle \frac{d}{dx}(f(x)e^x)\leq e^x$
integrating both side $e^xf(x)\leq e^x+c$ $f(x)\leq 1+ce^{-x}$ how to find largest $f(1)$
Instead of integrating indefinitely, take a definite integral of both sides.
We have
$$ e^xf(x) + f'(x)e^x = \frac{d}{dx}(f(x)e^x) \leq e^x$$
Integrating both sides from $0$ to $1$ gives
$$ f(1)e^1 - f(0)e^0 \leq e^1 - e^0$$ $$ f(1)e - f(0) = f(1)e \leq e - 1$$ $$f(1) \leq \frac{e-1}e$$