I wanted to simplify this nasty equation, which I couldn't seem to format also properly.
$U[k_]:= 1/2 E^(-I k) (2 E^(I k)
Cos[A] Cos[F] - (1 + E^(2 I k)) Sin[A] Sin[F] - Sqrt[
4 E^(2 I k)
Cos[A]^2 Cos[F]^2 + (1 + E^(2 I k))^2 Sin[A]^2 Sin[F]^2 -
2 E^(2 I k) (2 + Cos[k] Sin[2 A] Sin[2 F])])
PowerExpand@FullSimplify[$U];(* This won't simplify anything, eventhough simplification exist just by seeing *)
Are there any other command which simplify this expression? I need to later do plotting.
Manipulate[Plot[$U[k], {k, -\[Pi], \[Pi]},
PlotLegends -> "Expressions"], {A,
0, \[Pi]}, {F, 0, \[Pi]}]
I strongly apologies for the formatting of my text, but I don't know how to put it properly.


[$U]should be[$U[k]]. There are no obvious simplifications. From documentation forPowerExpand"PowerExpand in general disregards all issues of branches of multivalued functions, so may not preserve the numerical values of expressions." Consequently, use only when you know that operation is safe. In general, addAssumptions(constraints) or useAssumingto assist simplification. – Bob Hanlon Apr 10 '17 at 17:59