Actually, I think I got this. I think the assumption was that the exponents must be equal, which is not necessarily true. All I know is that theta is an angle between 0 and 2pi which, when doubled, is the same angle as pi/2. This is true of both pi/4 and 5pi/4.