

Recall that

, which is to say

has period

. This in turn means that

will have the same solutions as

for any integer

. So the general solution to the first case is

where

is any integer.
On the other hand,

but

for any value of

, so this equation has no (real) solutions for

.