how to solve trignometric equation using identities