Prove the following identities: (i) {{\left( 1+\cot B \right)}^{2}}+{{\left( 1-\cot B \right)}^{2}}=2\cos e{{c}^{2}}B (ii) (cosecA/(tanA+cotA))=cosA