$$\int \mathrm{tg}\,x\,dx$$
$$\int\mathrm{tg}\,x\,dx=\int\frac{\sin x}{\cos x}\,dx=-\int\frac{d(\cos x)}{\cos x}=-\ln|\cos x|+C.$$
$$\boxed{-\ln|\cos x|+C}$$