If you expand the desired form, you get

and if we match this up with the given form, we can see that

, and we have to find

and

such that

If we divide the second equation by the first, we have

If we assume

, then we can take the inverse tangent of both sides to get

. If we do this, then we find

So we can rewrite

as
