Suppose that $g''(x)$ is continuous everywhere and that
$$\int^{2\pi}_{0}g(x)\sin(x)dx +\int^{2\pi}_{0}g''(x)\sin(x)dx = 2$$
Given that $g(2\pi) = 1$, prove that $g(0)=3$
I tried to integrate by parts, the first integral.
Let $u = g(x)$
$du = g'(x) dx$
Let $dv=\sin(x)dx$
$v=-\cos(x)$
$$=uv - \int^{2\pi}_{0}vdu$$ $$=-g(x)\cos(x) + \int^{2\pi}_{0}g'(x)\cos(x)dx$$
Now I can apply parts again.
Let $u = g'(x)$
$du = g''(x) dx$
Let $dv=\cos(x)dx$
$v=\sin(x)$
$$=uv - \int^{2\pi}_{0}vdu$$ $$=g'(x)\sin(x) -\int^{2\pi}_{0}g''(x)\sin(x)dx$$
Adding these two together to get the first integral, I get:
$$-g(x)\cos(x) + (g'(x)\sin(x) -\int^{2\pi}_{0}g''(x)\sin(x)dx)$$
$$-g(x)\cos(x) + g'(x)\sin(x) -\int^{2\pi}_{0}g''(x)\sin(x)dx$$
Adding to the second integral, I get:
$$-g(x)\cos(x) + g'(x)\sin(x) -\int^{2\pi}_{0}g''(x)\sin(x)dx + \int^{2\pi}_{0}g''(x)\sin(x)dx$$
$$-g(x)\cos(x) + g'(x)\sin(x) = 2$$
After this I don't know how to proceed. Any suggestions?