Wirtinger Derivatives in Maple 2021
Generally speaking, there are two contexts for differentiating complex functions with respect to complex variables. In the first context, called the classical complex analysis, the derivatives of the complex components ( abs , argument , conjugate , Im , Re , signum ) with respect to complex variables do not exist (do not satisfy the CauchyRiemann conditions), with the exception of when they are holomorphic functions. All computer algebra systems implement the complex components in this context, and computationally represent all of as functions of z . Then, viewed as functions of z, none of them are analytic, so differentiability becomes an issue.
In the second context, first introduced by Poincare (also called Wirtinger calculus), in brief z and its conjugate are taken as independent variables, and all the six derivatives of the complex components become computable, also with respect to . Technically speaking, Wirtinger calculus permits extending complex differentiation to nonholomorphic functions provided that they are ℝdifferentiable (i.e. differentiable functions of real and imaginary parts, taking as a mapping ).
In simpler terms, this subject is relevant because, in mathematicalphysics formulations using paper and pencil, we frequently use Wirtinger calculus automatically. We take z and its conjugate as independent variables, with that , , and we compute with the operators , as partial differential operators that behave as ordinary derivatives. With that, all of , become differentiable, since they are all expressible as functions of z and .
Wirtinger derivatives were implemented in Maple 18 , years ago, in the context of the Physics package. There is a setting, , that when set to true  an that is the default value when Physics is loaded  redefines the differentiation rules turning on Wirtinger calculus. The implementation, however, was incomplete, and the subject escaped through the cracks till recently mentioned in this Mapleprimes post.
Long intro. This post is to present the completion of Wirtinger calculus in Maple, distributed for everybody using Maple 2021 within the Maplesoft Physics Updates v.929 or newer. Load Physics and set the imaginary unit to be represented by
The complex components are represented by the computer algebra functions

(1) 
They can all be expressed in terms of and

(2) 
The main differentiation rules in the context of Wirtinger derivatives, that is, taking and as independent variables, are

(3) 
Since in this context is taken as  say  a mathematicallyatomic variable (the computational representation is still the function ) we can differentiate all the complex components also with respect to

(4) 
For example, consider the following algebraic expression, starting with conjugate

(5) 
Differentiating this expression with respect to z and taking them as independent variables, is new, and in this example trivial

(6) 

(7) 
Switch to something less trivial, replace by the real part

(8) 
To verify results further below, also express in terms of

(9) 
New: differentiate with respect to and

(10) 

(11) 
Note these results (10) and (11) are expressed in terms of , not . Let's compare with the derivative of where everything is expressed in terms of z and . Take for instance the derivative with respect to z

(12) 
To verify this result is mathematically equal to (10) expressed in terms of take the difference of the righthand sides

(13) 
One quick way to verify the value of expressions like this one is to replace and simplify and are real

(14) 

(15) 
The equivalent differentiation, this time replacing in by ; construct also the equivalent expression in terms of and for verifying results

(16) 

(17) 
Since these two expressions are mathematically equal, their derivatives should be too, and the derivatives of can be verified by eye since and are taken as independent variables

(18) 

(19) 
Eq (18) is expressed in terms of while (19) is in terms of . Comparing as done in (14)

(20) 

(21) 

(22) 
To mention but one not so famliar case, consider the derivative of the sign of a complex number, represented in Maple by . So our testing expression is

(23) 
This expression can also be rewritten in terms of and

(24) 
This time differentiate with respect to ,

(25) 
Here again, the differentiation of , that is expressed entirely in terms of and , can be computed by eye

(26) 
Eq (25) is expressed in terms of while (26) is in terms of . Comparing as done in (14),

(27) 

(28) 

(29) 
