I have an expression which is very large and there arewhich has several "Conjugate" in this large expressionsub-expressions with head Conjugate. What I want to do now is to Simplifysimplify the "Conjugate" only while not affect othersConjugate[...] sub-expressions without affecting other sub-expressions.
theThe first method I considered is to use "Transformationfunctions"was the Transformationfunctions option of Simplify. And write as followsI wrote:
Simplify[expr,Transformationfunctions->{Conjugate}] wellWell, the "Conjugate" isConjugate does indeed disappear, but the result is wrong. forFor example (with the $assumptions that$Assumptions set so all variables are considered real)
FullSimplify[Conjugate[ t1 (2 Cos[(Sqrt[3] kx)/2] Cos[ky/2] + Cos[ky]) + I t1 (-2 Cos[(Sqrt[3] kx)/2] Sin[ky/2] + Sin[ky])], Transformationfunctions->{Conjugate}] gives
t1 (2 Cos[(Sqrt[3] kx)/2] Cos[ky/2] + Cos[ky]) + I t1 (-2 Cos[(Sqrt[3] kx)/2] Sin[ky/2] + Sin[ky]) theThe second method I considered, is to replace "Conjugate" as "ComplexExpand//@Conjugate"use (AllComplexExpand //@ Conjugate. Since all the variable isvariables in my expression are declared real variables) So
Conjugate[expr] , Conjugate[expr] will become
ComplexExpand//@Conjugate[expr] in order to implement ComplexExpand //@ Conjugate[expr]. To make such method of cousethis substitution, I can ctrl+Fcould use search-and-replace and replace "Conjugate". Butevaluate-in-place, but as I have said, the expression is large, so I don't want to displaydo it on the screenthat way. SoInstead I write as followsdid the following:
largeexpr /. Conjugate ->ComplexExpand> ComplexExpand //@Conjugate@ Conjugate But this did not work. Here the largeexpr stand for expr that contains Conjugate. for example
Here (justlargeexpr is an expression containing sub-expressions with head Conjugate. For example),
Sqrt[t1^2]+Conjugate[ t1 (2 Cos[(Sqrt[3] kx)/2] Cos[ky/2] + Cos[ky]) + I t1 (-2 Cos[(Sqrt[3] kx)/2] Sin[ky/2] + Sin[ky])] So can anyone point out what isI did wrong? Or suggest a better solution?