If

(which is the domain of

), then

for

.
But also, recall that

has period

, which means

for all integers

. This means the general solution to

is

for

.
This doesn't match any of the given choices, but we can simply write

and we can just replace

with

, since both can be arbitrary integers, which means (D) is the correct answer.