confusion regarding matrix derivative question

52 Views Asked by At

This is the question from the book Mathematics for machine learning enter image description here

how to get to this stepenter image description here

because using the identities from this bookenter image description here

the derivative of $g(y)$ w.r.t. $y$ should be $(y^T(S^{-1} + (S^T)^{-1})$ . which is not same as the answer so in the given identities what are the conditions on $X$ matrix