Prove that there exists a positive constant $C$ such that $$\int \limits_{0}^{\infty} e^{-y}[u(y) - \langle u \rangle]^2 \mathrm{d}y \le C \int \limits_{0}^{\infty} e^{-y}[u'(y)]^2 \mathrm{d}y$$ for all $u \in C^{\infty}_c (\mathbb{R})$, where $$\langle u \rangle = \int \limits_{0}^{\infty} e^{-y}u(y) \mathrm{d}y$$
Attempt: Comparing the two sides, and seeing the limits of integration are the same, my goal is to show $$u(y) - \langle u \rangle \le Cu'(y)$$
I figured I should write $u(y)$ as an integral and follow the equations, but I got stuck with something that doesn't appear to make sense.
$$u(y) = u(0) + \int \limits_{0}^{\infty} u'(y) \mathrm{d}y$$
Then, $$u(y) - \langle u \rangle = u(0) + \int \limits_{0}^{\infty} u'(y) \mathrm{d}y - \int \limits_{0}^{\infty} e^{-y} u(y) \mathrm{d}y = u(0) + \int \limits_{0}^{\infty} u'(y)-e^{-y}u(y) \mathrm{d}y$$
Using the FTC we have that \begin{align*} u(y) - u(0) = \int \limits_{0}^{y} u'(s) \mathrm{d}s \implies & \lim \limits_{y \to \infty} u(y) = u(0) + \lim \limits_{y \to \infty} \int \limits_{0}^{y} u'(s) \mathrm{d}s \\ \implies & 0 = u(0) + \int \limits_{0}^{\infty} u'(s) \mathrm{d}s \\ \implies & u(0) = - \int \limits_{0}^{\infty} u'(s) \mathrm{d}s \end{align*} since $u \in C^{\infty}_{c}(\mathbb{R})$ means $u$ is compactly supported and so vanishes at infinity.
Substituting back in, we would then have that \begin{align*} u(y) - \langle u \rangle &= \int \limits_{0}^{\infty} -u'(y) + u'(y) - e^{-y} u(y) \mathrm{d}y \\ &= - \int \limits_{0}^{\infty} e^{-y} u(y) \mathrm{d}y = - \langle u \rangle \end{align*}
But this doesn't seem right, since it would imply that $u(y) = 0$.
Does anyone have any other approaches to this problem? Did I make a mistake in any of my assumptions?
Thanks in advance.