sin2A-cos2A= 2cos2Atan@A-1
You identity formula is incorrect. Not sure whether you meant this: or this: But neither of these formulas is correct.