I have the following identity
$$ \sqrt{\cos(2x)\sec^4(x)}$$
I use the property $ \sqrt{a} \sqrt{b} = \sqrt{ab} $
which then yields
$$ \sqrt{\cos(2x)} \, \sec^2(x) $$
However, Wolfram tells me these 2 identities are not always equal.
Am i in the wrong here? Thanks for your help.
Apologies for the elementary question.
With complex numbers one may need be careful with square roots and the identity you are using. For example $$\sqrt{(-1)}\sqrt{(-1)} = i^2=-1$$ but $$\sqrt{(-1) \cdot (-1)} = 1$$
Several times when using wolfram alpha I have noticed I need to tell it specifically what variables are real or it will be extra careful.