∫tanx dx
=∫(sinx/cosx)dx
=∫-dt/t
=-log|t|+C
=-log|cosx| +C
でOK?