Answer: f(x) = -cos(x) + 4.584
Step-by-step explanation:
we know that f'(x) = sin(x)
if we integrate that, we get:
f(x) = -cos(x) + C
Where C is a constant of integration.
And we also want that:
f(2) = 5
with that relationship we can find the value of C.
f(2) = 5 = -cos(2) + C
(The calculation is done in radians)
5 = -(-0.416) + C
5 - 0.416 = C = 4.584
Then the function is:
f(x) = -cos(x) + 4.584