
Bradford T. answered 06/26/22
Retired Engineer / Upper level math instructor
f''(x) = -sin(x)
Integrating
f'(x) = cos(x) + C1
Integrating
f(x) = sin(x) + C1x + C2
Using initial conditions
f'(0) = -2 = cos(0)+C1 --> C1 = -3
f(0) = 5 = sin(0) - 3(0) + C2 --> C2 = 5
f(π/4) = sin(π/4/) -3(π/4) + 5
= √2/2 -(3/4)π +5 ≈ 3.351