Arctan (cosx) for indefinite integral

Arctan (cosx) for indefinite integral

It's a little complicated,