Use the "difference formula": cos(a-b)= cos(a)cos(b)+ sin(a)sin(b). so we would like to have , .

But that's impossible because that would mean that when we know it must be 1. So factor out a :

if and only if and . Now we have so that is possible.

And, of course, we must have .