Mark M. answered 06/13/19
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
Since y" = 3sinx, y' = 3∫sinxdx = -3cosx + C
Since y'(π/2) = -2, we have -3(0) + C = -2. So, C = -2.
y' = -3cosx - 2
y = ∫(-3cosx - 2)dx = -3sinx - 2x + C1
Since y(π/2) = -π, -3(1) - 2(π/2) + C1 = -π
So, C1 = 3
Therefore, y = -3sinx - 2x + 3