The equation is
.

Apply sum-to-product identities :
.

Apply zero product property.
\
.
Solve
.

\
\
The general solution of
is
, where
is an integer.

\
\
The solution is
, where
is an integer.
Solve
.

\
\
The general solution of
is
, where
is an integer.
\
\
The solution is
, where
is an integer.
The solutions are
and
, where
is an integer.