The trigonometric identity on the interval
.
.
Apply the sum-to-product formula: .
Even -odd property of cosine function: .
.
and
.
and
.
Solve these two equations separately.
\Consider .
General solution for is
and
where
.
Solutions for in
are
and
.
where
.
.
.
Consider .
Solutions for in
are
and
where
.
.
.
Combine above two solutions for complete solution.
\ and
.
.