Let $u, v \in L^2 (\mathbb R)$ such that $$ \int_{\mathbb R} u \varphi'' = \int_{\mathbb R} v \varphi \quad \forall \varphi \in C^\infty_c (\mathbb R). $$
I think that it is not necessarily true that $u \in H^2 (\mathbb R)$.
Could you provide an example of such $u$ with $u \notin H^2 (\mathbb R)$?
Thank you so much for your elaboration!