How do you simplify the expression cos^2theta(1+tan^2theta)?