Общее упрощение
tan(x)
tan(x)
tan(x)
tan(x)
$$\tan{\left(x \right)}$$
$$\tan{\left(x \right)}$$