Let a differentiable function $f(x)$ satisfy $$f(x)\cos{x} + 2\int_0^xf(t)\sin{t}dt = x+1$$

Find $f(x)$.