How can I factorise into powers of integer exponents?
An expression such as,
factored =
2^(-j - k) E^(-y/t)
(I (E^(-I y w) - E^(I y w)))^k (E^(-I y w) + E^(I y w))^j
can be expressed as,
unfactored =
I^k 2^(-j - k) E^(-y/t - I j y w - I k y w)
(1 - E^(2 I y w))^k (1 + E^(2 I y w))^j
My aim is to reduce unfactored
to $e^{-y/t}\cos^j (y\,w)\sin^k (y\,w)$, but Mathematica doesn't seem to be able to do this unless the expression is factorised in terms of j, k
as in factored
Attempts
Collect[unfactored, {E^(y w), E^(- y w)}]
and variantsExpToTrig[unfactored] // FullSimplify
and variants
Working Example and a sanity check!
ExpToTrig[
(I/2 E^(-I y w) (1 - E^(2 I y w)))^k
(1/2 E^(-I y w) (1 + E^(2 I y w)))^j] // FullSimplify
gives, $ \cos^j(y\,w) \sin ^k(y\,w) $
ComplexExpand[]
, by any chance? $\endgroup$TargetFunctions
? $\endgroup$factored
andunfactored
really represent the same quantity? $\endgroup$