Calculus Examples

Write as a Function of f f''(x)=cos(x) , f'(pi)=2 , f(pi)=-1
I am unable to solve this problem.