Consider $f:\mathbb{R}^2\to\mathbb{R}\; f(x,y)=(x^2-y)(x^2-3y)$ and a linear function $g:\mathbb{R}\to\mathbb{R}^2,\; x\mapsto \begin{pmatrix} g_x(x)\\ g_y(x) \end{pmatrix} $. The claim is: If $g$ is not constant zero, then $f\circ g:\mathbb{R}\to\mathbb{R}$ has a local minimum at zero.
My try: f and g are differentiable, therefore $f\circ g$ is differentiable and $f'(g_x(x),g_y(x))g'(x)=4g_x^3(x)g_x'(x)-8g_x(x)g_y(x)g_x'(x)-4g_x^2(x)g_y'(x)+6g_y(x)g_y'(x)$ by chain rule.
Now, one solution of $f'(g_x(x),g_y(x))g'(x)=0$ is $x=0$ because g is linear and therefore it is $g^n(0)=g^{n-1}(0)g(0)=0$ for every $n\in\mathbb{N}$. This means, $x=0$ is a critical point of $f\circ g$. Let $g$ be nonzero. How to prove that $x=0$ is a local minimum of $f\circ g$? Shall I calculate the second derivation of $f\circ g$? Is there any possibility to calculate this without much computation? Mabye it could be helpful to write $g_x(x)=ax+b$ and $g_y(x)=cx+d$ with $a,b,c,d\in\mathbb{R}$ and either $a$ or $b$ is nonzero, but it could be an overkill.
But the derivation of a given linear transform is well-known, see for example here Derivative of a linear transformation.. Maybe it is helpful if you want to calculate the derivatives. But I don't know how to continue exactly.
Could you help me how to continue? Regards