Trigonometric functions
>
f := (x-tan(x))/tan(x)^2 + tan(x);
>
pmint(f,x);