simplify sec^2x-sec(x)+tan^2x