How do you find the antiderivative of #(1+cosx)^2#?