kill(all)$

van=facebook.com/LearningCalculus;

f(x):=sqrt((1+cos(2*x))/2);

integrate(f(x),x)+C;

integrate(f(x),x,0,%pi);