solving trig equations using compound angle identities