Solution:
It is given that
I=∫sinxcosxtanxdx
By multiplying cosx to both numerator and denominator
=∫sinxcosx×cosxtanx×cosxdx
On further calculation
=∫tanxcos2xtanxdx
So we get
=∫tanxsec2xdx
Take tanx=t
We get sec2xdx=dt
I=∫tdt
By integration we get
=2t+C
Substituting the value of t
=2tanx+C