Hello Muntadher,
Your original cost function is F(X).
Let me call your new cost function H(X). They are related as follows: H(X) = F(XJ), where J is some fixed matrix.
You already have a formula for the gradient of F, let me call if G(X).
You want a formula for the gradient of H, let me call it Q(X).
Recall the definition of gradient: G(X) is the matrix such that, for any dX (a perturbation of X), it holds that DF(X)[dX] = <G(X), dX>, where the left-hand side is the directional derivative of F at X along dX, and in the right-hand side we have an inner product (it doesn't really matter that the inputs are complex: the output is real.)
The same definition holds for Q (the gradient of H). Let's figure out the directional derivatives of H. By the chain rule:
DH(X)[dX] = DF(XJ)[dX J] = <G(XJ), dX J> = <G(XJ) J*, dX>, where J* is the Hermitian conjugate of J.
Thus, by identification with the definition of the gradient of H, we have:
Q(X) = G(XJ) J*
I hope that makes sense -- can you check it?
Best,
Nicolas