Mark M. answered 05/06/20
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
f'(x) = sinxcosx = (1/2)sin(2x)
So, f(x) = ∫f'(x)dx = -(1/4)cos(2x) + C
Since f(π) = 1/2, we have -(1/4)cos(2π) + C = 1/2. So, -(1/4) + C = 1/2. Therefore, C = 3/4.
f(x) = -(1/4)cos(2x) + 3/4
f(π/2) = -(1/4)cosπ + 3/4 = 1