To write it do this

the most important thing you will need to know is the fraction is made by[ math]\frac{cos(x)}{sin(x)}=cot(x)[/math but i took off the ] after /math...look up LaTeX if you plan on using this site often it is a neccessity to learn