derivate trace(U' X Y' V) with respect to X