Suppose that the function $\psi:\mathbb{R}^2 \to \mathbb{R}$ is continuously differentiable. Define the function $g:\mathbb{R}^2 \to \mathbb{R}$ by $g(s,t) = \psi(s^2t,s)$ for $(s,t) \in \mathbb{R}^2$. Find $\frac{\partial g}{\partial s}(s,t)$.
Here is what I have writtens as the solution but I am not positive I am applying the chain rule correctly:
$\frac{\partial g}{\partial s}(s,t) = \frac{\partial \psi}{\partial s}(s^2t, t)2st+\frac{\partial \psi}{\partial t}(s^2t, t)$.