I think the inner-product function needs to be linear in the second argument, meaning you need to reverse the order of the parameters in your inner-product function. If you set w=a+I*b
and reverse your inner-product function:
F = Integrate[ComplexExpand[Conjugate[#1]]*#2, {x, -Pi, Pi}] &
then this simplified example works:
S = Orthogonalize[{E^x, E^(w^1*x)}, F]
Test:
F[S[[1]], S[[1]]]
(* 1 *)
F[S[[1]], S[[2]]]
(* 0 *)
With your four terms it should work too, but will take a long time.
Keep in mind that the manual on Orthogonalize
says that "The $e_i$ can be any expressions for which $f$ always yields real results." Your example does not satisfy this condition (some of the overlap integrals are complex-valued); what I wrote above about linearity in the second argument may or may not work properly.
E^x
instead ofe^x
. $\endgroup$w
? Is it a complex number? Also, what is the error message? $\endgroup$i
withI
if you want $\sqrt{-1}$. $\endgroup$