0

I want to be able to treat $z$ and its complex conjugate as independent variables, so that for instance $\partial (z\bar\,z)/\partial z = \bar z$. When I try to do this by evaluating

D[z Conjugate[z], z]

it returns

Conjugate[z] + z Derivative[1][Conjugate][z]

because it treats $\bar z$ as if it is a function of $z$ (which of course it is).

Is there a clever way to tell Mathematical that $z$ and $\bar z$ should be treated as independent variables when evaluating derivatives? Or would the best option be just to use two explicitly independent variables $z$ and $w$ and later substitute $w=\bar z$?

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
Inzinity
  • 193
  • 3
  • 1
    Offhand I think the best way to go is as you state, making two independent variables. An alternative might be to switch z->x+I*y with a corresponding change for zbar, take derivatives with respect to {x,y}, manipulate to obtain d/dz, translate back... This seems too tedious though. – Daniel Lichtblau Feb 01 '18 at 23:39

1 Answers1

0
Block[{Conjugate}, Conjugate'[z]:=0; D[z Conjugate[z], z]]

Conjugate[z]

kglr
  • 394,356
  • 18
  • 477
  • 896