Let $$f(W) = (\mathbf{t} - W^T\mathbf{x})^TA(\mathbf{t} - W^T\mathbf{x})$$ I expanded to get: $$f(W) = \mathbf{t}^TA\mathbf{t} - \mathbf{t}^TAW^T\mathbf{x} - \mathbf{x}^TWA\mathbf{t} + \mathbf{x}^TWAW^T\mathbf{x}$$ When taking derivatives the first term vanishes, so we need only consider the remaining terms. Let us start with the second term: $$\mathbf{t}^TAW^T\mathbf{x} = Tr[W^T\mathbf{x}\mathbf{t}^TA]$$ Taking derivatives we obtain
$$\frac{\partial \mathbf{t}^TAW^T\mathbf{x} }{\partial W} = \mathbf{x}\mathbf{t}^TA$$
Similarly, the derivative of the third term is: $\mathbf{x} \mathbf{t}^T A^T$
I am looking through my text books appendix on how to deal with derivatives with respect to matrices and I cannot see anything to help me with the last term (maybe A.27???):
Page 620-621
Can I have some guidance with the last term please? Maybe there is a way to "see" the derivative without expanding. I would like to stick with the rules from my textbook