can you help me with this?

cos2A=cossquareA-sinsquareA/cossquareA+sinsquareA=cossquareA(1-tansquareA)/cossquareA(1+tansquareA)

I encountered this situation while solving trignometric problem.can you tell how does this come?