\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
Find the function \(f(x)\) given that \(f'(x)=\cos(x)\) and \(f(\pi)=1\).
\(f(x)=\)