Daniel B. answered 01/21/21
A retired computer professional to teach math, physics
We are given
y = -2sin(x) + Ax + B
From that we calculate
y' = -2cos(x) + A
Then we plug the given constraints at π/2 into the equations for y and y':
0 = -2sin(π/2) + Aπ/2 + B
-2 = -2cos(π/2) + A
Solve the above two equations for A and B:
A = -2
B = π+2
Thus the correct answer is
B: y = -2sin(x) - 2x + π + 2