If $f(\pi) = 2$ and $\displaystyle \int^{\pi}_{0}\bigg[f(x)+f''(x)\bigg]\sin(x)dx=5.$
Then value of $f(0).$
Given that function $f(x)$ is continuous in $[0,\pi]$
Try: $$\int \bigg[f(x)+f''(x)\bigg]\sin xdx$$
$$ = \int f(x)\sin xdx+\sin xf'(x)+\int \cos xf'(x)dx$$
$$ = \int f(x)\sin xdx+\sin xf'(x)+\cos xf(x)-\int \sin x f(x)dx$$
So $$\int^{\pi}_{0}\bigg[f(x)+f''(x)\bigg]\sin(x)dx = \sin xf'(x)+\cos x f(x) = 5.$$
So $$\sin xf'(x)+\cos xf(x) = 5$$
Could some help me how i solve above differential equation. Thanks
Integrate by part twice. $\int_0^{\pi} f''(x)\sin\, x \, dx= -\int_0^{\pi} f'(x)\cos\, x \, dx=f(0) -f(\pi)(-1)-\int_0^{\pi} f(x)\sin\, x \, dx$ so we get $5=f(0) +f(\pi)$. Hence $f(0)=3$.