I am having great trouble trying to understand this chain rule question. As you can see, there are three equalities. $f(x,y) = f(w,w) = f(uv, u^2 + v^2)$ This makes absolutely no sense to me! When trying to calculate the partial derivative of f with respect to $x$, what use do we have of "$w$"?
Thanks a bunch if you can take to time to explain a little!
Let $z = f(x,y)$ be a differentiable function such that $$\begin{array}{ccc} f(3,3) = 1, & f_x(3,3) = -2, & f_y(3,3) = 11, \\ f(2,5) = 1, & f_x(2,5) = 7, & f_y(2,5) = -3. \end{array}$$ Suppose $w$ is a differentiable function of $u$ and $v$ satisfying the equation $$f(w,w) = f(u,v, u^2+v^2)$$ for all $(u,v)$. Find $\displaystyle \frac{\partial w}{\partial u}$ at $(u,v,w) = (1,2,3)$.
Differentiating the identity $$f(w,w) = f(uv,u^2+v^2)$$ with respect to $u$ gives $$f_x(w,w)\frac{\partial w}{\partial u} + f_y(w,w) \frac{\partial w}{\partial u} = f_x(uv, u^2+v^2) \frac{\partial (uv)}{\partial u} + f_y(uv, u^2+v^2) \frac{\partial (u^2+v^2)}{\partial u}$$ by the Chain Rule. Hence $$\left(f_x(w,w) + f_y(w,w)\right) \frac{\partial w}{\partial u} = f_x(uv, u^2+v^2)v + f_y(uv, u^2+v^2) 2u$$ which leads to $$\left(f_x(3,3) + f_y(3,3)\right) \frac{\partial w}{\partial u} = 2f_x(2,5) + 2f_y(2,5)$$ after substituting $(u,v,w) = (1,2,3)$. Now using $f_x(3,3) = -2$, $f_y(3,3) = 11$, $f_x(2,5) = 7$, and $f_y(2,5) = -3$, we conclude that $$\frac{\partial w}{\partial u} = \frac{8}{9} \quad \text{at} \quad (u,v,w) = (1,2,3).$$
Here is a simpler example:
$$f(x,y) = (x+y)^2.$$
If we plug in $w$ for both $x$ and $y$ we get
$$f(w,w) = (2w)^2 = f(x,y) \iff w = \frac{x+y}{2}$$
(assuming $x, y \geq 0$).
So, for the right choice of $w = w(x,y)$ (i.e. as a function of $x$ and $y$), we do indeed have $f(x,y) = f(w,w)$. Your example is made complicated by the fact that you also have $u$s and $v$s, so you need to select the right $u$, $v$ and $w$ to make all the equalities match. (But you don't need to worry about what $w$ "looks like" precisely for the question, just assume that there is one.)
As for the chain rule, you have to differentiate the composition. If you have $f(g(t,s), h(t,s))$, then, differentiating with respect to $t$ gives:
$$ \frac{\partial f}{\partial t}(\underbrace{g(t,s)}_{x=g(t,s)},\underbrace{h(t,s)}_{y=h(t,s)}) = \frac{\partial f}{\partial x}\frac{\partial g}{\partial t} + \frac{\partial f}{\partial y}\frac{\partial h}{\partial t} $$.
The $x$ and $y$ in the $f$ derivatives indicate that we differentiate with respect to the argument in the $x$-position of $f(x,y)$ (so $g$) and the $y$-position of $f(x,y)$ (which is $h$).