Given the partition {0,π2,π}, ˉx1=0, and ˉx2=π2, find the Riemann sum R(P) for the integral π0cos(x)dx.

Problem: 

Given the partition {0,π2,π}, ˉx1=0, and ˉx2=π2, find the Riemann sum R(P) for the integral π0cos(x)dx.

Answer: 

R(P)=π2