integrate 3sin^2(pi*t/2) from 0 to 3