Here's the problem I'm trying to solve.
Let $f:\mathbb{R}^3\to\mathbb{R}$ be a differentiable function, and let $M$ be a $3\times3$ matrix. Let $f':\mathbb{R}^3\to\mathbb{R}$ be defined by $f'(x,y,z)=f\left((M\cdot(x,y,z)^T)^T\right)$. How can I express the gradient of $f'$ in terms of the gradient of $f$?
I assume this requires use of the vector chain rule, which I'm having trouble wrapping my head around, and some matrix calculus, which is something I know almost nothing about. My end goal is to show that if the curve defined as the roots of $f$ has a singular point, then the one defined as the roots of $f'$ has a corresponding singular point, but to do that I need to be able to determine where $\nabla f'=0$. I don't expect that this is relevant to my question, but in case it is, you can assume that $f$ is a homogeneous polynomial and $M$ is invertible.
Thank you for your help!
So the chain rule tells us that $$Df'(\vec x) = Df(M\vec x)M.$$ (A $1\times 3$ matrix is the product of a $1\times 3$ matrix with a $3\times 3$ matrix.) Transposing to get the gradient, $$\nabla f'(\vec x) = M^\top \,\nabla f(M\vec x).$$