I need to find the derivative wrt ${X}$ of:
$$ f({X}) = \operatorname{tr}( B^{T}X^{T}A^{T}CXD )$$
To make this simpler, I let $E = A^{T}C$, then I have:
$$ f({X}) = \operatorname{tr}( B^{T}X^{T}EXD ) = \operatorname{tr}( DB^{T}X^{T}EX )$$
We can rewrite this using the Frobenius inner product:
$$ f({X}) = XBD^{T}:EX$$
So we can calculate the differential easily now:
$$ df = (dX)BD^{T}:EdX$$
Unfortunately this is where I am stuck.
Perhaps we can rewrite this as:
$$ df = BD^{T}:(dX)^{T} E dX$$
But how do we isolate the dX value?
Edits:
I tried: $(dX)^{T} E dX = \operatorname{tr}( dXdX^{T}E) = \operatorname{tr}( EdXdX^{T}) $ but that isn't getting me anywhere either...