Use the Fundamental Theorem of Calculus: integrate f"(x) twice and don't forget the integration constants!