Daniel B. answered 10/29/20
A retired computer professional to teach math, physics
F''(x) = cos x // given
F'(x) = sin x + C1 // by integration
F(x) = -cos x + C1x + C2 // by integration
F'(0) = 9 // given
sin 0 + C1 = 9 // after evaluating the previously calculated F'(0)
C1 = 9 // solving for C1
F(π) = 8 // given
-cosπ + 9π + C2 = 8 // after evaluating the previously calculated F(π)
C2 = 7 - 9π // solving for C2
F(x) = -cosx + 9x + 7 - 9π // final result