find the area of cosx from 0 to pi