step-by-step
\frac{\sin\left(x\right)}{\cos\left(x\right)}+\frac{\cos\left(x\right)}{\sin\left(x\right)}
zs