xTB→BxTb→bxTx→2xxTBx→2BxyTBx→BTyx^TB \rightarrow B \newline x^Tb \rightarrow b \newline x^Tx \rightarrow 2x \newline x^TBx \rightarrow 2Bx \newline y^TBx \rightarrow B^Ty \newlinexTB→BxTb→bxTx→2xxTBx→2BxyTBx→BTyReduce matrix size when possible, otherwise, just transpose itMatrix Derivative UsagesHessian Matrix Full cheat sheetatmos.washington.eduhttps://atmos.washington.edu/~dennis/MatrixCalculus.pdfCore cheat sheetwww.gatsby.ucl.ac.ukhttp://www.gatsby.ucl.ac.uk/teaching/courses/sntn/sntn-2017/resources/Matrix_derivatives_cribsheet.pdf